The sum-of-squares equation rewritten as a product equation
ProvedEqualTwoSquares.sum_sq_eq_iff_productFor integers a, b, c and d, the equality a^2 + b^2 = c^2 + d^2 holds if and only if (a + c)(a - c) = (d + b)(d - b).
import Mathlib
namespace EqualTwoSquares
/-- Objective 4, rearrangement: the sum-of-squares equation rewritten as a product equation. -/
theorem sum_sq_eq_iff_product (a b c d : ℤ) :
a^2 + b^2 = c^2 + d^2 ↔ (a + c) * (a - c) = (d + b) * (d - b) := by sorry
end EqualTwoSquaresRead-back
What the Lean code literally says, in plain math · independent-agent
Read-back: sum_sq_eq_iff_product
Declared in namespace EqualTwoSquares (file items/sum_sq_eq_iff_product.lean); the name agrees with the file name. Its own doc line reads "Objective 4, rearrangement: the sum-of-squares equation rewritten as a product equation."
What the declaration literally says
For all integers — with no hypotheses whatsoever — the following equivalence holds:
Both sides use the same four integers; the left side is the sum-of-two-squares equation, the right side the corresponding "difference-of-products" form. Explicitly, and , so the right-hand equation is , which is exactly the left-hand equation with and moved across. Hence both directions of the equivalence are pure rearrangement over ; nothing about divisibility, parity, order or positivity is involved, and there are no hidden conditions.
The quantifiers cover every integer value: zeros (both sides then read ), negative entries (each square is unaffected by the sign, so both sides are unchanged under any sign flip of any variable), coincident entries (e.g. and gives on the right and a true equality on the left), and equal entries across the two sides.
Note what the statement does not say: it does not introduce the half-integers etc., it does not claim that and have any particular parity, and it does not assert anything equivalent to the divisibility needed later for the four-factor parametrisation — it is only the identity-level rearrangement, valid for every quadruple, including those for which no integral parametrisation witnesses need exist.
Audit notes
- Truth. TRUE. and ; hence the right-hand equality is equivalent to , i.e. to . Verified exhaustively: for every quadruple with the truth values of the two sides agree — zero mismatches.
- Faithfulness. Name matches file name; the doc line "the sum-of-squares equation rewritten as a product equation" matches exactly, and the statement is an (equivalence), not merely the forward implication, so its strength matches "rewritten as". All four variables are explicit parameters, occurring on both sides of the equivalence; nothing is free, and nothing is quantified over vacuously.
- Trivializing premise. None: there are no hypotheses at all, so nothing can presuppose the conclusion or render the statement vacuous.
- Satisfiability. No hypotheses; both sides are satisfiable and both fail for suitable choices (e.g. makes both sides false), so the equivalence carries real information and is not degenerate.
- 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.