qutrit_rational_extension_omega_2_residual_certificate
The omega_2 extension block has a Hermitian diagonally dominant integer residual and the displayed exact factorization.
Statement
theorem qutrit_rational_extension_omega_2_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] let H : Matrix (Fin 6) (Fin 6) ℂ := fun i j => qutrit_rational_candidate_extension ((v i).1, ![(v i).2.1, (v i).2.2]) ((v j).1, ![(v j).2.1, (v j).2.2]) let B : Matrix (Fin 6) (Fin 6) ℂ := !![(3532510863 : ℂ), 0, 0, 0, 0, 0; (244860393 : ℂ) + (424691688 : ℂ) * Complex.I, (2472580101 : ℂ), 0, 0, 0, 0; (-710744311 : ℂ) + (612308945 : ℂ) * Complex.I, (-1919944832 : ℂ) + (403822141 : ℂ) * Complex.I, (2783755162 : ℂ), 0, 0, 0; (-406429323 : ℂ) + (-1536943044 : ℂ) * Complex.I, (684199221 : ℂ) + (-1068285988 : ℂ) * Complex.I, (1171874230 : ℂ) + (-580425041 : ℂ) * Complex.I, (712072551 : ℂ), 0, 0; (-1319516961 : ℂ) + (-410546508 : ℂ) * Complex.I, (581152105 : ℂ) + (964697036 : ℂ) * Complex.I, (-501466485 : ℂ) + (-1595746105 : ℂ) * Complex.I, (93541276 : ℂ) + (-145760276 : ℂ) * Complex.I, (589957724 : ℂ), 0; (-710744311 : ℂ) + (-612308945 : ℂ) * Complex.I, (-405099252 : ℂ) + (2134349866 : ℂ) * Complex.I, (-1537711806 : ℂ) + (1877623370 : ℂ) * Complex.I, (-620821844 : ℂ) + (-58417433 : ℂ) * Complex.I, (214984209 : ℂ) + (-264846073 : ℂ) * Complex.I, (695541080 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(35920002786995231 : ℂ), (1809050841 : ℂ) + (1285806744 : ℂ) * Complex.I, (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (-1460764251 : ℂ) + (1257713028 : ℂ) * Complex.I, (-1354752657 : ℂ) + (723283596 : ℂ) * Complex.I, (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I; (1809050841 : ℂ) + (-1285806744 : ℂ) * Complex.I, (35920002222426006 : ℂ), (-1494586905 : ℂ) + (264918594 : ℂ) * Complex.I, (508420890 : ℂ) + (1359186144 : ℂ) * Complex.I, (648388572 : ℂ) + (925343160 : ℂ) * Complex.I, (168707835 : ℂ) + (-491511951 : ℂ) * Complex.I; (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I, (-1494586905 : ℂ) + (-264918594 : ℂ) * Complex.I, (35919998807143905 : ℂ), (965458047 : ℂ) + (-1736732868 : ℂ) * Complex.I, (183698043 : ℂ) + (224613366 : ℂ) * Complex.I, (-1726657894 : ℂ) + (-650794250 : ℂ) * Complex.I; (-1460764251 : ℂ) + (-1257713028 : ℂ) * Complex.I, (508420890 : ℂ) + (-1359186144 : ℂ) * Complex.I, (965458047 : ℂ) + (1736732868 : ℂ) * Complex.I, (35920001686040568 : ℂ), (1379934777 : ℂ) + (1103489385 : ℂ) * Complex.I, (-652428139 : ℂ) + (-1507215568 : ℂ) * Complex.I; (-1354752657 : ℂ) + (-723283596 : ℂ) * Complex.I, (648388572 : ℂ) + (-925343160 : ℂ) * Complex.I, (183698043 : ℂ) + (-224613366 : ℂ) * Complex.I, (1379934777 : ℂ) + (-1103489385 : ℂ) * Complex.I, (35920002305723316 : ℂ), (-2270931587 : ℂ) + (926263775 : ℂ) * Complex.I; (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (168707835 : ℂ) + (491511951 : ℂ) * Complex.I, (-1726657894 : ℂ) + (650794250 : ℂ) * Complex.I, (-652428139 : ℂ) + (1507215568 : ℂ) * Complex.I, (-2270931587 : ℂ) + (-926263775 : ℂ) * Complex.I, (35920002970693023 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((360000000000000000000 : ℂ) • H = B * Bᴴ + R)
- Source
- Exact residual certificate for the rational two-copy extension, experiment 41047; OP-2299.
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- qutrit_rational_candidate_extensionThe unnormalized-occupation representation of the explicit two-copy extension.
- qutrit_rational_candidate_extension_blocksThree exact rational Hermitian blocks of the proposed bosonic extension.
The proof, explained
The theorem proves that a 6 × 6 submatrix H of the candidate qutrit extension matrix, corresponding to the ω = 2 charge sector, admits an exact certificate of positive semidefiniteness. A large positive integer multiple (3.6 × 10²⁰) of H is decomposed into a Cholesky-like positive semidefinite term B * Bᴴ and an integer residual matrix R. The proof first identifies H with the t = 2 extension block under a permutation of indices, and then verifies by finite case exhaustion and exact computation that R is Hermitian, strictly diagonally dominant, and satisfies (3.6 × 10²⁰) • H = B * Bᴴ + R.
The candidate extension submatrix H coincides with block t = 2 of the candidate extension blocks under the index permutation (2, 3, 1, 5, 0, 4).
With matrix notation opened and heartbeats increased, we simplify definitions with `dsimp only` and establish the entrywise identity `hH` by case analysis on all 36 pairs of indices (i, j) in (Fin 6)² using `fin_cases`. Each entry reduces to the corresponding entry of candidate extension block 2 by definitional equality (`rfl`), since each triple v(i) has sum 2 modulo 3. Using matrix extensionality (`ext`), we package this entrywise equality into the matrix equality `hHm`.
open scoped Matrix set_option maxHeartbeats 4000000 theorem qutrit_rational_extension_omega_2_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] let H : Matrix (Fin 6) (Fin 6) ℂ := fun i j => qutrit_rational_candidate_extension ((v i).1, ![(v i).2.1, (v i).2.2]) ((v j).1, ![(v j).2.1, (v j).2.2]) let B : Matrix (Fin 6) (Fin 6) ℂ := !![(3532510863 : ℂ), 0, 0, 0, 0, 0; (244860393 : ℂ) + (424691688 : ℂ) * Complex.I, (2472580101 : ℂ), 0, 0, 0, 0; (-710744311 : ℂ) + (612308945 : ℂ) * Complex.I, (-1919944832 : ℂ) + (403822141 : ℂ) * Complex.I, (2783755162 : ℂ), 0, 0, 0; (-406429323 : ℂ) + (-1536943044 : ℂ) * Complex.I, (684199221 : ℂ) + (-1068285988 : ℂ) * Complex.I, (1171874230 : ℂ) + (-580425041 : ℂ) * Complex.I, (712072551 : ℂ), 0, 0; (-1319516961 : ℂ) + (-410546508 : ℂ) * Complex.I, (581152105 : ℂ) + (964697036 : ℂ) * Complex.I, (-501466485 : ℂ) + (-1595746105 : ℂ) * Complex.I, (93541276 : ℂ) + (-145760276 : ℂ) * Complex.I, (589957724 : ℂ), 0; (-710744311 : ℂ) + (-612308945 : ℂ) * Complex.I, (-405099252 : ℂ) + (2134349866 : ℂ) * Complex.I, (-1537711806 : ℂ) + (1877623370 : ℂ) * Complex.I, (-620821844 : ℂ) + (-58417433 : ℂ) * Complex.I, (214984209 : ℂ) + (-264846073 : ℂ) * Complex.I, (695541080 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(35920002786995231 : ℂ), (1809050841 : ℂ) + (1285806744 : ℂ) * Complex.I, (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (-1460764251 : ℂ) + (1257713028 : ℂ) * Complex.I, (-1354752657 : ℂ) + (723283596 : ℂ) * Complex.I, (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I; (1809050841 : ℂ) + (-1285806744 : ℂ) * Complex.I, (35920002222426006 : ℂ), (-1494586905 : ℂ) + (264918594 : ℂ) * Complex.I, (508420890 : ℂ) + (1359186144 : ℂ) * Complex.I, (648388572 : ℂ) + (925343160 : ℂ) * Complex.I, (168707835 : ℂ) + (-491511951 : ℂ) * Complex.I; (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I, (-1494586905 : ℂ) + (-264918594 : ℂ) * Complex.I, (35919998807143905 : ℂ), (965458047 : ℂ) + (-1736732868 : ℂ) * Complex.I, (183698043 : ℂ) + (224613366 : ℂ) * Complex.I, (-1726657894 : ℂ) + (-650794250 : ℂ) * Complex.I; (-1460764251 : ℂ) + (-1257713028 : ℂ) * Complex.I, (508420890 : ℂ) + (-1359186144 : ℂ) * Complex.I, (965458047 : ℂ) + (1736732868 : ℂ) * Complex.I, (35920001686040568 : ℂ), (1379934777 : ℂ) + (1103489385 : ℂ) * Complex.I, (-652428139 : ℂ) + (-1507215568 : ℂ) * Complex.I; (-1354752657 : ℂ) + (-723283596 : ℂ) * Complex.I, (648388572 : ℂ) + (-925343160 : ℂ) * Complex.I, (183698043 : ℂ) + (-224613366 : ℂ) * Complex.I, (1379934777 : ℂ) + (-1103489385 : ℂ) * Complex.I, (35920002305723316 : ℂ), (-2270931587 : ℂ) + (926263775 : ℂ) * Complex.I; (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (168707835 : ℂ) + (491511951 : ℂ) * Complex.I, (-1726657894 : ℂ) + (650794250 : ℂ) * Complex.I, (-652428139 : ℂ) + (1507215568 : ℂ) * Complex.I, (-2270931587 : ℂ) + (-926263775 : ℂ) * Complex.I, (35920002970693023 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((360000000000000000000 : ℂ) • H = B * Bᴴ + R) := by dsimp only have hH : ∀ i j : Fin 6, qutrit_rational_candidate_extension (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2]) = qutrit_rational_candidate_extension_blocks 2 (![(2:Fin 6), 3, 1, 5, 0, 4] i) (![(2:Fin 6), 3, 1, 5, 0, 4] j) := by intro i j fin_cases i <;> fin_cases j <;> rfl have hHm : (fun i j : Fin 6 => qutrit_rational_candidate_extension (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2])) = Matrix.of (fun i j : Fin 6 => qutrit_rational_candidate_extension_blocks 2 (![(2:Fin 6), 3, 1, 5, 0, 4] i) (![(2:Fin 6), 3, 1, 5, 0, 4] j)) := by ext i j exact hH i j
The residual matrix R is Hermitian (R = Rᴴ).
We split the main conjunction into three obligations using `refine ⟨?_, ?_, ?_⟩` and address the first. By `Matrix.IsHermitian.ext`, it suffices to verify that star(R j i) = R i j for all i, j in Fin 6. We exhaust all 36 index pairs using `fin_cases`, reduce complex equality to separate equalities of real and imaginary parts via `Complex.ext_iff`, expand the arithmetic using complex component lemmas, and evaluate each arithmetic identity with `norm_num`.
uses
Matrix.IsHermitian.ext,Complex.ext_iff,Complex.add_re,Complex.add_im,Complex.mul_re,Complex.mul_im,Complex.neg_re,Complex.neg_im,Complex.I_re,Complex.I_imrefine ⟨?_, ?_, ?_⟩ · refine Matrix.IsHermitian.ext ?_ intro i j fin_cases i <;> fin_cases j <;> simp only [Complex.ext_iff] <;> constructor <;> (simp [Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, Complex.I_re, Complex.I_im] <;> norm_num)
The residual matrix R is diagonally dominant: for each row i, the sum of off-diagonal L1 norms is at most the real part of R i i.
We verify the row dominance condition for each row i using `fin_cases`. For each row, the off-diagonal sum over `Finset.univ.erase i` is rewritten as the full row sum minus the diagonal term using `Finset.sum_erase_eq_sub` and `Finset.mem_univ`. The six-element sum is expanded into explicit additions with `Fin.sum_univ_six`, and the resulting rational inequality is verified by `norm_num`.
uses
Finset.sum_erase_eq_sub,Finset.mem_univ,Fin.sum_univ_six· intro i fin_cases i <;> (rw [Finset.sum_erase_eq_sub (Finset.mem_univ _)] <;> simp [Fin.sum_univ_six] <;> norm_num)
The exact matrix factorization identity (3.6 × 10²⁰) • H = B * Bᴴ + R holds.
We substitute the block representation `hHm` for H and check the matrix identity entry by entry using extensionality (`ext i j`). We exhaust all 36 index pairs with `fin_cases`, split into real and imaginary parts using `Complex.ext_iff`, expand the matrix scalar multiplication, matrix multiplication, conjugate transpose, and matrix addition into explicit sums over Fin 6, rewrite all complex operations to their real and imaginary components, and verify that all arithmetic equations hold using `norm_num`.
uses
Complex.ext_iff,Matrix.smul_apply,Pi.smul_apply,smul_eq_mul,Matrix.of_apply,Matrix.add_apply,Matrix.mul_apply,Matrix.conjTranspose_apply,Fin.sum_univ_six,Complex.add_re,Complex.add_im,Complex.mul_re,Complex.mul_im,Complex.neg_re,Complex.neg_im,Complex.sub_re,Complex.sub_im,Complex.div_re,Complex.div_im,Complex.I_re,Complex.I_im,Complex.ofReal_re,Complex.ofReal_im· rw [hHm] ext i j fin_cases i <;> fin_cases j <;> simp only [Complex.ext_iff] <;> constructor <;> (simp only [Matrix.smul_apply, Pi.smul_apply, smul_eq_mul, Matrix.of_apply, Matrix.add_apply, Matrix.mul_apply, Matrix.conjTranspose_apply, Fin.sum_univ_six] <;> simp [qutrit_rational_candidate_extension_blocks, qutrit_bosonic_pair_code, Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, Complex.sub_re, Complex.sub_im, Complex.div_re, Complex.div_im, Complex.I_re, Complex.I_im, Complex.ofReal_re, Complex.ofReal_im] <;> norm_num)
Matrix.IsHermitian.ext- A square matrix A is Hermitian if star(A j i) = A i j for all indices i, j.
Complex.ext_iff- Two complex numbers are equal if and only if both their real parts and their imaginary parts are equal.
Complex.add_re- The real part of a sum of complex numbers is the sum of their real parts.
Complex.add_im- The imaginary part of a sum of complex numbers is the sum of their imaginary parts.
Complex.mul_re- The real part of a product of complex numbers z and w is z.re * w.re - z.im * w.im.
Complex.mul_im- The imaginary part of a product of complex numbers z and w is z.re * w.im + z.im * w.re.
Complex.neg_re- The real part of -z is the negative of the real part of z.
Complex.neg_im- The imaginary part of -z is the negative of the imaginary part of z.
Complex.I_re- The real part of the imaginary unit I is 0.
Complex.I_im- The imaginary part of the imaginary unit I is 1.
Finset.sum_erase_eq_sub- The sum over a finite set with element a removed equals the total sum minus the value at a.
Finset.mem_univ- Every element of a finite type belongs to its universal finset.
Fin.sum_univ_six- A sum over Fin 6 expands to the explicit sum of its values at 0, 1, 2, 3, 4, and 5.
Matrix.smul_apply- Entry (i, j) of a scalar multiple r • A of a matrix is r times the (i, j) entry of A.
Pi.smul_apply- Pointwise scalar multiplication of a function evaluates at each point to the scalar times the function value.
smul_eq_mul- Scalar multiplication on a ring or algebra coincides with multiplication in that ring.
Matrix.of_apply- Entry (i, j) of Matrix.of f is f i j.
Matrix.add_apply- Entry (i, j) of a matrix sum A + B is the sum of entry (i, j) of A and entry (i, j) of B.
Matrix.mul_apply- Entry (i, k) of the matrix product M * N is the sum over j of M i j * N j k.
Matrix.conjTranspose_apply- Entry (j, i) of the conjugate transpose of M is the star (complex conjugate) of entry (i, j) of M.
Complex.sub_re- The real part of a difference of complex numbers is the difference of their real parts.
Complex.sub_im- The imaginary part of a difference of complex numbers is the difference of their imaginary parts.
Complex.div_re- The real part of a quotient z / w is (z.re * w.re + z.im * w.im) / normSq w.
Complex.div_im- The imaginary part of a quotient z / w is (z.im * w.re - z.re * w.im) / normSq w.
Complex.ofReal_re- The real part of a real number coerced to ℂ is itself.
Complex.ofReal_im- The imaginary part of a real number coerced to ℂ is 0.
- All three obligations (Hermitian symmetry, diagonal dominance, and the matrix factorization identity) are verified by exhausting finite index sets using `fin_cases` and checking the resulting rational/complex arithmetic equalities and inequalities via `norm_num`.
Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
open scoped Matrixset_option maxHeartbeats 4000000theorem qutrit_rational_extension_omega_2_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] let H : Matrix (Fin 6) (Fin 6) ℂ := fun i j => qutrit_rational_candidate_extension ((v i).1, ![(v i).2.1, (v i).2.2]) ((v j).1, ![(v j).2.1, (v j).2.2]) let B : Matrix (Fin 6) (Fin 6) ℂ := !![(3532510863 : ℂ), 0, 0, 0, 0, 0; (244860393 : ℂ) + (424691688 : ℂ) * Complex.I, (2472580101 : ℂ), 0, 0, 0, 0; (-710744311 : ℂ) + (612308945 : ℂ) * Complex.I, (-1919944832 : ℂ) + (403822141 : ℂ) * Complex.I, (2783755162 : ℂ), 0, 0, 0; (-406429323 : ℂ) + (-1536943044 : ℂ) * Complex.I, (684199221 : ℂ) + (-1068285988 : ℂ) * Complex.I, (1171874230 : ℂ) + (-580425041 : ℂ) * Complex.I, (712072551 : ℂ), 0, 0; (-1319516961 : ℂ) + (-410546508 : ℂ) * Complex.I, (581152105 : ℂ) + (964697036 : ℂ) * Complex.I, (-501466485 : ℂ) + (-1595746105 : ℂ) * Complex.I, (93541276 : ℂ) + (-145760276 : ℂ) * Complex.I, (589957724 : ℂ), 0; (-710744311 : ℂ) + (-612308945 : ℂ) * Complex.I, (-405099252 : ℂ) + (2134349866 : ℂ) * Complex.I, (-1537711806 : ℂ) + (1877623370 : ℂ) * Complex.I, (-620821844 : ℂ) + (-58417433 : ℂ) * Complex.I, (214984209 : ℂ) + (-264846073 : ℂ) * Complex.I, (695541080 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(35920002786995231 : ℂ), (1809050841 : ℂ) + (1285806744 : ℂ) * Complex.I, (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (-1460764251 : ℂ) + (1257713028 : ℂ) * Complex.I, (-1354752657 : ℂ) + (723283596 : ℂ) * Complex.I, (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I; (1809050841 : ℂ) + (-1285806744 : ℂ) * Complex.I, (35920002222426006 : ℂ), (-1494586905 : ℂ) + (264918594 : ℂ) * Complex.I, (508420890 : ℂ) + (1359186144 : ℂ) * Complex.I, (648388572 : ℂ) + (925343160 : ℂ) * Complex.I, (168707835 : ℂ) + (-491511951 : ℂ) * Complex.I; (-577049607 : ℂ) + (275430465 : ℂ) * Complex.I, (-1494586905 : ℂ) + (-264918594 : ℂ) * Complex.I, (35919998807143905 : ℂ), (965458047 : ℂ) + (-1736732868 : ℂ) * Complex.I, (183698043 : ℂ) + (224613366 : ℂ) * Complex.I, (-1726657894 : ℂ) + (-650794250 : ℂ) * Complex.I; (-1460764251 : ℂ) + (-1257713028 : ℂ) * Complex.I, (508420890 : ℂ) + (-1359186144 : ℂ) * Complex.I, (965458047 : ℂ) + (1736732868 : ℂ) * Complex.I, (35920001686040568 : ℂ), (1379934777 : ℂ) + (1103489385 : ℂ) * Complex.I, (-652428139 : ℂ) + (-1507215568 : ℂ) * Complex.I; (-1354752657 : ℂ) + (-723283596 : ℂ) * Complex.I, (648388572 : ℂ) + (-925343160 : ℂ) * Complex.I, (183698043 : ℂ) + (-224613366 : ℂ) * Complex.I, (1379934777 : ℂ) + (-1103489385 : ℂ) * Complex.I, (35920002305723316 : ℂ), (-2270931587 : ℂ) + (926263775 : ℂ) * Complex.I; (-577049607 : ℂ) + (-275430465 : ℂ) * Complex.I, (168707835 : ℂ) + (491511951 : ℂ) * Complex.I, (-1726657894 : ℂ) + (650794250 : ℂ) * Complex.I, (-652428139 : ℂ) + (1507215568 : ℂ) * Complex.I, (-2270931587 : ℂ) + (-926263775 : ℂ) * Complex.I, (35920002970693023 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((360000000000000000000 : ℂ) • H = B * Bᴴ + R) := by dsimp only have hH : ∀ i j : Fin 6, qutrit_rational_candidate_extension (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2]) = qutrit_rational_candidate_extension_blocks 2 (![(2:Fin 6), 3, 1, 5, 0, 4] i) (![(2:Fin 6), 3, 1, 5, 0, 4] j) := by intro i j fin_cases i <;> fin_cases j <;> rfl have hHm : (fun i j : Fin 6 => qutrit_rational_candidate_extension (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 2), (0, 1, 1), (1, 0, 1), (1, 2, 2), (2, 0, 0), (2, 1, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2])) = Matrix.of (fun i j : Fin 6 => qutrit_rational_candidate_extension_blocks 2 (![(2:Fin 6), 3, 1, 5, 0, 4] i) (![(2:Fin 6), 3, 1, 5, 0, 4] j)) := by ext i j exact hH i j refine ⟨?_, ?_, ?_⟩ · refine Matrix.IsHermitian.ext ?_ intro i j fin_cases i <;> fin_cases j <;> simp only [Complex.ext_iff] <;> constructor <;> (simp [Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, Complex.I_re, Complex.I_im] <;> norm_num) · intro i fin_cases i <;> (rw [Finset.sum_erase_eq_sub (Finset.mem_univ _)] <;> simp [Fin.sum_univ_six] <;> norm_num) · rw [hHm] ext i j fin_cases i <;> fin_cases j <;> simp only [Complex.ext_iff] <;> constructor <;> (simp only [Matrix.smul_apply, Pi.smul_apply, smul_eq_mul, Matrix.of_apply, Matrix.add_apply, Matrix.mul_apply, Matrix.conjTranspose_apply, Fin.sum_univ_six] <;> simp [qutrit_rational_candidate_extension_blocks, qutrit_bosonic_pair_code, Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, Complex.sub_re, Complex.sub_im, Complex.div_re, Complex.div_im, Complex.I_re, Complex.I_im, Complex.ofReal_re, Complex.ofReal_im] <;> norm_num)