# Ordinary Count I across coefficient primes

**Support at fitted points.** The same-module augmentation and patching deductions give the original Hecke ideal containment over the coefficient DVR in each of the two runs, before arithmetic classicality. [Support on both prescribed modules](count_one_support_before_classicality.md)

This appendix proves the common trace calculation and the integral rank-three augmentation used in Proposition 7. The support argument uses the realized nice curves and the stated auxiliary-level comparisons. The one-character inequality, the companion rank-two support and the controlled characteristic-zero attachments over the fixed comparison field are premises of the joint length bound. The normalization of the strict group and its finite-layer class-group interpretation are in the review manuscript, §4.2. The finite ring, two-sided orbits and adjoint tests used by the one-character inequality are in the source appendix. [Count I](source_appendix.md#51-count-i) · [Single-curve detection](count_one_detecting_primes.md)

## The trace product

Let $a=e+2$, $D=2^a=[E:\mathbb Q]$, $N=2^aqd$, $K_0=\mathbb Q(\sqrt{-7})$, and $1\le j<t$. Write $X_j$ for the $D/2$ complex host characters of parity $(-1)^j$. For an eligible coefficient prime $\ell$ write $\lambda_{\ell,j}(\rho)=\operatorname{length}_O S(W)/e_O$ for the full strict length of §4.2 of the review manuscript, with $W=(\operatorname{Frac}O/O)(\rho^{-1}\kappa_\ell^{-j})$ and $e_O=v_O(\ell)$. The normalization is invariant under enlarging $O$: scalar extension of the defining strict kernels is flat and the length and $e_O$ acquire the same ramification factor. All characters can thus be considered over one splitting ring for each $\ell$. The exact kernels of the host characters partition $X_j$ and do not add multiplicities. [Normalized one-character inequality](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/FPropGKU.lean#L110-L172)

**Proposition (conditional Count I bound).** Assume the normalized one-character comparison in the source appendix, including its tangent and special-fibre hypotheses. Assume also the controlled-level classification of the admissible characteristic-zero representations over $K_0$ stated below. For every host and twist as above there is an integer $B_{N,j}\ge1$, chosen from the complex lists before the coefficient primes, such that
$$
 \sum_{\rho\in X_j}\lambda_{\ell,j}(\rho)\le 2v_\ell(B_{N,j})
 \quad\text{for every eligible }\ell,\qquad
 \log B_{N,j}\ll D N^{18}(j+1)^7\le (Nt)^{19}.
$$
In particular all the eligible lengths are finite under these assumptions. Their $\log\ell$-weighted sum over any finite set of eligible primes is at most $2\log B_{N,j}$. [Two-prime valuation sum](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/UnitaryThreeGroups/CorGSumLog.lean#L6-L73)

**The inputs and the size of the lists.** For a good split $p$ and $\ell\ne p$, put $g=\mathrm{Fr}_{w}^{\rm geom}$ at a fixed $w\mid p$ in $K_0$ and $\Psi=\rho\kappa_\ell^j$. If the reference trace $T_\rho(g)=1+\Psi(g)+\Psi(g)^{-1}$ is different from the trace of every admissible representation, the one-character comparison gives
$$
 \lambda_{\ell,j}(\rho)\le 2\sum_{\sigma\in\mathcal A_{\ell,\rho}}
 \operatorname{ord}_\ell(\operatorname{tr}\sigma(g)-T_\rho(g)),
 \qquad \operatorname{ord}_\ell(\ell)=1 .
 \tag{VI.6}
$$
The index set consists of the distinct $G_{K_0}$ representations from the two-sided orbits. The factor two comes from the upper and lower orbit multiplicities in the integral cotangent comparison. To use this inequality, the classification must cover *every* admissible point in the separation test. For type I it must give a regular algebraic conjugate-self-dual cusp over $K_0$ with $K(N)$-fixed vectors and highest weight $(j-1,0,1-j)$ at both embeddings. The associated representation is $r_\sigma=\sigma\otimes\kappa_\ell^{-1}$, with signed weights $(j-1,-1,-j-1)$ in the release and infinitesimal character $(j,0,-j)$. This is the level conclusion of the local comparison, using prescribed finite inertia and zero monodromy off $\ell$ and the potentially crystalline comparison at $\ell$ with the algebraic weights removed. The toral types at the level places with exponent $a_v=v_v(N)$ give the principal congruence bound, with conductor dividing $N^3\mathcal O_{K_0}$ of norm $N^6$. The conductor bound alone would permit a larger principal level. At $\ell=q,d$ the finite coefficient-place type is at most tame of exponent one. At $\ell\nmid N$ the required comparison gives spherical level there. Type II is covered by primitive rank-two newforms of weight $2j+1$ and levels dividing $(7N)^2$, with the prescribed nebentype and exact conductor as in the split-point proposition in the source appendix when the marked inertia is used. The larger newform list with all nebentypes at levels dividing $(7N)^2$ suffices, since it includes all systems allowed by the coarser admissibility level. [Admissible type-I comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/AdmissibleTypeIEvenLevel.lean) [Level comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/KeepLevel.lean#L30-L104) [Rank-two admissibility](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/KeepNumU.lean#L25-L82)

Take all such complex full systems, with their conjugates. In rank three their number is $\ll N^{18}j^6$. To see this, refine to $K(3N)$ and use a fixed finite CW model at level $K(3)$ with the split real centre removed. The level-three stabilizers are torsion-free by the integral congruence lemma at $3$, applied to the rank-six underlying integral lattices. The cover has degree at most $|\operatorname{GL}_3(\mathcal O_{K_0}/3N)|\le(3N)^{18}$. The Weyl formula for $(j-1,0,1-j)$ gives factors $j,j,j$ at each embedding, so the coefficient system has rank $j^6$. Each cusp contributes at least one dimension in cuspidal cohomology, and the sum of the dimensions is bounded by the lifted cell count times that rank. In rank two the index of $\Gamma_1((7N)^2)$ is at most $(7N)^4$. The valence bound or the dimension formula gives $\ll N^4(j+1)$ for the number of newforms, including conjugates. Thus the union $\mathcal S$ has
$$
 |\mathcal S|\ll N^{18}j^6+N^4(j+1).
$$
The constants depend on the fixed field, ranks, fixed base complex and fixed rational probes. Equality of the full spherical systems in rank three forces equality of the semisimple Galois representations by density and Brauer–Nesbitt. In rank two each distinct restriction $1\oplus U|_{G_{K_0}}$ can be assigned a distinct newform index since a single newform determines its restricted representation. Different newforms can yield the same restriction, and no injectivity is claimed in that direction. Repeated trace values at the probe are retained as separate system indices. [Cohomology count](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/TCardK.lean#L18-L37) [Borel–Serre](https://eudml.org/doc/142152) [Borel–Wallach](https://doi.org/10.1090/surv/067) [Conjugation of systems](https://www.numdam.org/item/AST_1990__183__77_0/)

**Geometric traces and their integral multiples.** Both $11$ and $23$ split in $K_0$. For $\alpha=(1+\sqrt{-7})/2$ one can use $w_{11}=(11,\alpha-5)$ and $w_{23}=(23,\alpha-10)$ since $\alpha^2-\alpha+2=0$. For a good degree-one probe $p$ set $R=p^j$ and $z_\rho=\rho(p)^{-1}$. The geometric Frobenius trace is
$$
 T_\rho(g)=1+R^{-1}z_\rho+Rz_\rho^{-1}.
$$
For the normalized trace $u_{p,s}$ put $x_{p,s}=R(u_{p,s}-1)$. In rank two the dual of $U(-j)$ is in Deligne's arithmetic convention, so $\operatorname{tr}U(g)=p^{-j}a_p(f)$ and $x_{p,s}=a_p(f)$. Deligne bounds its complex conjugates by $2R$ and $a_p(f)$ is integral. In rank three the release uses the roots $\beta_i$ of *arithmetic* Frobenius on $r_\sigma$ at a good place. Consequently $u_{p,s}=\sum_i(p\beta_i)^{-1}$. In particular the signed upper weight $j-1$ clears the **inverse** roots: the pinned Hodge–Newton bound gives $p^{j-1}\beta_i^{-1}$ integral. Equivalently the geometric trace $\sum_i\beta_i^{-1}$ is the first spherical Hecke eigenvalue in geometric normalization. On the integral coefficient system, the diagonal $\operatorname{diag}(p,1,1)$ and its inverse have lattice denominators bounded by $p^{j-1}$, since the range of first-coordinate algebraic weights is $[1-j,j-1]$. The good-place integral pullback and trace thus give integrality after the same factor. Multiplying $u_{p,s}$ by $R$ uses $p^{j-1}$ on this geometric Hecke eigenvalue. At the complex embeddings the moduli of $(p\beta_i)^{-1}$ have product $1$ and lie in $[p^{-1/2},p^{1/2}]$ by the unitary generic spherical bound. Convexity of the exponential on the cube section with sum of log moduli zero bounds their sum by $\sqrt p+1+1/\sqrt p$. Thus in both ranks $x_{p,s}$ is integral and $|u_{p,s}|\le\sqrt p+2$ at every embedding. [Rank-three eigenvalues and trace](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/Foundations/GaloisRepresentations/AdmissibleResidues/FrobeniusTraceCountBoundOfRatEigensystemCount.lean#L78-L145) [Arithmetic-to-geometric conversion](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/FrobeniusTraceCountBoundOfCmEigensystemCount.lean#L418-L461) [Deligne](https://eudml.org/doc/109627)

**The two integers.** Form
$$
 n_p=\prod_{\rho\in X_j}\prod_{s\in\mathcal S}
       (x_{p,s}-z_\rho-R^2z_\rho^{-1}).
$$
Each factor is $R(u_{p,s}-T_\rho(g))$. It is nonzero since $|x_{p,s}-z_\rho|\le R(\sqrt p+3)+1<R^2$ for $p\ge11$ and $j\ge1$. It is integral and has modulus below $2p^{2j}$. Galois permutes the pairs $(\rho,s)$, so $n_p$ is a nonzero rational integer and
$$
 \log|n_p|\le (D/2)|\mathcal S|(2j\log p+\log 2).
 \tag{VI.7}
$$
An equivalent norm calculation uses one norm per orbit of **pairs**, taken in the field fixed by the stabilizer of the pair. If a trace difference lies in a smaller field, its occurrences in the pair orbit still all count. The orbit degree is bounded by $(D/2)|\mathcal S|$. Taking the norm again for each conjugate already in the product would repeat the factors. There is no degree bound needed for a compositum of all the system fields. At $\ell\ne p$ the multiplier $R$ is a unit, all unused factors have nonnegative valuation, and the system injection for each character gives
$$
 \sum_{\rho\in X_j}\lambda_{\ell,j}(\rho)\le 2v_\ell(n_p).
 \tag{VI.8}
$$
This is the sum of the normalized valuations in one embedding. Galois stability makes that sum $v_\ell(n_p)$ for every embedding. [Integral product comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/Foundations/GaloisRepresentations/AdmissibleResidues/FrobeniusTraceCountBoundOfRatEigensystemCount.lean#L329-L403)

At $p=11,23$ the representative $-p$ of the real dyadic class is $1\bmod4$. Repeated squaring gives $v_2((-p)^{2^k}-1)=v_2(p+1)+k$, with initial values $2,3$ respectively. For $m=2^{a-2}$ the orders at $11,23$ are $h_{11}=m$ and $h_{23}=m/2$. These are even. Exactly two pairs of quadratic exponents satisfy either chosen parity, and each pair contributes a sign that permutes the $h_p$-th roots of unity. Thus at $11$ each $z\in\mu_m$ occurs twice and at $23$ each $z\in\mu_{m/2}$ occurs four times. Set $C_0=2,\ C_1=X,\ C_{k+1}=XC_k-R^2C_{k-1}$. Substituting $X=U+R^2/U$ gives $C_h(X)=U^h+(R^2/U)^h$. The $h$ values $z+R^2/z$ for $z^h=1$ are distinct, since a collision for unequal roots would give $zz'=R^2$. The two good-probe integers consequently have the form
$$
 n_p=\prod_{s\in\mathcal S}
  [C_{h_p}(x_{p,s})-1-R^{2h_p}]^{2m/h_p}.
 \tag{VI.9}
$$
For $a=4$ the polynomials in brackets are $X^4-4R^2X^2-(R^4-1)^2$ at $11$ and $X^2-(1+R^2)^2$ at $23$.

For $q,d>23$ choose $p=11$ and $p'=23$. If either divides the host modulus, replace each bad probe by a distinct member of $\{29,37\}$. These split in $K_0$ and are $1\bmod4$, hence avoid $N$ even on the smaller hosts. Formula (VI.7) and the defining pair product apply at these replacements. At $\ell=p$ use only $n_{p'}$, and at $\ell=p'$ use only $n_p$. At any other prime use the smaller valuation. Thus one can take $B_{N,j}$ to have the valuations of $\gcd(|n_p|,|n_{p'}|)$ off $\{p,p'\}$, and valuations $v_p(n_{p'})$ and $v_{p'}(n_p)$ at the two probes. In particular it divides $|n_pn_{p'}|$. At the standard probes the primes $11,23$ are themselves eligible only if $5\nmid j,11\nmid j$, respectively. The square of the finite host character remains trivial on inertia at $\ell=q,d$, so the required residual distinction there is still $\bar\kappa_\ell^{2j}\ne1$. Unique factorization, (VI.7) and the list count prove the proposition, using $D\le N$ and $j+1\le t$. The constants are independent of $\ell$, the coefficient fields, the auxiliary ramification sets, patching depths and the finite set being summed. The link and auxiliary levels may depend on the marked point in the existence proof, provided the classification returns to the fixed $K_0$ and stated levels before counting. [Count I hypotheses](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/HeightAndVanishing/Counts.lean#L9-L58) [Arbitrary finite prime sets](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/UnitaryThreeGroups/CorGSumLog.lean#L6-L73)

[Linked inputs to the common bound](#linked-inputs-to-the-common-bound)

## Rank-three augmentation on the projected ordinary modules

Fix one Count I run over $L/F$, $F=L^+$, with $\ell\ge5$, the definite rank-three group split at the chosen coefficient and auxiliary places, its retained integral tame type $\tau_0$ (including the dyadic factors), its ordered weight action and its scalar-test place $v_0$. Let $B=R_3^{\rm det}$ act on the actual base module $M_0$ through the determinant and ordered characters, and put $J_3=\operatorname{Ann}_B M_0$. The active determinant is in geometric normalization: the normalized chart representation and each ordered character are twisted by $\kappa_\ell^{-1}$ before comparison. We use full-torus definite ordinary control on this lattice, the exact fixed-type comparison including zero monodromy where imposed, and separating equivariant classical evaluations with the interpolated determinant and all three normalized ordinary steps. For the local tests these evaluations must give the marked split Weil–Deligne comparisons at *every* realized auxiliary level, including the inertia generator and Frobenius used by the deformation datum. The companion notes give the classical attachment and separation used here. Each run uses its own base module and level comparison. [Actual classical-level contract](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/PaLevel.lean#L20-L52) [Base determinant comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/BaseObjectHomExt.lean#L70-L136) [Classical attaching maps](count_one_classical_attachments.md) · [Base interpolation](count_one_image_interpolation.md)

**Proposition.** Under these hypotheses, for every realized Taylor–Wiles datum of depth $n$, the prescribed ordered residual summand $M_n$ at the full diagonal diamond level is finite free over $A[\Delta_n]$, where $A=O[[W_1,\ldots,W_{3d_F}]]$, $d_F=[F:\mathbb Q]$, and $\Delta_n=\prod_{b=1}^{q_{\rm TW}}(\mathbb Z/\ell^{v_\ell(Q_b-1)}\mathbb Z)^3$ with $Q_b\equiv1\bmod\ell^n$ the norm at the $b$-th place. Let $S_n$ be the ordered splitting algebra of the base Frobenius polynomials completed at the prescribed residual tuple. There are integral maps in both directions between $S_n\otimes_B M_0$ and $(M_n)_{\Delta_n}$. They commute with the enlarged determinant ring acting on the base side through the level-quotient map, and with the torus variables acting there by the labeled roots. Both composites are multiplication by the image of
$$
 \mathcal F_n=\prod_{b=1}^{q_{\rm TW}}\prod_{i\ne k}
   (U_{bi}-U_{bk})(U_{bi}-Q_b U_{bk}).
$$
The augmentation is an isomorphism after inverting this factor. The cleared auxiliary trace relations on $M_n$ have exponent $3!=6$, independent of the depth and number of places. [Taylor–Wiles rings and maps](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ThetaCoefficientMapEq.lean#L158-L236) [Transport and quantifiers](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/THasAutOf.lean#L19-L49)

*Proof.* At an auxiliary place use the maximal compact $K_b$, upper Iwahori $I_b$, and subgroup $I_{b,1}$ obtained by requiring the residue diagonal to belong to its prime-to-$\ell$ part. At finite weight precision the stabilizers are trivial even before imposing $\tau_0$. A rational stabilizer element has finite order since its powers lie in a compact adelic set, and at $v_0$ those powers lie in an odd, unramified depth-one congruence subgroup, where the logarithm excludes torsion. The diamond quotient thus acts freely on the level classes, with their coefficient fibres identified by translation. The resulting regular diamond modules give projectivity after ordinary and residual projection. Explicitly, the indicator of one class per orbit has sum of diamond conjugates equal to the identity. Compressing the indicator by the equivariant projector gives the same identity on its image, which splits the induced module over the diamond group ring. The indicators at the coefficient-place Iwahori level pull back to the weight tower, so the identity holds there as well. Full-torus control gives finite weight modules, with three copies of the free local-unit directions and the prescribed torsion values at each coefficient place. Thus the projected module is finite projective over the local ring $A[\Delta_n]$, hence free. The additional labeled Fitting projection commutes with diamonds and preserves freeness. The integral diamond norm identifies coinvariants with invariants on the regular module, hence on the projected module. It intertwines the ordered torus operators and gives the matching labeled summand at Iwahori level. No inverse of the diamond order occurs. [Definite ordinary control](https://doi.org/10.1007/s00208-018-1742-4) [Integral norm comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/LevOpOf.lean#L57-L100) [Ordered projection](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/NilpotentLevelLowering/OpToTW.lean#L53)

At the auxiliary maximal compacts the underlying functions and the three ordinary operators are the base ones. The common residual projector initially omits the new spherical operators. On each separating classical constituent the determinant is the prescribed residual determinant by density at the common good split primes and polarization. Its hyperspecial vector and split comparison make it unramified at the auxiliary place. Thus its reduction also gives the omitted spherical polynomial there. The additional residual projector acts as the identity on those constituents. By separation the projected hyperspecial module is $M_0$ over $A$. The enlarged determinant action there equals the base action pulled back across the level quotient. Equality of the determinant laws follows on the separating constituents and equality of the ordered characters uses all three ordinary steps. This identifies the module in the comparison with the module defining $J_3$. [Hyperspecial comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/BaseObjectHomExt.lean#L70-L136) [Determinant action](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/LevelUR2SmulKey.lean#L68-L90)

At the retained $v_0$, the local scalar test forces unramifiedness even if the residual Frobenius is not semisimple. Let $Q_0\not\equiv1\bmod\ell$ be the residue norm. The residual determinant gives unipotent inertia and one nonzero Frobenius eigenvalue. Wild inertia and the prime-to-$\ell$ part of tame inertia are trivial since their finite residual images would be both prime to $\ell$ and unipotent, and the congruence kernel is pro-$\ell$. For the remaining tame generator $T$ and arithmetic Frobenius $P$, the relation $PTP^{-1}=T^{Q_0}$ gives $\operatorname{Ad}(\bar P)\log\bar T=\bar Q_0\log\bar T$. The unipotent logarithm is quadratic in rank three and $\ell\ge5$. Conjugation by $\bar P$ is unipotent, so $\bar T=1$. Applying the same conjugation equation to the successive leading terms of $T-1$ proves $T=1$. [Scalar place and special-fibre conditions](source_appendix.md#special-fibre-finiteness-in-count-i)

For the integral local comparison write $C=O[x_1^{\pm1},x_2^{\pm1},x_3^{\pm1}]$, $Z=C^{\mathfrak S_3}$, and let $E_K$ be the unnormalized trace from Iwahori to hyperspecial invariants. With the Bernstein convention $T_i=b_i+(Q-b_i)s_i$, $b_i=(Q-1)/(1-x_{i+1}/x_i)$, the crossed-product expression is
$$
 E_K=\sum_{w\in\mathfrak S_3} w(H/V)[w],\qquad
 H=\prod_{i<k}(Qx_i-x_k),\qquad V=\prod_{i<k}(x_i-x_k).
$$
Indeed $T_i E_K=Q E_K$ determines the coefficients from the identity coefficient, and the term for the longest permutation is the product of the three reflection coefficients in its reduced word. On a spherical vector the trace acts on $h\in C$ by $\sum_w w(Hh/V)\in Z$, an integral identity by the Bernstein basis and alternating divisibility. Set $\mathcal F_Q(x)=\prod_{i\ne k}(x_i-x_k)(x_i-Qx_k)$ and write
$$
 \frac{\mathcal F_Q(x)}{H(x)}\prod_{i<k}(x_i-z_k)=\sum_\nu f_\nu(x)g_\nu(z).
$$
The quotient is polynomial. At $z=w(x)$ the selector product is $V$ for the identity and zero otherwise, by taking the first moved index. For the Iwahori module $W$ and its hyperspecial submodule $W_K$, use $h\otimes m\mapsto hm$ from $C\otimes_Z W_K$ to $W$ and $v\mapsto\sum_\nu f_\nu\otimes E_K(g_\nu v)$ in reverse. The selector proves the two composite identities and torus equivariance in the polynomial representation. They are integral identities: $C$ is free of rank six over $Z$ by successive adjunction of the first two ordered roots of the monic cubic, and $C\otimes_Z C$ embeds into its generic product over the six permutations. The same Bernstein coefficient identity gives the composite on $W$. These maps therefore specialize at repeated residual roots. Apply this at all auxiliary places, substitute the base Frobenius coefficients by Satake, and take the labeled completions. The determinant action commutes with the local operators, and the diamond norm gives the asserted augmentation maps. [Bernstein presentation](https://doi.org/10.1090/S0894-0347-1989-0991016-3) [Integral spherical comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/LevTwoOf.lean#L71-L118)

At a good characteristic-zero evaluation, the invertible contracting translation identifies the selected invariants with the corresponding torus part of the Borel Jacquet module. With the Jacquet modulus and the rank-three twist included, an unnormalized torus character in positions $i=0,1,2$ gives geometric roots $\alpha_i=Q^i\chi_i(\operatorname{Art}^{-1}\phi)$ and diamond values $\beta_i=\chi_i(\operatorname{Art}^{-1}\tau)$ in the release's coordinates. The geometric lemma gives a filtration with at most six torus-character quotients for the local constituent. On each such quotient, when the cleared factor is nonzero the local comparison gives the full characteristic polynomials of the sum of the three ordered Weil characters. In particular the Frobenius roots are distinct and none is $Q$ times another. The tame relation then kills monodromy and makes inertia diagonal in that Frobenius order. Equivalently, the unipotent part of the tame generator has logarithm in a Frobenius conjugation eigenspace of ratio $Q$ in arithmetic orientation, which is excluded by the factor. The full polynomial on Frobenius times powers of inertia identifies the ordered pairs. Hence, with $\phi_b$ geometric and $\delta_{bi}=1+Y_{bi}$ the diamond action, the cleared trace of $[g]$ times either of the expressions
$$
 \prod_i([\phi_b]-U_{bi}),\qquad
 \prod_{k\ne i}([\phi_b]-U_{bk})([\tau_b]-\delta_{bi})
$$
vanishes on each torus-character quotient. Where the factor is zero the same cleared scalar vanishes. The sixth power thus vanishes on the whole local filtration. Multiplicities of global constituents give direct sums, and the bound is place by place. Separation gives the identity on $M_n$. Transport uses the given level realization maps preserving the determinant, characters and marked local elements. This yields $\mathrm{HasAut}(B,J_3)$ with the stated ordinary and classical inputs. As $n$ increases the factor limits to $\prod_{b,i<k}(U_{bi}-U_{bk})^4$, which avoids the marked primes on the nice curves. [Local tame calculation](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/NilpotentLevelLowering/LocData.lean) [Uniform trace exponent](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/LocOkLevelModuleOfThetaData.lean#L110-L153) [Jacquet comparison](https://personal.math.ubc.ca/~cass/research/pdf/p-adic-book.pdf) [Geometric lemma](https://doi.org/10.24033/asens.1333)

## Detection and dimension along the endoscopic chain

**Endoscopic thick-prime propagation.** Keep the same $R_3^{\rm det}$ and the annihilator $J_3$ of $M_0$. A nice endoscopic curve has a polarized $2+1$ sum over its fraction field, with absolutely irreducible, inequivalent blocks on the cyclotomic kernel. It has the same ordered-character, separability and intertwiner conditions of the linked ordinary problem. Call a prime stable if its geometric determinant is absolutely irreducible. A thick prime has a reducible determinant and a nonsemisimple geometric fibre of the group algebra modulo the closed Cayley–Hamilton, ordered ordinary and prime-to-$\ell$ inertia relations. Suppose each consecutive pair of nice endoscopic curve kernels $\mathfrak p_i,\mathfrak p_{i+1}$ has a common thick prime $\mathfrak e_i$ below both. If a stable prime below $\mathfrak p_0$ contains $J_3$, then every stable or thick prime below the last curve kernel contains $J_3$. This is $\mathrm{P3}$, with $\mathrm{P2}$ the single-curve case. [Determinant-ring conditions](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/WeilGroupCharacters/UniversalOrdinaryDeterminantRing.lean#L226-L301)

The endoscopic chart has as many odd equations as odd generators $u_j$, and the equations have the form $M_{\rm ch}u=0$. The number of even variables exceeds the number of even equations by $3[L^+:\mathbb Q]+1$. On the determinant section defined by $\det M_{\rm ch}$, the minimal primes have quotient dimension at least $3[L^+:\mathbb Q]+2$ and are connected by pairs whose intersection quotients have dimension at least $3[L^+:\mathbb Q]+1$. The components used by the comparison are type I or thick. To see thickness at an endoscopic prime of this section, set $u=0$ and differentiate along a nonzero vector in the kernel of the specialized $M_{\rm ch}$, clearing denominators. Parity makes the derivative vanish on the even equations and ordered characters. The kernel equation makes it vanish on the odd equations. The odd representation entries generate the odd ideal, so some entry has nonzero derivative. Use the differentiated middle column to form an extension of the middle character by the outer two-dimensional block. The product rule gives the representation law and preserves the ordered products, including their starred versions. A splitting vector with middle coordinate $1$ has both outer coordinates zero, by comparing the marked element and its star using the unit difference of the outer diagonal entries. Splitting would therefore kill the differentiated column, and polarization would kill the opposite entries as well. The extension stays nonsplit over the geometric fraction field. The linked scalar twist and pullback preserve the determinant law, ordered products and inertia test. Continuity gives an action of the closed group-algebra quotient, whose semisimplicity would split the extension. This gives thickness on contraction to $R_3^{\rm det}$. [Endoscopic presentation and chart dimensions](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/FrobeniusSmoothVectors/Integral.lean#L71-L101) · [Determinant section and components](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/FrobeniusSmoothVectors/ChainedOfComap.lean#L72-L119) · [Derivative and extension](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/FrobeniusSmoothVectors/ThickOfDer.lean#L95-L152) · [Kernel direction](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/FrobeniusSmoothVectors/ThickOfDer.lean#L168-L249) · [Thickness under contraction](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/ThickOf.lean#L141-L197)

For the whole chain choose one Taylor–Wiles family using the union of finite detecting sets of cyclotomic-kernel elements with separable polynomials at every endpoint. Split the roots by injective coefficient extensions and retain the determinant and ordered characters. Going down in the finite free coefficient and splitting extensions lifts each junction below the chosen lift of its first curve. Going up from that same junction gives the lift of its second curve. The common augmentation puts both curves and their junction in the spectrum of the limiting relation quotient, with the patch variables zero. The Frobenius difference factor avoids every marked prime. Here $a=3[L^+:\mathbb Q]$ and $b=3q_{m TW}$ for this common system. The argument uses separating classical evaluations on $M_0$ and its matching auxiliary-level modules, freeness over the prescribed diamond group rings, and the determinant and ordered Galois comparisons at the split patch places. The Frobenius and tame relations hold with the uniform finite-level exponent $3!=6$ after clearing the difference factors. The augmentation maps have composites equal to the limiting difference factor. The $b$ patch variables and the $1+a$ weight parameters give dimension exactly $1+a+b$ on every minimal prime of the completed patched support. The limiting relations lie in the radical of the patched annihilator. Nonsemisimplicity persists at the lifted junction, since the group-algebra quotient with the limiting relations surjects after residue-field extension onto the nonsemisimple augmentation quotient. [Common detection](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/Choice.lean#L14-L40) · [Lifting the chain](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/PatchingBaseChange/ChainLift.lean#L16-L75) · [Same-module auxiliary tower](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/THasAutOf.lean#L19-L49) · [Completed support and augmentation](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/LiftPt.lean#L76-L175) · [Nonsemisimplicity at the lifted junction](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AnnihilatorBaseChange/NonssT.lean#L69-L99)

**Detection along an endoscopic chain.** For one normalized $2+1$ endpoint over $A_x=k_x[[t_x]]$, put $\mathcal E=\operatorname{Mat}_2\oplus\operatorname{Mat}_1$ and let $\mathcal O_{\rm off}$ be the two off-block rectangles. Let $\kappa_1,\ldots,\kappa_g$ lift a basis of the untwisted ordinary polarized odd Selmer space. The paired twisted dual $\mathcal D$ has even slot $b$ in $\mathcal E(1)$ and $g$ odd slots $\lambda_i$ in $\mathcal O_{\rm off}(1)$. With $\varepsilon_i\varepsilon'_j=\delta_{ij}\eta$ as the only nonzero products of nonconstant slots, its twist acts through $(1+\sum_i\varepsilon_i\kappa_i)r$. At $s$ in the full cyclotomic kernel the scalar test is
$$
 \operatorname{tr}\!\left(b(s)r(s)+
         \sum_i\lambda_i(s)\kappa_i(s)r(s)\right).
$$
It is the $\eta$-coefficient of the trace and kills polarized coboundaries. The odd information is the pairing term. The trace of a single off-block matrix times $r(s)$ is zero. [Paired trace](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ThetaCoefficientMapEq.lean#L243) [Coefficient multiplication](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/PairedDualFirstOrderDualMatrixSpace.lean#L120)

To prove detection, use dense simple spectrum and continuity to make the trace vanish on the whole kernel. In its fraction-field group algebra the image of $r$ is $\operatorname{Mat}_2\oplus\operatorname{Mat}_1$ by absolute irreducibility and inequivalence. Write $I=\ker r$ on that algebra, and $P_i(s)=\kappa_i(s)r(s)$, $L_i(s)=\lambda_i(s)r(s)$, extended linearly. Evaluate the $\eta$-trace on $aE_{vv}b'E_{uu}$ using preimages of the matrix units, for $a,b'\in I$ and $u,v$ in opposite blocks. The mixed product rule gives
$$
 \sum_i\!\left(P_i(a)_{uv} L_i(b')_{vu}
             +L_i(a)_{uv}P_i(b')_{vu}\right)=0.
$$
If a linear combination of the $P_i,L_i$ kills such an entry on $I$, multiplying by block matrix units makes the corresponding rectangle of the derivation descend to the matrix-block algebra. A derivation from this algebra to the rectangle is inner by applying it to the central projector onto the row block. On the cohomology of the cyclotomic kernel, conjugation by a lift with $\bar\kappa_\ell\ne1$ separates its untwisted and twisted parts by their eigenvalues $1$ and $\bar\kappa_\ell^{-1}$. The rectangles have no invariants there, so inflation–restriction and the polarization make the descended restrictions boundaries on the base group. Independence of the $\kappa_i$ forces their coefficients to vanish. With $b'$ fixed this forces each $L_i(b')_{vu}=0$. The rectangle test then makes each $\lambda_i$ a boundary. Subtract the coupled boundary, including its contribution to the even slot. The remaining even derivation descends by the perfect trace pairing on the block algebra and is inner. The residual twist kills scalar cohomology on the cyclotomic quotient by the commuting-elements cocycle identity used for type I. This gives detection on all of $H^1(\Gamma,\mathcal D[1/t_x])$. [Quadratic trace polarization](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/DeterminantPadicFree/RelPair.lean#L23) [Rectangle test](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/DeterminantPadicFree/BlockPrinc.lean#L75) [Cyclotomic separation](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/DeterminantPadicFree/DTwAlt.lean#L5) [Algebraic detection](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/DeterminantPadicFree/DetAlg.lean#L71)

The twisted dual has rank $5+4g$, its real fixed spaces have dimension $4+2g$, and its global invariants vanish by the same block-span and cyclotomic tests. At real places transpose on the two diagonal blocks fixes respectively three and one coordinates, and the real involution exchanges the two off-block rectangles in each odd slot. As in the type-I Euler calculation, finite-coefficient finiteness and duality give the dimension $b_x=(1+2g)d_F+\operatorname{rank}_{A_x}H^2(\Gamma,\mathcal D)$. At each endpoint choose a basis of scalar tests in the common open dense simple-spectrum locus. The union size lies between $\max_i b_i$ and $\sum_i b_i$, where $b_i$ are the individual dimensions. The lower bound applies to any common scalar detecting set. Chebotarev gives one common marked family for the entire chain, with $q_{\rm TW}$ places at each depth and with the tame normal-closure property described in the detecting-prime proof. The finite test choice and the constants in the truncated cohomology bounds belong to the chosen linked chain. No estimate of their size in the host level is needed in the later trace product. [Real Euler characteristic](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/ArchH0Card.lean#L9) [Common finite choice](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/Choice.lean#L14) [Prime family](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/ArPl.lean#L13)

[Chebotarev construction and first-order duality](count_one_detecting_primes.md)

**Odd obstructions at the same levels.** For a $2+1$ curve the two off-block rectangles give an odd coefficient module of rank four over $A_e$. Each real fixed space has rank two, as does the quotient by upper triangular entries at $v\mid\ell$. Impose zero class in this local quotient and the unramified condition at the fixed unramified places. At the selected intertwiner place and at $Q_N$ there is no local quotient in the obstruction complex. The group $H_e$ consists of global $2$-cocycles with local $1$-cochains whose differentials are the projected restrictions, modulo compatible coboundaries and permitted local cocycles. Its size is bounded by the product of the orders of the degree-one localization cokernel and the degree-two localization kernel. In this product global Euler characteristic gives $|A_e|^{2d}$, canceled by the local factors $|A_e|^{2\sum_v d_v}$. At the fixed unramified places the unramified $H^1$ and the local $H^0$ have equal size and cancel. The bound is the odd Selmer cardinality times the ordinary quotient invariants at $v\mid\ell$ and the degree-two localization cokernel. The distinct ordered characters bound those local invariants. Poitou–Tate bounds the cokernel by twisted odd dual invariants, bounded in turn by the cyclotomic block span. [Euler and obstruction count](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/OdCount.lean#L8-L79) · [Poitou–Tate](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/CkCastMod.lean#L138-L166) · [Dual invariants](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/DualBound.lean#L248)

The base odd Selmer count is at most $K^{ge+O(1)}$. The auxiliary tame values lie in the odd Frobenius centralizer, of rank zero by distinct eigenvalues across the blocks. They contribute only a bounded factor. The coefficient exact sequences for $0\le e\le m$ cost at most a second degree-two cokernel factor, so B2 uses
$$
 \bigl|H_m/t^e H_m\bigr|\le K^{ge+O(1)}
$$
with uniform additive error in the exponent, for sufficiently large $N$ at fixed $m$. The DVR generator argument gives a dependence among any $g+1$ obstruction classes after multiplying by a bounded power of $t$. In the limit the liftable $g$-tuples of even tangent directions have codimension at most $g$. These Euler and duality calculations use the stated curve conditions on the linked field and require no class-number divisibility assumption. [Base Selmer count](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/ImgCard.lean#L340-L364) · [Auxiliary Selmer count](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/ExistsCore.lean#L385) · [Arithmetic B2](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/TaylorWilesObstructionBound.lean#L25-L46) · [Truncation and dependence](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/ObstructionBoundOfDuality.lean#L145-L199)

At one of the endoscopic completions $C$, the block construction gives a finite injective commutative extension $C\hookrightarrow C^+=C\oplus N$. The diagonal blocks have entries in $C$, and the off-block entries lie in $N$. Products of pairs in $N$ are scalars in the maximal ideal of $C$ and generate the reducibility ideal $I_{\rm red}$. The odd Selmer basis after inverting the curve parameter has size $g$, and the odd spanning result gives $g$ generators $m_j$ of $N$. If $W_0$ is the space of directions that lift in every individual slot, the first-order bound gives $\dim W_0+g^2\le a+b$ by counting the $g$ independent odd classes in each of $g$ slots as well. Choose at most $g$ rows spanning the annihilator of the liftable tuples and pad with zero rows to size $g$. Their $g^2$ entries span the annihilator of $W_0$. The $g^2$ labels occupy distinct formal coordinates even if their images are dependent. Adding lifts of a basis of $W_0^\vee$ and padding to $a+b$ gives the formal generators. This yields a presentation
$$
 S=\mathcal O_x[[X_1,\ldots,X_{a+b},v_1,\ldots,v_g]]\twoheadrightarrow C^+,
 \qquad v_j\longmapsto m_j.
$$
The rows give relations on $N$ after correcting their coefficients in $(\varpi,\mathfrak m_C^2,I_{\rm red})$. In $S$ these are the entries of $zv$ for a square $g$-by-$g$ matrix $z$. All $g^2$ entries of $z$ together with the $g$ entries of $v$ are cotangent independent in $S$, since the corrections lift into $(\varpi,\mathfrak m_S^2)$. Independence here is a statement about the formal variables. [Odd generators](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/SelmerScaling/DualEx.lean#L94-L134) · [Obstruction estimate](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ArchimedeanH0Cards/ObstructionBoundOfDuality.lean#L145-L201) · [First-order count](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/SelmerScaling/FirstOrderLiftConstantPart.lean#L134-L153) · [Rows and generators](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/SelmerScaling/AlCSmul.lean#L45-L82) · [Lifted relations](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/SelmerScaling/CotangentIndependentOfResidues.lean#L74-L158)

The determinant of the relation matrix in $C$ annihilates $N$ by the adjugate identity. At a stable prime the trace discriminant forces some product of off-block entries to survive, so the prime contains this determinant. At a lifted thick prime the annihilator of $N$ lies in the prime. If an annihilator were invertible in the witnessing field, the specialized group algebra would be a quotient of the semisimple algebra generated by the diagonal block matrix units. Thus at either kind of prime every lift to $C^+$ pulls back to $V(zv,\det z)$ in $S$. This locus is irreducible. In its projective incidence description, a line $\langle\lambda\rangle$ lies in the kernel of $z$ and contains $v$. On the chart $\lambda_c=1$, the equations $z\lambda=0$ and $v_j=\lambda_jv_c$ for $j\ne c$ have independent linear terms along the closed fibre. The incidence scheme is regular there, hence everywhere by properness over the local base. Its components are disjoint and each meets the irreducible closed fibre $\mathbf P^{g-1}$, giving irreducibility. Its image is the indicated locus, since $v$ itself gives a kernel line when nonzero and $\det z=0$ gives one when $v=0$. A stable prime ensures $g\ge1$. [Trace discriminant and block comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AutomorphicDetection/GalOut.lean#L16-L38) · [Nonsemisimple block test](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/ClosureConjugation/GrThick.lean#L77-L85) · [Determinant locus](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/AlgebraTools/CaDetMin.lean#L11-L50)

Imposing the $g^2$ additional equations $z_{ij}=\delta_{ij}v_i$ on $S/(zv)$ forces all $v_i^2=0$. The resulting spectrum equals the locus of the $g^2+g$ independent parameters $(z,v)$, so the height bound gives $\dim(S/(zv))+g\le\dim S=1+a+b+g$. Let $Z$ be a stable minimal prime of the patched support in $C$. A prime over $Z$ in $C^+$ pulls back to a prime $\widetilde Z$ of $S$ whose quotient has dimension $1+a+b$ by integrality. It contains the least prime of $V(zv,\det z)$. Strict containment would make the quotient by the least prime have dimension at least $2+a+b$, contrary to the bound on $S/(zv)$. Hence $\widetilde Z$ is the least prime. Contracting through the finite extension gives $Z\subseteq Q$ for every stable or lifted thick prime $Q$ of $C$. In the type-I case there is a single block and the dimension equality makes the presentation a regular local domain. In the endoscopic case it identifies the determinant locus and gives containment at the two kinds of target prime. [Dimension bound](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/AlgebraTools/CaDetDim.lean#L18-L89) · [Integral comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/AlgebraTools/CaDetCore.lean#L9-L48) · [Type-I comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/SelmerScaling/PresOut0.lean#L9-L68)

Lift the supported stable starting prime on the augmentation fibre and take a minimal support prime $Z$ below it. Its trace discriminant still survives. At a junction let $Q$ be a lift of the common thick prime in the first completion. The containment $Z\subseteq Q$ gives support at $Q$ and, by augmentation, $J_3\subseteq\mathfrak e_i$. To reach stable generizations of the second curve, transport the stable prime $Z$ itself. Take inverse images before quotienting by the limiting relations and contract to the ring of the common finite patched module. The contraction lies below the marked prime of the second curve, because $Q$ lies over the same augmentation junction there. Faithful flatness of local completion lifts that contraction. The lift stays on the support since its residue-field fibre is obtained by extending scalars from a nonzero fibre of the common module. It has the same discriminant on contraction, so taking a minimal support prime below it restores the dimension hypothesis for the next step. At the last curve the containment for a lift of the target prime and the augmentation comparison give $J_3$ in that prime. [Chain induction](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AnnihilatorBaseChange/ChainAbs.lean#L7-L70) · [Movement between completions](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AnnihilatorBaseChange/PmMove.lean#L8-L23) · [Augmentation support](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/PatchingModules/AnnihilatorBaseChange/PmFib.lean#L7-L31)

## Linked inputs to the common bound

Fix the linked CM field $L/F$, $F=L^+$, its marked frame and the native fixed-type ordinary module of each run. In rank two the comparison twist $k_a$ satisfies $k_a k_a^c=\kappa_\ell^{-1}$. Retain the dyadic and other finite types, the weight character, the two ordered steps and the residual projector. The odd split depth-one level kills the definite stabilizers. Ordinary control and the separating fixed-type classical fibers give a module $X_0$ finite free over $O[[W_1,\ldots,W_{2[F:\mathbb Q]}]]$, with the polarized determinant and both ordered characters in its faithful Hecke image. The supported seed gives $X_0\ne0$. At the auxiliary levels the stabilizer argument and the relative trace criterion give freeness over the full two-coordinate diamond algebra. The diamond norm identifies its coinvariants with the appropriate Iwahori invariants. The integral augmentation factors and trace relations are described below. [Definite ordinary control, §2.5](https://doi.org/10.1007/s00208-018-1742-4) · [Definite transfer, Theorem 2.2](https://arxiv.org/pdf/0906.4189v3#page=17) · [Auxiliary-level contract](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/THasAutOf.lean#L19-L49)

Use the linked cohomology bounds, the marked separation and the supported nice type-I curve. The auxiliary places are fixed on the curve. The patching dimension and augmentation comparison give annihilator containment for every prime below the curve kernel, including mixed characteristic. On the normalized rank-two frame the integral determinant comparison, the strict triangular class and the linked chart dimension and connectedness bounds give that containment on the off-triangular locus and the fixed-weight radical test. This supplies the rank-two corner in rank three. [Rank-two propagation](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/PropagationTheoremGL2.lean) · [Rank-two chart dimensions](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/ComponentsGoodRankTwo.lean#L129-L163)

In rank three, the finite weight action, the supported seed and P1 and P3 for the same projected Hecke ideal are inputs to the chart argument. P1 gives support below a supported nice type-I curve. P3 says that a supported type-I prime below the first curve of a chain of nice endoscopic curves with thick junctions puts every type-I prime below the last curve on support. Using the linked dimension bounds and the connected charts gives support at each type-I prime. If $M$ is the image of the rank-three Hecke annihilator in the invariant ring $B$, the rank-two corner gives an ideal $I_E$ below the contraction of each endoscopic prime in the off-triangular locus. Thus $I=M\cap I_E$ lies below every off-triangular contraction. Each of $M+\mathfrak l$ and $I_E+\mathfrak l$ has radical containing $\mathfrak m_B$ at the fixed-weight ideal $\mathfrak l$. Since a prime containing $I+\mathfrak l$ contains one of these two ideals, $\mathfrak m_B\subseteq\sqrt{I+\mathfrak l}$. This is the off-triangular branch of the characteristic-$\ell$ DVR test. The triangular branch uses the frame's finite exponent for unramified abelian characters. The two branches give the reference polynomial on the same linked subgroup. The invariant-monomial argument then gives the degree-zero finiteness assertion on the rational chart. [Type-I chart comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/FirstPrimeConditionTransfer.lean#L5) · [Endoscopic chain comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/SecondThirdPrimeConditionTransfer.lean#L27) · [Normalized rank-three propagation](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/PropagationTheoremGL3.lean#L150) · [Fixed-weight DVR test](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/FinPtOf.lean#L183)

The [fixed-weight DVR proof](count_one_fixed_weight_finiteness.md#4-from-dvr-tests-to-the-finite-algebra-used-in-the-model) uses the first paired realization to give finiteness of the original degree-zero algebra. On each run, [projected classicality](count_one_projected_classicality.md) gives the arithmetic eigensystem of the fitted point once the point kills that run's Hecke kernel. Given the integral point realization and support in both runs, the marked ordinary flag and residual separation give absolute irreducibility on the linked subgroup. The two cuspidal attachments are for the same restriction of $R=\sigma\otimes\kappa_\ell^{-1}$, where $\sigma$ is the original representation over $K_0$. Strong multiplicity one joins the local comparisons away from the two distinct marked places. BLGGT Lemma 2.2.2 applies because $L/K_0$ is solvable Galois, $R|_{G_L}$ is absolutely irreducible and the prescribed polarization matches that of the linked cusp. It descends $R$ itself at the same coefficient place, with multiplier $\eta\kappa_\ell^{-2}$ on $G_{\mathbb Q}$, where $\eta$ is the quadratic sign of $K_0$. At the original level, the specified inertia off $\ell$ and the ordinary crystalline ideal at $\ell$ give the same finite Weil–Deligne inertia multiset $(\rho,1,\rho^{-1})$ and zero monodromy. Its three character conductors give the principal level $K(N)$ and, with that exact inertia, conductor $(\operatorname{cond}\rho)^2\mathcal O_{K_0}$. The probe trace is $p^{-1}\operatorname{tr} R(\mathrm{Fr}^{\rm geom}_{w})$. The descent uses the original point's local conditions, including at $\ell=q,d$. [Two-run gluing](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/Foundations/GaloisRepresentations/PlainTorsionPairs/IrrArithPointsAutomorphicAway.lean#L17-L69) [Controlled level comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/KeepLevel.lean#L30-L104) [BLGGT, Lemma 2.2.2](https://arxiv.org/pdf/1010.2561v2#page=34)

The common bound in (VI.6)–(VI.9) above still uses the finite normalized model and tangent hypotheses of the one-character inequality and the linked constructions with their same-module control and classical comparisons for every admissible point. The rank-two, chart, and descent deductions above apply under their respective hypotheses. In particular the two runs must supply their own supported arithmetic specializations of the same restricted determinant and the local comparison on their own projected modules. The odd rational rank-two block uses the separate application of Pan in the common-list argument.

In the rank-two normalization the active scalar $k_a$ twists both ordered characters and satisfies $k_a k_a^c=\kappa_\ell^{-1}$. At a split auxiliary place of norm $Q$, the two integral Iwahori-to-spherical maps have composite
$$
 (U_1-U_2)^2(U_1-QU_2)(QU_1-U_2).
$$
They use the diamond norm and the same hyperspecial base module. This identity holds on the labeled summand even when the residual roots agree. The factor multiplied by either cleared trace relation vanishes on each of the two torus-character quotients of the local Jacquet filtration, giving the uniform exponent two. After patching, the free weight and diamond directions give dimension $1+2[L^+:\mathbb Q]+2q_{\rm TW}$, with $q_{\rm TW}$ the number of chosen Taylor–Wiles places. The type-I cotangent bound at a nice curve equals the number of those variables. This identifies all completed support and descends by augmentation to every prime below the curve kernel. The linked rank-two chart uses component dimension at least $2[L^+:\mathbb Q]+2$, intersections of dimension at least $2[L^+:\mathbb Q]+1$, and its separate exclusions for the triangular locus and coefficient-place character collisions. Its finite-weight radical conclusion supplies the outer-corner ideal in the rank-three chart. [Rank-two chart comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/ComponentsGoodRankTwo.lean#L129-L163) · [Auxiliary-level contract](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/THasAutOf.lean#L19-L49)

For the rank-three descent the flag and the residual inertia ratio also give a direct test for irreducibility on any open subgroup of $G_{K_0}$. Take a normal open core and choose an inertia element in it whose cyclotomic value has infinite order and finite host value is one. Its three ordered eigenvalues are distinct. If the irreducible representation were reducible on the core, its restriction would split into three character lines, with the ambient group acting by monomial matrices in this basis. An inertia element $x$ with $\bar\Psi(x)^2\ne1$ preserves the ordinary flag and therefore fixes those three lines. A group element $g$ acting by a three-cycle would give $\operatorname{tr}\sigma(gx^n)=0$ for $n=0,1,2$. The residual trace makes the three distinct values $\bar\Psi(g)\bar\Psi(x)^n$ roots of $Z^2+Z+1$, which is impossible. Thus the linked cusp is attached to the irreducible restriction. At each original finite place the potentially crystalline or finite-inertia comparison removes the Tate powers from the Weil–Deligne inertia. The marked finite characters individually give vectors on the principal congruence subgroup by the principal-series model. This includes repeated quadratic inertia at $\ell=q,d$. [Open-subgroup test](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/CurveDVRSpecialization/MatIrrOpenGd.lean#L342-L382) · [Crystalline ordinary model](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/CrystallineOrdinaryIdeals/RtPoints.lean#L7-L15) · [Local-to-global level comparison](https://github.com/Deicyde/riemann-hypothesis/blob/e7c8972c701d3396947808ab20cc16dc14623d33/src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/KeepLevel.lean#L30-L104)
