AFTD Auto-Formalizing Theoretical Domains

three_qubit_coordinate_frame_phase_sign_obstruction

theoremverified

For the displayed real trilinear tensor, the quartic phase invariant is strictly positive on each of the six indicated positively oriented coordinate frames. Thus those frames alone do not supply opposite signs for an arbitrary tensor; this is not a physical-state counterexample.

Statement

theorem three_qubit_coordinate_frame_phase_sign_obstruction :
  let T : Fin 3 → Fin 3 → Fin 3 → ℂ :=
    ![![![0,0,1], ![0,0,0], ![1,2,0]],
      ![![2,0,0], ![0,-1,2], ![0,-1,0]],
      ![![2,-1,0], ![0,1,0], ![0,0,0]]]
  let e0 : Fin 3 → ℂ := ![1,0,0]
  let e1 : Fin 3 → ℂ := ![0,1,0]
  let e2 : Fin 3 → ℂ := ![0,0,1]
  let tri := fun (x y z : Fin 3 → ℂ) => ∑ i, ∑ j, ∑ k, T i j k * x i * y j * z k
  let F := fun (a b c : Fin 3 → ℂ) =>
    let p : Fin 3 → ℂ := fun i => b i + Complex.I*c i
    let q : Fin 3 → ℂ := fun i => c i + Complex.I*a i
    let r : Fin 3 → ℂ := fun i => a i + Complex.I*b i
    let z0 := tri p q r
    let z1 := tri p q (fun i => star (r i))
    let z2 := tri p (fun i => star (q i)) r
    let z3 := tri (fun i => star (p i)) q r
    (z0 * star (z1*z2*z3)).im
  F e0 e1 e2 = 64 ∧ F e0 e2 (-e1) = 64 ∧
  F e1 e0 (-e2) = 16 ∧ F e1 e2 e0 = 4 ∧
  F e2 e0 e1 = 24 ∧ F e2 e1 (-e0) = 16
Source
Exact certificate for AFTD computation 29928, related to arXiv:2611.16921 Section VII.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem is proved by direct numerical computation. For the given 3 × 3 × 3 tensor T and standard basis vectors e₀, e₁, e₂, the invariant F on each of the six positively oriented coordinate frames expands into finite sums of complex products. The `norm_num` tactic fully unfolds the sums, vector indexing, and complex arithmetic, verifying that the values are strictly positive integers (64, 64, 16, 4, 24, and 16).

  1. The invariant F evaluates to 64, 64, 16, 4, 24, and 16 on the six respective coordinate frames. automation

    Evaluating F on each frame (a, b, c) involves computing four trilinear forms z₀, z₁, z₂, z₃ (each a sum over Fin 3 × Fin 3 × Fin 3), multiplying them as z₀ * star(z₁ * z₂ * z₃), and taking the imaginary part. The automated arithmetic tactic `norm_num` expands each finite sum via `Fin.sum_univ_three`, looks up vector and tensor components using matrix extraction lemmas (`Matrix.cons_val_two`, `Matrix.cons_val_three`, `Matrix.vecHead`, `Matrix.vecTail`), and simplifies complex conjugation and multiplication into real arithmetic with `Complex.star_def`, `Complex.mul_re`, and `Complex.mul_im`. Computing these finite expressions directly verifies all six equalities.

    lines 22–23

    uses Fin.sum_univ_three, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, Complex.star_def, Complex.mul_re, Complex.mul_im

      norm_num [Fin.sum_univ_three, Matrix.cons_val_two, Matrix.cons_val_three,
        Matrix.vecHead, Matrix.vecTail, Complex.star_def, Complex.mul_re, Complex.mul_im]
Fin.sum_univ_three
Expanding a summation over Fin 3 into the explicit three-term sum f 0 + f 1 + f 2.
Matrix.cons_val_two
Index 2 of a vector formed by prepending x to u is the head of the tail of u.
Matrix.cons_val_three
Index 3 of a vector formed by prepending x to u is the head of the second tail of u.
Matrix.vecHead
Extracting the first component (index 0) of a vector.
Matrix.vecTail
Extracting the tail of a vector by dropping its first component.
Complex.star_def
The star involution on ℂ is standard complex conjugation.
Complex.mul_re
The real part of a product of complex numbers: (z * w).re = z.re * w.re - z.im * w.im.
Complex.mul_im
The imaginary part of a product of complex numbers: (z * w).im = z.re * w.im + z.im * w.re.

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 three_qubit_coordinate_frame_phase_sign_obstruction :  let T : Fin 3 → Fin 3 → Fin 3 → ℂ :=    ![![![0,0,1], ![0,0,0], ![1,2,0]],      ![![2,0,0], ![0,-1,2], ![0,-1,0]],      ![![2,-1,0], ![0,1,0], ![0,0,0]]]  let e0 : Fin 3 → ℂ := ![1,0,0]  let e1 : Fin 3 → ℂ := ![0,1,0]  let e2 : Fin 3 → ℂ := ![0,0,1]  let tri := fun (x y z : Fin 3 → ℂ) => ∑ i, ∑ j, ∑ k, T i j k * x i * y j * z k  let F := fun (a b c : Fin 3 → ℂ) =>    let p : Fin 3 → ℂ := fun i => b i + Complex.I*c i    let q : Fin 3 → ℂ := fun i => c i + Complex.I*a i    let r : Fin 3 → ℂ := fun i => a i + Complex.I*b i    let z0 := tri p q r    let z1 := tri p q (fun i => star (r i))    let z2 := tri p (fun i => star (q i)) r    let z3 := tri (fun i => star (p i)) q r    (z0 * star (z1*z2*z3)).im  F e0 e1 e2 = 64 ∧ F e0 e2 (-e1) = 64 ∧  F e1 e0 (-e2) = 16 ∧ F e1 e2 e0 = 4 ∧  F e2 e0 e1 = 24 ∧ F e2 e1 (-e0) = 16 := by  norm_num [Fin.sum_univ_three, Matrix.cons_val_two, Matrix.cons_val_three,    Matrix.vecHead, Matrix.vecTail, Complex.star_def, Complex.mul_re, Complex.mul_im]
See it in the graphDiscuss this resultChallenge it