An explicit one-parameter family of solutions
ProvedEqualTwoSquares.explicit_family_identityFor every integer n, 1^2 + (n^2 - n + 1)^2 = (2n - 1)^2 + (n^2 - n - 1)^2. No positivity or size hypothesis is imposed on n: the identity is a polynomial identity in n.
import Mathlib
namespace EqualTwoSquares
/-- Objective 2, equality part: the explicit one-parameter family, valid for every integer n. -/
theorem explicit_family_identity (n : ℤ) :
(1 : ℤ)^2 + (n^2 - n + 1)^2 = (2 * n - 1)^2 + (n^2 - n - 1)^2 := by sorry
end EqualTwoSquaresRead-back
What the Lean code literally says, in plain math · independent-agent
Read-back: explicit_family_identity
Declared in namespace EqualTwoSquares (file items/explicit_family_identity.lean); the name agrees with the file name. Its own doc line reads "Objective 2, equality part: the explicit one-parameter family, valid for every integer n."
What the declaration literally says
For every integer , writing , the following equality of sums of two squares holds:
that is, explicitly,
The single integer parameter is an explicit argument and is completely unrestricted: no positivity, no lower bound, no distinctness and no coprimality is required. The quadruple of entries involved is , with on the left of the equality of sums of squares and on the right.
Degenerate and edge cases silently covered: gives , i.e. ; gives ; negative (e.g. : , i.e. ); and repeated entries (for and several of the four entries coincide). The claim is asserted for all of them.
Expanding both sides confirms it: with the left side is , while the right side is , using .
Audit notes
- Truth. Verified algebraically (above) and numerically for every integer with ; no counterexample. TRUE.
- Faithfulness. Name matches file name; the doc line's "valid for every integer n" corresponds exactly to the unrestricted parameter ; the equality asserted is exactly the family identity. All variables bound.
- Trivializing premise. None: no hypotheses.
- Satisfiability. No hypothesis; instantly non-vacuous and non-trivial (e.g. : ).
- Elaboration. Included in
statements/All.lean; elaborates with only the expecteddeclaration uses 'sorry'warning.
FAITHFUL
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.