AFTD Auto-Formalizing Theoretical Domains

bapat_sunder_witness_normsq

theoremverified

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

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.

  1. 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.

    line 3

    uses bapat_sunder_witness_vector, explicit_witness_vector_32_dot_self

        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)
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).

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

/-- 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)
See it in the graphDiscuss this resultChallenge it