qutrit_rational_extension_omega_0_residual_certificate
The omega_0 extension block has a Hermitian diagonally dominant integer residual and the displayed exact factorization.
Statement
theorem qutrit_rational_extension_omega_0_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 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) ℂ := !![(9421330692 : ℂ), 0, 0, 0, 0, 0; (657403949 : ℂ) + (1600207072 : ℂ) * Complex.I, (5480504482 : ℂ), 0, 0, 0, 0; (-1296841327 : ℂ) + (-4656354971 : ℂ) * Complex.I, (444623442 : ℂ) + (455252156 : ℂ) * Complex.I, (3043088632 : ℂ), 0, 0, 0; (883174604 : ℂ) + (-2474917903 : ℂ) * Complex.I, (-2139736475 : ℂ) + (2463751849 : ℂ) * Complex.I, (-1431240042 : ℂ) + (-8040380909 : ℂ) * Complex.I, (2124037997 : ℂ), 0, 0; (-1603448015 : ℂ) + (-1110492811 : ℂ) * Complex.I, (-553925009 : ℂ) + (-610331860 : ℂ) * Complex.I, (-4138244052 : ℂ) + (2482478619 : ℂ) * Complex.I, (379221480 : ℂ) + (-2243133404 : ℂ) * Complex.I, (286310948 : ℂ), 0; (883174604 : ℂ) + (2474917903 : ℂ) * Complex.I, (-3057921886 : ℂ) + (7965562584 : ℂ) * Complex.I, (-1545763778 : ℂ) + (1520074023 : ℂ) * Complex.I, (-1173613728 : ℂ) + (-1682749930 : ℂ) * Complex.I, (90909057 : ℂ) + (-300185995 : ℂ) * Complex.I, (218584420 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(3567991978801136 : ℂ), (-1755702708 : ℂ) + (989053824 : ℂ) * Complex.I, (-3280891716 : ℂ) + (-1129069932 : ℂ) * Complex.I, (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-3254023620 : ℂ) + (-3519655212 : ℂ) * Complex.I, (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I; (-1755702708 : ℂ) + (-989053824 : ℂ) * Complex.I, (3567997338303891 : ℂ), (-2750511809 : ℂ) + (-1755752743 : ℂ) * Complex.I, (210279770 : ℂ) + (965688783 : ℂ) * Complex.I, (1160960965 : ℂ) + (-337545079 : ℂ) * Complex.I, (-1497228160 : ℂ) + (-985099053 : ℂ) * Complex.I; (-3280891716 : ℂ) + (1129069932 : ℂ) * Complex.I, (-2750511809 : ℂ) + (1755752743 : ℂ) * Complex.I, (3568003702261106 : ℂ), (1827726745 : ℂ) + (4863041635 : ℂ) * Complex.I, (-1972961384 : ℂ) + (2171934124 : ℂ) * Complex.I, (665697525 : ℂ) + (4289166083 : ℂ) * Complex.I; (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I, (210279770 : ℂ) + (-965688783 : ℂ) * Complex.I, (1827726745 : ℂ) + (-4863041635 : ℂ) * Complex.I, (3568004027581295 : ℂ), (611100519 : ℂ) + (2533383698 : ℂ) * Complex.I, (-4068798026 : ℂ) + (3933453260 : ℂ) * Complex.I; (-3254023620 : ℂ) + (3519655212 : ℂ) * Complex.I, (1160960965 : ℂ) + (337545079 : ℂ) * Complex.I, (-1972961384 : ℂ) + (-2171934124 : ℂ) * Complex.I, (611100519 : ℂ) + (-2533383698 : ℂ) * Complex.I, (3567999298966188 : ℂ), (921182650 : ℂ) + (3528269697 : ℂ) * Complex.I; (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-1497228160 : ℂ) + (985099053 : ℂ) * Complex.I, (665697525 : ℂ) + (-4289166083 : ℂ) * Complex.I, (-4068798026 : ℂ) + (-3933453260 : ℂ) * Complex.I, (921182650 : ℂ) + (-3528269697 : ℂ) * Complex.I, (3568012614165352 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((1800000000000000000000 : ℂ) • H = B * Bᴴ + R)
- Source
- Exact residual certificate for the rational two-copy extension, experiment 41047; OP-2299.
- Verified
- 28 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 provides a certified positive-semidefinite decomposition $(1.8 \cdot 10^{21}) H = B B^* + R$ for the $\omega_0$ sector submatrix $H$ of a candidate quantum extension, where $B$ is an explicit lower-triangular complex matrix and $R$ is an explicit diagonally dominant Hermitian residual. First, the candidate submatrix $H$ is shown to equal the charge-zero block under an explicit permutation of the state basis. The proof then splits into three exhaustive verifications: checking entrywise Hermiticity of $R$, checking row diagonal dominance of $R$ across all six rows to guarantee positive semidefiniteness, and verifying the exact algebraic matrix identity entry by entry via rational arithmetic.
The $6 \times 6$ submatrix $H$ of the candidate extension coincides with the sector-$0$ block under the index permutation $\pi = (0, 4, 2, 3, 1, 5)$.
We open matrix scoping and increase heartbeat limits, then set up the definitions of the states $v$, candidate submatrix $H$, Cholesky factor $B$, and residual matrix $R$. The candidate extension evaluates by charge sectors according to the sum of state coordinates modulo 3. For the chosen list of six states $v$, all coordinate sums equal $0 \pmod 3$. Exhaustive case analysis over all $6 \times 6 = 36$ index pairs $(i, j)$ with `fin_cases` and definitional reduction (`rfl`) establishes entrywise equality `hH`. Function extensionality (`ext`) then turns this pointwise result into the matrix-level identity `hHm`.
open scoped Matrix set_option maxHeartbeats 4000000 theorem qutrit_rational_extension_omega_0_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 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) ℂ := !![(9421330692 : ℂ), 0, 0, 0, 0, 0; (657403949 : ℂ) + (1600207072 : ℂ) * Complex.I, (5480504482 : ℂ), 0, 0, 0, 0; (-1296841327 : ℂ) + (-4656354971 : ℂ) * Complex.I, (444623442 : ℂ) + (455252156 : ℂ) * Complex.I, (3043088632 : ℂ), 0, 0, 0; (883174604 : ℂ) + (-2474917903 : ℂ) * Complex.I, (-2139736475 : ℂ) + (2463751849 : ℂ) * Complex.I, (-1431240042 : ℂ) + (-8040380909 : ℂ) * Complex.I, (2124037997 : ℂ), 0, 0; (-1603448015 : ℂ) + (-1110492811 : ℂ) * Complex.I, (-553925009 : ℂ) + (-610331860 : ℂ) * Complex.I, (-4138244052 : ℂ) + (2482478619 : ℂ) * Complex.I, (379221480 : ℂ) + (-2243133404 : ℂ) * Complex.I, (286310948 : ℂ), 0; (883174604 : ℂ) + (2474917903 : ℂ) * Complex.I, (-3057921886 : ℂ) + (7965562584 : ℂ) * Complex.I, (-1545763778 : ℂ) + (1520074023 : ℂ) * Complex.I, (-1173613728 : ℂ) + (-1682749930 : ℂ) * Complex.I, (90909057 : ℂ) + (-300185995 : ℂ) * Complex.I, (218584420 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(3567991978801136 : ℂ), (-1755702708 : ℂ) + (989053824 : ℂ) * Complex.I, (-3280891716 : ℂ) + (-1129069932 : ℂ) * Complex.I, (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-3254023620 : ℂ) + (-3519655212 : ℂ) * Complex.I, (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I; (-1755702708 : ℂ) + (-989053824 : ℂ) * Complex.I, (3567997338303891 : ℂ), (-2750511809 : ℂ) + (-1755752743 : ℂ) * Complex.I, (210279770 : ℂ) + (965688783 : ℂ) * Complex.I, (1160960965 : ℂ) + (-337545079 : ℂ) * Complex.I, (-1497228160 : ℂ) + (-985099053 : ℂ) * Complex.I; (-3280891716 : ℂ) + (1129069932 : ℂ) * Complex.I, (-2750511809 : ℂ) + (1755752743 : ℂ) * Complex.I, (3568003702261106 : ℂ), (1827726745 : ℂ) + (4863041635 : ℂ) * Complex.I, (-1972961384 : ℂ) + (2171934124 : ℂ) * Complex.I, (665697525 : ℂ) + (4289166083 : ℂ) * Complex.I; (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I, (210279770 : ℂ) + (-965688783 : ℂ) * Complex.I, (1827726745 : ℂ) + (-4863041635 : ℂ) * Complex.I, (3568004027581295 : ℂ), (611100519 : ℂ) + (2533383698 : ℂ) * Complex.I, (-4068798026 : ℂ) + (3933453260 : ℂ) * Complex.I; (-3254023620 : ℂ) + (3519655212 : ℂ) * Complex.I, (1160960965 : ℂ) + (337545079 : ℂ) * Complex.I, (-1972961384 : ℂ) + (-2171934124 : ℂ) * Complex.I, (611100519 : ℂ) + (-2533383698 : ℂ) * Complex.I, (3567999298966188 : ℂ), (921182650 : ℂ) + (3528269697 : ℂ) * Complex.I; (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-1497228160 : ℂ) + (985099053 : ℂ) * Complex.I, (665697525 : ℂ) + (-4289166083 : ℂ) * Complex.I, (-4068798026 : ℂ) + (-3933453260 : ℂ) * Complex.I, (921182650 : ℂ) + (-3528269697 : ℂ) * Complex.I, (3568012614165352 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((1800000000000000000000 : ℂ) • H = B * Bᴴ + R) := by dsimp only have hH : ∀ i j : Fin 6, qutrit_rational_candidate_extension (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2]) = qutrit_rational_candidate_extension_blocks 0 (![(0:Fin 6),4,2,3,1,5] i) (![(0:Fin 6),4,2,3,1,5] 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, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2])) = Matrix.of (fun i j : Fin 6 => qutrit_rational_candidate_extension_blocks 0 (![(0:Fin 6),4,2,3,1,5] i) (![(0:Fin 6),4,2,3,1,5] j)) := by ext i j exact hH i j
The theorem decomposes into three independent obligations: showing that $R$ is Hermitian, that $R$ is diagonally dominant, and that $(1.8 \cdot 10^{21}) H = B B^* + R$.
The goal is a conjunction of three statements. The `refine` tactic splits it into three subgoals to be verified in turn.
refine ⟨?_, ?_, ?_⟩The residual matrix $R$ is Hermitian ($R^* = R$). automation
Applying `Matrix.IsHermitian.ext` reduces Hermiticity to verifying $\overline{R_{ji}} = R_{ij}$ for all entry indices $i, j \in \{0, \dots, 5\}$. The proof exhausts all 36 index pairs $(i, j)$ using `fin_cases`, reduces each complex equality to its real and imaginary parts using `Complex.ext_iff`, unfolds complex arithmetic, and verifies the resulting integer equations 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_im· 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 matrix $R$ is diagonally dominant: for every row $i \in \{0, \dots, 5\}$, $\sum_{j \ne i} (|\operatorname{re}(R_{ij})| + |\operatorname{im}(R_{ij})|) \le \operatorname{re}(R_{ii})$. automation
The proof tests the inequality for each of the six rows $i$ by case exhaustion with `fin_cases`. For each row, `Finset.sum_erase_eq_sub` together with `Finset.mem_univ` expresses the sum of off-diagonal terms as the total sum over $\{0, \dots, 5\}$ minus the diagonal entry. Expanding the total sum into six terms via `Fin.sum_univ_six`, the resulting linear inequality of rational numbers 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 matrix identity $(1.8 \cdot 10^{21}) H = B B^* + R$ holds exactly. automation
Rewriting with `hHm` replaces $H$ with the permuted candidate block matrix. Extensionality (`ext i j`) reduces matrix equality to 36 scalar complex equalities, which `fin_cases` exhausts. Each complex equality is split into real and imaginary parts by `Complex.ext_iff`. Matrix operations (scalar multiplication, addition, multiplication, and conjugate transpose) and candidate block definitions are unfolded, sums over `Fin 6` are expanded with `Fin.sum_univ_six`, and complex arithmetic is broken into real components. Finally, `norm_num` computes and verifies that both sides match exactly for every entry.
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,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· 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 matrix $A$ is Hermitian if $\operatorname{star}(A_{ji}) = A_{ij}$ for all indices $i, j$.
Complex.ext_iff- Two complex numbers are equal if and only if their real parts agree and their imaginary parts agree.
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 is $\operatorname{re}(z)\operatorname{re}(w) - \operatorname{im}(z)\operatorname{im}(w)$.
Complex.mul_im- The imaginary part of a product of complex numbers is $\operatorname{re}(z)\operatorname{im}(w) + \operatorname{im}(z)\operatorname{re}(w)$.
Complex.neg_re- The real part of $-z$ is $-\operatorname{re}(z)$.
Complex.neg_im- The imaginary part of $-z$ is $-\operatorname{im}(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- For an element $a \in s$, the sum over $s \setminus \{a\}$ equals the sum over $s$ minus the value at $a$.
Finset.mem_univ- Every element of a finite type belongs to the universal finset `Finset.univ`.
Fin.sum_univ_six- A sum of a function over `Fin 6` equals the explicit sum $f(0) + f(1) + f(2) + f(3) + f(4) + f(5)$.
Matrix.smul_apply- Entry $(i, j)$ of a scalar-multiplied matrix $r \cdot A$ is $r \cdot A_{ij}$.
Pi.smul_apply- Evaluating a scalar-multiplied function $a \cdot f$ at $i$ yields $a \cdot f(i)$.
smul_eq_mul- In an algebra, scalar multiplication $a \cdot b$ agrees with ring multiplication $a * b$.
Matrix.of_apply- Entry $(i, j)$ of the matrix created by `Matrix.of f` is $f(i, j)$.
Matrix.add_apply- Entry $(i, j)$ of a matrix sum $A + B$ is $A_{ij} + B_{ij}$.
Matrix.mul_apply- Entry $(i, k)$ of the matrix product $M N$ is the inner product $\sum_j M_{ij} N_{jk}$.
Matrix.conjTranspose_apply- Entry $(j, i)$ of the conjugate transpose $M^*$ is $\operatorname{star}(M_{ij})$.
Complex.sub_re- The real part of $z - w$ is $\operatorname{re}(z) - \operatorname{re}(w)$.
Complex.sub_im- The imaginary part of $z - w$ is $\operatorname{im}(z) - \operatorname{im}(w)$.
Complex.div_re- Formula for the real part of the quotient of two complex numbers.
Complex.div_im- Formula for the imaginary part of the quotient of two complex numbers.
Complex.ofReal_re- The real part of a real number embedded into $\mathbb{C}$ is itself.
Complex.ofReal_im- The imaginary part of a real number embedded into $\mathbb{C}$ is $0$.
qutrit_rational_candidate_extension_blocks- The explicit $6 \times 6$ matrix blocks of rational complex numbers defining the candidate extension for each charge sector $t \in \text{Fin } 3$.
qutrit_bosonic_pair_code- The symmetric lookup table encoding a pair of qutrit modes $(a, b) \in \{0, 1, 2\}^2$ into a single bosonic index in $\{0, \dots, 5\}$.
- The diagonal dominance condition $\sum_{j \ne i} (|\operatorname{re}(R_{ij})| + |\operatorname{im}(R_{ij})|) \le \operatorname{re}(R_{ii})$ uses the $\ell_1$ norm of the real and imaginary parts as a certified upper bound on the complex modulus $|R_{ij}| \le |\operatorname{re}(R_{ij})| + |\operatorname{im}(R_{ij})|$. By the Gershgorin circle theorem, this guarantees that $R$ is positive semidefinite without computing eigenvalues.
- The large integer scaling factor $1.8 \cdot 10^{21} = 1800000000000000000000$ clears all rational denominators in $H$ and $B$, enabling exact certificate verification entirely within rational arithmetic.
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_0_residual_certificate : let v : Fin 6 → Fin 3 × Fin 3 × Fin 3 := ![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 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) ℂ := !![(9421330692 : ℂ), 0, 0, 0, 0, 0; (657403949 : ℂ) + (1600207072 : ℂ) * Complex.I, (5480504482 : ℂ), 0, 0, 0, 0; (-1296841327 : ℂ) + (-4656354971 : ℂ) * Complex.I, (444623442 : ℂ) + (455252156 : ℂ) * Complex.I, (3043088632 : ℂ), 0, 0, 0; (883174604 : ℂ) + (-2474917903 : ℂ) * Complex.I, (-2139736475 : ℂ) + (2463751849 : ℂ) * Complex.I, (-1431240042 : ℂ) + (-8040380909 : ℂ) * Complex.I, (2124037997 : ℂ), 0, 0; (-1603448015 : ℂ) + (-1110492811 : ℂ) * Complex.I, (-553925009 : ℂ) + (-610331860 : ℂ) * Complex.I, (-4138244052 : ℂ) + (2482478619 : ℂ) * Complex.I, (379221480 : ℂ) + (-2243133404 : ℂ) * Complex.I, (286310948 : ℂ), 0; (883174604 : ℂ) + (2474917903 : ℂ) * Complex.I, (-3057921886 : ℂ) + (7965562584 : ℂ) * Complex.I, (-1545763778 : ℂ) + (1520074023 : ℂ) * Complex.I, (-1173613728 : ℂ) + (-1682749930 : ℂ) * Complex.I, (90909057 : ℂ) + (-300185995 : ℂ) * Complex.I, (218584420 : ℂ)] let R : Matrix (Fin 6) (Fin 6) ℂ := !![(3567991978801136 : ℂ), (-1755702708 : ℂ) + (989053824 : ℂ) * Complex.I, (-3280891716 : ℂ) + (-1129069932 : ℂ) * Complex.I, (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-3254023620 : ℂ) + (-3519655212 : ℂ) * Complex.I, (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I; (-1755702708 : ℂ) + (-989053824 : ℂ) * Complex.I, (3567997338303891 : ℂ), (-2750511809 : ℂ) + (-1755752743 : ℂ) * Complex.I, (210279770 : ℂ) + (965688783 : ℂ) * Complex.I, (1160960965 : ℂ) + (-337545079 : ℂ) * Complex.I, (-1497228160 : ℂ) + (-985099053 : ℂ) * Complex.I; (-3280891716 : ℂ) + (1129069932 : ℂ) * Complex.I, (-2750511809 : ℂ) + (1755752743 : ℂ) * Complex.I, (3568003702261106 : ℂ), (1827726745 : ℂ) + (4863041635 : ℂ) * Complex.I, (-1972961384 : ℂ) + (2171934124 : ℂ) * Complex.I, (665697525 : ℂ) + (4289166083 : ℂ) * Complex.I; (-3060145968 : ℂ) + (-285821124 : ℂ) * Complex.I, (210279770 : ℂ) + (-965688783 : ℂ) * Complex.I, (1827726745 : ℂ) + (-4863041635 : ℂ) * Complex.I, (3568004027581295 : ℂ), (611100519 : ℂ) + (2533383698 : ℂ) * Complex.I, (-4068798026 : ℂ) + (3933453260 : ℂ) * Complex.I; (-3254023620 : ℂ) + (3519655212 : ℂ) * Complex.I, (1160960965 : ℂ) + (337545079 : ℂ) * Complex.I, (-1972961384 : ℂ) + (-2171934124 : ℂ) * Complex.I, (611100519 : ℂ) + (-2533383698 : ℂ) * Complex.I, (3567999298966188 : ℂ), (921182650 : ℂ) + (3528269697 : ℂ) * Complex.I; (-3060145968 : ℂ) + (285821124 : ℂ) * Complex.I, (-1497228160 : ℂ) + (985099053 : ℂ) * Complex.I, (665697525 : ℂ) + (-4289166083 : ℂ) * Complex.I, (-4068798026 : ℂ) + (-3933453260 : ℂ) * Complex.I, (921182650 : ℂ) + (-3528269697 : ℂ) * Complex.I, (3568012614165352 : ℂ)] R.IsHermitian ∧ (∀ i, (∑ j ∈ Finset.univ.erase i, (|(R i j).re| + |(R i j).im|)) ≤ (R i i).re) ∧ ((1800000000000000000000 : ℂ) • H = B * Bᴴ + R) := by dsimp only have hH : ∀ i j : Fin 6, qutrit_rational_candidate_extension (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2]) = qutrit_rational_candidate_extension_blocks 0 (![(0:Fin 6),4,2,3,1,5] i) (![(0:Fin 6),4,2,3,1,5] 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, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) i).2.2]) (((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).1, ![((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.1, ((![(0, 0, 0), (0, 1, 2), (1, 0, 2), (1, 1, 1), (2, 0, 1), (2, 2, 2)] : Fin 6 → Fin 3 × Fin 3 × Fin 3) j).2.2])) = Matrix.of (fun i j : Fin 6 => qutrit_rational_candidate_extension_blocks 0 (![(0:Fin 6),4,2,3,1,5] i) (![(0:Fin 6),4,2,3,1,5] 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)