\documentclass[11pt]{amsart} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amssymb,amsmath,mathtools} \usepackage{enumitem} \usepackage{url} \usepackage[margin=2.7cm]{geometry} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{maintheorem}{Theorem} \renewcommand{\themaintheorem}{\Alph{maintheorem}} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{hypothesis}[theorem]{Hypothesis} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \numberwithin{equation}{section} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\F}{\mathbb{F}} \newcommand{\T}{\mathbb{T}} \newcommand{\cO}{\mathcal{O}} \newcommand{\GL}{\mathrm{GL}} \newcommand{\SL}{\mathrm{SL}} \newcommand{\PGL}{\mathrm{PGL}} \newcommand{\Gal}{\mathrm{Gal}} \newcommand{\Spec}{\mathrm{Spec}} \newcommand{\Hom}{\mathrm{Hom}} \newcommand{\ad}{\mathrm{ad}} \newcommand{\Frob}{\mathrm{Frob}} \newcommand{\Ord}{\mathrm{Ord}} \newcommand{\Art}{\mathrm{Art}} \newcommand{\Ind}{\mathrm{Ind}} \newcommand{\rhobar}{\bar\rho} \newcommand{\So}{\Sigma_{\mathrm o}} \newcommand{\Sn}{\Sigma_{\mathrm n}} \newcommand{\cl}{\mathrm{cl}} \newcommand{\ps}{\mathrm{ps}} \newcommand{\ord}{\mathrm{ord}} \newcommand{\red}{\mathrm{red}} \newcommand{\HT}{\mathrm{HT}} \newcommand{\Nm}{\mathrm N} \newcommand{\St}{\mathrm{St}} \title[Fontaine--Mazur for $2$-adic representations]{On the Fontaine--Mazur conjecture for $2$-adic representations} \author{Luis V. Dieulefait} \address{Departament de Matem\`atiques i Inform\`atica, Universitat de \break Barcelona, Gran Via de les Corts Catalanes, 585. 08007 Barcelona} \email{ldieulefait@ub.edu} \keywords{Fontaine-Mazur conjecture} \subjclass[2010]{11F80, 11F33} \begin{document} \begin{abstract} Let $F$ be a totally real field, abelian over $\Q$, in which $2$ splits completely, and let $\rho:G_F\to\GL_2(\overline\Q_2)$ be an odd irreducible representation, de Rham with distinct Hodge--Tate weights at the places above $2$, whose residual representation is reducible with distinct characters at the places above $2$. We prove that $\rho$ is modular in the following cases: if $\rho$ is non-split at every place above $2$ at which it is reducible, which includes the case where $\rho$ is irreducible at all places above $2$, and, without any condition on the splitness, if $\rho$ is of Steinberg type at some finite place not dividing $2$, using an analogue at $2$, which we prove, of Pan's finiteness theorem for fully ordinary deformation rings. Both results include the mixed case, in which $\rho$ is reducible at some places above $2$ and irreducible at others. The pro-modularity input is obtained by extending to these fields the method of \cite{OAI}, which treats representations of $G_\Q$; this is where we use that the residual characters are distinct at $2$. For $F=\Q(\sqrt q)$ with $q\equiv1\pmod8$ prime, we remove the condition at $2$ from the first result in most cases; for $F=\Q(\sqrt{17})$ this includes every case where the residual semisimplification is scalar. The first result also holds when the residual representation is irreducible with solvable image, where residual modularity follows from an odd Artin lift. For the second result we combine the method of \cite{Die26b} with Thorne's potential modularity theorem for ordinary representations of weight two and the local indecomposability theorem of Hida and Zhao. \end{abstract} \maketitle \section{Introduction} \subsection{Setting} Let $F$ be a totally real field, abelian over $\Q$, in which $2$ splits completely, so that $F_v=\Q_2$ for every place $v\mid2$. Let $E/\Q_2$ be a finite extension with ring of integers $\cO$, uniformizer $\varpi$ and residue field $\F$, which we enlarge when necessary. Let $\rho:G_F\to\GL_2(E)$ be a continuous, absolutely irreducible, totally odd representation, unramified outside finitely many places. Let $\Sigma_2$ be the set of places above $2$, fix a partition $\Sigma_2=\Sn\sqcup\So$, and consider, as in \cite[§1.2]{Die26a}, the conditions: \begin{itemize} \item[(N)] for $v\in\Sn$, $\rho_v=\rho|_{G_{F_v}}$ is irreducible and de Rham with distinct Hodge--Tate weights; \item[(O)] for $v\in\So$, $\rho_v$ is reducible and de Rham with distinct Hodge--Tate weights; \item[(R)] $\rhobar^{ss}=\bar\chi_1\oplus\bar\chi_2$, the character $\bar\chi=\bar\chi_1\bar\chi_2^{-1}$ extends to a character $\tilde\chi$ of $G_\Q$, and $\bar\chi|_{G_{F_v}}\neq1$ for every $v\mid2$. \end{itemize} Since $2$ splits completely, $\bar\chi|_{G_{F_v}}=\tilde\chi|_{G_{\Q_2}}$ for all $v\mid2$. The character $\tilde\chi$ has odd order, hence is unramified at $2$, and the last condition in (R) says that $\tilde\chi(\Frob_2)\neq1$. Since the mod $2$ cyclotomic character is trivial, (R) contains the analogue of the condition $\bar\chi|_{G_{F_v}}\neq\omega^{\pm1}$ of \cite{Die26b}. Under (O), the Jordan--Hölder character of $\rho_v$ with the smaller Hodge--Tate number is a subcharacter of $\rho_v$ (Lemma~\ref{lem:BK}); it is the \emph{classical character} $\psi^{\cl}_v$. For odd $p$, the case $\So=\emptyset$ is due to Pan \cite{Pan22} and Zhang \cite{Zha25}, the case $\Sn=\emptyset$ to Pan \cite[Theorem~5.1.2]{Pan22}, and the mixed case is treated in \cite{Die26a,Die26b}. Over $\Q$ there is a single place above $2$, the mixed case does not occur, and the Fontaine--Mazur conjecture at $2$ is proved in \cite{OAI}. The purpose of this paper is to extend the methods of \cite{Die26a,Die26b} to $p=2$ over the fields $F$ above. \subsection{The pro-modularity input} Pseudo-representations are understood as determinants in the sense of Chenevier \cite{Che14}. Let $\Sigma$ be a finite set of places of $F$ containing the infinite places, the places above $2$ and those at which $\rho$ is ramified. Put $\chi=\det\rho$ and, for a field $K\supset F$, let $R^{\ps}_{K}$ be the universal deformation ring of the determinant of $\rhobar^{ss}|_{G_{K}}$ for the group $G_{K,\Sigma_K}$, with determinant $\chi|_{G_K}$, where $\Sigma_K$ is the set of places above $\Sigma$. For $K$ totally real of even degree, let $\T_K(U^p)$ be the Hecke algebra of the completed cohomology at $2$ of the quaternion algebra over $K$ ramified exactly at the infinite places, of tame level $U^p$ and central character $\chi\varepsilon$, localized at the maximal ideal of $\rhobar^{ss}$ (§\ref{subsec:cc}). It is a quotient of $R^{\ps}_K$. \begin{hypothesis}[PM]\label{hyp:PM} There are totally real fields $F\subset K\subset F_1$ of even degree, in which $2$ splits completely, with $K/F$ Galois and solvable and $F_1/\Q$ Galois and solvable, such that for every irreducible component $C$ of $\Spec R^{\ps}_{K}$ containing the point defined by $\rho|_{G_K}$, the image of $C$ in $\Spec R^{\ps}_{F_1}$ under restriction to $G_{F_1}$ lies in the image of $\Spec\T_{F_1}(U^p)$ for some tame level $U^p$. \end{hypothesis} For odd $p$, \cite[Theorem~5.5.1]{Zha25} gives the stronger statement with $K=F_1$, for $p\geq5$ the corresponding result of Pan, and its proof uses no local condition at $p$ \cite[Proposition~4.5]{Die26a}. For $p=2$ and representations of $G_\Q$, the analogous statement is \cite[Theorem~7.1]{OAI}. In Section~\ref{sec:PM} we prove: \begin{theorem}[Theorem~\ref{thm:PMproof}] Assume \textup{(R)}, that $\rho$ is de Rham with distinct Hodge--Tate weights at some place above $2$ and not induced from a character of an index two subgroup, and that $\det\rho=\varepsilon^w\chi_0$ with $\chi_0$ of finite order. Then \textup{(PM)} holds. \end{theorem} The last condition holds under (N) and (O), by §\ref{subsec:field}; it is needed because the propagation theorem and the Hecke algebras of \cite{OAI} use a determinant of this form. The proof follows \cite[§§6--7]{OAI}. The base field $\Q$ enters there through the construction of auxiliary fields with controlled Selmer groups \cite[Proposition~6.1]{OAI}, which we carry out over $F$ when $\bar\chi|_{G_{\Q_2}}\neq1$, replacing the conductor primes of cyclotomic fields by suitable primes of $F$ and ray class fields; through Leopoldt's conjecture for the abelian fields so constructed, which we replace by Waldschmidt's bound for the Leopoldt defect; and through the modular seed \cite[Lemma~7.2]{OAI}, which we obtain by base change from $\Q$. Besides \cite[§§5 and~7]{OAI}, which are used with these modifications, we use from \cite{OAI} three results on completed cohomology at $2$ over general totally real fields: the structure of completed forms, local--global compatibility for the blocks at $2$, and the lower bound for the dimension of Hecke algebras \cite[Propositions~4.1, 4.2 and~4.4]{OAI}. \subsection{Main results} \begin{maintheorem}\label{thm:A} Assume \textup{(N)}, \textup{(O)} and \textup{(R)}, and that $\rho_v$ is non-split for every $v\in\So$. Then $\rho$ is modular. \end{maintheorem} This includes the case $\So=\emptyset$, the analogue at $2$ of Pan's theorem in the generic case, and the case $\Sn=\emptyset$ with $\rho$ non-split at all places above $2$. To remove the non-split hypothesis we assume: \begin{itemize} \item[(St)] there is a finite place $v_0\nmid2$ of $F$ at which $\rho$ is of Steinberg type, that is, the Weil--Deligne representation of $\rho|_{G_{F_{v_0}}}$ has non-zero monodromy. \end{itemize} For odd $p$, the method of \cite{Die26b} uses Pan's finiteness theorem for fully ordinary pseudo-deformation rings \cite[Theorem~5.1.2(1)]{Pan22}. For $p=2$ we prove its analogue (Theorem~\ref{thm:OF}), using the pro-modularity of Section~\ref{sec:PM} and the structure of the generic blocks of $\GL_2(\Q_2)$. For a totally real field $K$ in which $2$ splits completely, let $R^{\red}_K$ be the quotient of $R^{\ps}_K$ on which the universal determinant is reducible on every decomposition group above $2$, and $\Lambda_K=\cO[[\prod_{v\mid2}(1+4\Z_2)]]$, acting through the characters $\psi^{(1)}_v$ of Definition~\ref{def:rings}. Let us write (OF) for the statement that $R^{\red}_K$ is finite over $\Lambda_K$; Theorem~\ref{thm:OF} proves it for the field $K$ used below. \begin{maintheorem}\label{thm:B} Assume \textup{(N)}, \textup{(O)}, \textup{(R)} and \textup{(St)}. Then $\rho$ is modular. \end{maintheorem} No condition is imposed on the splitness of $\rho_v$ for $v\in\So$ or on the Hodge--Tate weights beyond (N) and (O). Over real quadratic fields we can remove the condition $\bar\chi|_{G_v}\neq1$ from Theorem~\ref{thm:A} in most cases. Let $q\equiv1\pmod8$ be a prime, $F=\Q(\sqrt q)$, and $w_q$ the place of $F$ above $q$. Consider the condition (S) that a totally positive generator of $w^{h^+}$, for a place $w\mid2$ and $h^+$ the narrow class number, is not a square at the other place above $2$ (Lemma~\ref{lem:quadF}). It holds for $q=17$. \begin{maintheorem}[Theorem~\ref{thm:Aquad}]\label{thm:C} Let $F=\Q(\sqrt q)$ be as above. Assume \textup{(N)}, \textup{(O)}, that $\rhobar^{ss}=\bar\chi_1\oplus\bar\chi_2$ with $\bar\chi=\bar\chi_1\bar\chi_2^{-1}$ extending to $G_\Q$, and that $\rho_v$ is non-split for every $v\in\So$. Assume that $\bar\chi|_{G_v}\neq1$ for $v\mid2$; or that $\bar\chi=1$ and $F$ satisfies \textup{(S)}; or that $\bar\chi\neq1$, $\rho$ is unramified at $w_q$ and $\bar\chi(\Frob_{w_q})\neq1$. Then $\rho$ is modular. \end{maintheorem} For $F=\Q(\sqrt{17})$, this applies outside the case where $\bar\chi\neq1$ is trivial at $2$ and $\rho$ is ramified at $w_{17}$ or $\bar\chi(\Frob_{w_{17}})=1$; in particular it applies whenever $\rhobar^{ss}$ is scalar. This is the case, for instance, if $\rho$ is unramified outside the places above $2$, since then the extension of $\bar\chi$ to $G_\Q$ is ramified only at $2$, hence trivial (Corollary~\ref{cor:unr2}). The proof uses the method of \cite{OAI}, with $F$ in the role of the auxiliary quadratic field of \cite[§6]{OAI} (Section~\ref{sec:quad}). Finally, when $\rhobar$ is absolutely irreducible with solvable image, which in characteristic $2$ means that it is dihedral, residual modularity is automatic, by an odd Artin lift, and the method applies without Selmer conditions. \begin{maintheorem}[Theorem~\ref{thm:dih}]\label{thm:D} Let $F$ be as in §1.1. Assume \textup{(N)}, \textup{(O)}, that $\rhobar$ is absolutely irreducible with solvable image, and that $\rho_v$ is non-split for every $v\in\So$. Then $\rho$ is modular. \end{maintheorem} \subsection{The method} Theorem~\ref{thm:A} is proved as \cite[Theorem~A]{Die26a}: (PM) places $\rho$ in the Hecke support of completed cohomology; Emerton's ordinary parts at the places of $\So$ give a point of the partially ordinary Hecke algebra carrying \emph{a} subcharacter of $\rho_v$, which is the classical one when $\rho_v$ is non-split, and the classicality criterion of \cite[Theorem~4.2]{Die26a} applies. We check that the arguments of \cite[§§3--4]{Die26a} work for $p=2$ (Section~\ref{sec:aut}). For Theorem~\ref{thm:B} we follow \cite{Die26b}. Let $C$ be an irreducible component through the point $x$ of $\rho$ of the deformation space $\Spec R^{\mathrm o}$ which is ordinary at $\So$. Cutting $C$ by the reducibility equations at the places of $\Sn$ gives a fully ordinary subfamily $D\subset C$ of dimension $1+d$. A regular modular point $y\in D$, together with a lower bound for the dimension of the partially ordinary Hecke algebra $\T^{\mathrm o}$, shows that $C$ is a component of $\Spec\T^{\mathrm o}$, and the classicality criterion applies to $x$. For odd $p$ the modularity of the points of $D$ comes from Pan's theorem in the ordinary case. For $p=2$ it is obtained as follows. \begin{enumerate} \item By Theorem~\ref{thm:OF}, $D$ is finite over the Iwasawa algebra $\Lambda$, so its points of weight two are dense. By (PM) and Emerton's adjunction, their restrictions to $G_{F_1}$ come from the fully ordinary part of completed cohomology over $F_1$, with \emph{some} ordering of the characters at each place above $2$. \item By (St), the ratio of the Frobenius eigenvalues at $v_0$ is $\Nm(v_0)^{\pm1}$ along $C$. Points of $D$ of weight two are potentially modular by Thorne's theorem \cite[Theorem~B]{Tho26}, the corresponding Hilbert modular forms are of Steinberg type at $v_0$, hence square integrable there, and the theorem of Hida and Zhao \cite[Theorem~1]{Zhao14} shows that they are non-split at all places above $2$. Hence the ordering in (1) is the classical one, and these points are modular and o-pro-modular (Proposition~\ref{prop:good}). \item Their regularity follows from the theorem of Newton and Thorne \cite[Theorem~B]{NT23}, which holds for $p=2$, and from the full local--global compatibility at the places not above $2$, which holds by Carayol's theorem since the forms are square integrable at $v_0$ (Proposition~\ref{prop:smooth}). \end{enumerate} Condition (St) is also what excludes CM points from $D$ (Lemma~\ref{lem:noCM}): for odd $p$ this followed from (R), but the corresponding argument fails for $p=2$, since quadratic characters are trivial modulo $2$. \subsection*{Acknowledgments} The author acknowledges the use of Claude (Anthropic), an AI assistant, during the preparation of this work: it was used to check the relevant parts of the literature, to work out and verify technical details of the arguments and to help draft the manuscript. \subsection*{Notation} We use the conventions of \cite{Die26a}: $\HT(\varepsilon)=-1$, and characters of $G_{\Q_2}$ are identified with characters of $\Q_2^\times$ via the local Artin map. We write $G_v=G_{F_v}$, $I_v$ for the inertia subgroup, $\phi_v$ for a lift of the arithmetic Frobenius and $q_v=\Nm(v)$. For a determinant $D$ with coefficients in a ring $R$ and a prime $\mathfrak r$ of $R$, $\rho(\mathfrak r)$ is the semisimple representation over an algebraic closure of $k(\mathfrak r)$ with determinant $D\bmod\mathfrak r$ \cite[Theorem~2.12]{Che14}; for a point $z$ we also write $\rho_z$, and $T$ denotes the trace of the universal determinant. A point is \emph{irreducible} if $\rho_z$ is absolutely irreducible. We write $h^i(V)=\dim H^i(V)$, and $d=[F:\Q]$ after the base change of §\ref{subsec:field}. \section{Preliminaries}\label{sec:prelim} \subsection{Determinants and ordinary conditions} For $p=2$, traces do not determine two-dimensional determinants, and we use \cite{Che14} throughout. Let $A$ be a complete local ring with residue field $k$ of characteristic $2$ and $D$ a determinant of a profinite group $G$ with values in $A$, whose reduction is $\det(\bar\psi_1\oplus\bar\psi_2)$ with $\bar\psi_1\neq\bar\psi_2$. Then the Cayley--Hamilton quotient of $A[G]$ is a generalized matrix algebra $\left(\begin{smallmatrix}A&B\\C&A\end{smallmatrix}\right)$ \cite[Theorem~2.22 and §1.4]{Che14}, \cite[§1.3]{BC09}. A determinant with values in a field is reducible if and only if it factors through $A/BC$, and if $BC=0$ the diagonal entries give characters $\psi_1,\psi_2:G\to A^\times$ lifting $\bar\psi_1,\bar\psi_2$ with $D=\det(\psi_1\oplus\psi_2)$. Following \cite[Definition~5.3.2]{Pan22}, if $D|_H=\det(\psi_1\oplus\psi_2)$ for a closed subgroup $H\subset G$, we say that $D$ is \emph{$\psi_1$-ordinary} at $H$ if \[ T(\sigma\tau\eta)-\psi_1(\sigma)T(\tau\eta)-\psi_2(\tau)T(\sigma\eta)+\psi_1(\sigma)\psi_2(\tau)T(\eta)=0\qquad(\sigma,\tau\in H,\ \eta\in G). \] The proof of \cite[Lemma~2.3]{Die26a} is characteristic free and gives: if $\rho_A:G\to\GL_2(A)$ has absolutely irreducible reduction and $\psi_1(\sigma_0)-\psi_2(\sigma_0)\in A^\times$ for some $\sigma_0\in H$, then $\det\rho_A$ is $\psi_1$-ordinary at $H$ if and only if $\rho_A|_H$ has a stable direct summand of rank one with character $\psi_1$; such a summand is unique; and if $\det\rho_A$ is $\psi_1$- and $\psi_2$-ordinary, then $\rho_A|_H\simeq\psi_1\oplus\psi_2$. We apply this to the completed local rings at irreducible points of characteristic $0$, and to the residually distinct case above. \begin{lemma}\label{lem:BK} Let $\psi_1,\psi_2:G_{\Q_2}\to E^\times$ be de Rham characters with $\HT(\psi_1)\neq\HT(\psi_2)$. If $\HT(\psi_1)<\HT(\psi_2)$, every extension of $\psi_2$ by $\psi_1$ is de Rham; if $\HT(\psi_1)>\HT(\psi_2)$, every de Rham extension of $\psi_2$ by $\psi_1$ is split. \end{lemma} \begin{proof} This is \cite[Lemma~2.1]{Die26a}, whose proof uses the Bloch--Kato dimension formulas \cite[Corollary~3.8.4]{BK90}, which hold for $p=2$. \end{proof} \begin{lemma}\label{lem:red} Let $v\mid2$ with $\bar\chi|_{G_v}\neq1$, and let $R^{\ps}_v$ be the deformation ring of the determinant of $(\bar\chi_1\oplus\bar\chi_2)|_{G_v}$ with determinant $\chi|_{G_v}$. There is $f_v\in R^{\ps}_v$ such that a deformation with values in a field is reducible if and only if it kills $f_v$. \end{lemma} \begin{proof} Since $\bar\chi|_{G_v}\neq1$, the residual characters are distinct on $G_v$, so the Cayley--Hamilton algebra is a generalized matrix algebra with off-diagonal modules $B$, $C$, and the reducibility ideal is $BC$. The minimal number of generators of $B$ (resp.\ $C$) is at most $h^1(G_{\Q_2},\bar\chi)$ (resp.\ $h^1(G_{\Q_2},\bar\chi^{-1})$) \cite[Theorem~1.5.5]{BC09}, \cite[Lemma~2.5]{Deo}; the argument only uses the generalized matrix algebra structure and applies to determinants. Since the mod $2$ cyclotomic character is trivial, the local Euler characteristic formula gives $h^1(G_{\Q_2},\bar\chi^{\pm1})=1+h^0(\bar\chi^{\pm1})+h^0(\bar\chi^{\mp1})=1$. Hence $BC$ is principal, generated by $f_v=bc$. \end{proof} \begin{lemma}\label{lem:h0} Let $G$ be a group, $k$ a field, $\alpha\neq\beta$ and $\eta\neq1$ characters $G\to k^\times$, and $r=\left(\begin{smallmatrix}\alpha&*\\0&\beta\end{smallmatrix}\right)$ a non-split extension. If $H^0(G,\ad^0r\otimes\eta)\neq0$, then $\alpha\beta^{-1}=\eta^{-1}$. \end{lemma} \begin{proof} This is \cite[Lemma~3.2]{Die26b}, whose proof is characteristic free. \end{proof} \begin{lemma}\label{lem:nvs} Let $K$ be a totally real field and $r:G_K\to\GL_2(\overline\Q_2)$ an absolutely irreducible representation, de Rham with distinct Hodge--Tate weights at some place above $2$, and not induced from a character of an index two subgroup. Then for every finite extension $K'/K$, $r|_{G_{K'}}$ is absolutely irreducible and not induced. \end{lemma} \begin{proof} Let $H$ be the Zariski closure of $r(G_K)$ and $H^\circ$ its identity component. If $H^\circ$ is solvable, then either it has a non-trivial unipotent radical, whose unique fixed line is $H$-stable, or it is a torus. If it is a central torus, the projective image of $r$ is finite and the Hodge--Tate weights are equal. If it is a non-central torus, $H$ permutes its two eigenlines and $r$ is induced. Hence $H^\circ\supset\SL_2$, and the same holds for $r|_{G_{K'}}$, whose Zariski closure contains $H^\circ$; this proves the claim (compare \cite[Lemma~2.2]{OAI}). \end{proof} \subsection{The base field and the reducible locus}\label{subsec:field} If $\rho$ is induced from a character $\theta$ of $G_K$ for a quadratic extension $K/F$, then, as in the proof of Lemma~\ref{lem:noCM} below, $\theta$ is attached to an algebraic Hecke character, $K$ is CM because the Hodge--Tate weights are distinct, and $\rho$ is modular by automorphic induction. We assume from now on that $\rho$ is not induced. Let $K\subset F_1$ be as in Theorem~\ref{thm:PMall}; by Theorem~\ref{thm:PMproof} and Theorem~\ref{thm:PMall}, (PM) holds for them. The restrictions of $\rho$ to $G_K$ and $G_{F_1}$ are absolutely irreducible and not induced, by Lemma~\ref{lem:nvs}. Conditions (N), (O), (R) and (St) are preserved, since $F_{1,w}=F_v=\Q_2$ for $w\mid v\mid2$ and Steinberg type is preserved by finite extensions; the non-splitness of the $\rho_v$, $v\in\So$, is preserved as well. Since $F_1/F$ and $K/F$ are solvable, $\rho$ is modular if $\rho|_{G_{F_1}}$ or $\rho|_{G_K}$ is, by solvable descent \cite[Lemma~2.2.2]{BLGGT14}, \cite{AC89}. We replace $F$ by $K$ and keep $F_1$, keep the notation $\Sn$, $\So$, $\Sigma$, $v_0$ for the corresponding sets and for a place above $v_0$, and put $d=[F:\Q]$, which is even. Twisting $\rho$ by the Teichmüller lift of $\bar\chi_2^{-1}$, we may assume $\rhobar^{ss}=1\oplus\bar\chi$. Let $\delta_F$ be the Leopoldt defect of $F$ at $2$. By Waldschmidt's theorem \cite{Wal81}, the $2$-adic rank of the units of $F$ is at least half of their rank, so $\delta_F\leq(d-1)/2$, and the pro-$2$ completion of $G_{F,\Sigma}^{\mathrm{ab}}$ has $\Z_2$-rank $1+\delta_F\leq(d+1)/2$. Hence the reducible determinants, of the form $\det(\psi\oplus\chi\psi^{-1})$, form a closed subset of $\Spec R^{\ps}$ of dimension at most $(d+3)/2<1+d$, where $R^{\ps}=R^{\ps}_F$; and every de Rham character of $G_F$ is of the form $\varepsilon^k\chi_0$ with $\chi_0$ of finite order. \section{Completed cohomology at $2$ and ordinary parts}\label{sec:aut} \subsection{Completed cohomology}\label{subsec:cc} Let $B$ be the quaternion algebra over $F$ ramified exactly at the infinite places, $\psi=\chi\varepsilon$, and $U^p=\prod_{v\nmid2}U_v$ a tame level, sufficiently small, with $U_v=\GL_2(\cO_{F_v})$ for $v\notin\Sigma$. Let $S=S_\psi(U^p)_{\mathfrak m}$ be the completed cohomology \cite[§3.1]{Die26a}, \cite[§4.1]{OAI}, localized at the maximal ideal $\mathfrak m$ of the Hecke algebra corresponding to $1+\bar\chi$, and $\T=\T(U^p)_{\mathfrak m}$ its Hecke algebra, generated by the $T_w$, $w\notin\Sigma$. It carries a determinant $D_{\mathfrak m}$ of $G_{F,\Sigma}$ with $T(\Frob_w)=T_w$ and determinant $\chi$, so $\T$ is a quotient of $R^{\ps}$. Shrinking $U^p$ only enlarges the image of $\Spec\T$ in $\Spec R^{\ps}$, so the level in (PM) may be taken sufficiently small. The constructions of this section are used both over $F$ and over the field $F_1$ of (PM); we write $\T_{F_1}$, $\T^{\mathrm o}_{F_1}$, etc.\ for the latter. We use the following results of \cite{OAI}, which hold over any totally real field of even degree in which $2$ splits completely. \begin{enumerate}[label=(C\arabic*)] \item\label{C1} \cite[Proposition~4.1]{OAI}. At sufficiently small levels the spaces of forms are free over the group algebras of the relevant finite $2$-groups, the dual of $S$ is finite free over a sufficiently deep Iwasawa algebra, and locally algebraic vectors are classical forms on $B^\times$. \item\label{C2} \cite[Proposition~4.2]{OAI}. Local--global compatibility. Put $S_{\mathrm{tor}}=S\otimes_\cO E/\cO$ and let $M=S_{\mathrm{tor}}^\vee$ be its Pontryagin dual. For the product $P$ of the projective generators of the blocks at the places above $2$, the module $\mathbf m=\Hom(P,M)$ is faithful and finite over $\T$, and finite over $\widehat\bigotimes_{v\mid2}R^{\ps}_v$, whose action through the centres of the blocks agrees with the Galois action, with the following normalization, used throughout. The central character is $\psi=\chi\varepsilon$, and the block parameter at $v$ is $(\rho_x|_{G_v}\otimes\varepsilon)^{ss}$, of determinant $\chi_v\varepsilon^2$; we identify the local block base with $R^{\ps}_v$, of determinant $\chi$, by untwisting $\varepsilon$, and its action then agrees with the restriction of the global determinant. At a point $x$ of $\Spec\T[1/2]$, after a finite extension of $E$, the eigenspace $(S\otimes E)[x]$ contains $\widehat\bigotimes_{v\mid2}\Pi_v$, where $\Pi_v$ is an absolutely irreducible unitary Banach representation with the indicated block parameter; if $\rho_x|_{G_v}$ is absolutely irreducible, $\Pi_v$ is the representation attached to the correspondingly normalized parameter by the $p$-adic local Langlands correspondence \cite{CDP14}, which has dense locally algebraic vectors if $\rho_x|_{G_v}$ is de Rham with distinct Hodge--Tate weights \cite[Theorem~1.3]{CDP14}. \item\label{C3} \cite[Proposition~4.4]{OAI}. Every irreducible component of $\Spec\T$ has dimension at least $1+2d$. \end{enumerate} We also use the classification of the absolutely irreducible objects of the blocks of $\GL_2(\Q_2)$ \cite[Corollary~6.10 and Proposition~6.11]{PT21}: if the local parameter at $x_v$ is reducible, every absolutely irreducible unitary Banach representation with this parameter is either a character $\eta\circ\det$ or a quotient of a unitary principal series $(\Ind_{\bar B}\mu)_{\mathrm{cont}}$. Characters do not occur in $(S\otimes E)[x]$ at irreducible points, by strong approximation \cite[Lemma~3.2]{Die26a}. \subsection{Ordinary parts} Let $P=B_{\mathrm o}\times G_{\mathrm n}\subset\prod_{v\mid2}\GL_2(\Q_2)$ be the parabolic subgroup which is the upper Borel subgroup at the places of $\So$ and the whole group at those of $\Sn$, and let $S^{\mathrm o}=\Ord_P(S)$ be Emerton's ordinary part \cite{Eme10a}. Properties \textup{(O1)--(O4)} of \cite[§3.3]{Die26a} hold for any $p$, as does \cite[Lemma~3.3]{Die26a}: $S^{\mathrm o}/\varpi^n\simeq\varinjlim_ce\,S_\psi(U^pU(c),\cO/\varpi^n)_{\mathfrak m}$, where $e$ is the ordinary idempotent at the places of $\So$. Let $\T^{\mathrm o}$ be the Hecke algebra of $S^{\mathrm o}$, generated by the $T_w$ and the diamond operators $\langle\gamma\rangle_v$, $v\in\So$, and $\psi_{v,1}:G_v\to(\T^{\mathrm o})^\times$ the character with $\psi_{v,1}\circ\Art(\gamma)=\langle\gamma\rangle_v$. When $\So=\Sigma_2$ we write $\T^{\ord}$ for $\T^{\mathrm o}$. \begin{lemma}\label{lem:galois} There is a determinant of $G_{F,\Sigma}$ over $\T^{\mathrm o}$ with $T(\Frob_w)=T_w$ and determinant $\chi$, which for every $v\in\So$ is $\det(\psi_{v,1}\oplus\chi\psi_{v,1}^{-1})$ on $G_v$ and $\psi_{v,1}$-ordinary at $G_v$. \end{lemma} \begin{proof} Write $\chi=\varepsilon^k\chi_0$ with $\chi_0$ of finite order. The central character $\psi=\chi\varepsilon$ need not be locally constant at $2$, so we first normalize it. With the notation of §\ref{subsec:parity} (the construction there does not depend on the parity of $k$), $\varepsilon=\eta_4\langle\varepsilon\rangle$, and $\nu$ is an even continuous character, unramified outside $2$ and $\equiv1\pmod\varpi$, with $\nu^2=\langle\varepsilon\rangle$. Put $\lambda=\nu^{-(k+1)}$. Then $\chi\lambda^2=\varepsilon^{-1}\chi_0\eta_4^{k+1}$, so $(\chi\lambda^2)\varepsilon=\chi_0\eta_4^{k+1}$ has finite order. Multiplication by $\lambda\circ\mathrm{nrd}$ transports completed forms, ordinary parts and Hecke operators (refining the dyadic level at each torsion level if necessary), replacing $\psi_{v,1}$ by $\lambda_v\psi_{v,1}$; since the unipotent invariants are unchanged and $\lambda_v(\Art_v(2))=1$, the ordinary projector is preserved. For the normalized determinant, finite-level forms are scalar-valued of parallel weight $2$, and the proof of \cite[Lemma~3.4]{Die26a} applies, with the theorem of Wiles \cite[Theorem~2]{Wil88} replaced by local--global compatibility at $2$ for Hilbert modular forms \cite{Sai09,Ski09}: if $\pi$ is ordinary at $v$, the unit root of the Hecke polynomial gives a unit eigenvalue of Frobenius on $D_{\mathrm{pst}}(\rho_\pi|_{G_v})$, whose eigenline is a weakly admissible subobject, so that $\rho_\pi|_{G_v}$ has a subcharacter, which is the diamond character. The determinant and the ordinary identities hold over the reduced finite-level Hecke algebras $A_c[1/2]$ \cite[Theorem~2.12]{Che14}, hence over their torsion-free integral models and in the completed limit. Undoing the twist gives the assertions for $\chi$ and $\psi_{v,1}$; no de Rham property of $\lambda$ is used. \end{proof} \begin{lemma}\label{lem:lgmix} For $v\in\Sn$, the action of $R^{\ps}_v$ on the dual $M^{\mathrm o}$ of $S^{\mathrm o}$ through the centre of the block at $v$ agrees with its action through the restriction to $G_v$ of the determinant of Lemma~\textup{\ref{lem:galois}}. The module $\mathbf m^{\mathrm o}=\Hom(P_{\mathrm n},M^{\mathrm o})$, for the product $P_{\mathrm n}$ of the projective generators at the places of $\Sn$, is faithful and finitely generated over $\T^{\mathrm o}$, and $(S^{\mathrm o}\otimes E)[\mathfrak P]\neq0$ for every maximal ideal $\mathfrak P$ of $\T^{\mathrm o}[1/2]$. \end{lemma} \begin{proof} This is the proof of \cite[Lemma~3.5]{Die26a}, with the local--global compatibility of Pan and Zhang replaced by \ref{C2}. \end{proof} \begin{proposition}\label{prop:LG} Let $\mathfrak p$ be a maximal ideal of $\T[1/2]$ such that $\rho(\mathfrak p)$ is irreducible and $\rho(\mathfrak p)|_{G_v}$ is reducible for every $v\in\So$. Then there is a maximal ideal $\mathfrak P$ of $\T^{\mathrm o}[1/2]$ above $\mathfrak p$ such that $\psi_{v,1}(\mathfrak P)$ is a subcharacter of $\rho(\mathfrak p)|_{G_v}$ for every $v\in\So$. \end{proposition} \begin{proof} The proof of \cite[Proposition~4.1]{Die26a} applies: by \ref{C2} the eigenspace $\Pi=(S\otimes E)[\mathfrak p]$ contains $\Pi'=\widehat\bigotimes_v\Pi'_v$ with $\Pi'_v$ absolutely irreducible; for $v\in\So$, $\Pi'_v$ is a quotient of a unitary principal series $(\Ind_{\bar B}\mu_v)_{\mathrm{cont}}$ by §\ref{subsec:cc}; Emerton's adjunction gives a non-zero map $\mu\otimes\widehat\bigotimes_{v\in\Sn}\Pi'_v\to\Ord_P(\Pi)=(S^{\mathrm o}\otimes E)[\mathfrak p]$, whence $\mathfrak P$; and Lemma~\ref{lem:galois} together with §\ref{sec:prelim} shows that $\psi_{v,1}(\mathfrak P)$ is a subcharacter. \end{proof} \begin{theorem}\label{thm:class} Let $\mathfrak p$ be a maximal ideal of $\T[1/2]$ and $\mathfrak P$ a maximal ideal of $\T^{\mathrm o}[1/2]$ above it. Assume that $\rho(\mathfrak p)$ is irreducible, that $\rho(\mathfrak p)|_{G_v}$ is absolutely irreducible and de Rham with distinct Hodge--Tate weights for $v\in\Sn$, and that for $v\in\So$ it is reducible and de Rham with distinct Hodge--Tate weights, with classical character $\psi_{v,1}(\mathfrak P)$. Then $\rho(\mathfrak p)$ is modular. \end{theorem} \begin{proof} This is the proof of \cite[Theorem~4.2]{Die26a}, using Lemma~\ref{lem:lgmix}, \ref{C1}, \ref{C2} and the following density statement: if $\mu=\mu_1\otimes\mu_2$ is a unitary character of $T(\Q_2)$ with $\mu_i|_{\Z_2^\times}=x^{a_i}\theta_i$, $\theta_i$ of finite order and $a_1\geq a_2$, then $(\Ind_{\bar B}\mu)_{\mathrm{cont}}$ has dense locally algebraic vectors. For $a_1=a_2$ this is proved directly in \cite[Lemma~2.2]{Die26a}, and the argument is characteristic free. For $a_1>a_2$ we use \cite[Proposition~2.2.1]{BE10}; see Remark~\ref{rem:check}. \end{proof} \begin{proposition}\label{prop:dimT} Every minimal prime of $\T^{\mathrm o}_{\mathfrak m'}$, for a maximal ideal $\mathfrak m'$ of $\T^{\mathrm o}$, has characteristic $0$, and the corresponding irreducible component has dimension at least $1+2d-|\So|$. \end{proposition} \begin{proof} For $\So=\emptyset$ this is \ref{C3}, the analogue for $p=2$ of \cite[Theorem~3.6.1]{Pan22}. In general, the proof of \ref{C3} applies to $S^{\mathrm o}$ with the modifications of \cite[Proposition~6.1]{Die26b}: the freeness of $M^{\mathrm o}/\varpi$ over the Iwasawa algebra of a uniform pro-$2$ group of dimension $3|\Sn|+|\So|$, deduced from \ref{C1} and the finite-level description of $S^{\mathrm o}$; the module $\mathbf m^{\mathrm o}$ of Lemma~\ref{lem:lgmix}; and the dimension formula $\dim(N\widehat\otimes P_{\mathrm n})\leq\dim_AN+|\Sn|$, with $A=\widehat\bigotimes_{v\in\Sn}R^{\ps}_v/\varpi\,\widehat\otimes\,\Lambda_T/\varpi$, whose base case is the bound $|\Sn|$ for the Gelfand--Kirillov dimension of smooth representations of finite length of $\prod_{v\in\Sn}\GL_2(\Q_2)$ \cite[Lemma~4.3]{OAI}. \end{proof} \subsection{Proof of Theorem~\ref{thm:A}} Let $x$ be the point of $\Spec R^{\ps}$ defined by $\rho$. By (PM), applied to an irreducible component through $x$, the restriction $\rho|_{G_{F_1}}$ defines a maximal ideal $\mathfrak p$ of $\T_{F_1}[1/2]$ with $\rho(\mathfrak p)\simeq\rho|_{G_{F_1}}$. Since $2$ splits completely in $F_1$, the restrictions of $\rho|_{G_{F_1}}$ to the decomposition groups above $v\mid2$ are the $\rho_v$. By Proposition~\ref{prop:LG} over $F_1$ there is $\mathfrak P$ above $\mathfrak p$ with $\psi_{w,1}(\mathfrak P)$ a subcharacter of $\rho_v$ for $w\mid v\in\So$. As $\rho_v$ is non-split, its only subcharacter is the classical one (Lemma~\ref{lem:BK}). By Theorem~\ref{thm:class} over $F_1$, $\rho|_{G_{F_1}}$ is modular, hence so is $\rho$, by solvable descent. \qed \section{Setup for Theorem~\ref{thm:B}}\label{sec:setupB} \subsection{Deformation rings} For $v\mid2$, on the locus where the universal determinant is reducible on $G_v$, it is $\det(\psi\oplus\chi\psi^{-1})$ with $\psi$ lifting $1$ or $\bar\chi|_{G_v}$, uniquely since $\bar\chi|_{G_v}\neq1$. For $v\in\So$ let $\bar\psi_v\in\{1,\bar\chi|_{G_v}\}$ be the reduction of $\psi^{\cl}_v$. \begin{definition}\label{def:rings} \begin{enumerate} \item $R^{\mathrm o}$ is the quotient of $R^{\ps}$ by the conditions that, for $v\in\So$, the universal determinant is $\det(\psi_v\oplus\chi\psi_v^{-1})$ on $G_v$ with $\psi_v$ lifting $\bar\psi_v$, and is $\psi_v$-ordinary at $G_v$. \item $R^{\red}$ is the quotient of $R^{\ps}$ by the condition that the universal determinant is reducible on $G_v$ for every $v\mid2$. On $\Spec R^{\red}$ we write it as $\det(\psi^{(1)}_v\oplus\chi\psi^{(1),-1}_v)$ on $G_v$, with $\psi^{(1)}_v$ lifting $1$. \end{enumerate} \end{definition} Let $\Lambda=\cO[[\prod_{v\mid2}(1+4\Z_2)]]$, a power series ring over $\cO$ in $d$ variables. Through the restrictions of the $\psi^{(1)}_v$ to $\Art(1+4\Z_2)\subset I_v$, $R^{\red}$ is a $\Lambda$-algebra. Since $\chi(1+4\Z_2)\subset1+\varpi\cO$ ($\bar\chi$ has odd order), $[u]_v\mapsto\chi(u)[u]_v^{-1}$ defines an automorphism of $\Lambda$, and replacing $\psi^{(1)}_v$ by $\chi\psi^{(1),-1}_v$ at some places changes the $\Lambda$-structure by such an automorphism. The point $x$ of $\rho$ lies in $\Spec R^{\mathrm o}[1/2]$, with $\psi_v(x)=\psi^{\cl}_v$ for $v\in\So$, by Lemma~\ref{lem:BK} and §\ref{sec:prelim}. By (PM), the restriction to $G_{F_1}$ maps every irreducible component of $\Spec R^{\ps}$ through $x$ into the image of $\Spec\T_{F_1}(U_1^p)$, for a fixed sufficiently small tame level $U_1^p$ over $F_1$. Over $F$ we fix a sufficiently small tame level $U^p$, to be shrunk once in §\ref{sec:proof}. For a maximal ideal $\mathfrak m'$ of $\T^{\mathrm o}=\T^{\mathrm o}(U^p)$ at which $\psi_{v,1}$ reduces to $\bar\psi_v$ for $v\in\So$, Lemma~\ref{lem:galois} gives a surjection $R^{\mathrm o}\twoheadrightarrow\T^{\mathrm o}_{\mathfrak m'}$ with $\psi_v\mapsto\psi_{v,1}$; a prime of $R^{\mathrm o}$ is \emph{o-pro-modular} if it lies in the image of $\Spec\T^{\mathrm o}_{\mathfrak m'}$ for such an $\mathfrak m'$. \subsection{A lower bound for the component of $\rho$} \begin{proposition}\label{prop:GW} There is an irreducible component $C$ of $\Spec R^{\mathrm o}$ containing $x$ with $\dim C\geq1+2d-|\So|$. It is flat over $\cO$, $C[1/2]$ is irreducible, and its image in $\Spec R^{\ps}_{F_1}$ lies in the image of $\Spec\T_{F_1}(U_1^p)$. \end{proposition} \begin{proof} Let $\mathfrak p_x$ be the prime of $x$ and $\widehat R_x$ the completion of $R^{\mathrm o}[1/2]$ at $\mathfrak p_x$. As in \cite[Proposition~2.2.2]{Pan22} and \cite[§2.3]{Kis09b}, whose arguments only use Mazur's finiteness condition and apply to determinants \cite[Theorem~2.22]{Che14}, $\widehat R_x$ pro-represents the deformations of $\rho_x$ to Artinian local $E$-algebras with determinant $\chi$ which admit, for $v\in\So$, a $G_v$-stable direct summand of rank one lifting the line of $\psi^{\cl}_v$ (§\ref{sec:prelim}). Let $V=\ad^0\rho_x$. We use the relative presentation of \cite[Proposition~3.6]{OAI}, which holds for $p=2$ in both coefficient characteristics: with one global frame and fixed determinant, over the completed product of the unrestricted framed local rings at the real places and at the $d$ places above $2$, the global framed ring has a presentation with $g$ variables and $r$ relations, $g-r\geq3-6d-h^0(G_F,V(1))=3-6d$, since $H^0(G_F,V(1))=0$ ($\rho_x\not\simeq\rho_x(1)$, by determinants); the local conditions at $\So$ are imposed by base change. The local rings have dimension at least $2$ at each real place and at least $5$ at $v\in\So$ \cite[Corollary~3.7]{OAI}, and at least $6$ at $v\in\Sn$, by the local Euler characteristic formula. Forgetting the global frame, which has smooth fibres of dimension $3$ since $\rho_x$ is absolutely irreducible, \[ \dim\widehat R_x\geq6|\Sn|+5|\So|+2d+(3-6d)-3=2d-|\So|. \] Choose a minimal prime $\mathfrak q\subset\mathfrak p_x$ of $R^{\mathrm o}$ with $\dim(R^{\mathrm o}/\mathfrak q)_{\mathfrak p_x}=\dim R^{\mathrm o}_{\mathfrak p_x}=\dim\widehat R_x$. As $R^{\mathrm o}/\mathfrak q$ is a complete local domain, hence catenary, and $\mathfrak p_x$ has coheight $1$, $C=V(\mathfrak q)$ has dimension at least $1+2d-|\So|$. It is $\cO$-flat since it contains a point of characteristic $0$. Its image in $\Spec R^{\ps}$ is irreducible and contains $x$, so it lies in an irreducible component through $x$, whose restriction to $G_{F_1}$ lies in the image of $\Spec\T_{F_1}(U_1^p)$ by (PM). \end{proof} We fix such a component $C$ and write $A_C=R^{\mathrm o}/\mathfrak q$. \subsection{The Steinberg place} Let $v=v_0$, $q=q_{v_0}$ and $\phi=\phi_{v_0}$. By (St), $\rho|_{I_{v_0}}\simeq\mu\otimes u$ with $\mu$ a character of $I_{v_0}$ of finite order and $u$ unipotent and non-trivial. Put \[ P_{v_0}=(1+q)^2\chi(\phi)-q\,T(\phi)^2\in R^{\ps}. \] If $a,b$ are the eigenvalues of $\rho_z(\phi)$, then $P_{v_0}(z)=(a-qb)(b-qa)$. \begin{lemma}\label{lem:St} \begin{enumerate} \item For every closed point $z$ of $C[1/2]$, $\rho_z|_{I_{v_0}}\simeq\mu\otimes u_z$ with $u_z$ unipotent, and $P_{v_0}$ vanishes on $C$. \item Let $K/F$ be a finite totally real extension, $w$ a place of $K$ above $v_0$, and $z$ a closed point of $C[1/2]$ such that $\rho_z|_{G_K}$ is the Galois representation of a cuspidal automorphic representation $\Pi$ of $\GL_2(\mathbb A_K)$. Then $\Pi_w$ is a twist of the Steinberg representation; in particular it is square integrable, and $\rho_z|_{G_{K_w}}$ is a non-split extension. \end{enumerate} \end{lemma} \begin{proof} (1) For $\sigma\in I_{v_0}$, the eigenvalues of $\rho_z(\sigma)$ are roots of unity of bounded order: for $\sigma$ in the wild inertia group because $\rho_z$ maps it to a finite group of bounded order, for $\sigma$ tame because its eigenvalues are permuted by the $q$-th power map. Hence $T(\sigma)\in A_C[1/2]$ takes finitely many values on the closed points, and as $A_C[1/2]$ is a Jacobson domain, $T(\sigma)$ is constant on $C[1/2]$, equal to $T_x(\sigma)$. The same applies to $\det\rho_z(\sigma)=\chi(\sigma)$ and to $T(\sigma\sigma')$ for $\sigma,\sigma'\in I_{v_0}$, so $\rho_z|_{I_{v_0}}$ and $\rho_x|_{I_{v_0}}$ have the same semisimplification, and $\rho_z|_{I_{v_0}}\simeq\mu\otimes u_z$ with $u_z$ unipotent. Let $\sigma_0\in I_{v_0}$ map to a topological generator of the $2$-part of the tame inertia group with $\mu(\sigma_0)=1$, after replacing $\sigma_0$ by a power. Let $Z_N\subset C[1/2]$ be the closed subset where $T(\sigma_0g)=T(g)$ for all $g$. At an irreducible point $z$, $z\in Z_N$ if and only if $\rho_z(\sigma_0)=1$, that is, the monodromy of $\rho_z|_{G_{v_0}}$ vanishes. Hence $x\notin Z_N$, and the irreducible points outside $Z_N$ form a dense open subset of $C[1/2]$. At such a point, $\phi N\phi^{-1}=qN$ for the monodromy operator $N\neq0$, so $\phi$ preserves $\ker N$ and the ratio of its eigenvalues is $q^{\pm1}$; thus $P_{v_0}(z)=0$. As $C[1/2]$ is reduced and Jacobson and $C$ is $\cO$-flat, $P_{v_0}$ vanishes on $C$. (2) By (1), the inertia group $I_w$ acts through the restriction of $\mu\otimes u_z$. A Frobenius lift $\phi_w$ equals $\phi^f$ up to inertia, where $f$ is the residue degree. If the monodromy of $\rho_z|_{G_{v_0}}$ is non-zero, Frobenius and inertia preserve its kernel, and inertia multiplies the two diagonal entries by the same scalar; if it is zero, inertia acts by scalars. In either case the ratio of the eigenvalues of $\rho_z(\phi_w)$ is $q_w^{\pm1}$. By local--global compatibility up to semisimplification \cite{Car86,Tay89,Jar97}, the semisimplified Langlands parameter of $\Pi_w$ is $\nu\oplus\nu|\cdot|^{\pm1}$ for a character $\nu$. As $\Pi_w$ is generic, it is a twist of the Steinberg representation. Since $\Pi$ is then square integrable at a finite place, full local--global compatibility at every finite place not dividing $2$ holds by Carayol's theorem \cite[Théorème~(A)]{Car86}, and $\rho_z|_{G_{K_w}}$ has non-zero monodromy, hence is non-split. \end{proof} \begin{lemma}\label{lem:noCM} Let $z$ be a closed point of $C[1/2]$ such that $\rho_z$ is absolutely irreducible and de Rham at every place above $2$, with distinct Hodge--Tate weights at at least one such place. Then $\rho_z$ is not induced from a character of an index two subgroup. \end{lemma} \begin{proof} Suppose $\rho_z\simeq\Ind_{G_K}^{G_F}\theta$ for a quadratic extension $K/F$. The character $\theta$ is de Rham at the places above $2$, hence is attached to an algebraic Hecke character of $K$ \cite[Chapter~III]{Ser68}. If $K$ is not CM, it contains no CM subfield, the infinity type of $\theta$ is parallel, $\theta=\varepsilon^n\theta_0$ with $\theta_0$ of finite order, and the Hodge--Tate weights of $\rho_z$ are equal at every place above $2$, contradicting the assumption at one such place. If $K$ is CM, then $\theta\neq\theta^c$, and $\rho_z$ is the Galois representation of the cuspidal automorphic induction $\Pi$ of $\theta$, whose local components at the places not above $2$ correspond to the Weil--Deligne representations of $\rho_z$, which have zero monodromy. By Lemma~\ref{lem:St}(2), applied with $K=F$, $\Pi_{v_0}$ is a twist of the Steinberg representation, whose parameter has non-zero monodromy. This is a contradiction. \end{proof} \subsection{Parity}\label{subsec:parity} Write $\chi=\varepsilon^k\chi_0$ with $\chi_0$ of finite order. Points with Hodge--Tate weights $\{h,h+1\}$ at every place above $2$ can only exist if $k$ is odd. If $k$ is even, let $\eta_4:G_F\to\{\pm1\}$ be the character with $\varepsilon\eta_4^{-1}$ valued in $1+4\Z_2$, put $\langle\varepsilon\rangle=\varepsilon\eta_4^{-1}$, enlarge $E$ to contain a square root $c$ of $5$ with $c\equiv1\pmod\varpi$, and let $\nu$ be the continuous character $\nu=c^{\log_5\langle\varepsilon\rangle}$, so that $\nu^2=\langle\varepsilon\rangle$. It is unramified outside $2$, $\nu\equiv1\pmod\varpi$, and $\nu(c_\infty)=1$ for complex conjugations $c_\infty$. Twisting by $\nu$ gives compatible isomorphisms between $R^{\mathrm o}$, $R^{\red}$, $\T$, $\T^{\mathrm o}$ for $\chi$ and for the totally odd character $\chi'=\chi\langle\varepsilon\rangle$, of the same residual determinant, with $k$ replaced by $k+1$. They send $\psi_v$ to $\psi_v\nu$, $P_{v_0}$ to $\nu(\phi)^2P_{v_0}$, preserve (PM), irreducibility, splitness at the places above $2$, regularity and o-pro-modularity, and send $C$ and $x$ to a component $C'$ and a point $x'$ with the properties of Proposition~\ref{prop:GW} and Lemma~\ref{lem:St}. The point $x'$ is not de Rham, but this property of $x$ is only used in the final step (§\ref{sec:proof}). Hence, in Sections~\ref{sec:D} and~\ref{sec:good}, we may and do assume that $k$ is odd, and put $h=(-k-1)/2$. \section{The fully ordinary subfamily}\label{sec:D} For $v\in\Sn$ let $f_v\in A_C$ be the image of the element of Lemma~\ref{lem:red} under $R^{\ps}_v\to R^{\ps}\to A_C$, where the first map classifies the restriction of the universal determinant to $G_v$. A point $z$ of $C$ lies in $V(f_v)$ if and only if $\rho_z|_{G_v}$ is reducible, and $f_v$ lies in the maximal ideal of $A_C$. By Krull's height theorem, a minimal prime $\mathfrak D$ of $(f_v)_{v\in\Sn}$ satisfies $\dim A_C/\mathfrak D\geq1+2d-|\So|-|\Sn|=1+d$. Let $D=\Spec A_C/\mathfrak D$, with its reduced structure. Its points are reducible at every place above $2$, so $D\subset\Spec R^{\red}$. \begin{proposition}\label{prop:finite} $D$ is finite over $\Lambda$, $\dim D=1+d$, and $D\to\Spec\Lambda$ is surjective. In particular $D$ is flat over $\cO$. \end{proposition} \begin{proof} $D$ is a closed subset of $\Spec R^{\red}$, which is finite over $\Lambda$ by Theorem~\ref{thm:OF}. As $\dim D\geq1+d=\dim\Lambda$ and $\Lambda$ is a domain, $\dim D=1+d$ and $D\to\Spec\Lambda$ is surjective. Since the special fibre of $\Spec\Lambda$ has dimension $d$, $D$ is not contained in the special fibre. \end{proof} For odd $p$ this is the role of \cite[Theorem~5.1.2(1)]{Pan22} in \cite{Die26b}. \begin{lemma}\label{lem:sign} For every $v\mid2$ there is $\psi_{v,\mathrm s}\in\{\psi^{(1)}_v,\chi\psi^{(1),-1}_v\}$ such that the universal determinant is $\psi_{v,\mathrm s}$-ordinary at $G_v$ on $D$; for $v\in\So$ we take $\psi_{v,\mathrm s}=\psi_v$. \end{lemma} \begin{proof} As in \cite[Lemma~5.1]{Die26b}: at irreducible points one of the two characters is a subcharacter, the two conditions are closed, and the irreducible locus of $D$ is irreducible. \end{proof} \begin{definition}\label{def:good} A closed point $y$ of $D[1/2]$ is \emph{good} if $\rho_y$ is absolutely irreducible and, for every $v\mid2$, $\psi_{v,\mathrm s}(y)|_{I_v}=\varepsilon^{-h}\theta_v$ and $\chi\psi_{v,\mathrm s}(y)^{-1}|_{I_v}=\varepsilon^{-h-1}\theta'_v$ with $\theta_v,\theta'_v$ of finite order and $\theta_v\neq\theta'_v$. \end{definition} At a good point, the Jordan--Hölder characters of $\rho_y|_{G_v}$ have Hodge--Tate numbers $ha\geq1$ there are cyclic extensions $F\subset F_a\subset F_n$ of degrees $2^a$ and $2^n$, totally real, in which the places above $2$ split completely, ramified exactly at a set $W$ of $t\leq U$ places of degree one, each totally ramified in $F_n$, and in which every place of $\Sigma_0$ has a unique place above it. Let $S_n$ be the set of places of $F_n$ above $\infty$, $2$, $\Sigma_0$ and $W$, and $u_n\leq|\Sigma_0|+t$ the number of its non-dyadic finite places. Then for $\beta\in\{\alpha,\alpha^{-1}\}$: \begin{enumerate} \item $\{c\in H^1(G_{F_n,S_n},k_0(\beta)):\mathrm{loc}_v(c)=0\text{ for all }v\in S_n\}=0$; \item $\dim H^1(G_{F_n,S_n},k_0(\beta))\leq[F_n:\Q]+u_n$; \item restriction $H^1(G_{F_a,S_a},k_0(\beta))\to H^1(G_{F_n,S_n},k_0(\beta))$ is injective, and $\alpha|_{G_{F_n}}\neq1$, $\alpha|_{G_{F_{n,w}}}\neq1$ for $w\mid2$. \end{enumerate} \end{proposition} \begin{proof} We follow the case $B=\Q$ of \cite[§§6.4--6.5]{OAI}. Given places $w_1,\dots,w_t$ as in Lemma~\ref{lem:cyc}, let $F_n$ be the field of $\gamma=\sum_jc_j\gamma_{w_j}$ with all $c_j$ odd, and $F_a$ its layer of degree $2^a$. For $\beta\in\{\alpha,\alpha^{-1}\}$ let $X^\beta$ be the Selmer group over $F$ with coefficients $k_0(\beta)$ and the conditions: zero at the real places and at the places above $2$; the line $k_0\delta_{w_j}$ at $w_j$; unramified elsewhere. Let $Y^\beta$ be the Selmer group with coefficients $k_0(\beta^{-1})$ and the orthogonal conditions. By the Selmer dimension formula, \[ \dim X^\beta-\dim Y^\beta=-e, \] since a real zero condition contributes $-1$, a dyadic zero condition contributes $0$ because $\alpha|_{G_v}\neq1$, a line $k_0\delta_{w_j}$ at a place where the coefficient is trivial contributes $1-1=0$, and the global invariants vanish. In particular $Y^\beta\neq0$. We choose the $w_j$ inductively. Each $w_j$ is of degree one, not in $S'\cup\Sigma_0\cup\{w_1,\dots,w_{j-1}\}$, with $\Nm(w_j)\equiv1\pmod4$, and splits completely in $K_\alpha$ and in $F(\mu_{2^{n+1}},(\cO_{S'}^\times)^{1/2^n})$. Moreover: \begin{enumerate}[label=(\roman*)] \item if $j=1$, $x_v$ is not a square modulo $w_1$ for every $v\in\Sigma_0$; if $j\geq2$, $x_v$ is a square modulo $w_j$ for every $v\in\Sigma_0$; \item for $i2u_n+10$ and $d_a>2(U+C)+10$, where $C$ is the constant cost of the trace cuts in \cite[§7.4]{OAI}. Then the reducible locus over $F_n$ has dimension less than $2d_n-1$, the bound needed in Lemma~7.3 of loc.\ cit.\ (it suffices that $d_n>2u_n+7$). In the proof of its Lemma~7.4 the locus in which a curve is chosen has dimension at least $2d_n-4-u_n>d_n$, and in the proof of its Theorem~7.1 the loci over $F_a$ have dimension larger than $d_a$ after the trace cuts; since $d_K\geq(d_K+1)/2$, these are larger than both the dihedral and the reducible bounds, so the weaker reducible bound changes nothing there. \item \emph{Fields and Selmer bounds.} Proposition~\ref{prop:fields} replaces \cite[Proposition~6.1]{OAI}. Property (2) is the bound \cite[(26)]{OAI} in the unmarked case, and property (3) gives the residual data used in \cite[Lemma~7.5 and §7.4]{OAI}. There are no marks, so every point of the residual fibre is transverse, and in \cite[§7.4]{OAI} any stable lattice of the seed and target curves gives a point of the residual scheme over $F_n$. \item \emph{The seed.} By \cite[Lemma~7.2]{OAI}, applied over $\Q$ to $1\oplus\tilde\alpha$, there is a cuspidal eigenform $f$ whose residual representation is $1\oplus\tilde\alpha$. Its level is supported on $\Sigma$, by the choice of $\Sigma$ at the beginning of this section. Its base change to $F_a$, through the tower $\Q\subset F\subset F_a$ of abelian and cyclic steps \cite{AC89}, is cuspidal by regularity, as in \cite[§7.4]{OAI}, and has residual representation $\rhobar^{ss}|_{G_{F_a}}$. This replaces the seed over $A$. \item \emph{The target.} The target locus over $F_a$ is an irreducible component through the point of $\rho|_{G_{F_a}}$, of the unrestricted framed deformation space of the residual representations considered there, as in loc.\ cit. \end{enumerate} The remaining arguments of \cite[§7]{OAI}, together with the propagation theorem \cite[Theorem~5.1]{OAI}, apply verbatim: they are formulated over totally real solvable fields of even degree in which $2$ splits completely, and $F_a$, $F_n$ are such fields. They are not Galois over $\Q$ in general, but their Galois closures are totally real, solvable, and split completely at $2$, since $F$ is Galois over $\Q$ and all places of $F$ above $2$ split in $F_n$; this is all that \cite[Lemma~4.6 and Theorem~5.1]{OAI} use, and the extension $F_n/F_a$ is cyclic. Every irreducible component of $\Spec R^{\ps}_{F_a}$ through the point of $\rho|_{G_{F_a}}$ is the pseudo-image of an irreducible component of the framed deformation space through that point, since the point is absolutely irreducible; there are finitely many of them. Applied to each of them as the target locus, these arguments show that its image under restriction becomes pro-modular over a further totally real solvable extension, of even degree and split completely at $2$, at one tame level. Taking the compositum of the Galois closures over $\Q$ of these finitely many extensions and a common deeper tame level as in loc.\ cit., we obtain (PM) with $K=F_a$, which is cyclic over $F$, and this compositum as $F_1$. The field $K$ is in general not Galois over $\Q$, and it cannot be replaced by its Galois closure $K'$, whose pseudo-deformation space through $\rho|_{G_{K'}}$ has components of larger dimension which are not restrictions from $K$; this is why (PM) only asks $K/F$ to be Galois. \end{proof} \subsection{Fully reducible loci} The argument of Theorem~\ref{thm:PMproof} applies to many more loci than the components through the point of $\rho$. \begin{theorem}\label{thm:PMall} Let $K=F_a$, with $a$ sufficiently large, be as in the proof of Theorem~\ref{thm:PMproof}. There is a totally real field $F_1\supset K$, Galois and solvable over $\Q$, of even degree, in which $2$ splits completely, and a tame level $U_1^p$, such that the image under restriction of every irreducible closed subset of $\Spec R^{\ps}_K$ whose generic point is absolutely irreducible lies in the image of $\Spec\T_{F_1}(U_1^p)$. \end{theorem} \begin{proof} Let $d=[K:\Q]$. Let $\mathcal J$ be the finite set of irreducible components of $\Spec R^{\ps}_K$ whose generic point is absolutely irreducible and whose dimension is at least $2d-3$. Each $\widehat C\in\mathcal J$ can be used as the target locus in the proof of Theorem~\ref{thm:PMproof}: by the choice of $a$, after the trace cuts of \cite[§7.4]{OAI} it still has dimension larger than the bounds for the dihedral and reducible loci, so it contains a non-virtually-solvable curve with finite local images at the allowed non-dyadic places. Hence its image becomes pro-modular after a further extension, and taking the compositum of these finitely many extensions and a common tame level gives $F_1$ and $U_1^p$ for all $\widehat C\in\mathcal J$. Let $Z$ be an irreducible closed subset of $\Spec R^{\ps}_K$ with absolutely irreducible generic point. We claim that $Z$ is contained in some $\widehat C\in\mathcal J$. Let $\mathcal C\subset Z$ be an irreducible curve whose generic representation $\rho_{\mathcal C}$ is absolutely irreducible; such curves are dense in $Z$, since the reducible locus is a proper closed subset. Over the normalization of $\mathcal C$, a discrete valuation ring, choose a stable lattice whose reduction $\rhobar_b$ is a non-split extension \cite[Lemma~2.13]{SW99}; this defines a point of the framed representation scheme with fixed determinant, in the completion of this scheme at the closed point $y$ defined by $\rhobar_b$ (after a finite extension of the residue field). By \cite[Proposition~3.6]{OAI} over the real local base, which has dimension $2d$ \cite[Lemma~3.12]{OAI}, every irreducible component of this completion has dimension at least $2d+3-h^0((\ad^0\rhobar_b)^\vee(1))\geq2d$. Let $Y_i$ be one containing the point of $\mathcal C$. Its generic representation is absolutely irreducible, and its pseudo-image $P_i$, the closure of its image in $\Spec R^{\ps}_K$, has dimension at least $2d-3$, since forgetting the frame has fibres of dimension $3$ on the absolutely irreducible locus \cite[Lemma~3.2]{OAI}. Then $\mathcal C\subset P_i$, and $P_i$ is contained in an irreducible component of $\Spec R^{\ps}_K$, which belongs to $\mathcal J$. Hence the dense set of such curves in $Z$ is contained in the closed union of the elements of $\mathcal J$, and so is $Z$; as $Z$ is irreducible, it lies in one of them. \end{proof} In particular, Theorem~\ref{thm:PMall} contains (PM) for the components through the point of $\rho$. \begin{proposition}\label{prop:OFflat} Let $K$ and $F_1$ be as in Theorem~\ref{thm:PMall}, and let $Z$ be an irreducible closed subset of $\Spec R^{\red}_K$ which is flat over $\cO$. Then $Z$ is finite over $\Lambda_K$. \end{proposition} \begin{proof} Let $Z_1$ be the image of $Z$ in $\Spec R^{\red}_{F_1}$ under restriction; $Z$ is finite over $Z_1$ \cite[Proposition~3.1]{OAI}, and $Z_1$ is irreducible, closed and $\cO$-flat. On $Z_1$, the $\Lambda_{F_1}$-structure factors through the surjection $\Lambda_{F_1}\to\Lambda_K$ sending the factor of a place $w$ of $F_1$ to that of the place of $K$ below it, since $G_{F_{1,w}}=G_{K_v}$. It therefore suffices to show that $Z_1$ is finite over $\Lambda_{F_1}$. If the generic point of $Z_1$ is reducible as a determinant of $G_{F_1}$, then $Z_1$ lies in the locus of determinants $\det(\psi\oplus\chi\psi^{-1})$, which is the closed image of a quotient of $\cO[[G^{\mathrm{ab}}_{F_1,\Sigma}(2)]]$, with $\Lambda_{F_1}$ acting through the restrictions of $\psi$ to the inertia groups at the places above $2$. By class field theory, the quotient of $G^{\mathrm{ab}}_{F_1,\Sigma}(2)$ by the closed subgroup generated by the images of $1+4\Z_2$ in these inertia groups is finite: it is a quotient of the pro-$2$ part of a ray class group whose conductor away from $2$ is supported on the finitely many places of $\Sigma$, extended by finite groups. Hence this locus is finite over $\Lambda_{F_1}$. Otherwise, the generic point of $Z$ is absolutely irreducible, so $Z_1$ lies in the image of $\Spec\T_{F_1}(U_1^p)$ by Theorem~\ref{thm:PMall}, and the closed points $z$ of $Z_1[1/2]$ with $\rho_z$ absolutely irreducible are dense in $Z_1$, as $Z_1$ is $\cO$-flat. Each such $z$ defines a maximal ideal of $\T_{F_1}[1/2]$, reducible at every place above $2$. By Proposition~\ref{prop:LG} over $F_1$, with all places above $2$ ordinary, $z$ lies in the image of $\Spec\T^{\ord}_{F_1,\mathfrak m''}$ for some maximal ideal $\mathfrak m''$ of $\T^{\ord}_{F_1}$, which is a closed subset $Y_{\mathfrak m''}$ of $\Spec R^{\red}_{F_1}$: indeed $R^{\red}_{F_1}\to\T^{\ord}_{F_1,\mathfrak m''}$ is surjective, sending $\psi^{(1)}_w$ or $\chi\psi^{(1),-1}_w$ to $\psi_{w,1}$ according to the reduction of $\psi_{w,1}$, by Lemma~\ref{lem:galois}. There are finitely many $\mathfrak m''$, so $Z_1\subset Y_{\mathfrak m''}$ for one of them. Finally $\T^{\ord}_{F_1,\mathfrak m''}$ is finite over $\Lambda_{F_1}$, acting through the diamond operators: it acts faithfully on the dual of $\Ord_B(S_{F_1})$, which is finitely generated over $\Lambda_{F_1}$ by \textup{(O2)} of \cite{Die26a} and \ref{C1}. The two $\Lambda_{F_1}$-structures on $Y_{\mathfrak m''}$, through the $\psi^{(1)}_w$ and through the $\psi_{w,1}$, differ by an automorphism of $\Lambda_{F_1}$ (§\ref{sec:setupB}). Hence $Z_1$ is finite over $\Lambda_{F_1}$. \end{proof} \subsection{Ordinary parts at arbitrary primes} We now remove the flatness assumption in Proposition~\ref{prop:OFflat}, by an analogue of Proposition~\ref{prop:LG} for arbitrary primes of the Hecke algebra, including primes of characteristic $2$, which are reducible at every place above $2$. It uses the structure of the generic blocks of $\GL_2(\Q_2)$. Fix a place $v\mid2$ of a field $F'$ as in \ref{C1}--\ref{C3}. The block $\mathcal B_v$ of $1\oplus\alpha|_{G_v}$ is generic, since $\alpha|_{G_v}\neq1$ and the mod $2$ cyclotomic character is trivial: $\mathcal B_v=\{\pi_1,\pi_2\}$ with $\pi_i=(\Ind_{\bar B}\chi_i)^{\mathrm{sm}}$ irreducible principal series for two distinct characters $\chi_1,\chi_2$ of $T(\Q_2)$, and it contains no character \cite[§4.1, type (ii)]{PT21}. Let $J_i$ be an injective envelope of $\pi_i$ in the category of locally admissible torsion representations with the fixed central character, $J_v=J_1\oplus J_2$, $P_v=J_v^\vee$, $E_v=\mathrm{End}(P_v)$, $e_1,e_2\in E_v$ the idempotents of the two summands, and $Z_v$ the centre of $E_v$. We distinguish the block and the global normalizations. The block deformation ring $R^{\mathrm{blk}}_v$ has determinant $\psi\varepsilon=\chi\varepsilon^2$, whereas $R^{\ps}_v$ has determinant $\chi$; cyclotomic twisting identifies the two deformation problems, with $t^{\mathrm{blk}}_v=\varepsilon t_v$, and we use this identification whenever the centre acts through the global Hecke algebra (\ref{C2}). It preserves reducibility; we write $f_v$ for the image of the generator of Lemma~\ref{lem:red} in either normalization, and $R^{\red}_v=R^{\ps}_v/(f_v)$. We use the following inputs. \begin{enumerate}[label=(P\arabic*)] \item\label{P1} $Z_v\simeq R^{\mathrm{blk}}_v$ integrally, hence $Z_v\simeq R^{\ps}_v$ after untwisting \cite[Theorems~1.3 and~2.23]{Pas16}; the result is stated there for all $p$, in particular for $p=2$, for generic blocks $\chi_1\chi_2^{-1}\neq1,\omega^{\pm1}$. \item\label{P2} $E_v$ is a free $Z_v$-module of rank $4$, $E_v=Z_ve_1\oplus Z_v\tilde\Phi_{12}\oplus Z_v\tilde\Phi_{21}\oplus Z_ve_2$, with $e_iE_ve_i=Z_ve_i$, $\tilde\Phi_{12}\tilde\Phi_{21}=ce_1$ and $\tilde\Phi_{21}\tilde\Phi_{12}=ce_2$, where $(c)=(f_v)$ \cite[Theorem~2.23]{Pas16}. The unnormalized Colmez module satisfies $g^2-t^{\mathrm{blk}}_v(g)g+\chi(g)\varepsilon(g)^2=0$, so the normalized module $\check{\mathbf V}_\chi(P_v)=\check{\mathbf V}(P_v)\otimes\varepsilon^{-1}$ satisfies $g^2-t_v(g)g+\chi(g)=0$ \cite[Theorem~2.23 and proof of Corollary~2.25]{Pas16}. For principal series we likewise multiply the Colmez character by $\varepsilon^{-1}$. \item\label{P3} $\Ord_B(J_i)$ is an injective envelope $J_{\chi_i}$ of $\chi_i$ in the category of locally admissible representations of $T(\Q_2)$ with the fixed central character \cite[Lemma~4.4]{PT21}. Its endomorphism ring $\Lambda_i$ is the universal deformation ring of $\chi_i$, isomorphic to $\cO[[\Q_2^\times(2)]]$, and $\Hom(J_{\chi_1},J_{\chi_2})=0$ since $\chi_1\neq\chi_2$. \end{enumerate} \begin{lemma}\label{lem:blk} The ring $E_v$ acts on $\Ord_B(J_v)=J_{\chi_1}\oplus J_{\chi_2}$ through a surjection $E_v\to\Lambda_1\times\Lambda_2$, whose kernel $I_v$ contains $e_1E_ve_2$, $e_2E_ve_1$ and $f_v$, and satisfies $I_v\cap e_iE_ve_i=f_vZ_ve_i$. In particular $I_v^2\subset f_vE_v$. If $N$ is a left (resp.\ right) $E_v$-module killed by $f_v$ with $N=I_vN$ (resp.\ $N=NI_v$), then $N=0$. \end{lemma} \begin{proof} By functoriality $E_v$ acts on $\Ord_B(J_v)$, and the off-diagonal summands act by $0$, by \ref{P3}. Let $K_i$ be the kernel of $Z_v\to\Lambda_i$. For a unitary character $\vartheta$ of $T(\Q_2)$ lifting $\chi_i$, with the fixed central character, let $\gamma$ be the normalized Colmez character of $(\Ind_{\bar B}\vartheta)_{\mathrm{cont}}$. As $\gamma(g)\neq0$ is a root of the normalized relation of \ref{P2}, $t_v(g)\mapsto\gamma(g)+\chi(g)\gamma(g)^{-1}$. By Emerton's adjunction this specialization is the action of the centre on the corresponding specialization of $\Lambda_i$; these points are dense in $\Spec\Lambda_i$, which is reduced and $\cO$-flat. Hence the centre acts on $\Lambda_i$ through $t_v\mapsto\gamma_i^{\mathrm{univ}}+\chi(\gamma_i^{\mathrm{univ}})^{-1}$, where $\gamma_i^{\mathrm{univ}}$ is the universal character lifting the appropriate one of the two distinct residual constituents. The induced map $R^{\red}_v\to\Lambda_i$ is an isomorphism, since both rings represent the deformations of that character, the other one being determined by the fixed product $\chi$ (§\ref{sec:prelim}). Thus $K_i=(f_v)$, in either ordering, and $E_v\to\Lambda_1\times\Lambda_2$ is surjective. Modulo $f_v$, $I_v$ consists of the off-diagonal summands, whose products vanish by \ref{P2}; hence $I_v^2\subset f_vE_v$, and iterating $N=I_vN$ or $N=NI_v$ gives $N=0$. \end{proof} \begin{proposition}\label{prop:LG2} Let $F'$ be a totally real field of even degree in which $2$ splits completely, $\T=\T_{F'}(U^p)_{\mathfrak m}$ and $\T^{\ord}$ as in §\ref{sec:aut}, in the generic blocks above. Let $\mathfrak q$ be a prime of $\T$, of any characteristic, such that the determinant modulo $\mathfrak q$ is reducible on every decomposition group above $2$. Then $\mathfrak q$ lies in the image of $\Spec\T^{\ord}\to\Spec\T$. \end{proposition} \begin{proof} Put $S_{\mathrm{tor}}=S\otimes_\cO E/\cO$ and $M=S_{\mathrm{tor}}^\vee$; we work in the smooth torsion category and its compact dual. Let $\mathcal E=\widehat\bigotimes_{v\mid2}E_v$, $P=\widehat\bigotimes_{v\mid2}P_v$, $J=P^\vee$ and $\mathbf m=\Hom(P,M)$, a right $\mathcal E$-module by precomposition. By \ref{C2}, $\mathbf m$ is faithful and finite over $\T$ and finite over the noetherian local central base; as $\mathcal E$ is finite over that base, $\mathbf m$ is finitely presented over $\mathcal E$. The compact block equivalence gives $M\simeq\mathbf m\widehat\otimes_{\mathcal E}P$ and $S_{\mathrm{tor}}\simeq\Hom^{\mathrm{cts}}_{\mathcal E}(\mathbf m,J)$. Applying the additive left exact functor $\Ord_B$ to a finite presentation of $\mathbf m$ gives $\Ord_B(S_{\mathrm{tor}})\simeq\Hom^{\mathrm{cts}}_{\mathcal E}(\mathbf m,\Ord_BJ)$. Put $Q=(\Ord_BJ)^\vee$. The socle of the product injective $J$ consists of the tensor products of the local principal series constituents, each with multiplicity one; since parabolic induction is exact, $\Ord_BJ$ is injective, and by adjunction its torus socle consists of the corresponding tuples of local torus characters, each with multiplicity one. The proof of \cite[Lemma~4.4]{PT21}, applied to the product category, gives \[ Q\simeq\bigoplus_{(i_v)\in\{1,2\}^{\{v\mid2\}}}\widehat\bigotimes_{v\mid2}\Lambda_{v,i_v}\simeq\mathcal E/I, \] where $I$ is the two-sided ideal generated by the $I_v$, the $E_v$-actions being identified by naturality and Lemma~\ref{lem:blk}. Dualizing the presentation, \[ X:=(\Ord_BS_{\mathrm{tor}})^\vee\simeq\mathbf m\widehat\otimes_{\mathcal E}Q\simeq\mathbf m/\mathbf mI, \] and by the finite-level description of §\ref{sec:aut} and the commutation of ordinary parts with filtered torsion limits, $X$ is the compact ordinary module defining $\T^{\ord}$. The module $X$ is finite over $\T$, and $\T^{\ord}$ acts faithfully and $\T$-linearly on it, so $\T^{\ord}\subset\mathrm{End}_\T(X)$ is finite over the image of $\T$, and the image of $\Spec\T^{\ord}$ in $\Spec\T$ is $\mathrm{Supp}_\T X$. Let $N=\mathbf m\otimes_\T k(\mathfrak q)$, a right $\mathcal E$-module, non-zero since $\mathbf m$ is faithful and finite over $\T$, and killed by every $f_v$, since $f_v$ acts through $\T$ and maps into $\mathfrak q$. By Lemma~\ref{lem:blk} each $I_v^2$ kills $N$; as the local factors commute, $NI^{s+1}=0$, where $s$ is the number of places above $2$. Hence $N=NI$ would give $N=0$, and $X\otimes_\T k(\mathfrak q)\simeq N/NI\neq0$. Thus $\mathfrak q\in\mathrm{Supp}_\T X$. \end{proof} \begin{theorem}\label{thm:OF} Let $K$ and $F_1$ be as in Theorem~\ref{thm:PMall}. Then $R^{\red}_K$ is finite over $\Lambda_K$. \end{theorem} \begin{proof} It suffices to show that every irreducible component $Z$ of $\Spec R^{\red}_K$ is finite over $\Lambda_K$. If its generic point is reducible as a determinant of $G_K$, this is the second paragraph of the proof of Proposition~\ref{prop:OFflat}, applied over $K$. Otherwise, by Theorem~\ref{thm:PMall}, the image $Z_1$ of $Z$ in $\Spec R^{\red}_{F_1}$ lies in the image of $\Spec\T_{F_1}(U_1^p)$. Its generic point defines a prime $\mathfrak q$ of $\T_{F_1}(U_1^p)$ which is reducible at every place above $2$, so $\mathfrak q$ lies in the image of $\Spec\T^{\ord}_{F_1}$ by Proposition~\ref{prop:LG2}. Hence $Z_1\subset Y_{\mathfrak m''}$ for a maximal ideal $\mathfrak m''$ of $\T^{\ord}_{F_1}$, and the last paragraph of the proof of Proposition~\ref{prop:OFflat} shows that $Z_1$, hence $Z$, is finite over $\Lambda_K$. \end{proof} In particular condition (OF) holds for the field $K$ used in Sections~\ref{sec:setupB}--\ref{sec:proof}, and Proposition~\ref{prop:finite} holds unconditionally. \section{Removing the dyadic condition over real quadratic fields}\label{sec:quad} In Theorem~\ref{thm:A}, the condition $\bar\chi|_{G_v}\neq1$ of (R) enters only through the pro-modularity input (PM): the arguments of Section~\ref{sec:aut} work at points of characteristic $0$ and do not use it (Proposition~\ref{prop:secthree}). Over $\Q$, the construction of \cite[§6]{OAI} covers the cases $\bar\chi|_{G_{\Q_2}}=1$ by means of an auxiliary real quadratic field $B$. When $F$ itself can play the role of $B$, the method of \cite{OAI} applies to representations of $G_F$, and we obtain a version of Theorem~\ref{thm:A} without this condition. Throughout this section, $q$ is a prime with $q\equiv1\pmod8$, $F=\Q(\sqrt q)$, $w_1,w_2$ are the two places of $F$ above $2$, and $w_q$ is the place above $q$. Then $F$ is real quadratic, abelian over $\Q$, and $2$ splits in $F$, so $F$ is as in §1.1. \subsection{The field} \begin{lemma}\label{lem:quadF} \begin{enumerate} \item The narrow class number $h^+$ of $F$ is odd, and every totally positive unit of $F$ is a square. \item There is a totally positive $\pi\in F$ with $(\pi)=w_1^{h^+}$. Its class in $F_{w_2}^\times/(F_{w_2}^\times)^2$ does not depend on the choice of $\pi$, and the condition \begin{itemize} \item[(S)] $\pi$ is not a square in $F_{w_2}=\Q_2$ \end{itemize} does not depend on the numbering of $w_1,w_2$. \item For $q=17$, condition \textup{(S)} holds. \end{enumerate} \end{lemma} \begin{proof} (1) The quadratic extension $F/\Q$ is ramified at exactly one finite prime, $q$, and $\Q$ has narrow class number one. By \cite[Lemma~6.2]{OAI}, $h^+$ is odd and every totally positive unit of $F$ is a square. (2) The ideal $w_1^{h^+}$ is trivial in the narrow class group, so it has a totally positive generator $\pi$. Two such generators differ by a totally positive unit, which is a square by (1). Let $\sigma$ be the non-trivial automorphism of $F$. Then $\sigma(\pi)$ is a totally positive generator of $w_2^{h^+}$, and $\sigma$ extends to an isomorphism $F_{w_2}\to F_{w_1}$ sending $\pi$ to $\sigma(\pi)$; hence $\pi$ is a square in $F_{w_2}$ if and only if $\sigma(\pi)$ is a square in $F_{w_1}$. (3) By \cite[§6.1]{OAI}, for $q=17$ we have $h^+=1$, and $\pi=(5+\sqrt{17})/2$ is a totally positive generator of $w_1$. It is a root of $X^2-5X+2$, and its image in $F_{w_2}=\Q_2$ is the unit root of this polynomial, which is congruent to $7$ modulo $8$. A unit of $\Z_2$ is a square if and only if it is congruent to $1$ modulo $8$. \end{proof} \begin{remark}\label{rem:Sq} Suppose that $w_1=(\pi_0)$ with $\pi_0$ totally positive, so that $\pi=\pi_0^{h^+}$ and $\pi_0$ have the same squareclass. Then $\pi_0$ is a root of $X^2-tX+2$, with $t=\mathrm{Tr}(\pi_0)$, and its image $u$ in $F_{w_2}=\Q_2$ is the unit root, so $u+2u^{-1}=t$. Modulo $8$, $u\equiv1,3,5,7$ gives $t\equiv3,1,7,5$ respectively. Hence (S) holds if and only if $t\not\equiv3\pmod8$. For example $\pi_0=(5+\sqrt{17})/2$, $(7+\sqrt{41})/2$, $(9+\sqrt{73})/2$ give (S) for $q=17,41,73$, while $\pi_0=(11+\sqrt{113})/2$ shows that (S) fails for $q=113$. \end{remark} \begin{lemma}\label{lem:quadchi} Let $\bar\chi:G_F\to\F^\times$ be a character which extends to a character of $G_\Q$. Then the extension $\tilde\chi$ is unique, it has odd order, it is unramified at $2$, and $\bar\chi|_{G_{w_i}}=\tilde\chi|_{G_{\Q_2}}$ for $i=1,2$. If $\bar\chi$ is unramified at $w_q$, then $\tilde\chi$ is unramified at $q$ and $\tilde\chi(\Frob_q)=\bar\chi(\Frob_{w_q})$. \end{lemma} \begin{proof} The group $\F^\times$ has odd order. Two extensions of $\bar\chi$ differ by a character of $\Gal(F/\Q)$, which has order dividing $2$ and values in $\F^\times$, hence is trivial. The extension $\tilde\chi$ has odd order, and its restriction to $G_{\Q_2}$ factors through the maximal abelian quotient; by local class field theory its restriction to inertia factors through $\Z_2^\times$, a pro-$2$ group, hence is trivial. As $F_{w_i}=\Q_2$, the restrictions agree. If $\bar\chi$ is unramified at $w_q$, then $\tilde\chi(I_q)$ is a group of odd order containing $\bar\chi(I_{w_q})=1$ as the image of a subgroup of index at most $2$, so $\tilde\chi(I_q)=1$. Since $F_{w_q}/\Q_q$ is totally ramified, $G_{F_{w_q}}$ surjects onto $G_{\Q_q}/I_q$, and $\tilde\chi(\Frob_q)=\bar\chi(\Frob_{w_q})$. \end{proof} \subsection{Statement} \begin{theorem}\label{thm:Aquad} Let $\rho:G_F\to\GL_2(E)$ be as in §1.1 and assume \textup{(N)} and \textup{(O)}. Assume that $\rhobar^{ss}=\bar\chi_1\oplus\bar\chi_2$, that $\bar\chi=\bar\chi_1\bar\chi_2^{-1}$ extends to a character $\tilde\chi$ of $G_\Q$, and that $\rho_v$ is non-split for every $v\in\So$. Assume moreover one of the following: \begin{enumerate}[label=(\alph*)] \item $\bar\chi|_{G_{w_1}}\neq1$; \item $\bar\chi=1$, and $F$ satisfies \textup{(S)}; \item $\bar\chi\neq1$, $\rho$ is unramified at $w_q$, and $\bar\chi(\Frob_{w_q})\neq1$. \end{enumerate} Then $\rho$ is modular. \end{theorem} By Lemma~\ref{lem:quadchi}, $\bar\chi|_{G_{w_1}}=\bar\chi|_{G_{w_2}}=\tilde\chi|_{G_{\Q_2}}$, so (a) is condition (R), and case (a) is Theorem~\ref{thm:A}. Among the representations satisfying the first assumptions, the cases not covered are $\bar\chi=1$ when $F$ does not satisfy (S), and $\bar\chi\neq1$ with $\tilde\chi|_{G_{\Q_2}}=1$ when $\rho$ is ramified at $w_q$ or $\bar\chi(\Frob_{w_q})=1$. For $F=\Q(\sqrt{17})$, (S) holds by Lemma~\ref{lem:quadF}(3), so only the second case remains; in particular the theorem applies whenever $\rhobar^{ss}$ is scalar, for instance trivial. \begin{corollary}\label{cor:unr2} Let $\rho$ be as in §1.1, with $\rhobar^{ss}=\bar\chi_1\oplus\bar\chi_2$, and assume that $\bar\chi=\bar\chi_1\bar\chi_2^{-1}$ extends to a character $\tilde\chi$ of $G_\Q$ and is unramified at every finite place of $F$ not above $2$; for instance, $\rho$ is unramified outside the places above $2$. Then $\bar\chi=1$, so $\rhobar^{ss}$ is scalar, and if moreover $\det\rhobar=1$, then $\rhobar^{ss}$ is trivial. Consequently, if $F$ satisfies \textup{(S)}, for instance $F=\Q(\sqrt{17})$, and $\rho$ satisfies \textup{(N)}, \textup{(O)} and is non-split at every $v\in\So$, then $\rho$ is modular. \end{corollary} \begin{proof} Let $\ell$ be an odd prime. If $\ell\neq q$, then $F/\Q$ is unramified at $\ell$, so $\tilde\chi$ is unramified at $\ell$, since $\bar\chi$ is unramified at the places above $\ell$. If $\ell=q$, then $\tilde\chi$ is unramified at $q$ by Lemma~\ref{lem:quadchi}. Hence $\tilde\chi$ is ramified at most at $2$, so it factors through $\Gal(\Q(\mu_{2^\infty})/\Q)\simeq\Z_2^\times$ and has $2$-power order. As it takes values in $\F^\times$, which has odd order, $\tilde\chi=1$, and $\bar\chi=1$. If $\det\rhobar=\bar\chi_1\bar\chi_2=1$, then $\bar\chi=\bar\chi_1^2=1$, so $\bar\chi_1=1$, since squaring is injective on $\F^\times$, and $\bar\chi_2=1$. The last assertion is case (b) of Theorem~\ref{thm:Aquad}. \end{proof} The first part of the argument, that $\bar\chi=1$, does not use that $F$ is quadratic. Over any field $F$ as in §1.1, it holds whenever $\bar\chi$ extends to $G_\Q$ and the extension is unramified at all odd primes. \subsection{The arguments of Section~\ref{sec:aut} without the dyadic condition} \begin{lemma}\label{lem:Irr} Let $\Pi$ be an absolutely irreducible admissible unitary Banach representation of $\GL_2(\Q_2)$ with a central character, in some block, on which the centre of the block acts through a point whose pseudo-character $\psi_1+\psi_2$ is reducible. Then $\Pi$ is either a character $\eta\circ\det$ or a quotient of a unitary principal series $(\Ind_{\bar B}\mu)_{\mathrm{cont}}$. \end{lemma} \begin{proof} Following \cite{CDP14}, $\Pi$ is \emph{ordinary} if it is a subquotient of a unitary parabolic induction. If $\Pi$ is not ordinary, then by \cite[Theorem~1.1]{CDP14}, which holds for every prime $p$, its Colmez representation is absolutely irreducible of dimension $2$. By \cite[Theorem~1.4]{PT21}, after inverting $2$ the centre of the block is identified with the fixed-determinant pseudo-deformation ring, and it acts on $\Pi$ through the parameter of this Colmez representation, with the cyclotomic normalization of \ref{C2}; this characteristic-zero comparison applies to every block at $p=2$, and no integral isomorphism is needed. The resulting parameter is irreducible, a contradiction. Hence $\Pi$ is a subquotient of $I=(\Ind_{\bar B}\mu)_{\mathrm{cont}}$ for a unitary character $\mu$ of $T(\Q_2)$. The reduction modulo $\varpi$ of the unit ball of continuous functions is the smooth induction $\Ind_{\bar B}\bar\mu$. By Barthel--Livné \cite{BL94}, this has length at most $2$, and when it is reducible its constituents are a character and a twist of the Steinberg representation. A closed $\GL_2(\Q_2)$-stable subspace $I_1\subset I$ gives an exact sequence of reductions of unit balls, with non-zero terms if $I_1\neq0,I$; hence $I$ has length at most $2$. If $I$ is irreducible, $\Pi=I$. Otherwise there is an exact sequence $0\to I_1\to I\to I_2\to0$ with $I_1,I_2$ irreducible, and $\Pi\in\{I_1,I_2\}$. By Emerton's adjunction \cite[Theorem~4.4.6]{Eme10a}, in its form for admissible unitary Banach representations ((O4) of \cite[§3.3]{Die26a}), $\Hom(I,\eta\circ\det)=\Hom_{T(\Q_2)}(\mu,\Ord_B(\eta\circ\det))$. Here $\Ord_B(\eta\circ\det)=0$: on each $\cO/\varpi^n$-lattice of $\eta\circ\det$, the Hecke operator of $t=\mathrm{diag}(2,1)$ is $\sum_{n\in N_0/tN_0t^{-1}}nt$, which acts by $2\eta(2)$ and is not invertible. Hence $I_2$ is not a character. An admissible Banach representation whose unit ball has finite-dimensional reduction is finite-dimensional of the same dimension, and a one-dimensional representation of $\GL_2(\Q_2)$ factors through $\det$. So the reduction of $I_2$ is not one-dimensional, and therefore that of $I_1$ is; then $I_1$ is a character. In both cases $\Pi$ is a character or a quotient of $I$. \end{proof} \begin{proposition}\label{prop:secthree} Let $F'$ be a totally real field of even degree in which $2$ splits completely, and define $S$, $\T$, $S^{\mathrm o}$, $\T^{\mathrm o}$ over $F'$ as in Section~\ref{sec:aut}, with $\mathfrak m$ the maximal ideal attached to a semisimple residual representation $\bar r'$ of $G_{F'}$, either of the form $1\oplus\bar\chi'$ for a character $\bar\chi'$ of odd order, possibly trivial, or absolutely irreducible. Then: \begin{enumerate} \item \ref{C1}, \ref{C2}, \ref{C3}, the description of the absolutely irreducible objects with reducible parameter in §\ref{subsec:cc}, Lemmas~\ref{lem:galois} and~\ref{lem:lgmix}, and Theorem~\ref{thm:class} hold; \item Proposition~\ref{prop:LG} holds for every maximal ideal $\mathfrak p$ of $\T[1/2]$ such that $\rho(\mathfrak p)$ is irreducible and, for every $v\in\So$, $\rho(\mathfrak p)|_{G_v}$ is reducible with distinct Jordan--Hölder characters. \end{enumerate} \end{proposition} \begin{proof} (1) Propositions~4.1, 4.2 and~4.4 of \cite{OAI} are proved for every residual factor of the Hecke algebra; their block inputs, from \cite{PT21}, apply to every block, including the scalar residual block at $2$ \cite[proof of Proposition~4.2]{OAI}. The description of the absolutely irreducible objects with reducible parameter is Lemma~\ref{lem:Irr}. The proof of Lemma~\ref{lem:galois} takes place at finite level and in characteristic $0$, and uses no condition on $\bar r'$. The proof of Lemma~\ref{lem:lgmix} only uses \ref{C2} and Emerton's functor. The proof of Theorem~\ref{thm:class} uses Lemma~\ref{lem:lgmix}, \ref{C1}, \ref{C2}, the correspondence of \cite{CDP14} at the irreducible local parameters, the product structure of the blocks \cite[proof of Proposition~4.2]{OAI}, and the density statement in its proof, none of which involves $\bar r'$. (For $a_1>a_2$ the density statement is \cite[Proposition~2.2.1]{BE10} with $k=a_1-a_2+2\geq3$; the case $k=2$ excluded there is the case $a_1=a_2$, treated directly.) (2) In the proof of Proposition~\ref{prop:LG}, \ref{C2} gives $\Pi'=\widehat\bigotimes_v\Pi'_v$ in $(S\otimes E)[\mathfrak p]$, with $\Pi'_v$ absolutely irreducible. For $v\in\So$, Lemma~\ref{lem:Irr} and strong approximation \cite[Lemma~3.2]{Die26a} show that $\Pi'_v$ is a quotient of a unitary principal series. Emerton's adjunction then gives $\mathfrak P$. Modulo $\mathfrak P$, the determinant of Lemma~\ref{lem:galois} is $\psi_{v,1}(\mathfrak P)$-ordinary at $G_v$ and equal to $\det(\psi_{v,1}(\mathfrak P)\oplus\chi\psi_{v,1}(\mathfrak P)^{-1})$ there. These two characters are the Jordan--Hölder characters of $\rho(\mathfrak p)|_{G_v}$, hence distinct, so some $\sigma_0\in G_v$ separates them. The characteristic-free form of \cite[Lemma~2.3]{Die26a} recalled in §\ref{sec:prelim}, applied over the field $k(\mathfrak p)$, shows that $\psi_{v,1}(\mathfrak P)$ is a subcharacter of $\rho(\mathfrak p)|_{G_v}$. \end{proof} \subsection{Pro-modularity} \begin{proposition}\label{prop:PMquad} Let $\rho:G_F\to\GL_2(E)$ be as in §1.1, de Rham with distinct Hodge--Tate weights at some place above $2$, not induced, with $\det\rho=\varepsilon^w\chi_0$ for $\chi_0$ of finite order, and with $\rhobar^{ss}=\bar\chi_1\oplus\bar\chi_2$, where $\bar\chi=\bar\chi_1\bar\chi_2^{-1}$ extends to $G_\Q$. Assume (b) or (c) of Theorem~\ref{thm:Aquad}. Then \textup{(PM)} holds. Moreover, if $\bar\chi|_{G_{w_1}}=1$ (equivalently, at both places above $2$), $K$ may be chosen abelian over $\Q$. \end{proposition} \begin{proof} If $\bar\chi|_{G_{w_1}}\neq1$, then (R) holds by Lemma~\ref{lem:quadchi}, and (PM) is Theorem~\ref{thm:PMproof}; the assertion about $K$ concerns only the remaining case. We assume from now on that $\bar\chi|_{G_{w_1}}=1$, so that $\tilde\chi|_{G_{\Q_2}}=1$. \emph{Step 0: normalization.} Twisting by the Teichmüller lift of $\bar\chi_2^{-1}$, we may assume that $\rhobar^{ss}=1\oplus\bar\chi$. In case (c), $\rho$ is unramified at $w_q$, so $\bar\chi_2$ is unramified there and the twist keeps $\rho$ unramified at $w_q$. The assumptions are otherwise unchanged. Let $\alpha=\tilde\chi$ be the character of Lemma~\ref{lem:quadchi}, and put $\bar r=1\oplus\alpha$, a semisimple representation of $G_\Q$ with $\bar r|_{G_F}=\rhobar^{ss}$. Then $\alpha$ is unramified at $2$; in case (b), $\alpha=1$; in the remaining part of case (c), $\alpha\neq1$, $\alpha|_{G_{\Q_2}}=1$, $\alpha$ is unramified at $q$, and $\alpha(\Frob_q)\neq1$, by Lemma~\ref{lem:quadchi}. By Lemma~\ref{lem:nvs}, $\rho|_{G_{F'}}$ is absolutely irreducible and not virtually solvable for every finite extension $F'/F$. Put $\chi=\det\rho$. \emph{Step 1: the seed and the allowed primes.} By \cite[Lemma~7.2]{OAI} there is a cuspidal eigenform $f$ of level $N\ell$ whose residual representation is $\bar r$. In its proof, $N$ is any odd integer $\geq5$ divisible by the conductor of the Teichmüller lift of $\alpha$, and $\ell$ is any prime congruent to $1$ modulo $N2^a$ for $a$ large. In case (c), the conductor of $\alpha$ is prime to $q$, so we take $N$ prime to $q$ and $\ell\neq q$; then the level of $f$ is prime to $q$. Let $\Sigma_\Q$ be the set of odd primes which divide $N\ell$, or lie below a finite place of $F$ at which $\rho$ is ramified. Then $\bar r$ is unramified outside $\Sigma_\Q\cup\{2\}$, and in case (c), $q\notin\Sigma_\Q$, since $w_q$ is the only place of $F$ above $q$. We enlarge $\Sigma$ to the set of places of $F$ above $\Sigma_\Q\cup\{2,\infty\}$; as observed at the beginning of Section~\ref{sec:PM}, this is harmless for (PM). \emph{Step 2: the fields.} We apply \cite[Proposition~6.1]{OAI} to $\bar r$ and $\Sigma_\Q$, and denote its fields by $\Q\subset A\subset A'$. Its proof in the reducible cases with $\alpha|_{G_{\Q_2}}=1$ uses an auxiliary real quadratic field $B$, with $A=BL_a$ and $A'=BL$ for cyclic $2$-power subfields $L_a\subset L$ of cyclotomic fields \cite[§§6.1, 6.4]{OAI}. We show that one can take $B=F$ in both cases; then $F\subset A\subset A'$, and $A$, $A'$ are totally real, abelian over $\Q$, of even degree, with $2$ split completely. \emph{Case (b).} In \cite[§6.1]{OAI}, $B=\Q(\sqrt{17})$. The proof uses only the following properties of $B$: \begin{itemize} \item $2$ splits in $B$; \item $B$ has odd narrow class number; \item there is a totally positive $\pi\in B$ generating a power $w_1^h$, $h$ odd, of one dyadic place, which is not a square at the other dyadic place; \item the condition that a conductor prime $r$ is inert in $B$ is compatible with the conditions (28) of loc.\ cit.\ and with the non-square conditions at the primes of $\Sigma_\Q$. \end{itemize} For $B=F$, the first three properties hold by Lemma~\ref{lem:quadF} and (S), with $h=h^+$. For the fourth, inertness of $r$ in $F$ means that $q$ is a non-square modulo $r$, and the argument of loc.\ cit.\ applies verbatim: the squareclasses of distinct odd primes are independent, and all quadratic subfields of $E_n=\Q(\zeta_{2^{n+1}},2^{1/2^n})$ are unramified at odd primes. If $q\in\Sigma_\Q$, the condition repeats an existing one. With these properties, the remaining argument of loc.\ cit.\ applies verbatim. Each quadratic step of $FL/F$ is ramified at exactly one finite prime, the prime above $r$. Hence, by \cite[Lemma~6.2]{OAI}, $A'$ has odd narrow class number and its totally positive units are squares. The Kummer argument with the valuation-parity map then gives \cite[(25)]{OAI} for $\beta=1$, with $\pi$ in place of $(5+\sqrt{17})/2$; its last step uses that $\pi$ is not a square at the places above $w_2$, whose completions are $F_{w_2}=\Q_2$. The restriction assertion holds as in loc.\ cit. Every $\ell\in\Sigma_\Q$ is a non-square modulo $r$, so its Frobenius generates $\Gal(L/\Q)\simeq\Gal(FL/F)$ (as $F\cap L=\Q$). A place of $F$ above $\ell$ has residue degree $1$ or $2$, so it has at most $2$ places above it in $A'$. Hence $u_A,u_{A'}\leq2|\Sigma_\Q|$, independently of the degrees. \emph{Case (c).} In \cite[§§6.3--6.5]{OAI}, $B=\Q(\sqrt{q_0})$ for a prime $q_0\notin\Sigma_\Q\cup\{2\}$ with $q_0\equiv1\pmod8$ and $\alpha(\Frob_{q_0})\neq1$. Such a $q_0$ is chosen by Chebotarev's theorem, but the construction uses only these three properties, and they hold for $q_0=q$ by Step~0 and Step~1. In particular, the vanishing of the local cohomology at $q_0$ in the proof of \cite[Lemma~6.5]{OAI} uses that $\alpha$ is unramified at $q_0$ with $\alpha(\Frob_{q_0})\neq1$, and the independence $B\cap E_2=\Q$ in \cite[§6.3]{OAI} uses that $q_0\notin\Sigma_\Q$. We take $q_0=q$, so $B=F$. In both cases, \cite[Proposition~6.1]{OAI} holds for $A\subset A'$, with the marked set $M$ of loc.\ cit. This gives the Selmer vanishing \cite[(25)]{OAI}, the bounds \cite[(26)]{OAI} in the case $\alpha|_{G_{\Q_2}}=1$, the restriction injectivity, and a bound $U$ for $u_A,u_{A'}$ independent of the degrees, so that the inequalities \cite[(36)--(39)]{OAI} can be achieved. \emph{Step 3: the target loci.} The point of $\rho|_{G_A}$ lies on $\Spec R^{\ps}_A$, the pseudo-deformation space of $\bar r|_{G_A}$ with determinant $\chi|_{G_A}$ for $G_{A,S_A}$, where $S_A$ is the set of places above $\Sigma_\Q\cup\{2,\infty\}$. Let $C$ be an irreducible component of $\Spec R^{\ps}_A$ through this point. Its absolutely irreducible locus is open, and it is non-empty, since it contains the point of $\rho|_{G_A}$. As in the proof of Theorem~\ref{thm:PMall}, $C$ is the pseudo-image of an irreducible component of the fixed-determinant framed representation scheme through a point above that of $\rho|_{G_A}$. By \cite[Proposition~3.6 and Lemmas~3.12 and~3.2]{OAI}, $\dim C\geq2[A:\Q]-2$. This is the dimension bound for the target locus in \cite[§7.4]{OAI}. \emph{Step 4: the argument of \cite[§7]{OAI}.} We follow \cite[§§7.2--7.4]{OAI} with the fields $A\subset A'$, the seed $f$, the determinant $\chi|_{G_A}$, the allowed set $S_A$ and the target locus $C$, and check that the target over $\Q$ enters there only through these data. \begin{enumerate}[label=(\roman*)] \item \cite[§7.2]{OAI}: the allowed set contains the bad primes of the target and of the seed, by Step~1. The degree conditions \cite[(39)]{OAI} only involve $U$. \item \cite[Lemmas~7.3--7.5]{OAI} concern the fixed-determinant framed representation scheme over $A'$ with residual representation $\bar r|_{G_{A'}}$ and the marks. They use: \begin{itemize} \item the relative presentation over the real local rings, which needs only that $\chi$ is totally odd; \item the bounds (25) and (26); \item Leopoldt's conjecture for $A'$, which holds since $A'$ is abelian over $\Q$; \item the propagation theorem \cite[Theorem~5.1]{OAI}, which applies to the determinant $\chi|_{G_{A'}}=\varepsilon^w\chi_0|_{G_{A'}}$. \end{itemize} None of these refers to a representation of $G_\Q$. \item \cite[§7.4]{OAI}, seed locus: the base change of $f$ to the abelian field $A$ is cuspidal by regularity, and its residual representation is $\bar r|_{G_A}$. Its central character agrees with $\chi\varepsilon$ modulo $\varpi$, since both residual determinants equal $\alpha|_{G_A}$. Hence the argument of loc.\ cit.\ gives a pro-modular component $C_{\mathrm{seed}}$ of dimension at least $1+2[A:\Q]$. \item \cite[§7.4]{OAI}, target locus: we use $C$ in place of the component through $r|_{G_A}$. The trace cuts at the allowed non-dyadic places and, in the marked case, at the distinguished place $v_0$ cost at most $1+u_A$ plus a constant independent of the degrees. Since $\dim C\geq2[A:\Q]-2$ and $[A:\Q]$ is large, the cut locus has dimension larger than $[A:\Q]$. By \cite[Lemmas~3.8 and~3.9]{OAI} over the abelian field $A$, it contains a non-virtually-solvable curve with finite local images at the allowed non-dyadic places. \item \cite[§7.4]{OAI}, entering the transverse fibre over $A'$: the lattice argument uses the irreducibility of the curve representation, the constancy of its local pseudo-character at $v_0$ in the marked case, and the restriction injectivity of Step~2. All of these hold for the curve in $C$. \item \cite[§7.4]{OAI}, conclusion: Lemma~7.5 of loc.\ cit.\ makes the target curve potentially pro-modular, and \cite[Theorem~5.1]{OAI} over $A$ then makes $C$ potentially pro-modular. \end{enumerate} Hence there are a totally real field $F_C$, Galois and solvable over $\Q$, of even degree and split completely at $2$, and a tame level, such that the image of $C$ under restriction to $G_{F_C}$ is pro-modular. \emph{Step 5: conclusion.} There are finitely many components $C$ as in Step~3. Let $F_1$ be the compositum of the fields $F_C$; it is totally real, Galois and solvable over $\Q$, of even degree and split completely at $2$. By \cite[Lemma~4.6]{OAI}, pro-modularity is preserved under the restrictions to $F_1$, at one common tame level. Hence (PM) holds with $K=A$, which is abelian over $\Q$ and contains $F$, and with this $F_1$. \end{proof} \subsection{Proof of Theorem~\ref{thm:Aquad}} In case (a), condition (R) holds and the result is Theorem~\ref{thm:A}. Assume (b) or (c). If $\rho$ is induced from a character of an index two subgroup, it is modular, as in §\ref{subsec:field}. Otherwise, by (N), (O) and §\ref{subsec:field}, $\det\rho=\varepsilon^w\chi_0$ with $\chi_0$ of finite order. Then Proposition~\ref{prop:PMquad} gives (PM) for fields $F\subset K\subset F_1$, after the twist of its Step~0, which does not affect the assumptions or the conclusion. By (PM), the restriction $\rho|_{G_{F_1}}$ defines a maximal ideal $\mathfrak p$ of $\T_{F_1}[1/2]$ with $\rho(\mathfrak p)\simeq\rho|_{G_{F_1}}$, which is absolutely irreducible by Lemma~\ref{lem:nvs}. For a place $w$ of $F_1$ above $v\in\So$, we have $\rho(\mathfrak p)|_{G_w}=\rho_v$, which is reducible and has distinct Jordan--Hölder characters, since its Hodge--Tate weights are distinct. By Proposition~\ref{prop:secthree}(2) there is $\mathfrak P$ above $\mathfrak p$ such that $\psi_{w,1}(\mathfrak P)$ is a subcharacter of $\rho_v$ for every such $w$. As $\rho_v$ is non-split, this subcharacter is the classical character (Lemma~\ref{lem:BK}). By Theorem~\ref{thm:class} over $F_1$, which holds by Proposition~\ref{prop:secthree}(1), $\rho|_{G_{F_1}}$ is modular. Since $F_1/F$ is Galois and solvable, $\rho$ is modular by solvable descent \cite[Lemma~2.2.2]{BLGGT14}, \cite{AC89}. \qed \begin{remark}\label{rem:quad} Over a general field $F$ as in §1.1, the same argument applies whenever $F$ is contained in the field $B$ used in \cite[§6]{OAI}, which is then quadratic or $\Q$. This is why we restrict to $F=\Q(\sqrt q)$. In the excluded case of Theorem~\ref{thm:Aquad} ($\bar\chi\neq1$ trivial at $2$, with $\rho$ ramified at $w_q$ or $\bar\chi(\Frob_{w_q})=1$), the choice $q_0=q$ fails. If $\bar\chi(\Frob_{w_q})=1$, the proof of \cite[Lemma~6.5]{OAI} breaks down, since the local cohomology at $q$ no longer vanishes. If $\rho$ is ramified at $w_q$, then $q\in\Sigma_\Q$, and $\sqrt q$ lies in the field $E_2$ of \cite[§6.3]{OAI}, which prevents the final inert switch. Condition (S) is used only in the scalar case (b). \end{remark} \section{Residually irreducible representations with solvable image}\label{sec:dih} In this section $F$ is as in §1.1 and $\rho:G_F\to\GL_2(E)$ is as in §1.1, with $\rhobar$ absolutely irreducible. For a residual image which is not solvable, modularity lifting theorems at $2$ are available when $\rhobar$ is modular \cite{Tun}. We treat the case of solvable image. Then residual modularity is automatic, by an odd Artin lift, and the method of Sections~\ref{sec:aut} and~\ref{sec:PM} applies with the simplifications of the residually irreducible case. \subsection{Residual representations} \begin{lemma}\label{lem:dihclass} Let $\rhobar:G_F\to\GL_2(\F)$ be absolutely irreducible with solvable image. Then its projective image is dihedral of order $2n$ with $n\geq3$ odd. After enlarging $\F$, there are a unique quadratic extension $L/F$ and a character $\bar\theta:G_L\to\F^\times$ with $\bar\theta\neq\bar\theta^c$ and $\rhobar\simeq\Ind_{G_L}^{G_F}\bar\theta$, where $c$ is the non-trivial element of $\Gal(L/F)$; the character $\bar\theta/\bar\theta^c$ has order $n$. \end{lemma} \begin{proof} Let $k$ be an algebraic closure of $\F$. Since $k$ is perfect of characteristic $2$, the map $\SL_2(k)\to\PGL_2(k)$ is an isomorphism, and we regard the projective image $G$ of $\rhobar$ as a finite solvable subgroup of $\SL_2(k)$. An element of $\SL_2(k)$ of $2$-power order $2^m$ satisfies $(x-1)^{2^m}=x^{2^m}-1=0$, so it is unipotent. A non-trivial unipotent element fixes a unique line. By Kolchin's theorem, a non-trivial $2$-subgroup of $\SL_2(k)$ fixes a unique line. If the largest normal $2$-subgroup $O_2(G)$ were non-trivial, its fixed line would be $G$-stable, and $\rhobar\otimes k$ would be reducible. Hence $O_2(G)=1$, and the Fitting subgroup $N$ of $G$, which is non-trivial since $G$ is solvable and non-trivial, has odd order. Let $H$ be a Sylow $p$-subgroup of $N$, $p$ odd, $H\neq1$, and $z\neq1$ in its centre. The element $z$ is semisimple, and not scalar since the only scalar in $\SL_2(k)$ is $1$. Its centralizer is therefore a maximal torus $T\simeq k^\times$, which contains $H$. The other Sylow subgroups of the nilpotent group $N$ commute with $z$, so $N\subset T$, and $N$ is cyclic. As $N$ is normal in $G$ and consists of semisimple elements with the same two eigenlines, $G$ permutes these lines, so $G\subset N_{\SL_2(k)}(T)=T\rtimes\langle s\rangle$, where $s$ acts on $T$ by inversion. If $G\subset T$, then $\rhobar\otimes k$ stabilizes the two eigenlines and is reducible. Hence $C=G\cap T$ is cyclic of index $2$ in $G$, of odd order $n$, since the finite subgroups of $k^\times$ have odd order, and $G$ is dihedral of order $2n$. If $n=1$, then $G$ is a $2$-group, which is excluded; so $n\geq3$. Let $L$ be the quadratic extension of $F$ cut out by $G\to G/C$. Then $\rhobar(G_L)$ has projective image $C\subset T$, so it stabilizes the two eigenlines of $T$, and $\rhobar|_{G_L}\otimes k=\bar\theta\oplus\bar\theta'$. By Clifford theory and the irreducibility of $\rhobar$, we have $\bar\theta'=\bar\theta^c\neq\bar\theta$ and $\rhobar\otimes k\simeq\Ind_{G_L}^{G_F}\bar\theta$. The character $\bar\theta/\bar\theta^c$ maps $G_L$ onto the projective image $C$ of $\rhobar(G_L)$, so it has order $n$. Finally, $L$ is unique: since $n$ is odd, $C$ is the commutator subgroup of $G$, so it is the unique subgroup of index $2$. \end{proof} \begin{lemma}\label{lem:oddlift} Let $\rhobar=\Ind_{G_L}^{G_F}\bar\theta$ be as in Lemma~\ref{lem:dihclass}. There is a character $\theta:G_L\to\cO^\times$ of finite order, lifting $\bar\theta$, such that $r=\Ind_{G_L}^{G_F}\theta$ is irreducible and totally odd. Its reduction modulo $\varpi$ is isomorphic to $\rhobar$. \end{lemma} \begin{proof} Let $\theta_0$ be the Teichmüller lift of $\bar\theta$; it has odd order, so $\theta_0(c_w)=1$ for every complex conjugation $c_w\in G_L$. Let $v$ be a real place of $F$. If $v$ becomes complex in $L$, a complex conjugation $c_v$ at $v$ is not in $G_L$, so $\Ind\theta(c_v)$ interchanges the two lines of the induced representation and has trace $0$. As $c_v^2=1$, it has eigenvalues $\pm1$ and determinant $-1$, for every $\theta$. If $v$ splits into two real places $w,w'$ of $L$, then $\Ind\theta(c_w)$ is conjugate to $\mathrm{diag}(\theta(c_w),\theta(c_{w'}))$. By weak approximation there is $x\in L^\times$ which is negative at one chosen place $w$ above each split real place $v$ and positive at all other real places of $L$. Let $\eta$ be the character of $L(\sqrt x)/L$. Put $\theta=\theta_0\eta$. Then $\det r(c_v)=\eta(c_w)\eta(c_{w'})=-1$ at the split real places, and $r$ is totally odd. Since $\eta$ takes values $\pm1\equiv1\pmod\varpi$, $\theta$ lifts $\bar\theta$, and $r\bmod\varpi\simeq\Ind\bar\theta=\rhobar$. As $\bar\theta\neq\bar\theta^c$, also $\theta\neq\theta^c$, and $r$ is irreducible. \end{proof} In characteristic $2$ the field $L$ need not be CM, since oddness is invisible modulo $2$. The twist by $\eta$, which is trivial modulo $2$, is what makes the Artin lift odd in all cases. \begin{proposition}\label{prop:resmod} Let $\rhobar$ be as in Lemma~\ref{lem:dihclass}. There is a cuspidal Hilbert eigenform $g$ over $F$ of parallel weight $k\geq2$ whose Galois representation $\rho_g$ satisfies $\rhobar_g\simeq\rhobar$. \end{proposition} \begin{proof} Let $r=\Ind_{G_L}^{G_F}\theta$ be as in Lemma~\ref{lem:oddlift}. The automorphic induction $\pi$ of the Hecke character $\theta$ of $L$ \cite{LL79}, \cite[Chapter~3]{AC89} is cuspidal, since $\theta\neq\theta^c$. At a real place $v$ of $F$, its Langlands parameter is the restriction of $r$ to $W_{F_v}$, which factors through $\Gal(\mathbb C/\R)$ and is $1\oplus\mathrm{sgn}$, since $r(c_v)$ has eigenvalues $1$ and $-1$ by the oddness of $r$. Hence $\pi_v$ is the limit of discrete series of weight $1$. Hence $\pi$ is generated by a cuspidal Hilbert eigenform $f$ of parallel weight $1$, whose Galois representation is $r$ \cite{RT83}. Its Hecke eigenvalues $c(v,f)=\mathrm{tr}\,r(\Frob_v)$, for $v\nmid N$, where $N$ is the level, lie in $\cO$. We now raise the weight, as in \cite{Wil88}; see \cite[§5.1]{All14} for its use at $p=2$. Since $F$ is abelian over $\Q$, Leopoldt's conjecture holds for $F$ at $2$ \cite{Bru67}, and the $2$-adic zeta function of $F$ has a pole at $s=1$. We use Shimura's normalized Fourier coefficients $C(\mathfrak m,\cdot)$ at the cusps at infinity of the $h^+$ connected components, with representatives $t_\lambda$ of the narrow class group prime to $2$; for parallel weight $k$ they differ from the Fourier coefficients of the components by factors $N(t_\lambda)^{-k/2}$, which depend only on the component and are multiplicative in $k$. Let $l=2^m$ with $m\geq2$, and let $G_l$ be the Eisenstein series of parallel weight $l$, level one and trivial character, with $C(\mathfrak m,G_l)=\sum_{\mathfrak a\mid\mathfrak m}\Nm(\mathfrak a)^{l-1}$ and constant terms $2^{-d}\zeta_F(1-l)$, up to rational $2$-adic units, at the cusps at infinity of the components. Since $2$ splits completely in $F$ and $l$ is even, the Kubota--Leopoldt interpolation gives $\zeta_{F,2}(1-l)=(1-2^{l-1})^d\zeta_F(1-l)$, where $\zeta_{F,2}=\prod_\chi L_2(s,\chi)$ over the even Dirichlet characters $\chi$ of $F$. As $\zeta_2$ has a pole at $s=1$ and $L_2(1,\chi)\neq0$ for $\chi\neq1$, by Leopoldt's formula and Brumer's theorem \cite{Bru67}, $v_2(\zeta_F(1-l))\to-\infty$ as $m\to\infty$. Let $E=2^dG_l/\zeta_F(1-l)$ with $m$ large. Its non-constant coefficients are divisible by an arbitrarily large power of $2$, and its constant terms at the cusps at infinity are rational $2$-adic units, hence congruent to $1$ modulo $\varpi$ \cite{Wil88}. Then $fE$ is a cusp form of parallel weight $l+1$, level $N$ and the character of $f$. Since the products are computed componentwise and the normalizing factors are multiplicative in the weight, $C(\mathfrak m,fE)$ is the convolution of the coefficients of $f$ and $E$, and $C(\mathfrak m,fE)\equiv C(\mathfrak m,f)\pmod\varpi$ for every non-zero integral ideal $\mathfrak m$. Let $M$ be the lattice of cusp forms of parallel weight $l+1$, level $N$ and this character, with $2$-integral Fourier coefficients; it is finite free over $\cO$ and stable under the Hecke operators $T_v$, $v\nmid2N$. The Hecke recursions for $T_v$ in weights $1$ and $l+1$ differ by the factors $\Nm(v)^{j}$ with $j\geq0$, which are odd integers, hence $\equiv1\pmod\varpi$. Hence the reduction of $fE$ in $M/\varpi M$ is a non-zero eigenvector of the $T_v$ with eigenvalues $c(v,f)\bmod\varpi$. By the lemma of Deligne and Serre \cite[Lemme~6.11]{DS74}, after enlarging $\cO$ there is an eigenform $g\in M$ with $c(v,g)\equiv c(v,f)\pmod\varpi$ for all $v\nmid2N$. The characters of $f$ and $g$ agree, and $\Nm(v)^{l}\equiv1\pmod\varpi$, so the characteristic polynomials of $\rho_g(\Frob_v)$ and of $r(\Frob_v)$ agree modulo $\varpi$ for $v\nmid2N$. By the Chebotarev density theorem and the Brauer--Nesbitt theorem, $\rhobar_g^{ss}\simeq\rhobar$, and $\rhobar_g\simeq\rhobar$ since $\rhobar$ is irreducible. \end{proof} \subsection{Fields} Let $\Sigma$ be as in §1.1, enlarged by the places above the primes dividing the level of the form $g$ of Proposition~\ref{prop:resmod}, chosen once and for all; as in Section~\ref{sec:PM}, this is harmless for (PM). Let $\Sigma_0$ be the set of finite places of $\Sigma$ not above $2$. Choose a finite set $P_0$ of places of $F$, not above $2$ and not in $\Sigma_0$, whose classes generate the $2$-part of the class group. Define $S'$, the elements $x_v$ and the fields $L_w$ as in §8.1; Lemma~\ref{lem:cyc} holds without change, since it does not involve $\bar\chi$. Let $F(\rhobar)$ be the field cut out by $\rhobar$. \begin{lemma}\label{lem:dihfields} For all integers $n>a\geq1$ there are cyclic extensions $F\subset F_a\subset F_n$ of degrees $2^a$ and $2^n$, totally real, in which the places above $2$ split completely, ramified at exactly one place, of degree one, which is totally ramified in $F_n$, such that every place of $\Sigma_0$ has a unique place above it in $F_n$ and $F_n\cap F(\rhobar)=F$. In particular $\rhobar|_{G_{F_n}}$ is absolutely irreducible, and the number of non-dyadic places of $F_n$ above $\Sigma_0\cup\{w\}$ is $|\Sigma_0|+1$. \end{lemma} \begin{proof} Choose a place $w$ of $F$ of degree one, not in $S'\cup\Sigma_0$, unramified in $F(\rhobar)$, which splits completely in $M_n=F(\mu_{2^{n+1}},(\cO_{S'}^\times)^{1/2^n})$ and is inert in $F(\sqrt{x_v})$ for every $v\in\Sigma_0$. Such a $w$ exists by Chebotarev's theorem: as in the proof of Proposition~\ref{prop:fields}, $\Gal(M_n\prod_{v\in\Sigma_0}F(\sqrt{x_v})/F)=\Gal(M_n/F)\times(\Z/2)^{\Sigma_0}$, and excluding the finitely many places ramified in $F(\rhobar)$ is harmless. Let $F_n=L_w$ be the field of Lemma~\ref{lem:cyc}, and $F_a$ its layer of degree $2^a$. By Lemma~\ref{lem:cyc}, $F_n$ is totally real, the places above $2$ split, and $w$ is totally ramified. For $v\in\Sigma_0$, $x_v$ is not a square modulo $w$, so $\Frob_v$ generates $\Gal(F_n/F)$ and $v$ is inert. Every non-trivial subextension of $F_n/F$ is ramified at $w$, while $F(\rhobar)/F$ is unramified at $w$; hence $F_n\cap F(\rhobar)=F$, and $\rhobar(G_{F_n})=\rhobar(G_F)$. \end{proof} \subsection{Pro-modularity and modularity} \begin{proposition}\label{prop:PMdih} Let $\rho$ be as in §1.1, with $\rhobar$ absolutely irreducible with solvable image, de Rham with distinct Hodge--Tate weights at some place above $2$, not induced, and with $\det\rho=\varepsilon^w\chi_0$ for $\chi_0$ of finite order. Then \textup{(PM)} holds, for the pseudo-deformation rings of $\rhobar|_{G_K}$, with $K/F$ cyclic. \end{proposition} \begin{proof} By Lemma~\ref{lem:nvs}, $\rho|_{G_{F'}}$ is absolutely irreducible and not virtually solvable for every finite extension $F'/F$. We follow the proof of \cite[Theorem~7.1]{OAI} in the case of absolutely irreducible residue, with $\Q\subset A\subset F$ replaced by $F\subset F_a\subset F_n$ of Lemma~\ref{lem:dihfields}, as in the proof of Theorem~\ref{thm:PMproof}, with the following simplifications and changes. \begin{enumerate} \item \emph{No reducible loci.} Since $\rhobar|_{G_{F_n}}$ and $\rhobar|_{G_{F_a}}$ are absolutely irreducible, the pseudo-deformation spaces over $F_n$ and $F_a$ contain no reducible points. Hence the reducible locus of \cite[Lemma~7.3]{OAI} is empty, there are no marks and no Selmer conditions, and Leopoldt's conjecture is not used. The only bad locus in \cite[Lemma~3.8]{OAI} is the dihedral one, of dimension at most $d_K$. By \cite[Lemma~7.5]{OAI}, the residual fibre is a single conjugacy orbit, hence connected. \item \emph{Numerical conditions.} With $u_n=|\Sigma_0|+1$, we choose $n$ and $a$ so large that $2d_n-4-u_n>d_n$ and $d_a>u_a+C+4$, where $d_n=[F_n:\Q]$, $d_a=[F_a:\Q]$ and $C$ is the constant cost of the trace cuts in \cite[§7.4]{OAI}. \item \emph{The seed.} The base change of $g$ (Proposition~\ref{prop:resmod}) to $F_a$, through the cyclic extension $F_a/F$ \cite{AC89}, is cuspidal by regularity, as in \cite[§7.4]{OAI}. Its residual representation is $\rhobar|_{G_{F_a}}$, and its level is supported on $\Sigma$. Its central character agrees with $\chi\varepsilon$ modulo $\varpi$, since $\det\rhobar_g=\det\rhobar$. By \cite[Proposition~4.4]{OAI} it gives a pro-modular component of dimension at least $1+2d_a$. \item \emph{The target.} The target loci are the irreducible components of $\Spec R^{\ps}_{F_a}$ through the point of $\rho|_{G_{F_a}}$. As in Step~3 of the proof of Proposition~\ref{prop:PMquad}, each is the pseudo-image of a component of the framed representation scheme and has dimension at least $2d_a-2$. \end{enumerate} The remaining arguments of \cite[§7]{OAI} and the propagation theorem \cite[Theorem~5.1]{OAI} apply as in the proof of Theorem~\ref{thm:PMproof}. In \cite[§7.4]{OAI}, any stable lattice of the seed and target curves gives a point of the residual scheme over $F_n$, since there are no marks and the residual representation over $F_n$ is absolutely irreducible. Taking Galois closures and a common level as there, we obtain (PM) with $K=F_a$, which is cyclic over $F$. \end{proof} \begin{theorem}\label{thm:dih} Let $F$ be as in §1.1 and $\rho:G_F\to\GL_2(E)$ as in §1.1, satisfying \textup{(N)} and \textup{(O)}, with $\rhobar$ absolutely irreducible with solvable image, and such that $\rho_v$ is non-split for every $v\in\So$. Then $\rho$ is modular. \end{theorem} \begin{proof} If $\rho$ is induced from a character of an index two subgroup, it is modular, as in §\ref{subsec:field}. Otherwise, by (N), (O) and §\ref{subsec:field}, $\det\rho=\varepsilon^w\chi_0$ with $\chi_0$ of finite order, and Proposition~\ref{prop:PMdih} gives (PM) for fields $F\subset K\subset F_1$. The restriction $\rho|_{G_{F_1}}$ defines a maximal ideal $\mathfrak p$ of the characteristic-zero Hecke algebra in the residual summand attached to $(\rhobar|_{G_{F_1}})^{ss}$, and it is absolutely irreducible by Lemma~\ref{lem:nvs}. The solvable extensions in Proposition~\ref{prop:PMdih} need not preserve residual irreducibility: if $(\rhobar|_{G_{F_1}})^{ss}$ is reducible, a Teichmüller twist of finite order puts it in the form $1\oplus\bar\chi'$, possibly with $\bar\chi'=1$; such a twist preserves regularity, the de Rham property and non-splitness, and transports Hecke support after enlarging the tame level if necessary. Hence Proposition~\ref{prop:secthree} applies to every possible final residual summand. For $w\mid v\in\So$, $\rho|_{G_{F_{1,w}}}=\rho_v$ is reducible and non-split, with distinct Jordan--Hölder characters. By Proposition~\ref{prop:secthree}(2) there is $\mathfrak P$ above $\mathfrak p$ such that $\psi_{w,1}(\mathfrak P)$ is a subcharacter of $\rho_v$, hence the classical character, by Lemma~\ref{lem:BK}. By Theorem~\ref{thm:class} over $F_1$, which holds by Proposition~\ref{prop:secthree}(1), $\rho|_{G_{F_1}}$ is modular. Undoing the auxiliary twist and applying solvable descent along $F_1/F$ \cite[Lemma~2.2.2]{BLGGT14}, \cite{AC89}, $\rho$ is modular. \end{proof} \begin{remark}\label{rem:dih} By Lemma~\ref{lem:dihclass}, in characteristic $2$ the absolutely irreducible residual representations with solvable image are exactly the dihedral ones. There is no analogue of the bad dihedral case: since $F(\zeta_2)=F$, the usual restriction to $G_{F(\zeta_p)}$ creates no exception. The difficulty of solvable residual image for the Taylor--Wiles method, which explains the hypothesis of non-solvable image in \cite{Tun}, is handled by the method of \cite{OAI}, whose patching takes place at a characteristic $2$ curve with non-virtually-solvable generic image, and residual modularity is supplied by Proposition~\ref{prop:resmod}. In the nearly ordinary case, modularity of residually dihedral representations is due to Allen \cite{All14}, with no condition on the splitness and with an additional condition at $2$ when the inducing field is CM. Theorem~\ref{thm:dih} treats every absolutely irreducible residual representation with solvable image, under its stated hypotheses. For reducible residual semisimplifications, Theorem~\ref{thm:A} requires the ratio to extend to $G_\Q$ and to be non-trivial at the places above $2$, and for $F=\Q(\sqrt q)$, $q\equiv1\pmod8$ prime, Theorem~\ref{thm:Aquad} adds precisely the cases (b) and (c), still assuming that the ratio extends. The uncovered cases are therefore: non-extendible ratios; scalar ratios when (S) fails; and the non-trivial ratios which are trivial at $2$ excluded in Theorem~\ref{thm:Aquad}. \end{remark} \section{Remarks} \begin{remark}\label{rem:PM} Theorem~\ref{thm:PMproof} gives the potential form of pro-modularity stated in (PM): components over $K$ become pro-modular after restriction to $F_1$. This is the form produced by \cite{OAI}, whose propagation theorem is stated for potentially pro-modular loci. The deformation-theoretic arguments take place over $K$, and the Hecke algebras over $F_1$ are used at points of characteristic $0$ for classicality and solvable descent. The proof of the ordinary finiteness theorem also uses primes of characteristic $2$, through Proposition~\ref{prop:LG2} and Theorem~\ref{thm:OF}; it does not follow from points of characteristic $0$ alone. The field construction of Proposition~\ref{prop:fields} treats only the case $\bar\chi|_{G_{\Q_2}}\neq1$. The case $\bar\chi|_{G_{\Q_2}}=1$ is treated over $\Q$ in \cite{OAI} with marked places and an auxiliary quadratic field; for $F=\Q(\sqrt q)$ it is treated in Section~\ref{sec:quad} under its explicit hypotheses, with $F$ itself as the auxiliary field. For general $F$ it would require the corresponding field construction and Selmer control over $F$, including an analogue of \cite[Lemma~6.2]{OAI}. \end{remark} \begin{remark}\label{rem:OF} For odd $p$, Pan proves that the fully ordinary pseudo-deformation ring is finite over $\Lambda$ \cite[Theorem~5.1.2(1)]{Pan22}, by an $R=\T$ theorem for Hida families. Theorem~\ref{thm:OF} replaces it for $p=2$ by two steps: potential pro-modularity of all the components (Theorem~\ref{thm:PMall}), and the fact that a prime of the big Hecke algebra which is reducible at every place above $2$ comes from the fully ordinary Hecke algebra (Proposition~\ref{prop:LG2}). The second step cannot be obtained from Emerton's adjunction at points alone, since primes of characteristic $2$ need not be limits of points of characteristic $0$ which are reducible at $2$; it uses instead the description of $\Ord_B$ on the projective generators of the generic blocks. Upper bounds by Selmer groups are not available in characteristic $2$: the tangent space of the special fibre of the fully ordinary deformation space at a curve has dimension of the order of $2d$, because of the $2$-torsion of $\Q_2^\times$, the invisibility of oddness modulo $2$ at the real places, and the scalars in $\ad^0$. \end{remark} \begin{remark}\label{rem:St} Condition (St) is used in three places: to exclude CM good points (Lemma~\ref{lem:noCM}), which for odd $p$ followed from (R); to apply the theorem of Hida and Zhao at the potentially modular points of weight two, which for Hilbert modular forms over fields of even degree requires a square integrable local component \cite{Zhao14}; and to have full local--global compatibility away from $2$ at these points, by Carayol's theorem. Along $C$, Lemma~\ref{lem:St} preserves the scalar inertial semisimplification and the equation $P_{v_0}=0$ for the ratio of the Frobenius eigenvalues; non-zero monodromy is recovered at automorphic specializations by genericity and local--global compatibility, and is not asserted at every point of $C$. A Steinberg place above $2$ would not serve this purpose: its type need not persist along $C$, Thorne's theorem is applied to potentially crystalline good points, and Steinberg type with consecutive weights at $v\mid2$ forces scalar residual semisimplification at $v$, contrary to (R). \end{remark} \begin{remark}\label{rem:R} The present proof of Theorem~\ref{thm:B} uses $\bar\chi|_{G_v}\neq1$ to make the reducible locus at each place of $\Sn$ principal (Lemma~\ref{lem:red}), and in the generic-block argument of §\ref{sec:PM}. This is a requirement of the proof; we do not claim that the conclusion fails without it. Since quadratic characters are trivial modulo $2$, (R) excludes all cases in which $\rhobar$ takes values in $\GL_2(\F_2)$. \end{remark} \begin{remark}\label{rem:check} We record the verification of the results used for $p=2$. \begin{enumerate} \item \cite[Proposition~2.2.1]{BE10} is stated for an arbitrary prime $p$, for characters of classical weight $k\geq2$ satisfying the valuation conditions, which amount to unitarity, with $k=2$ treated separately; we use it only for $a_1>a_2$, that is $k\geq3$. \item Saito's local--global compatibility at $p$ \cite[Theorem~1]{Sai09} does not exclude $p=2$, and assumes that $[F:\Q]$ is odd or that $\pi$ is square integrable at a finite place; the remaining case is treated by Skinner \cite{Ski09}, whose argument covers $p=2$ explicitly. This is what is used in Lemma~\ref{lem:galois} and in Proposition~\ref{prop:good}. \item The theorem of Hida and Zhao \cite[Theorem~1]{Zhao14} is stated for an arbitrary prime $p$, for Hilbert eigenforms of parallel weight two which are nearly ordinary at all places above $p$, not of CM type, and square integrable at a finite place if $[F:\Q]$ is even; no condition on $p$ appears in loc.\ cit.\ or in Hida's theorem \cite{Hid13}, apart from unramifiedness conditions in the latter, which Zhao removes. \item In \cite[§1.1]{Tho26}, with $\HT(\varepsilon)=-1$, ordinary with Hodge--Tate weights $\{0,1\}$ means isomorphic to $\left(\begin{smallmatrix}\psi_1&*\\0&\varepsilon^{-1}\psi_2\end{smallmatrix}\right)$ with $\psi_1,\psi_2$ of finite order on inertia; this is the shape of $r|_{G_v}$ in Proposition~\ref{prop:good}(1), and \cite[Theorem~B]{Tho26} only assumes that the determinant is totally odd. \item The presentation used in Proposition~\ref{prop:GW} is \cite[Proposition~3.6 and Corollary~3.7]{OAI}, proved for $p=2$ in both coefficient characteristics. \item The theorem of Newton and Thorne \cite[Theorem~B]{NT23} is stated for every prime $p$, and its introduction explicitly allows $p=2$. \end{enumerate} Inputs \ref{P1} and \ref{P2} of Lemma~\ref{lem:blk} are \cite[Theorems~1.3 and~2.23]{Pas16}, which treats generic blocks for $p=2$ (the case $p>2$ being \cite[§B.1]{Pas13}); the action of the centre on $\Ord_B(J_i)$ is deduced from the Cayley--Hamilton relation on $\check{\mathbf V}(P)$ used in the proof of \cite[Corollary~2.25]{Pas16}, and \ref{P3} is \cite[Lemma~4.4]{PT21}, see also \cite[(2)]{Pas16} for its residual form. In the proof of Theorem~\ref{thm:PMproof}, the modifications of \cite[§7]{OAI} were checked against loc.\ cit.: Leopoldt's conjecture is used there only in \cite[Lemmas~3.8 and~7.3]{OAI}; the numerical conditions of \cite[(39)]{OAI} are replaced by those of item (2); the seed must be fixed before the fields, as in \cite[§7.2]{OAI}; and $K=F_a$ is cyclic over $F$ but not Galois over $\Q$, which is why (PM) is stated with $K/F$ Galois. In the proof of Proposition~\ref{prop:fields}, the Chebotarev conditions are compatible once no evaluation condition is imposed at the first conductor, whose inertness conditions are not of the form required by Lemma~\ref{lem:ev}; this costs one more conductor in the bound for $t$. \end{remark} \begin{remark}\label{rem:Afinal} In Theorem~\ref{thm:A}, the condition $\bar\chi|_{G_v}\neq1$ is used for the unique decomposition of reducible determinants at $v$, which identifies the classical character residually. Since the proof of Theorem~\ref{thm:A} works at a point of characteristic $0$, it is not essential there, except through Theorem~\ref{thm:PMproof}, whose proof uses $\bar\chi|_{G_{\Q_2}}\neq1$ in the field construction. For $F=\Q(\sqrt q)$, Theorem~\ref{thm:Aquad} removes this condition outside one subcase. \end{remark} \begin{thebibliography}{BLGGT14} \bibitem[AC89]{AC89} J.~Arthur and L.~Clozel. \emph{Simple algebras, base change, and the advanced theory of the trace formula}. Ann. of Math. Stud. 120. Princeton University Press, 1989. \bibitem[BC09]{BC09} J.~Bellaïche and G.~Chenevier. Families of Galois representations and Selmer groups. \emph{Astérisque}, 324, 2009. \bibitem[All14]{All14} P.~B.~Allen. Modularity of nearly ordinary $2$-adic residually dihedral Galois representations. \emph{Compos. Math.}, 150(8):1235--1346, 2014. \bibitem[BL94]{BL94} L.~Barthel and R.~Livné. Irreducible modular representations of $\GL_2$ of a local field. \emph{Duke Math. J.}, 75(2):261--292, 1994. \bibitem[Bru67]{Bru67} A.~Brumer. On the units of algebraic number fields. \emph{Mathematika}, 14:121--124, 1967. \bibitem[BE10]{BE10} C.~Breuil and M.~Emerton. Représentations $p$-adiques ordinaires de $\GL_2(\Q_p)$ et compatibilité local-global. \emph{Astérisque}, 331:255--315, 2010. \bibitem[BK90]{BK90} S.~Bloch and K.~Kato. $L$-functions and Tamagawa numbers of motives. In \emph{The Grothendieck Festschrift, Vol.~I}, Progr. Math. 86, 333--400. Birkhäuser, 1990. \bibitem[BLGGT14]{BLGGT14} T.~Barnet-Lamb, T.~Gee, D.~Geraghty and R.~Taylor. Potential automorphy and change of weight. \emph{Ann. of Math. (2)}, 179(2):501--609, 2014. \bibitem[Car86]{Car86} H.~Carayol. Sur les représentations $\ell$-adiques associées aux formes modulaires de Hilbert. \emph{Ann. Sci. École Norm. Sup. (4)}, 19(3):409--468, 1986. \bibitem[CDP14]{CDP14} P.~Colmez, G.~Dospinescu and V.~Paškūnas. The $p$-adic local Langlands correspondence for $\GL_2(\Q_p)$. \emph{Camb. J. Math.}, 2(1):1--47, 2014. \bibitem[Che14]{Che14} G.~Chenevier. The $p$-adic analytic space of pseudocharacters of a profinite group and pseudorepresentations over arbitrary rings. In \emph{Automorphic forms and Galois representations, Vol.~1}, London Math. Soc. Lecture Note Ser. 414, 221--285. Cambridge Univ. Press, 2014. \bibitem[DDT97]{DDT97} H.~Darmon, F.~Diamond and R.~Taylor. Fermat's Last Theorem. In \emph{Elliptic curves, modular forms \& Fermat's last theorem (Hong Kong, 1993)}, 2--140. International Press, 1997. \bibitem[Deo]{Deo} S.~V.~Deo. Effect of increasing the ramification on pseudo-deformation rings. Preprint, arXiv:1907.06608. \bibitem[Die26a]{Die26a} L.~V.~Dieulefait. Some instances of modularity for residually reducible representations in the mixed case. Appendix to L.~V.~Dieulefait and A.~Pacetti, Serre's conjectures for $\Q(\sqrt{13})$, preprint, arXiv:2610.38884, 2026. \bibitem[Die26b]{Die26b} L.~V.~Dieulefait. Fully ordinary subfamilies and the Fontaine--Mazur conjecture in the residually reducible mixed case. Preprint, 2026. \bibitem[DS74]{DS74} P.~Deligne and J.-P.~Serre. Formes modulaires de poids $1$. \emph{Ann. Sci. École Norm. Sup. (4)}, 7:507--530, 1974. \bibitem[Eme10a]{Eme10a} M.~Emerton. Ordinary parts of admissible representations of $p$-adic reductive groups I. Definition and first properties. \emph{Astérisque}, 331:355--402, 2010. \bibitem[Hid13]{Hid13} H.~Hida. Local indecomposability of Tate modules of non-CM abelian varieties with real multiplication. \emph{J. Amer. Math. Soc.}, 26(3):853--877, 2013. \bibitem[Jar97]{Jar97} F.~Jarvis. On Galois representations associated to Hilbert modular forms. \emph{J. Reine Angew. Math.}, 491:199--216, 1997. \bibitem[Kis09b]{Kis09b} M.~Kisin. Moduli of finite flat group schemes and modularity. \emph{Ann. of Math. (2)}, 170(3):1085--1180, 2009. \bibitem[LL79]{LL79} J.-P.~Labesse and R.~P.~Langlands. $L$-indistinguishability for $\mathrm{SL}(2)$. \emph{Canad. J. Math.}, 31(4):726--785, 1979. \bibitem[NT23]{NT23} J.~Newton and J.~A.~Thorne. Adjoint Selmer groups of automorphic Galois representations of unitary type. \emph{J. Eur. Math. Soc.}, 25(5):1919--1967, 2023. \bibitem[OAI]{OAI} OpenAI. Fontaine--Mazur modularity at the prime $2$. Preprint, October 6, 2026. The statements and numbering used here refer to commit \texttt{4eaee87548250b2682affda7d05d947c05554bae} of the repository \url{https://github.com/openai/math}, directory \path{preprints/Fontaine-Mazur-modularity-at-the-prime-2-October-6-2026}. \bibitem[Paš13]{Pas13} V.~Paškūnas. The image of Colmez's Montreal functor. \emph{Publ. Math. IHÉS}, 118:1--191, 2013. \bibitem[Paš16]{Pas16} V.~Paškūnas. On $2$-dimensional $2$-adic Galois representations of local and global fields. \emph{Algebra Number Theory}, 10(6):1301--1358, 2016. \bibitem[Pan22]{Pan22} L.~Pan. The Fontaine--Mazur conjecture in the residually reducible case. \emph{J. Amer. Math. Soc.}, 35(4):1031--1169, 2022. \bibitem[PT21]{PT21} V.~Paškūnas and S.-N.~Tung. Finiteness properties of the category of mod $p$ representations of $\GL_2(\Q_p)$. \emph{Forum Math. Sigma}, 9:e80, 2021. \bibitem[RT83]{RT83} J.~D.~Rogawski and J.~B.~Tunnell. On Artin $L$-functions associated to Hilbert modular forms of weight one. \emph{Invent. Math.}, 74(1):1--42, 1983. \bibitem[Sai09]{Sai09} T.~Saito. Hilbert modular forms and $p$-adic Hodge theory. \emph{Compos. Math.}, 145(5):1081--1113, 2009. \bibitem[Ser68]{Ser68} J.-P.~Serre. \emph{Abelian $\ell$-adic representations and elliptic curves}. Benjamin, 1968. \bibitem[Ski09]{Ski09} C.~Skinner. A note on the $p$-adic Galois representations attached to Hilbert modular forms. \emph{Doc. Math.}, 14:241--258, 2009. \bibitem[SW99]{SW99} C.~Skinner and A.~Wiles. Residually reducible representations and modular forms. \emph{Publ. Math. IHÉS}, 89:5--126, 1999. \bibitem[Tay89]{Tay89} R.~Taylor. On Galois representations associated to Hilbert modular forms. \emph{Invent. Math.}, 98(2):265--280, 1989. \bibitem[Tun]{Tun} S.-N.~Tung. On the modularity of $2$-adic potentially semi-stable deformation rings. Preprint, arXiv:1908.06174. \bibitem[Tho26]{Tho26} J.~A.~Thorne. Towards the Fontaine--Mazur conjecture for $\GL_2$. Preprint, arXiv:2608.07186, 2026. \bibitem[Wal81]{Wal81} M.~Waldschmidt. Transcendance et exponentielles en plusieurs variables. \emph{Invent. Math.}, 63(1):97--127, 1981. \bibitem[Wil88]{Wil88} A.~Wiles. On ordinary $\lambda$-adic representations associated to modular forms. \emph{Invent. Math.}, 94(3):529--573, 1988. \bibitem[Zha25]{Zha25} X.~Zhang. On the Fontaine--Mazur conjecture for $p=3$. Preprint, arXiv:2412.06812v5. \bibitem[Zhao14]{Zhao14} B.~Zhao. Local indecomposability of Hilbert modular Galois representations. \emph{Ann. Inst. Fourier (Grenoble)}, 64(4):1521--1560, 2014. \end{thebibliography} \end{document}