Every integer solution of XY = UV admits four parameters
ProvedEqualTwoSquares.four_factor_paramLet X, Y, U and V be integers with X * Y = U * V. Then there are integers p, q, r and s such that X = pr, Y = qs, U = ps and V = qr.
import Mathlib
namespace EqualTwoSquares
/-- Objective 5: every solution of XY = UV over the integers admits four parameters. -/
theorem four_factor_param (X Y U V : ℤ) (h : X * Y = U * V) :
∃ p q r s : ℤ, X = p * r ∧ Y = q * s ∧ U = p * s ∧ V = q * r := by sorry
end EqualTwoSquaresRead-back
What the Lean code literally says, in plain math · independent-agent
Read-back: four_factor_param
Declared in namespace EqualTwoSquares (file items/four_factor_param.lean); the name agrees with the file name. Its own doc line reads "Objective 5: every solution of XY = UV over the integers admits four parameters."
What the declaration literally says
For all integers satisfying the single hypothesis
there exist integers such that all four factorisations hold simultaneously:
(Schematically: the four quantities are the "cross products" of the parameters, arranged as .) There is no coprimality condition, no positivity, no non-vanishing, no bound on the size of , and no uniqueness claim: witnesses are asserted to exist, nothing more. All four of are explicit arguments and all four appear in the hypothesis and in the conclusion.
Degenerate cases are explicitly covered by the quantifiers, and they were the focus of the counterexample hunt: all four variables ; exactly three zero; exactly two zero on the same "diagonal" (e.g. with arbitrary); two zero on the same "side" (e.g. forcing or ); negative values (e.g. ); coincidences such as ; and cases where of two of the variables is , which happens exactly when both are . A worked example of the verification below: is realised by (indeed , , , ); by .
Audit notes
- Truth. TRUE. General proof: if , take , , , (then , , , ). Otherwise let , put , , , so , and ; the hypothesis gives , hence (as ); if then , so and , and one takes ; if , coprimality gives , say , and then gives . Signs do not obstruct anything since and divisibility over is up to sign. Additionally: (a) every quadruple with and all entries in was checked against the explicit construction — 7905 tuples, 0 failures; (b) an independent brute-force search for witnesses (not using any construction) over all quadruples in and witnesses in found witnesses for all 1313 admissible tuples, 0 failures. No counterexample exists among the flagged danger zones: multiple zeros, (i.e. ), and negative values.
- Faithfulness. Name matches file name; the doc line matches the statement precisely ("every solution of admits four parameters"). Every variable is bound (four explicit parameters plus four existentially bound witnesses); nothing free, and every variable mentioned in the conclusion is quantified.
- Trivializing premise. None: is the object of study, not a restatement of the existence of . Interesting cases abound (e.g. forces witnesses ), so the statement is not vacuous or empty in its interesting case.
- Satisfiability. Satisfiable with many witnesses, both degenerate (, realised by ) and genuinely non-trivial (, realised by ). Non-vacuous.
- 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.