Structured proof · Unit 133
lemma IsTwoFactor.exists_near_one
IsTwoFactor and assume IsTwoFactor( l , k , j , \tau , B , e , \varphi ) ( H ). Let r \in \mathbb{R} with 1 \le B (hB), 0 < r ( e0 ) and r \le 1 / 100 (he), and let s \in S with \lVert j_{1} ( s ) - a_{\varepsilon} ( j_{1} ( s ) ) \rVert^{2} + \lVert j_{2} ( s ) - a_{\eta} ( j_{2} ( s ) ) \rVert^{2} \le r^{2} ( h ) (\lVert \cdot \rVert is the Frobenius norm, the norm in force in this file). Then there is t \in S with \theta_{l , k , j , \varphi} ( s ) = \theta_{l , k , j , \varphi} ( t ), \lVert j_{1} ( t ) - 1 \rVert \le 10 r and \lVert j_{2} ( t ) - 1 \rVert \le 10 r, where \theta_{l , k , j , \varphi} ( s ) = laplaceIntegrand( l , k , j , \varphi , s ).Let \chi : n \to \mathbb{Z} be the indicator of the complement of e ( X ): \chi_{i} = 0 if i = e ( \mathrm{inl} x ), \chi_{i} = 1 if i = e ( \mathrm{inr} i' ).
Write g = j_{1} ( s ), g' = j_{2} ( s ). Collect: ( K ) the property
exists_diagonalof H; ( R )norm_sq_add_re_trace_lefor g with a = B, C = 3 B, v = \chi, w = - \Lambda ( l ), i.e. B \lVert \operatorname{diag} ( \chi ) ( g - 1 ) \rVert^{2} - 2 \operatorname{Re} \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) ( g - 1 ) ) \le 6 B \lVert g - a_{\varepsilon} ( g ) \rVert^{2} under its hypothesis; the identity \operatorname{Re}phase( l , k,subOnePair( j , s ) ) = 0 (re_phasewithphase_eq), i.e. \operatorname{Re} \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) ( g - 1 ) ) = \operatorname{Re} \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) ( g' - 1 ) );norm_sq_add_re_trace_lefor g with a = - 1, C = 0, v = \chi, w = - \chi, i.e. - \lVert \operatorname{diag} ( \chi ) ( g - 1 ) \rVert^{2} - 2 \operatorname{Re} \operatorname{tr} ( \operatorname{diag} ( \chi ) ( g - 1 ) ) \le 0; andnorm_sq_add_re_trace_lefor g' with a = 0, v = 0, w = \Lambda ( k ), C = 3 B, whose hypothesis isweight_bounds_right: 2 \operatorname{Re} \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) ( g' - 1 ) ) \le 6 B \lVert g' - a_{\eta} ( g' ) \rVert^{2}.Let Q = \iota_{\mathbb{C}} ( e \circ \mathrm{inl} ), the n \times X matrix of the coordinates e ( X ).
Uses
inclMatrixunit 29Q^{H} Q = 1, \operatorname{diag} ( \chi ) = 1 - QQ^{H} (QQ^{H} is the coordinate projection onto e ( X )), and \operatorname{diag} ( \varepsilon ) Q = Q (\varepsilon = 1 on e ( X ),
sign_inl).Lean states
Qᴴ * Q = 1 ∧ intDiagonal χ = 1 - Q * Qᴴ ∧ signMatrix ε * Q = QUses
IsSteepunit 133,inclMatrixunit 29,signMatrixunit 29,reindex_equivunit 29Normalize every hypothesis: unfold \chi, reindex sums over n along e, and use \Lambda ( l ) ( e ( x ) ) = 0 (
weight_eq_zero).Let c = \operatorname{diag} ( \chi ) ( g - 1 ): the rows of j_{1} ( s ) - 1 outside e ( X ).
\lVert c \rVert^{2} \le 6 r^{2}. Adding ( R ), the last instance of step 2 and the equality of real parts gives B \lVert c \rVert^{2} \le 6 B ( \lVert g - a_{\varepsilon} ( g ) \rVert^{2} + \lVert g' - a_{\eta} ( g' ) \rVert^{2} ) \le 6 Br^{2} ( h ), and B \ge 1 (
hB); the hypothesis of ( R ) holds because B \le - \Lambda ( l ) ( e ( i ) ) \le 3 B for i < M (weight_mem) while \chi = 0 and \Lambda ( l ) = 0 on e ( X ).Lean states
‖c‖ ^ 2 ≤ 6 * r ^ 2Since \lVert c / 2 \rVert = \lVert c \rVert / 2 \le 1 / 2 (step 7 , r \le 1 / 100), 1 + c / 2 is invertible with ( 1 + c / 2 ) ( 1 + c / 2 )^{- 1} = 1 ( f ), and \lVert ( 1 + c / 2 )^{- 1} - 1 \rVert \le \lVert c \rVert ( v ).
Let W = ( 1 + c / 2 )^{- 1}.
Let N = ( j_{1} ( s ) - 1 ) \cdot W \cdot Q, an n \times X matrix.
u = 1 + N^{H} Q is a unitary X \times X matrix ( a ): the identity ( 1 + N^{H} Q ) ( 1 + N^{H} Q )^{H} = 1 follows from g^{H} \operatorname{diag} ( \varepsilon ) g = \operatorname{diag} ( \varepsilon ) ( g \in U ( \varepsilon ) ), multiplied by Q^{H} W^{H} on the left and by WQ on the right, together with ( 1 + c / 2 ) W = 1 ( f ), \operatorname{diag} ( \varepsilon ) Q = Q and c = ( 1 - QQ^{H} ) ( g - 1 ).
Let T = j_{1} ( s_{0} s ) - 1.
Collect: ( k_{1} )
dsCoeff_mul_eq_of_zero_weight_blockfor \sigma = e \circ \mathrm{inl}, k = j_{1} ( s_{0} ) and t = j_{1} ( s_{0} s ) = j_{1} ( s_{0} ) j_{1} ( s ): \operatorname{diag} ( \Lambda ( l ) ) ( j_{1} ( s_{0} ) - 1 ) = 0, \psi_{l} ( j_{1} ( s_{0} s ) ) = \psi_{l} ( j_{1} ( s ) ) and \lVert T \rVert^{2} + 2 \operatorname{Re} \operatorname{tr} T \le 2 \lVert g - a_{\varepsilon} ( g ) \rVert^{2}; ( k_{2} ) the same for the second factor with \sigma = \tau (sign_weight_right), with \operatorname{tr} ( j_{2} ( s_{0} s ) - 1 ) replaced by \operatorname{tr} T (trace_eq): \operatorname{diag} ( \Lambda ( k ) ) ( j_{2} ( s_{0} ) - 1 ) = 0, \psi_{k} ( j_{2} ( s_{0} s ) ) = \psi_{k} ( j_{2} ( s ) ) and \lVert j_{2} ( s_{0} s ) - 1 \rVert^{2} + 2 \operatorname{Re} \operatorname{tr} T \le 2 \lVert g' - a_{\eta} ( g' ) \rVert^{2}; the bound \operatorname{Re} \operatorname{tr} c - \operatorname{Re} \operatorname{tr} T \le ( \lVert T \rVert + \lVert c \rVert ) \cdot 2 \cdot ( \lVert c \rVert / 2 ), obtained from \operatorname{Re} \operatorname{tr} ( ( T - c ) ( ( 1 + c / 2 )^{- 1} - 1 ) ) \le \lVert T - c \rVert \cdot \lVert ( 1 + c / 2 )^{- 1} - 1 \rVert (norm_trace_mul_le, step 8) through an identity between these traces that uses the unitarity of u and ( 1 + c / 2 ) W = 1; and ( \lVert T \rVert - 2 \lVert c \rVert )^{2} \ge 0.Usesstep 8, step 11, step 12, step 13,
dsCoeff_mul_eq_of_zero_weight_blockunit 133,IsTwoFactorunit 133,IsSteepunit 133,norm_trace_mul_leunit 112,Complex.re_le_norm Take t = s_{0} s. Then \theta_{l , k , j , \varphi} ( s_{0} s ) = \theta_{l , k , j , \varphi} ( s ): the coefficient factors agree by ( k_{1} ) , ( k_{2} ), and \varphi ( s_{0} s ) = \varphi ( s_{0} ) + \varphi ( s ) (
phase_mul) with \varphi ( s_{0} ) =phase( l , k,subOnePair( j , s_{0} ) ) = \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) ( j_{1} ( s_{0} ) - 1 ) ) - \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) ( j_{2} ( s_{0} ) - 1 ) ) = 0. The bounds \lVert T \rVert \le 10 r and \lVert j_{2} ( s_{0} s ) - 1 \rVert \le 10 r follow by nlinarith from step 14, the instance - 2 \operatorname{Re} \operatorname{tr} c \le \lVert c \rVert^{2} of step 2, step 7 and h; for instance \lVert T \rVert^{2} \le 2 r^{2} + 2 \lVert T \rVert \lVert c \rVert + 3 \lVert c \rVert^{2}, whence \lVert T \rVert \le \lVert c \rVert + \sqrt{26} \cdot r \le ( \sqrt{6} + \sqrt{26} ) r \le 10 r.Usesstep 2, step 7, step 14,
IsTwoFactorunit 133,HCParam.unit 133laplaceIntegrand