| | @@ -0,0 +1,330 @@ |
| 1 | +import ErdosSwarm.Erdos530Gap75.Data |
| 2 | +import ErdosSwarm.Erdos530Gap78.Assembly |
| 3 | + |
| 4 | +/-! |
| 5 | +# The assembly of the 74/75 bound at `N ≥ 2^720` (brief B5′) |
| 6 | + |
| 7 | +`Erdos530Gap75/PLAN.md`, "How the lemmas imply the target", stage 2: the assembly of |
| 8 | +`Erdos530Gap78/Assembly.lean` (l. 212–450) with the cover width `1 + Kτ`, `K = 2999/500`, |
| 9 | +`δ = 0.03596`, the host `M = ⌊N/(1 − δ − η)⌋` and `(31/32)² < (1 − δ − η)(74/75)²`. |
| 10 | + |
| 11 | +The cover (`Cover75`) and the pair tail (`PairTail75`) enter |
| 12 | +`visible_gap_75_720_of_parts` as hypotheses, with the statements of `Data.lean`; the other |
| 13 | +four hypotheses are the statements of `Erdos530Gap78/Assembly.lean`, which are proved there |
| 14 | +and in `Main78.lean`. The graph facts and the level arithmetic of that file |
| 15 | +(`card_le_indepNum_induce`, `level532_bounds`, `indepNum_le_of_quads`) are used unchanged. |
| 16 | + |
| 17 | +Two steps are stated more generally than in the 77/78 file, so that the assembly at |
| 18 | +`N ≥ 2^512` (brief C8, `visible_gap_75_of_parts`, also proved here) uses them as they are: |
| 19 | + |
| 20 | +* `host75_bounds` and `short_probability_75` hold for `N ≥ 2^512`; |
| 21 | +* `large_sidon_probability_of_cover` takes any family `𝒞` of containers of width `1 + Kτ` |
| 22 | + with `|𝒞| ≤ exp(logCount)` and a pair tail for that `logCount`, at `√M ≥ 2^256`. |
| 23 | + |
| 24 | +Lean-checked, conditional on the six hypotheses of `visible_gap_75_720_of_parts` |
| 25 | +(respectively of `visible_gap_75_of_parts`); the cover and pair-tail hypotheses are not |
| 26 | +proved here. |
| 27 | +-/ |
| 28 | + |
| 29 | +namespace ErdosSwarm.Erdos530Gap75 |
| 30 | + |
| 31 | +open Finset MeasureTheory ErdosSwarm.Erdos530Gap ErdosSwarm.Erdos530Gap.Refinement |
| 32 | +open ErdosSwarm.Erdos530Gap103 (tau recordLog leaves adjacentPairs edgeFreeQuadruples |
| 33 | + leaf_census) |
| 34 | +open ErdosSwarm.Erdos530Gap78 (IndepTail RefinedCount RefinedLeaf GraphSize96 tilt refinedLog |
| 35 | + level532 level532_bounds indepNum_le_of_quads card_le_indepNum_induce) |
| 36 | + |
| 37 | +noncomputable section |
| 38 | + |
| 39 | +set_option exponentiation.threshold 1024 |
| 40 | + |
| 41 | +/- ## The host `M = ⌊N/(1 − δ − η)⌋` and the short event -/ |
| 42 | + |
| 43 | +/-- `M = ⌊N/(1 − δ − η)⌋`, with `δ = 0.03596` and `η = 10⁻⁹`. -/ |
| 44 | +def host75 (N : ℕ) : ℕ := ⌊(N : ℝ) / (1 - (delta : ℝ) - eta)⌋₊ |
| 45 | + |
| 46 | +/-- The floor uses `1 − δ − η`, and `(31/32)² < (1 − δ − η)(74/75)²`. The last bound supplies |
| 47 | +the deviation for the accepted upper Hoeffding tail on the full host. -/ |
| 48 | +theorem host75_bounds (N : ℕ) (hN : 2 ^ 512 ≤ N) : |
| 49 | + let M := host75 N |
| 50 | + N ≤ M ∧ M ≤ 2 * N ∧ (2 : ℝ) ^ 256 ≤ Real.sqrt M ∧ |
| 51 | + (1 - tau) * Real.sqrt M < (74 / 75 : ℝ) * Real.sqrt N ∧ |
| 52 | + (delta : ℝ) * M + (eta / 2) * N ≤ (M : ℝ) - N := by |
| 53 | + let M := host75 N |
| 54 | + let keep : ℝ := 1 - (delta : ℝ) - eta |
| 55 | + have hu : 0 < keep := by norm_num [keep, delta, eta] |
| 56 | + have hN' : (2 : ℝ) ^ 512 ≤ N := by exact_mod_cast hN |
| 57 | + have hN₀ : (0 : ℝ) < N := lt_of_lt_of_le (by norm_num) hN' |
| 58 | + have hfloor : (M : ℝ) ≤ N / keep := Nat.floor_le (by positivity) |
| 59 | + have hright : (N : ℝ) / keep < M + 1 := Nat.lt_floor_add_one _ |
| 60 | + have hleft := (le_div_iff₀ hu).mp hfloor |
| 61 | + have hNM : N ≤ M := by |
| 62 | + apply Nat.le_floor |
| 63 | + apply (le_div_iff₀ hu).mpr |
| 64 | + exact mul_le_of_le_one_right hN₀.le (by norm_num [keep, delta, eta]) |
| 65 | + have hNM' : (N : ℝ) ≤ M := by exact_mod_cast hNM |
| 66 | + have hMN : M ≤ 2 * N := by |
| 67 | + norm_num [keep, delta, eta] at hleft |
| 68 | + exact_mod_cast (show (M : ℝ) ≤ 2 * (N : ℝ) by linarith) |
| 69 | + have hm : (2 : ℝ) ^ 256 ≤ Real.sqrt M := by |
| 70 | + apply Real.le_sqrt_of_sq_le |
| 71 | + rw [← pow_mul] |
| 72 | + exact hN'.trans hNM' |
| 73 | + refine ⟨hNM, hMN, hm, ?_, ?_⟩ |
| 74 | + · have hcoef : (1 - tau) ^ 2 < (74 / 75 : ℝ) ^ 2 * keep := by |
| 75 | + norm_num [tau, keep, delta, eta] |
| 76 | + have hM₀ := hN₀.trans_le hNM' |
| 77 | + apply (sq_lt_sq₀ (mul_nonneg (by norm_num [tau]) (Real.sqrt_nonneg _)) |
| 78 | + (by positivity)).mp |
| 79 | + rw [mul_pow, mul_pow, Real.sq_sqrt hM₀.le, Real.sq_sqrt hN₀.le] |
| 80 | + calc _ < ((74 / 75 : ℝ) ^ 2 * keep) * M := mul_lt_mul_of_pos_right hcoef hM₀ |
| 81 | + _ = (74 / 75 : ℝ) ^ 2 * (M * keep) := by ring |
| 82 | + _ ≤ _ := mul_le_mul_of_nonneg_left hleft (by positivity) |
| 83 | + · have hr := (div_lt_iff₀ hu).mp hright |
| 84 | + change (delta : ℝ) * M + eta / 2 * N ≤ (M : ℝ) - N |
| 85 | + norm_num [keep, delta, eta] at hr ⊢ |
| 86 | + linarith only [hr, hNM', hN'] |
| 87 | + |
| 88 | +/-- For `N ≥ 2^720` the host has `√M ≥ 2^360`, the range of `PairTail75`. -/ |
| 89 | +theorem host75_sqrt_ge (N : ℕ) (hN : 2 ^ 720 ≤ N) : |
| 90 | + (2 : ℝ) ^ 360 ≤ Real.sqrt (host75 N) := by |
| 91 | + obtain ⟨hNM, _⟩ := host75_bounds N (le_trans (by norm_num) hN) |
| 92 | + have hN' : (2 : ℝ) ^ 720 ≤ N := by exact_mod_cast hN |
| 93 | + have hNM' : (N : ℝ) ≤ (host75 N : ℕ) := by exact_mod_cast hNM |
| 94 | + apply Real.le_sqrt_of_sq_le |
| 95 | + rw [← pow_mul] |
| 96 | + exact hN'.trans hNM' |
| 97 | + |
| 98 | +open private exp_neg_lt_quarter from ErdosSwarm.Erdos530Gap.Assembly in |
| 99 | +/-- The full-host upper tail works with excess `ηN/2` (accepted Hoeffding tail); a copy of |
| 100 | +`Erdos530Gap78.short_probability_78` with `host75`. -/ |
| 101 | +theorem short_probability_75 (N : ℕ) (hN : 2 ^ 512 ≤ N) : |
| 102 | + let M := host75 N |
| 103 | + (deletionLaw (host M) delta).real {ω | (host M \ deleted (host M) ω).card < N} < 1 / 4 := by |
| 104 | + let M := host75 N |
| 105 | + let Ω := host M |
| 106 | + obtain ⟨_, hM, _, _, hdiff⟩ := host75_bounds N hN |
| 107 | + have hcard : Ω.card = M := by simp [Ω, host] |
| 108 | + have hcap : (Ω.card : ℝ) ≤ 2 * N := by rw [hcard]; exact_mod_cast hM |
| 109 | + have hN' : (2 : ℝ) ^ 512 ≤ N := by exact_mod_cast hN |
| 110 | + have hN₀ : (0 : ℝ) < N := lt_of_lt_of_le (by norm_num) hN' |
| 111 | + have htail := (bernoulli_card_hoeffding (Ω := Ω) (B := Ω) Subset.rfl delta hN₀ |
| 112 | + (by norm_num [eta] : 0 < eta / 2) hcap).2 |
| 113 | + have hsmall : Real.exp (-((eta / 2) ^ 2) * N) < 1 / 4 := by |
| 114 | + rw [neg_mul] |
| 115 | + apply exp_neg_lt_quarter |
| 116 | + norm_num [eta] |
| 117 | + linarith only [hN'] |
| 118 | + refine (measureReal_mono (μ := deletionLaw Ω delta) ?_ (measure_ne_top _ _)).trans_lt |
| 119 | + (htail.trans_lt hsmall) |
| 120 | + intro ω hω |
| 121 | + let D := deleted Ω ω |
| 122 | + have hD : D ⊆ Ω := by |
| 123 | + intro x hx |
| 124 | + obtain ⟨v, _, rfl⟩ := mem_map.mp hx |
| 125 | + exact v.prop |
| 126 | + change (Ω \ D).card < N at hω |
| 127 | + change (delta : ℝ) * Ω.card + (eta / 2) * N ≤ ((D ∩ Ω).card : ℝ) |
| 128 | + rw [inter_eq_left.mpr hD, hcard] |
| 129 | + refine hdiff.trans ?_ |
| 130 | + have hh := card_sdiff_add_card_eq_card hD |
| 131 | + have hs : M ≤ D.card + N := by omega |
| 132 | + have hs' : (M : ℝ) ≤ (D.card : ℝ) + N := by exact_mod_cast hs |
| 133 | + linarith |
| 134 | + |
| 135 | +/- ## The large event (steps 2–6) -/ |
| 136 | + |
| 137 | +/-- Steps 2–6 of the plan, for any cover by containers of width `1 + Kτ`: a union over the |
| 138 | +family `𝒞` and the refined leaves of the tails of `indep_tail`, summed by a pair tail for |
| 139 | +the count `exp(logCount)` of `𝒞`. `Erdos530Gap78.large_sidon_probability_78` with `K`, `δ` |
| 140 | +of this row; the cover and its log count are parameters, and `√M ≥ 2^256` suffices. -/ |
| 141 | +theorem large_sidon_probability_of_cover (htail : IndepTail) (hcount : RefinedCount) |
| 142 | + (hleaf : RefinedLeaf) (hsize : GraphSize96) {M : ℕ} |
| 143 | + (hm256 : (2 : ℝ) ^ 256 ≤ Real.sqrt M) {𝒞 : Finset (Finset ℕ)} {logCount : ℝ} |
| 144 | + (hcountC : (𝒞.card : ℝ) ≤ Real.exp logCount) |
| 145 | + (hsizeC : ∀ C ∈ 𝒞, C ⊆ host M ∧ (C.card : ℝ) ≤ (1 + K * tau) * Real.sqrt M) |
| 146 | + (hseed : ∀ S ⊆ host M, IsSidon (S : Set ℕ) → seedSize M tau ≤ S.card → ∃ C ∈ 𝒞, S ⊆ C) |
| 147 | + (hest : ∀ {α n : ℕ} |
| 148 | + (_hα : (α : ℝ) ≤ (1 + 52 * Real.sqrt M ^ (-(1 / 8 : ℝ))) * Real.sqrt M) |
| 149 | + (_hn : (n : ℝ) ≤ (1 + K * tau) * Real.sqrt M) |
| 150 | + (_hsize : ∀ lam : ℝ, 4 / 10 ^ 6 ≤ lam → lam ≤ 1 / 100 → |
| 151 | + (1 - lam) * Real.sqrt M ≤ α → (n : ℝ) < (1 + 96 * lam) * Real.sqrt M), |
| 152 | + let q := 1 - (delta : ℝ) |
| 153 | + let A := 1 - q + q * tilt |
| 154 | + let B := (1 - q) ^ 2 + (1 - (1 - q) ^ 2) * tilt |
| 155 | + Real.exp (logCount + refinedLog (Real.sqrt M)) * |
| 156 | + (tilt ^ (-((seedSize M tau : ℝ) - 64 * Real.sqrt M ^ (27 / 32 : ℝ))) * |
| 157 | + (A ^ 2 / B) ^ α * (B / A) ^ n) < 1 / 4) : |
| 158 | + (deletionLaw (host M) delta).real |
| 159 | + {ω | containsSidon (host M \ deleted (host M) ω) (seedSize M tau)} < 1 / 4 := by |
| 160 | + classical |
| 161 | + set m := Real.sqrt M with hmdef |
| 162 | + set l := level532 m with hldef |
| 163 | + set k := seedSize M tau with hkdef |
| 164 | + set t : ℝ := (k : ℝ) - 64 * m ^ (27 / 32 : ℝ) with htdef |
| 165 | + have hm0 : 0 ≤ m := Real.sqrt_nonneg _ |
| 166 | + have hm32 : (2 : ℝ) ^ 32 ≤ m := le_trans (by norm_num) hm256 |
| 167 | + obtain ⟨hl3, _⟩ := level532_bounds hm32 |
| 168 | + let Ω := host M |
| 169 | + let μ := deletionLaw Ω delta |
| 170 | + let bad (L : Leaf) : Set (Mask Ω) := |
| 171 | + {ω | t ≤ ((L.graph.induce ((L.live \ deleted Ω ω : Finset ℕ) : Set ℕ)).indepNum : ℝ)} |
| 172 | + have hC2 (C : Finset ℕ) (hC : C ∈ 𝒞) : (C.card : ℝ) ≤ 2 * m := |
| 173 | + (hsizeC C hC).2.trans |
| 174 | + (mul_le_mul_of_nonneg_right (by norm_num [K, tau]) hm0) |
| 175 | + -- Step 5: a surviving Sidon set of size `k` lies in some refined leaf's tail event. |
| 176 | + have hcov : {ω | containsSidon (Ω \ deleted Ω ω) k} ⊆ |
| 177 | + ⋃ C ∈ 𝒞, ⋃ L ∈ leaves C l, bad L := by |
| 178 | + rintro ω ⟨S, hS, hsid, hk⟩ |
| 179 | + obtain ⟨C, hC, hSC⟩ := hseed S (hS.trans sdiff_subset) hsid hk.ge |
| 180 | + obtain ⟨hL, hfol, _, _, hfix⟩ := hleaf hm256 (hC2 C hC) hSC hsid |
| 181 | + simp only [Set.mem_iUnion] |
| 182 | + refine ⟨C, hC, _, hL, ?_⟩ |
| 183 | + set L := (follow C l S).1.leaf |
| 184 | + let J := S ∩ L.live |
| 185 | + have hJ : J ⊆ L.live \ deleted Ω ω := fun x hx => |
| 186 | + mem_sdiff.mpr ⟨(mem_inter.mp hx).2, (mem_sdiff.mp (hS (mem_inter.mp hx).1)).2⟩ |
| 187 | + have hle := card_le_indepNum_induce hJ hfol.2 |
| 188 | + have hSJ : S.card ≤ L.fixed.card + J.card := by |
| 189 | + calc S.card ≤ (L.fixed ∪ J).card := card_le_card (fun x hx => by |
| 190 | + rcases mem_union.mp (hfol.1 hx) with h | h |
| 191 | + · exact mem_union_left _ h |
| 192 | + · exact mem_union_right _ (mem_inter.mpr ⟨hx, h⟩)) |
| 193 | + _ ≤ _ := card_union_le _ _ |
| 194 | + have h1 : (k : ℝ) ≤ L.fixed.card + J.card := by rw [← hk]; exact_mod_cast hSJ |
| 195 | + have h2 : (J.card : ℝ) ≤ |
| 196 | + ((L.graph.induce ((L.live \ deleted Ω ω : Finset ℕ) : Set ℕ)).indepNum : ℝ) := by |
| 197 | + exact_mod_cast hle |
| 198 | + show t ≤ _ |
| 199 | + rw [htdef] |
| 200 | + linarith |
| 201 | + -- Steps 3–5: each leaf's tail, times the total count, is below `1/4`. |
| 202 | + set E := Real.exp (logCount + refinedLog m) with hEdef |
| 203 | + have hE : 0 < E := Real.exp_pos _ |
| 204 | + have hbad (C : Finset ℕ) (hC : C ∈ 𝒞) (L : Leaf) (hL : L ∈ leaves C l) : |
| 205 | + E * μ.real (bad L) < 1 / 4 := by |
| 206 | + have hL' := hL |
| 207 | + simp only [leaves, mem_image, mem_filter, mem_powerset] at hL' |
| 208 | + obtain ⟨I, ⟨hIC, hIsid⟩, rfl⟩ := hL' |
| 209 | + obtain ⟨hedgesN, hquadsN⟩ := leaf_census C I l hl3 hIC hIsid |
| 210 | + obtain ⟨_, _, hsub, _, _⟩ := hleaf hm256 (hC2 C hC) hIC hIsid |
| 211 | + set s := (follow C l I).1 |
| 212 | + have hUC : s.live ⊆ C := fun x hx => hsub (mem_union_right _ hx) |
| 213 | + have hUhost : s.live ⊆ host M := hUC.trans (hsizeC C hC).1 |
| 214 | + have hUC' : (s.live.card : ℝ) ≤ C.card := by exact_mod_cast card_le_card hUC |
| 215 | + have hU2 : (s.live.card : ℝ) ≤ 2 * m := hUC'.trans (hC2 C hC) |
| 216 | + have hl0 : (0 : ℝ) ≤ l := Nat.cast_nonneg _ |
| 217 | + have hedges : ((adjacentPairs s.leaf.graph s.live).card : ℝ) ≤ 2 * m * l := by |
| 218 | + have h : ((adjacentPairs s.leaf.graph s.live).card : ℝ) ≤ C.card * l := by |
| 219 | + exact_mod_cast hedgesN |
| 220 | + exact h.trans (mul_le_mul_of_nonneg_right (hC2 C hC) hl0) |
| 221 | + have hquads : 4 * ((edgeFreeQuadruples s.leaf.graph s.live).card : ℝ) ≤ |
| 222 | + 2 * m * ((l : ℝ) ^ 3 + 8 * (l : ℝ) ^ 2) := by |
| 223 | + have h : 4 * ((edgeFreeQuadruples s.leaf.graph s.live).card : ℝ) ≤ |
| 224 | + C.card * ((l : ℝ) ^ 3 + 8 * (l : ℝ) ^ 2) := by |
| 225 | + exact_mod_cast hquadsN |
| 226 | + exact h.trans (mul_le_mul_of_nonneg_right (hC2 C hC) (by positivity)) |
| 227 | + have hα := indepNum_le_of_quads hm32 hUhost hU2 hquads |
| 228 | + have hn : (s.live.card : ℝ) ≤ (1 + K * tau) * m := hUC'.trans (hsizeC C hC).2 |
| 229 | + have hsz : ∀ lam : ℝ, 4 / 10 ^ 6 ≤ lam → lam ≤ 1 / 100 → |
| 230 | + (1 - lam) * m ≤ ((s.leaf.graph.induce (s.live : Set ℕ)).indepNum : ℝ) → |
| 231 | + (s.live.card : ℝ) < (1 + 96 * lam) * m := fun lam h0 h1 h2 => |
| 232 | + hsize hm256 hUhost hU2 hedges hquads h0 h1 h2 |
| 233 | + have hpt := hest hα hn hsz |
| 234 | + have htl := htail hUhost s.leaf.graph delta (by norm_num [delta]) (by norm_num [delta]) |
| 235 | + (by norm_num [tilt] : (1 : ℝ) < tilt) t |
| 236 | + exact lt_of_le_of_lt (mul_le_mul_of_nonneg_left htl hE.le) hpt |
| 237 | + -- Step 6: the union bound. |
| 238 | + let c : ℝ := 1 / 4 / E |
| 239 | + have hc0 : 0 ≤ c := by positivity |
| 240 | + have hbc (C : Finset ℕ) (hC : C ∈ 𝒞) (L : Leaf) (hL : L ∈ leaves C l) : |
| 241 | + μ.real (bad L) < c := by |
| 242 | + rw [lt_div_iff₀ hE, mul_comm] |
| 243 | + exact hbad C hC L hL |
| 244 | + have hsum : ∑ C ∈ 𝒞, ∑ L ∈ leaves C l, μ.real (bad L) < 1 / 4 := by |
| 245 | + by_cases hne : ∃ C ∈ 𝒞, (leaves C l).Nonempty |
| 246 | + · calc |
| 247 | + _ < ∑ C ∈ 𝒞, ∑ _L ∈ leaves C l, c := by |
| 248 | + obtain ⟨C₀, hC₀, hL₀⟩ := hne |
| 249 | + exact sum_lt_sum (fun C hC => sum_le_sum fun L hL => (hbc C hC L hL).le) |
| 250 | + ⟨C₀, hC₀, sum_lt_sum_of_nonempty hL₀ fun L hL => hbc C₀ hC₀ L hL⟩ |
| 251 | + _ = ∑ C ∈ 𝒞, ((leaves C l).card : ℝ) * c := by simp [sum_const, nsmul_eq_mul] |
| 252 | + _ ≤ ∑ _C ∈ 𝒞, Real.exp (refinedLog m) * c := |
| 253 | + sum_le_sum fun C hC => mul_le_mul_of_nonneg_right (hcount hm256 (hC2 C hC)) hc0 |
| 254 | + _ = (𝒞.card : ℝ) * (Real.exp (refinedLog m) * c) := by simp [sum_const, nsmul_eq_mul] |
| 255 | + _ ≤ Real.exp logCount * (Real.exp (refinedLog m) * c) := |
| 256 | + mul_le_mul_of_nonneg_right hcountC (by positivity) |
| 257 | + _ = 1 / 4 := by |
| 258 | + have : E = Real.exp logCount * Real.exp (refinedLog m) := by |
| 259 | + rw [hEdef, ← Real.exp_add] |
| 260 | + simp only [c] |
| 261 | + rw [this] |
| 262 | + field_simp |
| 263 | + · simp only [not_exists, not_and, not_nonempty_iff_eq_empty] at hne |
| 264 | + have h0 : ∑ C ∈ 𝒞, ∑ L ∈ leaves C l, μ.real (bad L) = 0 := |
| 265 | + sum_eq_zero fun C hC => by rw [hne C hC]; simp |
| 266 | + rw [h0] |
| 267 | + norm_num |
| 268 | + calc |
| 269 | + _ ≤ μ.real (⋃ C ∈ 𝒞, ⋃ L ∈ leaves C l, bad L) := measureReal_mono hcov (measure_ne_top _ _) |
| 270 | + _ ≤ ∑ C ∈ 𝒞, μ.real (⋃ L ∈ leaves C l, bad L) := measureReal_biUnion_finset_le _ _ |
| 271 | + _ ≤ ∑ C ∈ 𝒞, ∑ L ∈ leaves C l, μ.real (bad L) := |
| 272 | + sum_le_sum fun C _ => measureReal_biUnion_finset_le _ _ |
| 273 | + _ < 1 / 4 := hsum |
| 274 | + |
| 275 | +/- ## The target (step 7) -/ |
| 276 | + |
| 277 | +/-- Step 7 of the plan: if a surviving host contains a Sidon set of `seedSize M τ` elements |
| 278 | +with probability below `1/4`, then `ℓ(N) < (74/75)·√N`. Holds for `N ≥ 2^512`. -/ |
| 279 | +theorem visible_gap_75_of_large (N : ℕ) (hN : 2 ^ 512 ≤ N) |
| 280 | + (hlarge : (deletionLaw (host (host75 N)) delta).real |
| 281 | + {ω | containsSidon (host (host75 N) \ deleted (host (host75 N)) ω) |
| 282 | + (seedSize (host75 N) tau)} < 1 / 4) : |
| 283 | + (Erdos530FC.ell N : ℝ) < (74 / 75) * Real.sqrt N := by |
| 284 | + let Ω := host (host75 N) |
| 285 | + let μ := deletionLaw Ω delta |
| 286 | + let k := seedSize (host75 N) tau |
| 287 | + let large : Set (Mask Ω) := {ω | containsSidon (Ω \ deleted Ω ω) k} |
| 288 | + let short : Set (Mask Ω) := {ω | (Ω \ deleted Ω ω).card < N} |
| 289 | + have hlarge' : μ.real large < 1 / 4 := hlarge |
| 290 | + have hshort : μ.real short < 1 / 4 := short_probability_75 N hN |
| 291 | + have hne : large ∪ short ≠ Set.univ := by |
| 292 | + intro he |
| 293 | + have hu := measureReal_union_le (μ := μ) large short |
| 294 | + rw [he, probReal_univ] at hu |
| 295 | + linarith only [hu, hlarge', hshort] |
| 296 | + obtain ⟨ω, hω⟩ := (Set.ne_univ_iff_exists_notMem _).mp hne |
| 297 | + have hn : N ≤ (Ω \ deleted Ω ω).card := Nat.le_of_not_gt (fun h => hω (Or.inr h)) |
| 298 | + have hbad : ¬ containsSidon (Ω \ deleted Ω ω) k := fun h => hω (Or.inl h) |
| 299 | + obtain ⟨_, hM, _, hc, _⟩ := host75_bounds N hN |
| 300 | + obtain ⟨B, _, hB, h⟩ := trim_survivors sdiff_subset hn hM hbad hc.le |
| 301 | + exact ell_lt_of_host hB h |
| 302 | + |
| 303 | +/-- **Brief B5′.** The assembly of the milestone: from the `K = 5.998` cover and the five |
| 304 | +stage-2 statements, `ℓ(N) < (74/75)·√N` for every `N ≥ 2^720`. -/ |
| 305 | +theorem visible_gap_75_720_of_parts (hcover : Cover75) (htail : IndepTail) |
| 306 | + (hcount : RefinedCount) (hleaf : RefinedLeaf) (hsize : GraphSize96) (hest : PairTail75) |
| 307 | + (N : ℕ) (hN : 2 ^ 720 ≤ N) : |
| 308 | + (Erdos530FC.ell N : ℝ) < (74 / 75) * Real.sqrt N := by |
| 309 | + have hm := host75_sqrt_ge N hN |
| 310 | + obtain ⟨𝒞, hcountC, hsizeC, hseed⟩ := |
| 311 | + hcover (M := host75 N) (le_trans (by norm_num) hm) |
| 312 | + exact visible_gap_75_of_large N (le_trans (by norm_num) hN) |
| 313 | + (large_sidon_probability_of_cover htail hcount hleaf hsize (le_trans (by norm_num) hm) |
| 314 | + hcountC hsizeC hseed fun hα hn hsz => hest hm hα hn hsz) |
| 315 | + |
| 316 | +/-- **Brief C8.** The same assembly at `N ≥ 2^512`, from the three-pass cover |
| 317 | +(`Cover75At512`, count `exp(outerRate·m)`) and its pair tail. -/ |
| 318 | +theorem visible_gap_75_of_parts (hcover : Cover75At512) (htail : IndepTail) |
| 319 | + (hcount : RefinedCount) (hleaf : RefinedLeaf) (hsize : GraphSize96) |
| 320 | + (hest : PairTail75At512) (N : ℕ) (hN : 2 ^ 512 ≤ N) : |
| 321 | + (Erdos530FC.ell N : ℝ) < (74 / 75) * Real.sqrt N := by |
| 322 | + obtain ⟨_, _, hm, _, _⟩ := host75_bounds N hN |
| 323 | + obtain ⟨𝒞, hcountC, hsizeC, hseed⟩ := hcover (M := host75 N) hm |
| 324 | + exact visible_gap_75_of_large N hN |
| 325 | + (large_sidon_probability_of_cover htail hcount hleaf hsize hm hcountC hsizeC hseed |
| 326 | + fun hα hn hsz => hest hm hα hn hsz) |
| 327 | + |
| 328 | +end |
| 329 | + |
| 330 | +end ErdosSwarm.Erdos530Gap75 |