AFTD Auto-Formalizing Theoretical Domains

qutrit_rational_candidate_witness_expectation

theoremverified

The candidate witness has exactly negative expectation on the candidate Choi matrix.

Statement

theorem qutrit_rational_candidate_witness_expectation :
    (∑ p : Fin 3 × Fin 3, ∑ q : Fin 3 × Fin 3,
      qutrit_rational_candidate_witness p q * (qutrit_convolution_choi qutrit_rational_candidate_sigma) q p).re =
      -(5405001211 : ℝ) / 200000000000000
Source
OP-2299; candidate witness from computations 39270, 40213 and 40215.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3

The proof, explained

The theorem calculates the expectation value of an explicit 9 × 9 candidate witness matrix against the Choi matrix of a candidate state σ on a qutrit system. The proof expands the double sum of 81 terms by unfolding all matrix definitions and finite sums, and then completes the proof by direct rational arithmetic calculation.

  1. Unfold the definitions of the witness, the Choi matrix, and its underlying state, and expand all finite sums over Fin 3 × Fin 3.

    Rewriting with the definitions of the matrices, their entry-wise formulas, and the sum expansion rules for products and finite sets unrolls the 81 terms of the double sum into an explicit arithmetic expression over the real parts of rational numbers.

    lines 5–8

    uses Fintype.sum_prod_type, Fin.sum_univ_succ, Matrix.of_apply, Fin.add_def, Fin.sub_def

      set_option maxHeartbeats 4000000 in
        simp [qutrit_rational_candidate_witness, qutrit_rational_candidate_witness_flat,
          qutrit_rational_candidate_sigma, qutrit_convolution_choi, Fintype.sum_prod_type,
          Fin.sum_univ_succ, Matrix.of_apply, Fin.add_def, Fin.sub_def]
  2. The resulting explicit rational arithmetic expression equals -5405001211 / 200000000000000. automation

    Evaluating the rational arithmetic operations on both sides confirms the equality.

    line 9

        <;> norm_num
Fintype.sum_prod_type
The sum over a product type is the iterated sum over each component.
Fin.sum_univ_succ
Splits a sum over Fin (n + 1) into the term at 0 and the sum over the remaining successors.
Matrix.of_apply
Evaluating a matrix defined by a function at an entry yields the function applied to that index.
Fin.add_def
Addition in Fin n is given by integer addition modulo n.
Fin.sub_def
Subtraction in Fin n is given by integer subtraction modulo n.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem qutrit_rational_candidate_witness_expectation :    (∑ p : Fin 3 × Fin 3, ∑ q : Fin 3 × Fin 3,      qutrit_rational_candidate_witness p q * (qutrit_convolution_choi qutrit_rational_candidate_sigma) q p).re =      -(5405001211 : ℝ) / 200000000000000 := by  set_option maxHeartbeats 4000000 in    simp [qutrit_rational_candidate_witness, qutrit_rational_candidate_witness_flat,      qutrit_rational_candidate_sigma, qutrit_convolution_choi, Fintype.sum_prod_type,      Fin.sum_univ_succ, Matrix.of_apply, Fin.add_def, Fin.sub_def]    <;> norm_num
See it in the graphDiscuss this resultChallenge it