bapat_sunder_witness_normsq
The dot product of the witness vector with itself is 3591.
Statement
theorem bapat_sunder_witness_normsq :
dotProduct bapat_sunder_witness_vector bapat_sunder_witness_vector = 3591- Source
- step towards op_1992_real_bapat_sunder_counterexample_rank_two_or_three
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- bapat_sunder_witness_vectorThe explicit integer witness vector x of length 28, of squared norm 3591, for which the Bapat-Sunder quadratic form of the witness Gram…
- explicit_witness_vector_32_dot_selfThe dot product of explicit_witness_vector_32 with itself equals 10043.
The proof, explained
The theorem establishes that the 28-element witness vector has squared Euclidean norm (dot product with itself) equal to 3591. The proof unfolds the definition of the witness vector into its explicit integer components and evaluates the dot product by direct arithmetic computation using simplification.
The dot product of the witness vector with itself is 3591. automation
The proof tries several candidate tactics using `first`. After earlier attempts fail, it expands the definition of `bapat_sunder_witness_vector` into its explicit 28 integer coordinates and computes the dot product directly by arithmetic simplification (`simpa`), which evaluates the sum of squares $1^2 + 15^2 + (-4)^2 + \dots + 9^2$ to 3591.
uses
bapat_sunder_witness_vector,explicit_witness_vector_32_dot_selfdotProduct bapat_sunder_witness_vector bapat_sunder_witness_vector = 3591 := by first | exact explicit_witness_vector_32_dot_self | (apply explicit_witness_vector_32_dot_self <;> assumption) | (apply explicit_witness_vector_32_dot_self <;> simp_all) | simpa using explicit_witness_vector_32_dot_self | (simp only [bapat_sunder_witness_vector] at *; first | exact explicit_witness_vector_32_dot_self | (apply explicit_witness_vector_32_dot_self <;> assumption) | (apply explicit_witness_vector_32_dot_self <;> simp_all) | simpa using explicit_witness_vector_32_dot_self)
explicit_witness_vector_32_dot_self- The dot product of the 32-element explicit witness vector with itself equals 10043.
bapat_sunder_witness_vector- The explicit 28-element integer vector (1, 15, -4, -16, 8, 18, -10, 27, -6, -18, -3, 0, 13, -1, 2, -18, -1, -9, 0, -5, 24, -4, -5, -11, 5, -7, -3, 9).
- The proof consists of a search combinator (`first | ...`) produced by an automated proof generator. The initial branches fail, but the final branch succeeds by expanding the definition of `bapat_sunder_witness_vector` and evaluating the dot product of the concrete integer vector with itself via `simp`. The lemma `explicit_witness_vector_32_dot_self` provided to `simpa` is entirely unused by Lean because the simplification alone evaluates the sum of squares to 3591.
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 witness vector has squared norm 3591. -/theorem bapat_sunder_witness_normsq : dotProduct bapat_sunder_witness_vector bapat_sunder_witness_vector = 3591 := by first | exact explicit_witness_vector_32_dot_self | (apply explicit_witness_vector_32_dot_self <;> assumption) | (apply explicit_witness_vector_32_dot_self <;> simp_all) | simpa using explicit_witness_vector_32_dot_self | (simp only [bapat_sunder_witness_vector] at *; first | exact explicit_witness_vector_32_dot_self | (apply explicit_witness_vector_32_dot_self <;> assumption) | (apply explicit_witness_vector_32_dot_self <;> simp_all) | simpa using explicit_witness_vector_32_dot_self)