Structured proof · Unit 133
lemma IsTwoFactor.phase_logOneAdd
IsTwoFactor, and assume IsTwoFactor( l , k , j , \tau , B , e , \varphi ) ( H ). Let s \in S with \lVert j_{1} ( s ) - 1 \rVert \le 1 / 2 ( a ) and \lVert j_{2} ( s ) - 1 \rVert \le 1 / 2 ( b ) (\lVert \cdot \rVert is the Frobenius norm, the norm in force in this file). Then \operatorname{phase} ( l , k , ( \operatorname{lg} ( j_{1} ( s ) - 1 ) , \operatorname{lg} ( j_{2} ( s ) - 1 ) ) ) = \varphi ( s ), where \operatorname{lg} ( Y ) = logOneAdd( Y ) = \int_{0}^{1} ( 1 + rY )^{- 1} Y \,\mathrm{d}r is the logarithm of 1 + Y.subOnePair( j , s ) (by phase_mul and induction); expanding ( 1 + rA )^{- 1} A in a geometric series shows that the integrand defining \operatorname{lg} is constant, equal to \varphi ( s ).For every i \in \mathbb{N} and t \in S, with Y_{s} =
subOnePair( j , s ) and pairs of matrices multiplied componentwise: \operatorname{phase} ( l , k , Y_{s}^{i} \cdot Y_{s} \cdot ( 1 + Y_{t} ) ) = 0^{i} \cdot \varphi ( s ). Induction on i, generalizing t: since j is a homomorphism, Y_{s} ( 1 + Y_{t} ) = Y_{\text{st}} - Y_{t}, and \operatorname{phase} ( l , k , \cdot ) is additive; so for i = 0 the value is \operatorname{phase} ( l , k , Y_{\text{st}} ) - \operatorname{phase} ( l , k , Y_{t} ) = \varphi(st) - \varphi ( t ) = \varphi ( s ) (phase_eq,phase_mul), and the step writes Y_{s}^{i + 1} Y_{s} ( 1 + Y_{t} ) = Y_{s}^{i} Y_{s} ( 1 + Y_{\text{st}} ) - Y_{s}^{i} Y_{s} ( 1 + Y_{t} ) and uses the induction hypothesis at st and at t.Lean states
l.phase k (subOnePair j s ^ i * subOnePair j s * (1 + subOnePair j t)) = 0 ^ i * φ sUses
IsTwoFactorunit 133,HCParam.unit 133,phase subOnePairunit 133Let ( A , A' ) =
subOnePair( j , s ). For every r \in ( 0 , 1 ): \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) ( 1 + rA )^{- 1} A ) - \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) ( 1 + rA' )^{- 1} A' ) = \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) A ) - \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) A' ). Indeed ( 1 + rA )^{- 1} A = \sum_{i} ( - rA )^{i} A (geometric series, \lVert rA \rVert \le 1 / 2), and likewise for A', so the left side is the sum of ( - r )^{i} \cdot \operatorname{phase} ( l , k , Y_{s}^{i} \cdot Y_{s} ), whose terms with i \ge 1 vanish by step 1 at t = 1 ( Y_{1} = 0 ). Hence the integrals over r \in [ 0 , 1 ] of the two sides agree.Usesstep 1,
hasSum_geom_series_inverse,intervalIntegral.,integral_congr_Ioo_of_le hasSum_single\operatorname{phase} ( l , k , ( \operatorname{lg} A , \operatorname{lg} A' ) ) = \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) \cdot \operatorname{lg} A ) - \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) \cdot \operatorname{lg} A' ) = \int_{0}^{1} [ \operatorname{tr} ( \operatorname{diag} ( \Lambda ( l ) ) ( 1 + rA )^{- 1} A ) - \operatorname{tr} ( \operatorname{diag} ( \Lambda ( k ) ) ( 1 + rA' )^{- 1} A' ) ] \,\mathrm{d}r (
trace_mul_logOneAdd) = \int_{0}^{1} \operatorname{phase} ( l , k , ( A , A' ) ) \,\mathrm{d}r = \varphi ( s ) (step 2 andphase_eq).Usesstep 2,
trace_mul_logOneAddunit 112,IsTwoFactorunit 133