Problems / erdos-402 / variant-7a4bb0cd
Graham's bound for |A| = 11
variant-7a4bb0cd
proved
A partial route to the problem.
$\displaystyle \forall A \subset \mathbb{N}\ \text{finite}:\ 0 \notin A,\ |A| = 11 \Rightarrow \exists\, a, b \in A:\ \gcd(a,b) \le \frac{a}{|A|}$
Every set A of exactly eleven positive integers has a, b ∈ A (possibly equal) with gcd(a, b) ≤ a/|A|. The division is in ℚ.
Lean
theorem Opn.erdos_402_card_eleven :
∀ (A : Finset ℕ), 0 ∉ A → A.card = 11 → ∃ a ∈ A, ∃ b ∈ A, a.gcd b ≤ (a / A.card : ℚ) := by
sorryWhy does it end in sorry?
A statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
How it was proved
Proved by Proof.lean, checked by the kernel. Its attestation, 000298, records the gate’s run.
The proof step by step (outline)
Checked by the kernel — an outline of the attested proof below: attestations/000298.json, merge commit 3bca6448036a.
Outline of Proof.lean, extracted by the gate at 82834c4684b8 from the proof’s elaboration: each step is a claim the proof establishes and the goal it leaves. Open a step for what it uses and its Lean lines.
hposhave(0 : ℕ) < A.cardroutine: omegaLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhpos : (0 : ℕ) < A.card.Lean, line 13
have hpos : 0 < A.card := by omega
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 13 at
3bca6448036a↗hnehaveA.NonemptyLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhne : A.Nonempty.Uses library
Finset.card_pos.Lean, line 14
have hne : A.Nonempty := Finset.card_pos.mp hpos
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 14 at
3bca6448036a↗keyhave∀ (a b : ℕ), a.gcd b * A.card ≤ a → (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ)Leaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withkey : ∀ (a b : ℕ), a.gcd b * A.card ≤ a → (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ).Uses library
le_div_iff₀Seele_div_iff₀'for a version with multiplication on the other side. .Lean, lines 15–18
have key : ∀ a b : ℕ, a.gcd b * A.card ≤ a → (a.gcd b : ℚ) ≤ (a / A.card : ℚ) := by intro a b h rw [le_div_iff₀ (by exact_mod_cast hpos)] exact_mod_cast htargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 15–18 at
3bca6448036a↗hMhaveA.max' hne ∈ ALeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhM : A.max' hne ∈ A.Uses library
Finset.max'_mem.Lean, line 19
have hM : A.max' hne ∈ A := Finset.max'_mem A hne
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 19 at
3bca6448036a↗hMposhave(0 : ℕ) < A.max' hneLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhMpos : (0 : ℕ) < A.max' hne.Uses library
Nat.pos_of_ne_zero.Lean, line 20
have hMpos : 0 < A.max' hne := Nat.pos_of_ne_zero (fun h => hA (h ▸ hM))
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 20 at
3bca6448036a↗s6caseLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ).Uses library
Exists.introExistential introduction. .Lean, lines 22–23
· obtain ⟨x, hx, h⟩ := hw exact ⟨_, hM, x, hx, key _ x (by rw [hn]; exact h)⟩targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 22–23 at
3bca6448036a↗s6.s1obtain∃ x ∈ A, (A.max' hne).gcd x * (11 : ℕ) ≤ A.max' hneLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withx : ℕ,hx : x ∈ A,h : (A.max' hne).gcd x * (11 : ℕ) ≤ A.max' hne.Lean, line 22
· obtain ⟨x, hx, h⟩ := hw
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 22 at
3bca6448036a↗
formshave printed form did not read back: shown as its Lean lines onlyhave forms : ∀ x ∈ A.erase (A.max' hne), ∃ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), 2520 * x = a * A.max' hne := by intro x hx rw [Finset.mem_erase] at hx have hxpos : 0 < x := Nat.pos_of_ne_zero (fun h => hA (h ▸ hx.2)) have hlt : x < A.max' hne := lt_of_le_of_ne (Finset.le_max' A x hx.2) hx.1 have hg := hw x hx.2 obtain ⟨k, hk⟩ := Nat.gcd_dvd_left (A.max' hne) x obtain ⟨j, hj⟩ := Nat.gcd_dvd_right (A.max' hne) x have hgpos : 0 < (A.max' hne).gcd x := Nat.gcd_pos_of_pos_right _ hxpos have hkN : k < 11 := by by_contra hh push_neg at hh have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh omega have hjk : j < k := by by_contra hh push_neg at hh have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh omega have hj1 : 1 ≤ j := by rcases Nat.eq_zero_or_pos j with h | h · subst h omega · exact h refine ⟨2520 * j / k, ?_, ?_⟩ · interval_cases k <;> interval_cases j <;> decide · interval_cases k <;> interval_cases j <;> omegatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 25–51 at
3bca6448036a↗forms.hxposhave printed form did not read back: shown as its Lean lines onlyhave hxpos : 0 < x := Nat.pos_of_ne_zero (fun h => hA (h ▸ hx.2))
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 28 at
3bca6448036a↗forms.hlthave printed form did not read back: shown as its Lean lines onlyhave hlt : x < A.max' hne := lt_of_le_of_ne (Finset.le_max' A x hx.2) hx.1
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 29 at
3bca6448036a↗forms.hghave printed form did not read back: shown as its Lean lines onlyhave hg := hw x hx.2
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 30 at
3bca6448036a↗forms.s4obtain printed form did not read back: shown as its Lean lines onlyobtain ⟨k, hk⟩ := Nat.gcd_dvd_left (A.max' hne) x
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 31 at
3bca6448036a↗forms.s5obtain printed form did not read back: shown as its Lean lines onlyobtain ⟨j, hj⟩ := Nat.gcd_dvd_right (A.max' hne) x
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 32 at
3bca6448036a↗forms.hgposhave printed form did not read back: shown as its Lean lines onlyhave hgpos : 0 < (A.max' hne).gcd x := Nat.gcd_pos_of_pos_right _ hxpos
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 33 at
3bca6448036a↗forms.hkNhave printed form did not read back: shown as its Lean lines onlyhave hkN : k < 11 := by by_contra hh push_neg at hh have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh omegatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 34–38 at
3bca6448036a↗forms.hkN.thishave(A.max' hne).gcd x * (11 : ℕ) ≤ (A.max' hne).gcd x * kLeaves
False, withthis : (A.max' hne).gcd x * (11 : ℕ) ≤ (A.max' hne).gcd x * k.Uses library
Nat.mul_le_mul_left.Lean, line 37
have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 37 at
3bca6448036a↗
forms.hjkhave printed form did not read back: shown as its Lean lines onlyhave hjk : j < k := by by_contra hh push_neg at hh have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh omegatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 39–43 at
3bca6448036a↗forms.hjk.thishave(A.max' hne).gcd x * k ≤ (A.max' hne).gcd x * jLeaves
False, withthis : (A.max' hne).gcd x * k ≤ (A.max' hne).gcd x * j.Uses library
Nat.mul_le_mul_left.Lean, line 42
have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 42 at
3bca6448036a↗
forms.hj1have printed form did not read back: shown as its Lean lines onlyhave hj1 : 1 ≤ j := by rcases Nat.eq_zero_or_pos j with h | h · subst h omega · exact htargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 44–48 at
3bca6448036a↗forms.hj1.s1caseLeaves
(1 : ℕ) ≤ j.Lean, lines 46–47
· subst h omegatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 46–47 at
3bca6448036a↗forms.hj1.s2caseLeaves
(1 : ℕ) ≤ j.Lean, line 48
· exact h
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 48 at
3bca6448036a↗
forms.s10case printed form did not read back: shown as its Lean lines only· interval_cases k <;> interval_cases j <;> decide
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 50 at
3bca6448036a↗forms.s11caseLeaves
(2520 : ℕ) * x = (2520 : ℕ) * j / k * A.max' hne.Lean, line 51
· interval_cases k <;> interval_cases j <;> omega
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 51 at
3bca6448036a↗
hcardhave(A.erase (A.max' hne)).card = (10 : ℕ)Leaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhcard : (A.erase (A.max' hne)).card = (10 : ℕ).Uses library
Finset.card_erase_of_mem$\#(s \setminus \{a\}) = \#s - 1$ if $a \in s$. .Lean, lines 52–53
have hcard : (A.erase (A.max' hne)).card = 10 := by rw [Finset.card_erase_of_mem hM, hn]targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 52–53 at
3bca6448036a↗hShave printed form did not read back: shown as its Lean lines onlyhave hS : ∀ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) a < 9 := by decidetargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 54 at
3bca6448036a↗hmapshave∀ x ∈ A.erase (A.max' hne), (fun (a : ℕ) => if a = (252 : ℕ) then (2 : ℕ) else if a = (280 : ℕ) then (6 : ℕ) else if a = (315 : ℕ) then (8 : ℕ) else if a = (360 : ℕ) then (7 : ℕ) else if a = (420 : ℕ) then (5 : ℕ) else if a = (504 : ℕ) then (4 : ℕ) else if a = (560 : ℕ) then (7 : ℕ) else if a = (630 : ℕ) then (3 : ℕ) else if a = (720 : ℕ) then (6 : ℕ) else if a = (756 : ℕ) then (6 : ℕ) else if a = (840 : ℕ) then (1 : ℕ) else if a = (945 : ℕ) then (2 : ℕ) else if a = (1008 : ℕ) then (5 : ℕ) else if a = (1080 : ℕ) then (5 : ℕ) else if a = (1120 : ℕ) then (3 : ℕ) else if a = (1260 : ℕ) then (0 : ℕ) else if a = (1400 : ℕ) then (4 : ℕ) else if a = (1440 : ℕ) then (4 : ℕ) else if a = (1512 : ℕ) then (3 : ℕ) else if a = (1575 : ℕ) then (1 : ℕ) else if a = (1680 : ℕ) then (2 : ℕ) else (truncated)Leaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhmaps : ∀ x ∈ A.erase (A.max' hne), (fun (a : ℕ) => if a = (252 : ℕ) then (2 : ℕ) else if a = (280 : ℕ) then (6 : ℕ) else if a = (315 : ℕ) then (8 : ℕ) else if a = (360 : ℕ) then (7 : ℕ) else if a = (420 : ℕ) then (5 : ℕ) else if a = (504 : ℕ) then (4 : ℕ) else if a = (560 : ℕ) then (7 : ℕ) else if a = (630 : ℕ) then (3 : ℕ) else if a = (720 : ℕ) then (6 : ℕ) else if a = (756 : ℕ) then (6 : ℕ) else if a = (840 : ℕ) then (1 : ℕ) else if a = (945 : ℕ) then (2 : ℕ) else if a = (1008 : ℕ) then (5 : ℕ) else if a = (1080 : ℕ) then (5 : ℕ) else if a = (1120 : ℕ) then (3 : ℕ) else if a = (1260 : ℕ) then (0 : ℕ) else if a = (1400 : ℕ) then (4 : ℕ) else if a = (1440 : ℕ) then (4 : ℕ) else if a = (1512 : ℕ) then (3 : ℕ) else if a = (1575 : ℕ) then (1 : ℕ) else if a = (1680 : ℕ) then (2 : ℕ) else (truncated).Uses library
Finset.rangerange nis the set of natural numbers less thann. ,Finset.mem_range,Nat.mul_div_cancel.Lean, lines 55–59
have hmaps : ∀ x ∈ A.erase (A.max' hne), (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) (2520 * x / A.max' hne) ∈ Finset.range 9 := by intro x hx obtain ⟨a, ha, hax⟩ := forms x hx rw [Finset.mem_range, hax, Nat.mul_div_cancel _ hMpos] exact hS a hatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 55–59 at
3bca6448036a↗hmaps.s1obtain printed form did not read back: shown as its Lean lines onlyobtain ⟨a, ha, hax⟩ := forms x hx
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 57 at
3bca6448036a↗
s11obtain∃ x ∈ A.erase (A.max' hne), ∃ y ∈ A.erase (A.max' hne), x ≠ y ∧ (fun (a : ℕ) => if a = (252 : ℕ) then (2 : ℕ) else if a = (280 : ℕ) then (6 : ℕ) else if a = (315 : ℕ) then (8 : ℕ) else if a = (360 : ℕ) then (7 : ℕ) else if a = (420 : ℕ) then (5 : ℕ) else if a = (504 : ℕ) then (4 : ℕ) else if a = (560 : ℕ) then (7 : ℕ) else if a = (630 : ℕ) then (3 : ℕ) else if a = (720 : ℕ) then (6 : ℕ) else if a = (756 : ℕ) then (6 : ℕ) else if a = (840 : ℕ) then (1 : ℕ) else if a = (945 : ℕ) then (2 : ℕ) else if a = (1008 : ℕ) then (5 : ℕ) else if a = (1080 : ℕ) then (5 : ℕ) else if a = (1120 : ℕ) then (3 : ℕ) else if a = (1260 : ℕ) then (0 : ℕ) else if a = (1400 : ℕ) then (4 : ℕ) else if a = (1440 : ℕ) then (4 : ℕ) else if a = (1512 : ℕ) then (3 : ℕ) else if a = (1575 : ℕ) then (1 : ℕ) (truncated)Leaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withx : ℕ,hx : x ∈ A.erase (A.max' hne),y : ℕ,hy : y ∈ A.erase (A.max' hne),hxy : x ≠ y,hc : (fun (a : ℕ) => if a = (252 : ℕ) then (2 : ℕ) else if a = (280 : ℕ) then (6 : ℕ) else if a = (315 : ℕ) then (8 : ℕ) else if a = (360 : ℕ) then (7 : ℕ) else if a = (420 : ℕ) then (5 : ℕ) else if a = (504 : ℕ) then (4 : ℕ) else if a = (560 : ℕ) then (7 : ℕ) else if a = (630 : ℕ) then (3 : ℕ) else if a = (720 : ℕ) then (6 : ℕ) else if a = (756 : ℕ) then (6 : ℕ) else if a = (840 : ℕ) then (1 : ℕ) else if a = (945 : ℕ) then (2 : ℕ) else if a = (1008 : ℕ) then (5 : ℕ) else if a = (1080 : ℕ) then (5 : ℕ) else if a = (1120 : ℕ) then (3 : ℕ) else if a = (1260 : ℕ) then (0 : ℕ) else if a = (1400 : ℕ) then (4 : ℕ) else if a = (1440 : ℕ) then (4 : ℕ) else if a = (1512 : ℕ) then (3 : ℕ) else if a = (1575 : ℕ) then (1 : ℕ) else if a = (1680 : ℕ) then (2 : ℕ) else if a = (1764 : ℕ) then (7 : ℕ) else (truncated).Uses library
Finset.exists_ne_map_eq_of_card_lt_of_maps_toIf there are more pigeons than pigeonholes, then there are two pigeons in the same pigeonhole. ,Finset.card_range.Lean, lines 60–61
obtain ⟨x, hx, y, hy, hxy, hc⟩ := Finset.exists_ne_map_eq_of_card_lt_of_maps_to (by rw [hcard, Finset.card_range]; norm_num) hmapstargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 60–61 at
3bca6448036a↗s12obtain printed form did not read back: shown as its Lean lines onlyobtain ⟨a, ha, hax⟩ := forms x hx
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 62 at
3bca6448036a↗s13obtain printed form did not read back: shown as its Lean lines onlyobtain ⟨b, hb, hby⟩ := forms y hy
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 63 at
3bca6448036a↗habhavea ≠ bLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhab : a ≠ b.Lean, lines 65–69
have hab : a ≠ b := by intro h subst h apply hxy omegatargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 65–69 at
3bca6448036a↗hpairhave printed form did not read back: shown as its Lean lines onlyhave hpair : ∀ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), ∀ b ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), a ≠ b → (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) a = (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) b → 11 * a.gcd b ≤ a ∨ 11 * a.gcd b ≤ b := by decidetargets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 70–71 at
3bca6448036a↗hgcdhavea.gcd b * A.max' hne = (2520 : ℕ) * x.gcd yLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhgcd : a.gcd b * A.max' hne = (2520 : ℕ) * x.gcd y.Uses library
Nat.gcd_mul_right.Lean, lines 72–75
have hgcd : a.gcd b * A.max' hne = 2520 * x.gcd y := by have h1 : Nat.gcd (2520 * x) (2520 * y) = 2520 * x.gcd y := Nat.gcd_mul_left 2520 x y rw [hax, hby, Nat.gcd_mul_right] at h1 exact h1targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 72–75 at
3bca6448036a↗hgcd.h1have((2520 : ℕ) * x).gcd ((2520 : ℕ) * y) = (2520 : ℕ) * x.gcd yLeaves
a.gcd b * A.max' hne = (2520 : ℕ) * x.gcd y, withh1 : ((2520 : ℕ) * x).gcd ((2520 : ℕ) * y) = (2520 : ℕ) * x.gcd y.Uses library
Nat.gcdComputes the greatest common divisor of two natural numbers. ,Nat.gcd_mul_left.Lean, line 73
have h1 : Nat.gcd (2520 * x) (2520 * y) = 2520 * x.gcd y := Nat.gcd_mul_left 2520 x y
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 73 at
3bca6448036a↗
hxAhavex ∈ ALeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhxA : x ∈ A.Uses library
Finset.mem_erase.Lean, line 76
have hxA := (Finset.mem_erase.mp hx).2
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 76 at
3bca6448036a↗hyAhavey ∈ ALeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ), withhyA : y ∈ A.Uses library
Finset.mem_erase.Lean, line 77
have hyA := (Finset.mem_erase.mp hy).2
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 77 at
3bca6448036a↗s19caseLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ).Uses library
Exists.introExistential introduction. ,Nat.le_of_mul_le_mul_right.Lean, lines 79–83
· refine ⟨x, hxA, y, hyA, key x y ?_⟩ rw [hn] have h2 := Nat.mul_le_mul_right (A.max' hne) h have h3 : x.gcd y * 11 * 2520 ≤ x * 2520 := by nlinarith exact Nat.le_of_mul_le_mul_right h3 (by norm_num)targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 79–83 at
3bca6448036a↗s19.h2have(11 : ℕ) * a.gcd b * A.max' hne ≤ a * A.max' hneLeaves
x.gcd y * (11 : ℕ) ≤ x, withh2 : (11 : ℕ) * a.gcd b * A.max' hne ≤ a * A.max' hne.Uses library
Nat.mul_le_mul_right.Lean, line 81
have h2 := Nat.mul_le_mul_right (A.max' hne) h
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 81 at
3bca6448036a↗s19.h3havex.gcd y * (11 : ℕ) * (2520 : ℕ) ≤ x * (2520 : ℕ)routine: nlinarithLeaves
x.gcd y * (11 : ℕ) ≤ x, withh3 : x.gcd y * (11 : ℕ) * (2520 : ℕ) ≤ x * (2520 : ℕ).Lean, line 82
have h3 : x.gcd y * 11 * 2520 ≤ x * 2520 := by nlinarith
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 82 at
3bca6448036a↗
s20caseLeaves
∃ a ∈ A, ∃ b ∈ A, (↑(a.gcd b) : ℚ) ≤ (↑a : ℚ) / (↑A.card : ℚ).Uses library
Exists.introExistential introduction. ,Nat.gcd_comm,Nat.le_of_mul_le_mul_right.Lean, lines 84–88
· refine ⟨y, hyA, x, hxA, key y x ?_⟩ rw [hn, Nat.gcd_comm] have h2 := Nat.mul_le_mul_right (A.max' hne) h have h3 : x.gcd y * 11 * 2520 ≤ y * 2520 := by nlinarith exact Nat.le_of_mul_le_mul_right h3 (by norm_num)targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, lines 84–88 at
3bca6448036a↗s20.h2have(11 : ℕ) * a.gcd b * A.max' hne ≤ b * A.max' hneLeaves
x.gcd y * (11 : ℕ) ≤ y, withh2 : (11 : ℕ) * a.gcd b * A.max' hne ≤ b * A.max' hne.Uses library
Nat.mul_le_mul_right.Lean, line 86
have h2 := Nat.mul_le_mul_right (A.max' hne) h
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 86 at
3bca6448036a↗s20.h3havex.gcd y * (11 : ℕ) * (2520 : ℕ) ≤ y * (2520 : ℕ)routine: nlinarithLeaves
x.gcd y * (11 : ℕ) ≤ y, withh3 : x.gcd y * (11 : ℕ) * (2520 : ℕ) ≤ y * (2520 : ℕ).Lean, line 87
have h3 : x.gcd y * 11 * 2520 ≤ y * 2520 := by nlinarith
targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, line 87 at
3bca6448036a↗
The proof in Lean (Proof.lean)
Checked by the kernel — these bytes are the ones its attestation names: attestations/000298.json, merge commit 3bca6448036a.
artifact_hash of the attestation below, so these are the bytes the gate checked. Rendered from targets/erdos-402/nodes/variant-7a4bb0cd/Proof.lean, sha256 1a95a0468248.import Mathlib
import Nodes.«variant-7a4bb0cd».Context
/-! Graham's gcd conjecture (Erdős problem 402) for eleven-element sets. With M the largest
element, if gcd(M, x) > M/11 for every x then every other x is (j/k)M with j < k ≤ 10, so
L·x/M (L = lcm(1..10) = 2520) lies in a fixed set S of 31 values. S splits into 9 classes in
each of which any two distinct values c, d have 11·gcd(c, d) ≤ c or ≤ d; by pigeonhole two of
the 10 other elements share a class, and gcd(x, y)·L = gcd(c, d)·M transfers the bound. -/
theorem Opn.erdos_402_card_eleven :
∀ (A : Finset ℕ), 0 ∉ A → A.card = 11 → ∃ a ∈ A, ∃ b ∈ A, a.gcd b ≤ (a / A.card : ℚ) := by
intro A hA hn
have hpos : 0 < A.card := by omega
have hne : A.Nonempty := Finset.card_pos.mp hpos
have key : ∀ a b : ℕ, a.gcd b * A.card ≤ a → (a.gcd b : ℚ) ≤ (a / A.card : ℚ) := by
intro a b h
rw [le_div_iff₀ (by exact_mod_cast hpos)]
exact_mod_cast h
have hM : A.max' hne ∈ A := Finset.max'_mem A hne
have hMpos : 0 < A.max' hne := Nat.pos_of_ne_zero (fun h => hA (h ▸ hM))
by_cases hw : ∃ x ∈ A, (A.max' hne).gcd x * 11 ≤ A.max' hne
· obtain ⟨x, hx, h⟩ := hw
exact ⟨_, hM, x, hx, key _ x (by rw [hn]; exact h)⟩
push_neg at hw
have forms : ∀ x ∈ A.erase (A.max' hne), ∃ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), 2520 * x = a * A.max' hne := by
intro x hx
rw [Finset.mem_erase] at hx
have hxpos : 0 < x := Nat.pos_of_ne_zero (fun h => hA (h ▸ hx.2))
have hlt : x < A.max' hne := lt_of_le_of_ne (Finset.le_max' A x hx.2) hx.1
have hg := hw x hx.2
obtain ⟨k, hk⟩ := Nat.gcd_dvd_left (A.max' hne) x
obtain ⟨j, hj⟩ := Nat.gcd_dvd_right (A.max' hne) x
have hgpos : 0 < (A.max' hne).gcd x := Nat.gcd_pos_of_pos_right _ hxpos
have hkN : k < 11 := by
by_contra hh
push_neg at hh
have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh
omega
have hjk : j < k := by
by_contra hh
push_neg at hh
have := Nat.mul_le_mul_left ((A.max' hne).gcd x) hh
omega
have hj1 : 1 ≤ j := by
rcases Nat.eq_zero_or_pos j with h | h
· subst h
omega
· exact h
refine ⟨2520 * j / k, ?_, ?_⟩
· interval_cases k <;> interval_cases j <;> decide
· interval_cases k <;> interval_cases j <;> omega
have hcard : (A.erase (A.max' hne)).card = 10 := by
rw [Finset.card_erase_of_mem hM, hn]
have hS : ∀ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) a < 9 := by decide
have hmaps : ∀ x ∈ A.erase (A.max' hne), (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) (2520 * x / A.max' hne) ∈ Finset.range 9 := by
intro x hx
obtain ⟨a, ha, hax⟩ := forms x hx
rw [Finset.mem_range, hax, Nat.mul_div_cancel _ hMpos]
exact hS a ha
obtain ⟨x, hx, y, hy, hxy, hc⟩ :=
Finset.exists_ne_map_eq_of_card_lt_of_maps_to (by rw [hcard, Finset.card_range]; norm_num) hmaps
obtain ⟨a, ha, hax⟩ := forms x hx
obtain ⟨b, hb, hby⟩ := forms y hy
rw [hax, hby, Nat.mul_div_cancel _ hMpos, Nat.mul_div_cancel _ hMpos] at hc
have hab : a ≠ b := by
intro h
subst h
apply hxy
omega
have hpair : ∀ a ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), ∀ b ∈ ({252, 280, 315, 360, 420, 504, 560, 630, 720, 756, 840, 945, 1008, 1080, 1120, 1260, 1400, 1440, 1512, 1575, 1680, 1764, 1800, 1890, 1960, 2016, 2100, 2160, 2205, 2240, 2268} : Finset ℕ), a ≠ b → (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) a = (fun a : ℕ => if a = 252 then 2 else if a = 280 then 6 else if a = 315 then 8 else if a = 360 then 7 else if a = 420 then 5 else if a = 504 then 4 else if a = 560 then 7 else if a = 630 then 3 else if a = 720 then 6 else if a = 756 then 6 else if a = 840 then 1 else if a = 945 then 2 else if a = 1008 then 5 else if a = 1080 then 5 else if a = 1120 then 3 else if a = 1260 then 0 else if a = 1400 then 4 else if a = 1440 then 4 else if a = 1512 then 3 else if a = 1575 then 1 else if a = 1680 then 2 else if a = 1764 then 7 else if a = 1800 then 2 else if a = 1890 then 4 else if a = 1960 then 0 else if a = 2016 then 1 else if a = 2100 then 6 else if a = 2160 then 0 else if a = 2205 then 5 else if a = 2240 then 5 else if a = 2268 then 8 else 0) b →
11 * a.gcd b ≤ a ∨ 11 * a.gcd b ≤ b := by decide
have hgcd : a.gcd b * A.max' hne = 2520 * x.gcd y := by
have h1 : Nat.gcd (2520 * x) (2520 * y) = 2520 * x.gcd y := Nat.gcd_mul_left 2520 x y
rw [hax, hby, Nat.gcd_mul_right] at h1
exact h1
have hxA := (Finset.mem_erase.mp hx).2
have hyA := (Finset.mem_erase.mp hy).2
rcases hpair a ha b hb hab hc with h | h
· refine ⟨x, hxA, y, hyA, key x y ?_⟩
rw [hn]
have h2 := Nat.mul_le_mul_right (A.max' hne) h
have h3 : x.gcd y * 11 * 2520 ≤ x * 2520 := by nlinarith
exact Nat.le_of_mul_le_mul_right h3 (by norm_num)
· refine ⟨y, hyA, x, hxA, key y x ?_⟩
rw [hn, Nat.gcd_comm]
have h2 := Nat.mul_le_mul_right (A.max' hne) h
have h3 : x.gcd y * 11 * 2520 ≤ y * 2520 := by nlinarith
exact Nat.le_of_mul_le_mul_right h3 (by norm_num)What is known
Work on it
No explainer yet. This proof written as a journal would print it, labelled unverified, is the next thing a writer could add, by pull request (D-3, D-36; the guide shows how).
How to contribute → · Pull requests in flight ↗ · See it in the problem’s graph →
Record
Statement: the Lean file and its words (1 version)
Statement not audited — only a problem’s root statement is audited for fidelity (D-9); the kernel checks a proof against this Lean as written.
import Mathlib
import Nodes.«variant-7a4bb0cd».Context
/-! Graham's gcd conjecture (Erdős problem 402) for eleven-element sets. With M the largest
element, if gcd(M, x) > M/11 for every x then every other x is (j/k)M with j < k ≤ 10, so
L·x/M (L = lcm(1..10) = 2520) lies in a fixed set S of 31 values. S splits into 9 classes in
each of which any two distinct values c, d have 11·gcd(c, d) ≤ c or ≤ d; by pigeonhole two of
the 10 other elements share a class, and gcd(x, y)·L = gcd(c, d)·M transfers the bound. -/
theorem Opn.erdos_402_card_eleven :
∀ (A : Finset ℕ), 0 ∉ A → A.card = 11 → ∃ a ∈ A, ∃ b ∈ A, a.gcd b ≤ (a / A.card : ℚ) := by
sorryA statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
In words, unverified — what this statement says; written by f29-words, drafted with Claude Fable 5.1 (claude-fable-5-1), 2026-10-18; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \forall A \subset \mathbb{N}\ \text{finite}:\ 0 \notin A,\ |A| = 11 \Rightarrow \exists\, a, b \in A:\ \gcd(a,b) \le \frac{a}{|A|}$
Every set A of exactly eleven positive integers has a, b ∈ A (possibly equal) with gcd(a, b) ≤ a/|A|. The division is in ℚ.
Rendered from gloss/3b42a47220f1….md · Improve these words →
Rendered from targets/erdos-402/nodes/variant-7a4bb0cd/Statement.lean. Origin: variant (partial).
Attestation: pass, 7 of 7 checks
Checked by the kernel — the gate’s record of the run: attestations/000298.json, merge commit 3bca6448036a.
Verdict pass, from attestations/000298.json.
- Submitter
t0929-6- Toolchain
- leanprover/lean4:v4.33.1 (hash
f54d0bc916bf76a7fae460ce9d078ccd1f74aeb4fd12c4b6546bca28b6aa1c63) - Mathlib
- 0df444a360eaa60ab8c11dca51a86af692955474
- Reviewer
- none needed (calibration)
| Step | Check | Result |
|---|---|---|
| 1 | toolchain | pass |
| 2 | paths | pass |
| 4 | kernel-replay | pass |
| 5 | axioms | pass |
| 6 | hazards | pass |
| 7 | witness | pass |
| 8 | deps | pass |
Witness
Checked by the kernel — step 7 passed in the run its attestation records: attestations/000298.json, merge commit 3bca6448036a.
48efa5719a3d.import Mathlib theorem witness : ∃ A : Finset ℕ, 0 ∉ A ∧ A.card = 11 := ⟨Finset.Icc 1 11, by decide, by decide⟩
No gloss yet: no one has written in words what this witness says (D-3 v3.30); the Lean above is the witness. How to write one →
Relation to the problem’s statement
Checked by the kernel — checked at admission (D-30); no proof of the node is implied.
05ed4eb18fbe.-- relation: partial
import Mathlib
theorem relation :
(∀ (A : Finset ℕ), 0 ∉ A → A.Nonempty → ∃ᵉ (a ∈ A) (b ∈ A), a.gcd b ≤ (a / A.card : ℚ)) →
∀ (A : Finset ℕ), 0 ∉ A → A.card = 11 → ∃ a ∈ A, ∃ b ∈ A, a.gcd b ≤ (a / A.card : ℚ) := by
intro h A hA hc
exact h A hA (Finset.card_pos.mp (by omega))No gloss yet: no one has written in words what this relation says (D-3 v3.30); the Lean above is the relation. How to write one →
Acknowledged findings (1)
Untrusted contributor text — the prover’s justification for a finding.
Untrusted: acknowledgment of a div-zero finding at ↑a / ↑A.card
A.card = 11 is a hypothesis, so the rational division is by 11; the same division appears in the root statement.