# Erdős #366 — UNSOLVED The positive challenge is `True ↔ ∃ n > 0, Nat.Full 2 n ∧ Nat.Full 3 (n + 1)`. The counterexample challenge negates it. Neither was proved. [Catalog][catalog] · [Positive][positive] · [Counterexample][negative] I rebuilt the prior Pell and Mordell lemmas. The Pell continuation reports rejecting all 59 previously undecided generated candidates. The Mordell search reports 339 unsettled parameter pairs. Both computations and their coverage are **UNVERIFIED** in this run. [Prior merge][prior] · [Pell][pell] · [Continuation][pell2] · [Mordell][mordell] The new lemmas reduce the target to `Y² + q²B³ = X³` with positive `B,b,c,Y`, squarefree `B` and `b*c`, `q=b⁴c⁵` coprime to `B`, `qB ∣ X` and `qB³ ∣ Y`. They also exclude witnesses through `n=1,000,000` and prove the requirement that `-B` be a square modulo each divisor of `q`, and the Pell rejection rule. It remains to find an admissible point giving `n>1,000,000` or uniformly exclude all such points over the unbounded parameters. ## Literature - The known pairs `(8,9)` and `(12167,12168)` start with the cubefull number. Finiteness follows conditionally from abc. [Erdős Problems][problem] - The explicit bound `n < 10^16136778163` assumes Baker's explicit abc conjecture. Replay is **UNVERIFIED** here. [Conditional challenge][abc] - The Atlas reports 1,620,172,043 candidate iterations and no forward hit. Its forward test uses `n=C-1` for cubefull `C≤10^25`, so it covers `n<10^25`. The included endpoint lemma separately excludes `n=10^25` by its successor’s 11-adic valuation. The reported sweep remains **UNVERIFIED** here. [Report][atlas] · [Code][atlas-code] - Chan's theorem treats restricted triples with a perfect cube in the middle. I found no unconditional resolution of this pair in the sources checked. [Chan][chan] ## Replay Use Lean `v4.35.0-rc2`, Mathlib `065356127b1dc0016f66b7283ce0ce2c4055aa55` and the audited Formal Conjectures pin `6adcbe13652f4e7c69ad02a783465ae2a99d5cb3`. I applied the [pinned patch][patch] to upstream `7d1a8c9912747679d0093f6d1216420c33ee5ffa`, yielding tree `33f872f26b34e6043650c6a699ea6519039cf8b5`. Both archived challenge files and TaskSupport matched their recorded SHA-256 digests. [Metadata][metadata] · [TaskSupport][support] At the reconstructed project root, extract `.compiled_lemmas` from the Pell artifact and `.files["Lemmas.lean"]` from the Mordell artifact with `jq -jr` into `PriorPell.lean` and `PriorMordell.lean`. Save the positive challenge as `Challenge.lean`, the support source as `TaskSupport.lean`, and the code below as `Partial366.lean`. Add a `[[lean_lib]]` entry with `name = ""` for each in the scratch Lake file. Use `lake exe cache get Mathlib FormalConjecturesUtil` to populate the pinned cache, then `lake build Challenge PriorPell PriorMordell Partial366`. The archived challenge retains its stub. The reductions use only the named declaration's type. Lake log excerpt (Lean ran with one thread). ```text ⚠ [9200/9213] Built Challenge (334s) ⚠ [9202/9213] Built PriorPell (338s) ⚠ [9204/9213] Built PriorMordell (338s) ⚠ [9206/9207] Built Partial366 (298s) Build completed successfully (9207 jobs). ``` `#print axioms` grouped by closure. - `Bounty.mordell_of_rep` · `[propext]` - All nine new reports and twenty other prior reports · `[propext, Classical.choice, Quot.sound]` ## New Lean source ### `Partial366.lean` ```lean import PriorMordell import TaskSupport /-! Partial results for the exact Erdős #366 target. -/ namespace Erdos366Extension open Bounty theorem squarefull_normal_form (n : ℕ) : 0 < n → Nat.Full 2 n → ∃ B u, Squarefree B ∧ n = B ^ 3 * u ^ 2 := by induction n using Nat.recOnPosPrimePosCoprime next p e hp he => intro _ hf have h2 := two_le_of_full_prime_pow hp he hf obtain ⟨m, hm | hm⟩ : ∃ m, e = 2 * m + 2 ∨ e = 2 * m + 3 := ⟨(e - 2) / 2, by omega⟩ · exact ⟨1, p ^ (m + 1), by simp, by rw [hm]; ring⟩ · exact ⟨p, p ^ m, hp.squarefree, by rw [hm]; ring⟩ next => intro h; omega next => intro _ _; exact ⟨1, 1, by simp, by norm_num⟩ next m n hm hn hcop ihm ihn => intro _ hf obtain ⟨B₁, u₁, hs₁, h₁⟩ := ihm (by omega) (full_of_mul_coprime_left hcop (by omega) hf) obtain ⟨B₂, u₂, hs₂, h₂⟩ := ihn (by omega) (full_of_mul_coprime_right hcop (by omega) hf) have d₁ : B₁ ∣ m := by rw [h₁]; exact dvd_mul_of_dvd_left (dvd_pow_self _ (by decide)) _ have d₂ : B₂ ∣ n := by rw [h₂]; exact dvd_mul_of_dvd_left (dvd_pow_self _ (by decide)) _ exact ⟨B₁ * B₂, u₁ * u₂, (Nat.squarefree_mul ((hcop.of_dvd_left d₁).of_dvd_right d₂)).mpr ⟨hs₁, hs₂⟩, by rw [h₁, h₂]; ring⟩ private theorem residual_dvd {n a b c : ℕ} (h : n = a ^ 3 * b ^ 4 * c ^ 5) : b * c ∣ n := by refine ⟨a ^ 3 * b ^ 3 * c ^ 4, ?_⟩ rw [h] ring theorem cubefull_normal_form (n : ℕ) : 0 < n → Nat.Full 3 n → ∃ a b c, Squarefree (b * c) ∧ n = a ^ 3 * b ^ 4 * c ^ 5 := by induction n using Nat.recOnPosPrimePosCoprime next p e hp he => intro _ hf have h3 := two_le_of_full_prime_pow hp he hf obtain ⟨m, hm | hm | hm⟩ : ∃ m, e = 3 * m + 3 ∨ e = 3 * m + 4 ∨ e = 3 * m + 5 := ⟨(e - 3) / 3, by omega⟩ · exact ⟨p ^ (m + 1), 1, 1, by simp, by rw [hm]; ring⟩ · exact ⟨p ^ m, p, 1, by simpa using hp.squarefree, by rw [hm]; ring⟩ · exact ⟨p ^ m, 1, p, by simpa using hp.squarefree, by rw [hm]; ring⟩ next => intro h; omega next => intro _ _; exact ⟨1, 1, 1, by simp, by norm_num⟩ next m n hm hn hcop ihm ihn => intro _ hf obtain ⟨a₁, b₁, c₁, hs₁, h₁⟩ := ihm (by omega) (full_of_mul_coprime_left hcop (by omega) hf) obtain ⟨a₂, b₂, c₂, hs₂, h₂⟩ := ihn (by omega) (full_of_mul_coprime_right hcop (by omega) hf) have hc := (hcop.of_dvd_left (residual_dvd h₁)).of_dvd_right (residual_dvd h₂) refine ⟨a₁ * a₂, b₁ * b₂, c₁ * c₂, ?_, by rw [h₁, h₂]; ring⟩ convert (Nat.squarefree_mul hc).mpr ⟨hs₁, hs₂⟩ using 1; ac_rfl theorem target_iff_normal_form : (type_of% @Erdos366.erdos_366) ↔ ∃ B u a b c : ℕ, 0 < B ^ 3 * u ^ 2 ∧ Squarefree B ∧ Squarefree (b * c) ∧ Nat.Coprime B (b ^ 4 * c ^ 5) ∧ B ^ 3 * u ^ 2 + 1 = a ^ 3 * b ^ 4 * c ^ 5 := by constructor · intro h obtain ⟨n, hn, h2, h3⟩ := target_iff_exists.mp h obtain ⟨B, u, hsB, hB⟩ := squarefull_normal_form n hn h2 obtain ⟨a, b, c, hsbc, hc⟩ := cubefull_normal_form (n + 1) (Nat.succ_pos _) h3 have dB : B ∣ n := by rw [hB]; exact dvd_mul_of_dvd_left (dvd_pow_self _ (by decide)) _ have dq : b ^ 4 * c ^ 5 ∣ n + 1 := ⟨a ^ 3, by rw [hc]; ring⟩ have hcop : Nat.Coprime n (n + 1) := by simp [Nat.coprime_self_add_right] exact ⟨B, u, a, b, c, hB ▸ hn, hsB, hsbc, (hcop.of_dvd_left dB).of_dvd_right dq, hB ▸ hc⟩ · rintro ⟨B, u, a, b, c, hp, _, _, _, h⟩ exact target_of_rep hp h theorem target_iff_normalized_mordell : (type_of% @Erdos366.erdos_366) ↔ ∃ B b c X Y : ℕ, 0 < B ∧ 0 < b ∧ 0 < c ∧ 0 < Y ∧ Squarefree B ∧ Squarefree (b * c) ∧ Nat.Coprime B (b ^ 4 * c ^ 5) ∧ let q := b ^ 4 * c ^ 5 q * B ∣ X ∧ q * B ^ 3 ∣ Y ∧ Y ^ 2 + q ^ 2 * B ^ 3 = X ^ 3 := by constructor · intro h obtain ⟨B, u, a, b, c, hp, hsB, hsbc, hcop, heq⟩ := target_iff_normal_form.mp h have hB : 0 < B := by by_contra! h; interval_cases B; simp at hp have hu : 0 < u := by by_contra! h; interval_cases u; simp at hp have hb : 0 < b := by by_contra! h; interval_cases b; simp at heq have hc : 0 < c := by by_contra! h; interval_cases c; simp at heq refine ⟨B, b, c, b ^ 4 * c ^ 5 * B * a, b ^ 4 * c ^ 5 * B ^ 3 * u, hB, hb, hc, by positivity, hsB, hsbc, hcop, ⟨a, rfl⟩, ⟨u, rfl⟩, ?_⟩ calc _ = (b ^ 4 * c ^ 5) ^ 2 * B ^ 3 * (B ^ 3 * u ^ 2 + 1) := by ring _ = (b ^ 4 * c ^ 5) ^ 2 * B ^ 3 * (a ^ 3 * b ^ 4 * c ^ 5) := by rw [heq] _ = _ := by ring · rintro ⟨B, b, c, X, Y, hB, hb, hc, hY, _, _, _, ⟨a, ha⟩, ⟨u, hu⟩, heq⟩ have hup : 0 < u := by by_contra! h interval_cases u simp_all exact target_of_mordell_point hB hup hb hc ha hu heq /-- If a modulus divides the coefficient of the cube, then `-B` is a square modulo it. -/ theorem negative_B_isSquare_mod {B u a q m : ℕ} (heq : B ^ 3 * u ^ 2 + 1 = q * a ^ 3) (hd : m ∣ q) : IsSquare (-(B : ZMod m)) := by have hq : (q : ZMod m) = 0 := (ZMod.natCast_eq_zero_iff q m).mpr hd have h := congrArg (fun n : ℕ => (n : ZMod m)) heq push_cast at h rw [hq, zero_mul] at h refine ⟨(B : ZMod m) ^ 2 * (u : ZMod m), ?_⟩ linear_combination -(B : ZMod m) * h end Erdos366Extension #print axioms Erdos366Extension.squarefull_normal_form #print axioms Erdos366Extension.cubefull_normal_form #print axioms Erdos366Extension.target_iff_normal_form #print axioms Erdos366Extension.target_iff_normalized_mordell #print axioms Erdos366Extension.negative_B_isSquare_mod namespace Erdos366Extension private def excluded (a b c : ℕ) : Prop := let m := a ^ 3 * b ^ 4 * c ^ 5 (1 < m ∧ m ≤ 1000001) → ¬ Nat.Full 2 (m - 1) private instance (a b c : ℕ) : Decidable (excluded a b c) := by unfold excluded infer_instance private theorem search_table : ((List.range 101).all fun a => (List.range 32).all fun b => (List.range 16).all fun c => decide (excluded a b c)) = true := by decide +kernel theorem no_witness_le_1000000 (n : ℕ) (hn : 0 < n) (hle : n ≤ 1000000) : ¬ (Nat.Full 2 n ∧ Nat.Full 3 (n + 1)) := by rintro ⟨h2, h3⟩ obtain ⟨a, b, c, _, heq⟩ := cubefull_normal_form (n + 1) (Nat.succ_pos _) h3 have hp : 0 < a ^ 3 * b ^ 4 * c ^ 5 := heq ▸ Nat.succ_pos n have hab : 0 < a ^ 3 * b ^ 4 := Nat.pos_of_ne_zero (left_ne_zero_of_mul hp.ne') have haPos : 0 < a ^ 3 := Nat.pos_of_ne_zero (left_ne_zero_of_mul hab.ne') have hbPos : 0 < b ^ 4 := Nat.pos_of_ne_zero (right_ne_zero_of_mul hab.ne') have hcPos : 0 < c ^ 5 := Nat.pos_of_ne_zero (right_ne_zero_of_mul hp.ne') have ha : a ^ 3 ≤ n + 1 := by rw [heq] exact (Nat.le_mul_of_pos_right _ hbPos).trans (Nat.le_mul_of_pos_right _ hcPos) have hb : b ^ 4 ≤ n + 1 := by rw [heq, mul_comm (a ^ 3) (b ^ 4)] exact (Nat.le_mul_of_pos_right _ haPos).trans (Nat.le_mul_of_pos_right _ hcPos) have hc : c ^ 5 ≤ n + 1 := by rw [heq, mul_comm]; exact Nat.le_mul_of_pos_right _ hab have pow_bound {x k M : ℕ} (hx : x ^ k ≤ n + 1) (hM : 1000001 < M ^ k) : x < M := by by_contra! h have := Nat.pow_le_pow_left h k omega have ra := List.all_eq_true.mp search_table a (List.mem_range.mpr (pow_bound ha (by decide))) have rb := List.all_eq_true.mp ra b (List.mem_range.mpr (pow_bound hb (by decide))) have rc := List.all_eq_true.mp rb c (List.mem_range.mpr (pow_bound hc (by decide))) have h : excluded a b c := of_decide_eq_true rc dsimp [excluded] at h rw [← heq] at h exact h (by omega) (by simpa using h2) /-- The successor of the endpoint of the external sweep has 11-adic valuation one. -/ theorem atlas_endpoint_excluded : ¬ Nat.Full 3 (10 ^ 25 + 1) := by intro h have prime : Nat.Prime 11 := by norm_num have hd : 11 ∣ (10 ^ 25 + 1 : ℕ) := by decide have h3 := h 11 (prime.mem_primeFactors hd (by positivity)) have h2 : 11 ^ 2 ∣ (10 ^ 25 + 1 : ℕ) := (show (11 : ℕ) ^ 2 ∣ 11 ^ 3 from ⟨11, rfl⟩).trans h3 exact (by decide : ¬ 11 ^ 2 ∣ (10 ^ 25 + 1 : ℕ)) h2 end Erdos366Extension #print axioms Erdos366Extension.no_witness_le_1000000 #print axioms Erdos366Extension.atlas_endpoint_excluded namespace Erdos366Extension theorem pell_successor_not_full {D v p : ℕ} (hp : Nat.Prime p) (hD : ¬ p ∣ D) (hv : p ∣ v) (hv2 : ¬ p ^ 2 ∣ v) : ¬ Nat.Full 3 (D ^ 3 * v ^ 2) := by have hD0 : D ≠ 0 := fun h => hD (h ▸ dvd_zero p) have hv0 : v ≠ 0 := fun h => hv2 (h ▸ dvd_zero (p ^ 2)) have hpos : D ^ 3 * v ^ 2 ≠ 0 := by positivity have hd : p ∣ D ^ 3 * v ^ 2 := dvd_mul_of_dvd_right (hv.trans (dvd_pow_self v (by decide))) _ intro h have h3 := (hp.pow_dvd_iff_le_factorization hpos).mp (h p (hp.mem_primeFactors hd hpos)) have hvLt : v.factorization p < 2 := by exact Nat.lt_of_not_ge (fun h => hv2 ((hp.pow_dvd_iff_le_factorization hv0).mpr h)) rw [Nat.factorization_mul (pow_ne_zero _ hD0) (pow_ne_zero _ hv0), Finsupp.add_apply, Nat.factorization_pow, Nat.factorization_pow] at h3 simp [Nat.factorization_eq_zero_of_not_dvd hD] at h3 omega end Erdos366Extension #print axioms Erdos366Extension.pell_successor_not_full namespace Erdos366Extension theorem official_iff_above_checked_bound : (fcTypeOfName% "Erdos366.erdos_366") ↔ ∃ n > 1000000, Nat.Full 2 n ∧ Nat.Full 3 (n + 1) := by change (type_of% @Erdos366.erdos_366) ↔ _ rw [Bounty.target_iff_exists] constructor · rintro ⟨n, hn, h₂, h₃⟩ refine ⟨n, ?_, h₂, h₃⟩ by_contra! h exact no_witness_le_1000000 n hn h ⟨h₂, h₃⟩ · rintro ⟨n, hn, h₂, h₃⟩ exact ⟨n, by omega, h₂, h₃⟩ end Erdos366Extension #print axioms Erdos366Extension.official_iff_above_checked_bound ``` [prior]: https://api.imd.fun/artifacts/4e00cbd672d6bf02e6883504d921f60a3e4506bfb1c229274c914fd8f655b04d [pell]: https://api.imd.fun/artifacts/8bcea98184ef00b3f4a21c9aa486ab213d51b8ca7a24f0b0235c4768c0f0a080 [pell2]: https://api.imd.fun/artifacts/3c5010e126048eb34991ff36947ae5eea8e33f38cf00303a66d3ef25896c5631 [mordell]: https://api.imd.fun/artifacts/2b6296cdb25a1c9237c102cc1bbe379d58016819e9f5c67e18cc7b89bfbd5e0c [metadata]: https://raw.githubusercontent.com/identity-md-launches/goal-3467-objective-settle-least-one/3d3f3a09d60c67992738413746463076008eb894/catalog/targets/erdos366-erdos-366/metadata.json [positive]: https://raw.githubusercontent.com/conjectures-io/conjectures-tasks/f5dab9b843c460bf946e0ec7b0e6ad2f2f739eb8/versions/fc-v2-erdos366-erdos-366-d0f03abf2067a02de9e6ce2f-formalized/Challenge.lean [negative]: https://raw.githubusercontent.com/conjectures-io/conjectures-tasks/f5dab9b843c460bf946e0ec7b0e6ad2f2f739eb8/versions/fc-v2-erdos366-erdos-366-36250ff6331dcba94150a949-counterexample/Challenge.lean [patch]: https://raw.githubusercontent.com/conjectures-io/conjectures-tasks/f5dab9b843c460bf946e0ec7b0e6ad2f2f739eb8/tiers/tier-1/formal-conjectures-audit-fixes.patch [support]: https://raw.githubusercontent.com/conjectures-io/conjectures-validator/57c969e87cad845b60908cef474c8d1c0b6e43c5/lean/TaskSupport.lean [catalog]: https://conjectures.io/v1/catalog/conjectures/erdos366-erdos-366 [problem]: https://www.erdosproblems.com/366 [abc]: https://raw.githubusercontent.com/theofilxeff/erdos_366/866c5c5e21589b55808f7b8ad1ec6e4ebf9dc346/Challenge.lean [atlas]: https://raw.githubusercontent.com/techno-optimist/erdos-frontier-atlas/165f845a061c73c104a639efa9dce0a531b7d602/certificates/erdos-366/RESULT.json [atlas-code]: https://raw.githubusercontent.com/techno-optimist/erdos-frontier-atlas/165f845a061c73c104a639efa9dce0a531b7d602/certificates/erdos-366/search366.c [chan]: https://arxiv.org/abs/2503.21485