The family parametrisation is injective
ProvedEqualTwoSquares.familyQuad_injectiveThe map sending an integer n to the quadruple (1, n^2 - n + 1, 2n - 1, n^2 - n - 1) of integers is injective on all of the integers.
import Mathlib
namespace EqualTwoSquares
/-- Objective 3: the parametrisation n ↦ (1, n^2-n+1, 2n-1, n^2-n-1) is injective. -/
theorem familyQuad_injective :
Function.Injective
(fun n : ℤ => ((1 : ℤ), n^2 - n + 1, 2 * n - 1, n^2 - n - 1)) := by sorry
end EqualTwoSquaresRead-back
What the Lean code literally says, in plain math · independent-agent
Read-back: familyQuad_injective
Declared in namespace EqualTwoSquares (file items/familyQuad_injective.lean); the name agrees with the file name. Its own doc line reads "Objective 3: the parametrisation n ↦ (1, n^2-n+1, 2n-1, n^2-n-1) is injective."
What the declaration literally says
The map
is injective: for all integers , if then . Equality here is equality of the whole four-tuple, i.e. equality in each of the four coordinates simultaneously; unequal indices are claimed to produce unequal tuples, and no hypothesis restricts the indices.
Note what this does not say: nothing about the images being distinct as unordered sets, nothing about surjectivity, nothing about injectivity up to the symmetry or other reorderings, and nothing about being positive or bounded. Degenerate values are silently included: gives and gives , distinct tuples, so no collision arises even there.
Injectivity is witnessed already by the third coordinate alone: forces in .
Audit notes
- Truth. Verified exhaustively: computed for every with produces no repeated tuple; algebraically, coordinate 3 gives . TRUE.
- Faithfulness. Name matches file name, and the doc line's parametrisation is exactly the map whose injectivity is asserted. Every variable is bound by the statement itself (the two indices are the hidden arguments of the injectivity quantifier); nothing free.
- Trivializing premise. None: there are no hypotheses. Every map either is or is not injective; no assumption smuggles in the conclusion.
- Satisfiability. No hypothesis to satisfy; the domain is non-empty, so the statement is non-vacuous, and its content is genuinely realised (different indices do give different tuples, e.g. vs ).
- 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.