{
  "slug": "erdos324-erdos-324-variants-quintic",
  "mode": "counterexample",
  "target_name": "Bounty.target",
  "source_theorem": "Erdos324.erdos_324.variants.quintic",
  "challenge_sha256": "sha256:c64e7a03cb35920dac0bf0039dba2fe155478be5d6228e8f37a4f16808897fa8",
  "challenge_sha256_by_mode": {
    "formalized": "sha256:6e1d6cdc1d601aef3c91c4a52dc918c5b4502bf04dff2985eb07940fbc81b232",
    "counterexample": "sha256:c64e7a03cb35920dac0bf0039dba2fe155478be5d6228e8f37a4f16808897fa8"
  },
  "class": "d",
  "classification_reason": "A proof would give an explicit witness to the broader existential polynomial problem. Fixing that witness as x⁵ leaves the hard unbounded fifth-power collision problem. A finite search can find a refutation but can only exclude the family it covers.",
  "plan": "Orient any collision as a < c < d < b and divide out the common gcd of all four coordinates. Search the primitive family d = b − 1 with a fixed and small, which reduces the equation to testing whether a⁵ + b⁵ − (b−1)⁵ is an exact fifth power. Reject impossible residues first, then recover c by integer binary search and recheck the full equality. A hit would be certified with kernel-checked numeral arithmetic and injected into the exact negated target. Use the pinned Lake project to check the general reductions independently of the search.",
  "chance_pct": 0.01,
  "chance_basis": "Subjective estimate of a complete eligible solution during this run. The universal assertion has no known finite cutoff and the narrow refutation search addresses a conjectured empty set.",
  "status": "partial",
  "followup": false,
  "scope": "Single assigned target. The pinned inventory has 278 submission-open targets and 556 modes. This item records the assigned row for the batch inventory.",
  "triage": [
    {
      "slug": "erdos324-erdos-324-variants-quintic",
      "statement": "Set.InjOn\n  (fun x =>\n    match x with\n    | (a, b) => a ^ 5 + b ^ 5)\n  {(a, b) | a < b}",
      "domain": "Pairs in ℕ × ℕ with strict inequality, allowing zero",
      "source": "https://www.erdosproblems.com/324",
      "attempts": {
        "count": 0,
        "observed_at_utc": "2026-11-26T09:19:48Z",
        "definition": "API submissions counted by reward_target_id across modes and pin rotations. A task's attempt count pertains to that task ID."
      },
      "bounty": {
        "amount_rao": 8249578413442,
        "amount_usd": "2957.83",
        "policy_version": "linear-age-v3-chat-logs",
        "available": true,
        "reason": "OPEN",
        "as_of": "2026-11-26T09:19:00Z",
        "locked": false,
        "unit": "Subnet 66 Alpha rao",
        "observed_at_utc": "2026-11-26T09:19:48Z"
      },
      "accepting_submissions": true,
      "observed_at_utc": "2026-11-26T09:19:48Z",
      "class": "d",
      "chance_pct": 0.01
    }
  ],
  "literature_check": {
    "checked_on": "2026-11-26",
    "result": "No complete solution with the exact hypotheses found in this scoped review.",
    "entries": [
      {
        "date": "1980 source at ErGr80 p. 53, problem page checked 2026-11-26",
        "url": "https://www.erdosproblems.com/324",
        "scope": "The source asks for some polynomial over ℤ. Bloom's page singles out x⁵ as a conjectured witness and relates it to Lander–Parkin–Selfridge (LPS)."
      },
      {
        "date": "2025 comments, checked 2026-11-26",
        "url": "https://www.erdosproblems.com/forum/thread/324",
        "scope": "Tao suggests arithmetic progressions and a conditional algebraic-geometric route for the existential polynomial question. The other comment describes Ruzsa's perturbation and the low-degree exclusions. Neither provides a proof or refutation for x⁵."
      },
      {
        "date": "2001",
        "url": "https://api.crossref.org/works/10.1556/SScMath.38.2001.1-4.27",
        "scope": "Ruzsa proves a Sidon result after taking floors of values of a particular real quintic on a tail. The source problem gives the form n⁵ + floor(c n⁴). This permits a nonzero perturbation."
      },
      {
        "date": "2021",
        "url": "https://api.crossref.org/works/10.1002/mana.202000334",
        "scope": "Dubickas and Novikas exclude degree at most three, even on a tail."
      },
      {
        "date": "1998",
        "url": "https://www.ams.org/mcom/1998-67-223/S0025-5718-98-00979-X/S0025-5718-98-00979-X.pdf",
        "scope": "Ekl's Table 9 reports a search limit of 4.01 × 10³⁰ on the common sum for [5.2.2]. The conclusion explicitly leaves [5.2.2] open. Read the publisher PDF via indexed text. Direct fetch to the publisher was refused."
      },
      {
        "date": "2008 and 2020 comments, checked 2026-11-26",
        "url": "https://oeis.org/A046881",
        "scope": "A046881 relays Gascoigne's 2002 bound of 3.26 × 10³² and records Courties' 10³³ claim for positive, distinct summands. Gascoigne's original report and Courties' method were not independently verified. The new search reaches above both numbers within its restricted family."
      },
      {
        "date": "2005 preprint",
        "url": "https://arxiv.org/abs/math/0506497",
        "scope": "Browning and Heath-Brown prove a paucity estimate for repeated sums of like powers. A quantitative upper bound on their number does not force that number to vanish."
      },
      {
        "date": "2015 preprint",
        "url": "https://arxiv.org/abs/1511.07424",
        "scope": "Campbell and Zujev give identities over Gaussian integers. These do not yield an admissible natural-number collision."
      },
      {
        "date": "2025 preprint, published 2026",
        "url": "https://arxiv.org/abs/2504.04354",
        "scope": "Section 2.3 states LPS as a conjecture. Their conditional Diophantine tuple results use a special case for k ≥ 25."
      },
      {
        "date": "2026-07-01 preprint",
        "url": "https://arxiv.org/abs/2607.01165",
        "scope": "The unconditional result is over polynomial rings. The integer result in Section 2 is conditional on LPS and concerns exponents at least seven."
      },
      {
        "date": "2026-03-17 merged formalization",
        "url": "https://github.com/google-deepmind/formal-conjectures/pull/2333.patch",
        "scope": "The source patch adds a statement with proof placeholders for Taxicab(5,2,2). Its positive-summand, list formulation allows a repeated summand. The pinned Erdős variant permits zero and requires strictly increasing pairs."
      },
      {
        "date": "checked 2026-11-26",
        "url": "https://raw.githubusercontent.com/google-deepmind/alphaproof-nexus-results/main/erdos_problems_attempted.txt",
        "scope": "AlphaProof Nexus lists the exact theorem among its attempts. Its public repository tree showed no output or proof file identified as this variant."
      },
      {
        "date": "checked 2026-11-26",
        "url": "https://raw.githubusercontent.com/conjectures-io/conjectures-contribution/main/contributions/erdos-324-variants-quintic/index.md",
        "scope": "The public contribution index for the same reward target records zero contributions. Its displayed bundle links are for an older pin."
      },
      {
        "date": "checked 2026-11-26",
        "url": "https://conjectures.io/how-it-works",
        "scope": "The exact Lean proposition or its negation is required, with the original AI chat logs."
      },
      {
        "date": "checked 2026-11-26",
        "url": "https://conjectures.io/v1/catalog/submission-terms",
        "scope": "Live endpoint reports v13 effective 2026-11-11. The novelty rule disqualifies an already established public proof of the same direct problem."
      }
    ]
  },
  "attempted_steps": [
    "Read pinned inventory, metadata and both challenges. Independently hashed both challenge files and matched metadata. Built a definitional type check against the explicit Nat-pair Set.InjOn statement.",
    "Reconstructed FC from the pinned base and checked patch digest. Checked TaskSupport's digest and all Lake dependency revisions against metadata.",
    "Reduced the target's negation to a strictly nested primitive quadruple and checked scaling and mod 11 lemmas in Lean.",
    "Ran exact C++ search with d = b − 1 and a < c < d. Compared survivor values to exact fifth powers via binary search with no floating point."
  ],
  "search": {
    "ranges_inclusive": [
      {
        "a": [
          0,
          1
        ],
        "min_b": "a + 3",
        "max_b": 30000000
      },
      {
        "a": [
          2,
          32
        ],
        "min_b": 4000000,
        "max_b": 30000000
      }
    ],
    "gap_b_minus_d": 1,
    "moduli": [
      11,
      25,
      31,
      41,
      71
    ],
    "outer_choices": 866000026,
    "exact_checks": 10184165,
    "hits": 0,
    "independent_modular_count_check": "CRT verified all 33 modular-survivor counts (10184165 total).",
    "lean_certification": "UNVERIFIED"
  },
  "obstruction": "The proof direction is an open two-against-two quintic case of LPS on strictly distinct positive coordinates, with a zero boundary handled mathematically by exponent-five FLT. Congruences and gcd normalization remove many candidates but supply no global bound. The restricted finite search yielded no coordinates to certify.",
  "checked_lemmas": [
    "Quintic324.refutation_iff_nested",
    "Quintic324.fifth_residue_eleven",
    "Quintic324.collision_residue_eleven",
    "Quintic324.scale_collision_iff",
    "Quintic324.refutation_iff_primitive"
  ],
  "verification": {
    "lemma_check": "Local Lake build and per-lemma axiom audit in a compatibility-adjusted scratch project",
    "exact_environment": "UNVERIFIED. The reconstructed FC source does not compile as supplied against the pinned Mathlib.",
    "scratch_adjustment": "FormalConjecturesUtil.lean omits its re-exports of FormalConjecturesForMathlib and the import-style linter. The source challenge module, TaskSupport, and lemma imports are byte-identical to their respective pins or delivered sources.",
    "independent_rebuild": false,
    "full_target": false
  },
  "chat_logs": {
    "status": "missing_original_chat_export",
    "location": null,
    "sha256": null
  },
  "files": {
    "Lemmas.lean": "import Mathlib\nimport FormalConjectures.ErdosProblems.«324»\nimport TaskSupport\n/-! Reductions and congruences for the fifth-power collision search. -/\n\nnamespace Quintic324\n\ntheorem refutation_iff_nested :\n    (¬ (fcTypeOfName% \"Erdos324.erdos_324.variants.quintic\")) ↔\n      ∃ a b c d : ℕ, a < c ∧ c < d ∧ d < b ∧ a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5 := by\n  classical\n  have increasing : StrictMono (fun x : ℕ => x ^ 5) :=\n    fun _ _ h => pow_lt_pow_left₀ h (Nat.zero_le _) (by decide)\n  have nest {a b c d : ℕ} (hac : a < c) (h : a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5) :\n      d < b := by\n    by_contra! hbd\n    have hl := increasing hac\n    have hr := increasing.monotone hbd\n    change a ^ 5 < c ^ 5 at hl\n    change b ^ 5 ≤ d ^ 5 at hr\n    omega\n  constructor\n  · intro h\n    change ¬ (Set.InjOn (fun p : ℕ × ℕ => p.1 ^ 5 + p.2 ^ 5)\n      {p : ℕ × ℕ | p.1 < p.2}) at h\n    simp only [Set.InjOn, Set.mem_ofPred_eq, not_forall] at h\n    obtain ⟨⟨a, b⟩, hab, ⟨c, d⟩, hcd, heq, hne⟩ := h\n    change a < b at hab\n    change c < d at hcd\n    change a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5 at heq\n    rcases lt_trichotomy a c with hac | hac | hac\n    · exact ⟨a, b, c, d, hac, hcd, nest hac heq, heq⟩\n    · subst c\n      have hpow : b ^ 5 = d ^ 5 := by omega\n      have hbd : b = d := increasing.injective hpow\n      subst d\n      exact (hne rfl).elim\n    · exact ⟨c, d, a, b, hac, hab, nest hac heq.symm, heq.symm⟩\n  · rintro ⟨a, b, c, d, hac, hcd, hdb, heq⟩ h\n    have hp : (a, b) = (c, d) :=\n      h (x₁ := (a, b)) (x₂ := (c, d)) (by change a < b; omega) hcd heq\n    exact (ne_of_lt hac) (congrArg Prod.fst hp)\n\ntheorem fifth_residue_eleven (x : ℕ) :\n    x ^ 5 % 11 = 0 ∨ x ^ 5 % 11 = 1 ∨ x ^ 5 % 11 = 10 := by\n  rw [Nat.pow_mod x 5 11]\n  have h : x % 11 < 11 := Nat.mod_lt _ (by decide)\n  interval_cases x % 11 <;> decide\n\ntheorem collision_residue_eleven {a b c d : ℕ}\n    (h : a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5) :\n    (a ^ 5 % 11 + b ^ 5 % 11) % 11 = (c ^ 5 % 11 + d ^ 5 % 11) % 11 := by\n  rw [← Nat.add_mod, ← Nat.add_mod, h]\n\ntheorem scale_collision_iff {k a b c d : ℕ} (hk : 0 < k) :\n    (k * a < k * c ∧ k * c < k * d ∧ k * d < k * b ∧\n      (k * a) ^ 5 + (k * b) ^ 5 = (k * c) ^ 5 + (k * d) ^ 5) ↔\n    (a < c ∧ c < d ∧ d < b ∧ a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5) := by\n  have hk5 : 0 < k ^ 5 := pow_pos hk _\n  simp only [Nat.mul_lt_mul_left hk, mul_pow, ← Nat.mul_add, Nat.mul_left_cancel_iff hk5]\n\ntheorem refutation_iff_primitive :\n    (¬ (fcTypeOfName% \"Erdos324.erdos_324.variants.quintic\")) ↔\n      ∃ a b c d : ℕ, a < c ∧ c < d ∧ d < b ∧ a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5 ∧\n        Nat.gcd (Nat.gcd a b) (Nat.gcd c d) = 1 := by\n  rw [refutation_iff_nested]\n  have reduce (b : ℕ) : ∀ a c d : ℕ, a < c ∧ c < d ∧ d < b ∧\n      a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5 →\n      ∃ a b c d : ℕ, a < c ∧ c < d ∧ d < b ∧ a ^ 5 + b ^ 5 = c ^ 5 + d ^ 5 ∧\n        Nat.gcd (Nat.gcd a b) (Nat.gcd c d) = 1 := by\n    induction b using Nat.strong_induction_on with\n    | h b ih =>\n      intro a c d h\n      let g := Nat.gcd (Nat.gcd a b) (Nat.gcd c d)\n      by_cases hg : g = 1\n      · exact ⟨a, b, c, d, h.1, h.2.1, h.2.2.1, h.2.2.2, hg⟩\n      have hgab : g ∣ Nat.gcd a b := Nat.gcd_dvd_left _ _\n      have hgcd : g ∣ Nat.gcd c d := Nat.gcd_dvd_right _ _\n      have hbpos : 0 < b := Nat.zero_lt_of_lt h.2.2.1\n      have hgb := Nat.dvd_trans hgab (Nat.gcd_dvd_right a b)\n      have hgpos : 0 < g := Nat.pos_of_dvd_of_pos hgb hbpos\n      obtain ⟨a', ha'⟩ := Nat.dvd_trans hgab (Nat.gcd_dvd_left a b)\n      obtain ⟨b', hb'⟩ := hgb\n      obtain ⟨c', hc'⟩ := Nat.dvd_trans hgcd (Nat.gcd_dvd_left c d)\n      obtain ⟨d', hd'⟩ := Nat.dvd_trans hgcd (Nat.gcd_dvd_right c d)\n      have hb'pos : 0 < b' := by\n        by_contra! hn\n        have : b' = 0 := by omega\n        simp [this] at hb'\n        omega\n      have hlt : b' < b := calc\n        b' = 1 * b' := (one_mul _).symm\n        _ < g * b' := Nat.mul_lt_mul_of_pos_right (by omega) hb'pos\n        _ = b := hb'.symm\n      rw [ha', hb', hc', hd'] at h\n      exact ih b' hlt a' c' d' (scale_collision_iff hgpos |>.mp h)\n  constructor\n  · rintro ⟨a, b, c, d, h⟩\n    exact reduce b a c d h\n  · rintro ⟨a, b, c, d, hac, hcd, hdb, heq, _⟩\n    exact ⟨a, b, c, d, hac, hcd, hdb, heq⟩\n\nend Quintic324\n\n#print axioms Quintic324.refutation_iff_nested\n#print axioms Quintic324.fifth_residue_eleven\n#print axioms Quintic324.collision_residue_eleven\n#print axioms Quintic324.scale_collision_iff\n#print axioms Quintic324.refutation_iff_primitive\n",
    "build.log": "Inputs and checks\nDownloaded the pinned Formal Conjectures base archive, tasks audit patch, TaskSupport.lean, and both catalog Challenge.lean files.\nsha256sum -c (audit patch and TaskSupport digests): exit 0\ngit apply --check ../audit.patch && git apply ../audit.patch (run at FC root, after digest verification): exit 0\nFC base archive 7d1a8c9912747679d0093f6d1216420c33ee5ffa\nFC reconstructed source pin 6adcbe13652f4e7c69ad02a783465ae2a99d5cb3\nTasks patch revision f5dab9b843c460bf946e0ec7b0e6ad2f2f739eb8\nTaskSupport validator revision 57c969e87cad845b60908cef474c8d1c0b6e43c5\n352280407fbbe83e636aa07a5c090aab15c6353c7cd77c0491284cd40df51275  audit.patch\n58a80a223dbd7383d92eb2a57b1ec207c0991131a1a1bf24585a4452777c257e  TaskSupport.lean\nc64e7a03cb35920dac0bf0039dba2fe155478be5d6228e8f37a4f16808897fa8  targets_erdos324-erdos-324-variants-quintic_counterexample_Challenge.lean\n6e1d6cdc1d601aef3c91c4a52dc918c5b4502bf04dff2985eb07940fbc81b232  targets_erdos324-erdos-324-variants-quintic_formalized_Challenge.lean\ngit apply --reverse --check ../audit.patch: exit 0\nCli 2842b9871b04862f944c032e34052cb9448ccb71\nLeanSearchClient 95e037bfdc31d3916ac615446847fb01960e2719\nQq 786b7acdca7eb4e9c76c5d1d5bd810e7e5c56334\naesop 75d936c7af167cc93fac0d31237682fc2204591d\nbatteries ed9b316aabe389fec1ef43c3326ab48c7e59be42\nimportGraph 10930f8138f0462dbd744a91fc03a16fae0e046f\nmathlib 065356127b1dc0016f66b7283ce0ce2c4055aa55\nplausible e50948299c4dc4a4c21b1c34b6a6a4fddc19f912\nproofwidgets 4c70ac059693669e5756e32a7a94b57ee1e99dc5\n\nToolchain and cache log excerpts\nSet the scratch FC lakefile Mathlib requirement and lean-toolchain to the catalog pins.\nlean --version: exit 0\nlake --version: exit 0\nlake update: exit 0\nlake exe cache get: exit 0\nLean (version 4.35.0-rc2, x86_64-unknown-linux-gnu, commit 11acb17ec6b07a8f9e9173e6845197929540936b, Release)\nLake version 5.0.0-src+11acb17 (Lean version 4.35.0-rc2)\nAttempting to download 8915 file(s) from leanprover-community/mathlib4 cache at https://cache.mathlib.org/mathlib4-master\nDecompressed 8915 file(s)\nAlready decompressed 8915 file(s)\nNo files to download\nAlready decompressed 8915 file(s)\n\nFirst build attempts\nlake build +FormalConjectures.ErdosProblems.324: exit 1 (module path spelling)\nAdded lean_lib entries TaskSupport, Main and Lemmas to the scratch Lake project.\nlake build Main Lemmas against the full utility imports: exit 1\nerror: FormalConjecturesForMathlib/Algebra/Polynomial/HasseDeriv.lean:24:8: `Polynomial.hasseDeriv_map` has already been declared\nerror: FormalConjecturesForMathlib/Combinatorics/Additive/VCDim.lean:116:25: Application type mismatch: The argument\nerror: FormalConjecturesForMathlib/Combinatorics/Additive/VCDim.lean:118:24: Application type mismatch: The argument\nerror: FormalConjecturesForMathlib/Combinatorics/SimpleGraph/Residue.lean:76:2: No goals to be solved\nerror: FormalConjecturesForMathlib/Data/Finset/Powerset.lean:27:6: `Finset.powersetCard_inter` has already been declared\nerror: FormalConjecturesForMathlib/Data/Finset/Powerset.lean:30:14: `Finset.disjoint_powersetCard_powersetCard` has already been declared\nerror: FormalConjecturesForMathlib/Computability/TuringMachine/BusyBeavers.lean:227:42: unsolved goals\nerror: FormalConjecturesForMathlib/Computability/TuringMachine/BusyBeavers.lean:226:2: unsolved goals\nerror: FormalConjecturesForMathlib/Data/Nat/Prime/Finset.lean: bad import 'Batteries.Data.Nat.Gcd'\nerror: FormalConjecturesForMathlib/Data/Sym/Sym2.lean:25:14: `Sym2.fst_out_mk_self` has already been declared\nerror: FormalConjecturesForMathlib/Data/Sym/Sym2.lean:26:14: `Sym2.snd_out_mk_self` has already been declared\nerror: FormalConjecturesForMathlib/SetTheory/Cardinal/Arithmetic.lean:25:14: `Cardinal.aleph0_le_mk_set` has already been declared\nerror: FormalConjecturesForMathlib/SetTheory/Cardinal/Arithmetic.lean:29:6: `Cardinal.mk_sdiff_eq_left'` has already been declared\nerror: FormalConjecturesForMathlib/SetTheory/Cardinal/Arithmetic.lean:35:6: `Cardinal.mk_sdiff_eq_left` has already been declared\nerror: FormalConjecturesForMathlib/SetTheory/Cardinal/Arithmetic.lean:39:6: `Cardinal.mk_sdiff_eq_left_of_finite'` has already been declared\nerror: FormalConjecturesForMathlib/SetTheory/Cardinal/Arithmetic.lean:43:6: `Cardinal.mk_sdiff_eq_left_of_finite` has already been declared\nerror: FormalConjecturesUtil/Linters/ImportLinter.lean:86:19: Unknown identifier `Mathlib.Linter.getImportIds`\nerror: FormalConjecturesUtil/Linters/ImportLinter.lean:96:19: Unknown identifier `Mathlib.Linter.getImportIds`\nlake build FormalConjectures/ErdosProblems/324.lean after omitting the aggregate import: exit 1\nerror: FormalConjecturesUtil/Linters/ImportLinter.lean:86:19: Unknown identifier `Mathlib.Linter.getImportIds`\nerror: FormalConjecturesUtil/Linters/ImportLinter.lean:96:19: Unknown identifier `Mathlib.Linter.getImportIds`\n\nScratch compatibility check\nApplied the two-line import removal in scratch-compat.patch to FormalConjecturesUtil.lean.\ncmp 324.lean fc/FormalConjectures/ErdosProblems/324.lean: exit 0\ncmp TaskSupport.lean fc/TaskSupport.lean: exit 0\nlake build FormalConjectures/ErdosProblems/324.lean: exit 0\n✔ [8948/8949] Built FormalConjecturesUtil (25s)\n✔ [8949/8949] Built FormalConjectures.ErdosProblems.«324» (34s)\nBuild completed successfully (8949 jobs).\nBuild completed successfully (8954 jobs).\n\nFinal check\nCopied the delivered Lemmas.lean and built it alongside StatementCheck.lean as Main.lean.\nlake build Main Lemmas\n⚠ [8940/8954] Replayed FormalConjecturesForMathlib.Tactic.Linter.Term\nwarning: FormalConjecturesForMathlib/Tactic/Linter/Term.lean:23:0: 'Lean.Server.InfoUtils' has been deprecated: please replace this import by\n⚠ [8951/8954] Replayed Main\nwarning: Main.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Main.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Main.lean:8:0: This file has no module docstring (`/-! ... -/`). Add one after the imports to document the file.\n⚠ [8953/8954] Built Lemmas (17s)\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\ninfo: Lemmas.lean:105:0: 'Quintic324.refutation_iff_nested' depends on axioms: [propext, Classical.choice, Quot.sound]\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\ninfo: Lemmas.lean:106:0: 'Quintic324.fifth_residue_eleven' depends on axioms: [propext]\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\ninfo: Lemmas.lean:107:0: 'Quintic324.collision_residue_eleven' depends on axioms: [propext]\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\ninfo: Lemmas.lean:108:0: 'Quintic324.scale_collision_iff' depends on axioms: [propext, Classical.choice, Quot.sound]\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\ninfo: Lemmas.lean:109:0: 'Quintic324.refutation_iff_primitive' depends on axioms: [propext, Classical.choice, Quot.sound]\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nwarning: Lemmas.lean:1:0: The copyright header is incorrect. Please copy and paste the following one:\nBuild completed successfully (8954 jobs).\nexit 0\n",
    "axioms.txt": "'Quintic324.refutation_iff_nested' depends on axioms: [propext, Classical.choice, Quot.sound]\n'Quintic324.fifth_residue_eleven' depends on axioms: [propext]\n'Quintic324.collision_residue_eleven' depends on axioms: [propext]\n'Quintic324.scale_collision_iff' depends on axioms: [propext, Classical.choice, Quot.sound]\n'Quintic324.refutation_iff_primitive' depends on axioms: [propext, Classical.choice, Quot.sound]\n",
    "explanation.md": "# Erdős 324 quintic variant\n\nA collision between distinct increasing pairs cannot have equal smaller members, because strict monotonicity of fifth powers would make the larger members equal too. Swap the two pairs so the first smaller member is a. If a < c and b ≤ d, both comparisons of fifth powers would force a strict inequality of sums. Thus every collision can be oriented as a < c < d < b. This also shows that the four coordinates are distinct.\n\nThe scaling lemma cancels the common positive fifth-power factor. The primitive reduction uses strong induction on the largest member b. If the four-way gcd exceeds one, divide each coordinate by it. The scaled coordinates still give a strictly ordered collision and their largest member decreases. The modular lemmas check the possible fifth-power residues modulo 11 and show how equality of the full sums implies equality of their residue sums.\n\nIn the search, d = b − 1 already forces the four-way gcd to be one. For each a and b in the recorded ranges, reducing the required value of c⁵ modulo 11, 25, 31, 41 and 71 filters out impossible values. Binary search on the increasing exact integer function c ↦ c⁵ tests the survivors with a < c < d. The largest full sum is at most 30,000,000⁵ + 32⁵, which fits in 128 unsigned bits. The C++ run found zero hits in this family. UNVERIFIED in Lean: the finite search result and coverage. Other gaps, other values of a and larger heights remain unrestricted.\n\nA separate mathematical observation is that a = 0 in a strictly nested collision would contradict Fermat's last theorem for exponent five. The search included zero as requested. The Lean lemmas apply even when a = 0 and do not formalize that Fermat application.\n",
    "thin.cpp": "#include <array>\n#include <cstdint>\n#include <iostream>\n\nusing Exact = unsigned __int128;\nExact fifth(Exact n) { return n*n*n*n*n; }\n\ntemplate <size_t M>\nauto residue_filter(unsigned a) {\n    std::array<bool, M> powers{}, allowed{};\n    for (unsigned i = 0; i < M; ++i) powers[fifth(i) % M] = true;\n    for (unsigned b = 0; b < M; ++b) {\n        auto d = (b + M - 1) % M;\n        allowed[b] = powers[(fifth(a) % M + fifth(b) % M + M - fifth(d) % M) % M];\n    }\n    return allowed;\n}\n\nint main() {\n    constexpr unsigned limit = 30'000'000;\n    for (unsigned a = 0; a <= 32; ++a) {\n        auto f11 = residue_filter<11>(a);\n        auto f25 = residue_filter<25>(a);\n        auto f31 = residue_filter<31>(a);\n        auto f41 = residue_filter<41>(a);\n        auto f71 = residue_filter<71>(a);\n        const unsigned start = a <= 1 ? a + 3 : 4'000'000;\n        uint64_t exact_checks = 0, hits = 0;\n        for (unsigned b = start; b <= limit; ++b) {\n            const unsigned d = b - 1;\n            // gcd(b,d)=1, so every quadruple in this family is primitive.\n            if (!f11[b % 11] || !f25[b % 25] || !f31[b % 31] ||\n                !f41[b % 41] || !f71[b % 71]) continue;\n            ++exact_checks;\n            const Exact wanted = fifth(a) + fifth(b) - fifth(d);\n            unsigned lo = a + 1, hi = d;\n            while (lo < hi) {\n                const unsigned mid = lo + (hi - lo) / 2;\n                if (fifth(mid) < wanted) lo = mid + 1;\n                else hi = mid;\n            }\n            if (lo < d && fifth(lo) == wanted) {\n                ++hits;\n                std::cout << a << ' ' << b << ' ' << lo << ' ' << d << '\\n';\n            }\n        }\n        std::cout << \"a=\" << a << \" b=[\" << start << ',' << limit\n                  << \"] exact_checks=\" << exact_checks << \" hits=\" << hits << '\\n';\n    }\n}\n",
    "search.log": "a=0 b=[3,30000000] exact_checks=41776 hits=0\na=1 b=[4,30000000] exact_checks=414638 hits=0\na=2 b=[4000000,30000000] exact_checks=160161 hits=0\na=3 b=[4000000,30000000] exact_checks=239394 hits=0\na=4 b=[4000000,30000000] exact_checks=349053 hits=0\na=5 b=[4000000,30000000] exact_checks=385049 hits=0\na=6 b=[4000000,30000000] exact_checks=253484 hits=0\na=7 b=[4000000,30000000] exact_checks=225323 hits=0\na=8 b=[4000000,30000000] exact_checks=316835 hits=0\na=9 b=[4000000,30000000] exact_checks=369605 hits=0\na=10 b=[4000000,30000000] exact_checks=344951 hits=0\na=11 b=[4000000,30000000] exact_checks=281636 hits=0\na=12 b=[4000000,30000000] exact_checks=105625 hits=0\na=13 b=[4000000,30000000] exact_checks=472046 hits=0\na=14 b=[4000000,30000000] exact_checks=279235 hits=0\na=15 b=[4000000,30000000] exact_checks=275536 hits=0\na=16 b=[4000000,30000000] exact_checks=345032 hits=0\na=17 b=[4000000,30000000] exact_checks=119680 hits=0\na=18 b=[4000000,30000000] exact_checks=328601 hits=0\na=19 b=[4000000,30000000] exact_checks=375402 hits=0\na=20 b=[4000000,30000000] exact_checks=226938 hits=0\na=21 b=[4000000,30000000] exact_checks=482766 hits=0\na=22 b=[4000000,30000000] exact_checks=239379 hits=0\na=23 b=[4000000,30000000] exact_checks=400384 hits=0\na=24 b=[4000000,30000000] exact_checks=341974 hits=0\na=25 b=[4000000,30000000] exact_checks=586760 hits=0\na=26 b=[4000000,30000000] exact_checks=459953 hits=0\na=27 b=[4000000,30000000] exact_checks=162097 hits=0\na=28 b=[4000000,30000000] exact_checks=321839 hits=0\na=29 b=[4000000,30000000] exact_checks=296351 hits=0\na=30 b=[4000000,30000000] exact_checks=313810 hits=0\na=31 b=[4000000,30000000] exact_checks=516308 hits=0\na=32 b=[4000000,30000000] exact_checks=152544 hits=0\n",
    "check_search.py": "\"\"\"Independently verify modular-survivor counts by the Chinese remainder theorem.\"\"\"\nimport math\nimport re\nfrom pathlib import Path\n\nmoduli = (11, 25, 31, 41, 71)\nrows = Path(\"thin.log\").read_text().splitlines()\nassert len(rows) == 33\ntotal = 0\nfor a, row in enumerate(rows):\n    lower = a + 3 if a <= 1 else 4_000_000\n    upper = 30_000_000\n    period, residues = 1, [0]\n    for modulus in moduli:\n        assert math.gcd(period, modulus) == 1\n        fifths = {pow(x, 5, modulus) for x in range(modulus)}\n        allowed = [r for r in range(modulus) if\n                   (a**5 + r**5 - (r-1)**5) % modulus in fifths]\n        inverse = pow(period, -1, modulus)\n        residues = [x + period * ((r - x) * inverse % modulus)\n                    for x in residues for r in allowed]\n        period *= modulus\n    count = sum((upper-r)//period - (lower-1-r)//period for r in residues)\n    assert row == f\"a={a} b=[{lower},{upper}] exact_checks={count} hits=0\", row\n    total += count\nprint(f\"CRT verified all {len(rows)} modular-survivor counts ({total} total).\")\n",
    "search-check.log": "CRT verified all 33 modular-survivor counts (10184165 total).\n",
    "scratch-compat.patch": "--- a/FormalConjecturesUtil.lean\n+++ b/FormalConjecturesUtil.lean\n@@ -16,7 +16,6 @@\n module\n \n public import Mathlib\n-public import FormalConjecturesForMathlib\n public import FormalConjecturesUtil.Answer\n public import FormalConjecturesUtil.Linters.AMSLinter\n public import FormalConjecturesUtil.Linters.AnswerLinter\n@@ -25,7 +24,6 @@\n public import FormalConjecturesUtil.Linters.CopyrightLinter\n public import FormalConjecturesUtil.Linters.ExistsImplicationLinter\n public import FormalConjecturesUtil.Linters.FormalProofLinter\n-public import FormalConjecturesUtil.Linters.ImportLinter\n public import FormalConjecturesUtil.Linters.LatexDocstringLinter\n public import FormalConjecturesUtil.Linters.ModuleDocstringLinter\n public import FormalConjecturesUtil.Linters.NamespaceLinter\n",
    "StatementCheck.lean": "import Mathlib\nimport FormalConjectures.ErdosProblems.«324»\nimport TaskSupport\n\nexample : (fcTypeOfName% \"Erdos324.erdos_324.variants.quintic\") =\n    Set.InjOn (fun p : ℕ × ℕ => p.1 ^ 5 + p.2 ^ 5) {p : ℕ × ℕ | p.1 < p.2} :=\n  rfl\n"
  }
}
