four_point_set_interval_length
For an integer n, setting a = 2n - 1 and b = 2n + 1, the number of integers in the interval [a + 2b, ab - 1 - a - b], given by (ab - 1 - a - b) - (a + 2b) + 1, equals 4n^2 - 10n - 2.
Statement
theorem four_point_set_interval_length (n : ℤ) : let a : ℤ := 2 * n - 1 let b : ℤ := 2 * n + 1 a * b - 1 - a - b - (a + 2 * b) + 1 = 4 * n ^ 2 - 10 * n - 2
- Source
- arXiv:2610.24281 Lemma 3.2
- Verified
- 22 Oct 2026
- Axioms
Quot.soundpropext
Read back from the Lean
For every integer $n$, letting $a = 2n - 1$ and $b = 2n + 1$, the algebraic identity $a \cdot b - 1 - a - b - (a + 2b) + 1 = 4n^2 - 10n - 2$ holds (evaluated with standard left-associative subtraction).
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 is established by direct polynomial expansion and simplification over the integers. Substituting the definitions $a = 2n - 1$ and $b = 2n + 1$ into $(ab - 1 - a - b) - (a + 2b) + 1$ and expanding the product $(2n - 1)(2n + 1) = 4n^2 - 1$ simplifies the entire expression to $4n^2 - 10n - 2$.
The interval length formula $(ab - 1 - a - b) - (a + 2b) + 1$ evaluates to $4n^2 - 10n - 2$. automation
Introducing the definitions $a = 2n - 1$ and $b = 2n + 1$, the expression on the left-hand side becomes $((2n - 1)(2n + 1) - 1 - (2n - 1) - (2n + 1)) - ((2n - 1) + 2(2n + 1)) + 1$. Expanding the product $(2n - 1)(2n + 1) = 4n^2 - 1$ and combining like terms yields $(4n^2 - 4n - 2) - (6n + 1) + 1 = 4n^2 - 10n - 2$, which matches the right-hand side. The `ring` tactic verifies this polynomial identity automatically over the integers.
intro a b ring
- The `ring` tactic automatically expands the definitions of `a` and `b` and normalizes the polynomial expression over ℤ without detailing the intermediate algebra.
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 length of the interval [a + 2b, ab - 1 - a - b] equals 4n^2 - 10n - 2. -/theorem four_point_set_interval_length (n : ℤ) : let a : ℤ := 2 * n - 1 let b : ℤ := 2 * n + 1 a * b - 1 - a - b - (a + 2 * b) + 1 = 4 * n ^ 2 - 10 * n - 2 := by intro a b ring