explicit_witness_vector_32_dot_self
The dot product of explicit_witness_vector_32 with itself equals 10043.
Statement
theorem explicit_witness_vector_32_dot_self :
dotProduct explicit_witness_vector_32 explicit_witness_vector_32 = 10043- Source
- arXiv:2611.23269, Eq. (5)
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- explicit_witness_vector_32The integer vector x of type Fin 32 → ℤ with entries -10, 24, -18, 0, -23, 1, -2, -6, -3, 10, -15, -35, -14, -34, 10, 17, 6, -4, 38, 31,…
- two_pow_eq_succ_iffFor a natural d, two to the power d equals d+1 exactly when d is zero or one.
- Used by 1
- bapat_sunder_witness_normsqThe dot product of the witness vector with itself is 3591.
Read back from the Lean
The dot product of the vector explicit_witness_vector_32 with itself is equal to 10043.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem states that the squared Euclidean norm of the explicit 32-element integer vector equals 10043. The proof unfolds the definition of the vector and evaluates the dot product directly by arithmetic simplification, summing the squares of the 32 coordinates.
The dot product of `explicit_witness_vector_32` with itself equals 10043. automation
The definition of `explicit_witness_vector_32` is unfolded to expose its 32 explicit integer coordinates: $[-10, 24, -18, 0, -23, 1, -2, -6, -3, 10, -15, -35, -14, -34, 10, 17, 6, -4, 38, 31, -3, 22, -31, -10, -1, 31, -1, -1, 8, 7, 9, -2]$. Its dot product with itself is the sum of the squares of these entries, $(-10)^2 + 24^2 + \dots + (-2)^2$. The automated simplifier evaluates this finite sum of integer squares directly, verifying that it equals 10043 and closing the goal.
uses
explicit_witness_vector_32,two_pow_eq_succ_iffdotProduct explicit_witness_vector_32 explicit_witness_vector_32 = 10043 := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [explicit_witness_vector_32] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)
two_pow_eq_succ_iff- For a natural number $d$, $2^d = d + 1$ if and only if $d = 0$ or $d = 1$.
explicit_witness_vector_32- The concrete length-32 vector of integers $(-10, 24, -18, \dots, -2)$.
- The proof line is generated by an automated search script that tries a sequence of standard tactics, including multiple attempts to apply `two_pow_eq_succ_iff`, a lemma that is mathematically unrelated to this identity.
- The goal is closed by `simpa` solely through simplification and arithmetic evaluation of the concrete dot product; the lemma `two_pow_eq_succ_iff` provided to `simpa` is entirely unused in the computation.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- The squared Euclidean norm of the length-32 witness vector is 10043. -/theorem explicit_witness_vector_32_dot_self : dotProduct explicit_witness_vector_32 explicit_witness_vector_32 = 10043 := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [explicit_witness_vector_32] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)