| | @@ -1,173 +1,30 @@ |
| 1 | | −import ErdosSwarm.Erdos530Gap78.Data |
| 2 | | −import ErdosSwarm.Erdos530Gap78.Charging |
| 3 | | −import ErdosSwarm.Erdos530Gap78.Refined |
| 4 | | −import ErdosSwarm.Erdos530Gap103.Main |
| 5 | | −import ErdosSwarm.Erdos530Gap78.Energy |
| 6 | | −import ErdosSwarm.Erdos530Gap78.Host |
| 7 | | −import ErdosSwarm.Erdos530Gap78.Parameters |
| 8 | | −import ErdosSwarm.Erdos530Gap78.Rounding |
| 9 | | −import ErdosSwarm.Erdos530Gap78.Main89 |
| 10 | | −import ErdosSwarm.Erdos530Gap78.Cover |
| 11 | | −import ErdosSwarm.Erdos530Gap78.Constants |
| 12 | | −import ErdosSwarm.Erdos530Gap78.Assembly |
| 13 | | −import ErdosSwarm.Erdos530Gap78.Selection |
| 14 | | −import ErdosSwarm.Erdos530Gap78.WindowTransfer |
| 1 | +import ErdosSwarm.Erdos530Gap78.Main78 |
| 15 | 2 | |
| 16 | 3 | /-! |
| 17 | | −# Proof plan for the 77/78 upper bound in Erdős #530 |
| 18 | | − |
| 19 | | −Target: `visible_gap_78 : ∀ N, 2 ^ 720 ≤ N → ℓ(N) < (77/78)·√N`, against the Formal |
| 20 | | −Conjectures function `Erdos530FC.ell` (the same function as `visible_gap_103`). |
| 21 | | − |
| 22 | | −Source: `experiments/erdos530/upper-smaller-k2/NOTES.md` (Theorems 1–2, the `R = 32` row), |
| 23 | | −which uses the cover machinery of `upper-new-cover/` and the graph estimates of |
| 24 | | −`upper-deletion-constant/` (Lemma 3, Theorem 5). The tail is taken from the graph |
| 25 | | −exponential moment of `upper-threshold/NOTES.md` §5 (Lemma 2), the statement of the |
| 26 | | −claimed task t-74d6da052f, instead of the martingale Lemma 4; see `PLAN.md` for the check |
| 27 | | −that the `77/78` row closes with it. |
| 28 | | − |
| 29 | | −The library root imports the modules containing the completed proofs. |
| 30 | | −Each remaining `sorry` marks a proof task listed in `PLAN.md`. |
| 31 | | − |
| 32 | | −* Stage 1 (`K = 7` cover): `score`, `second_occurrence`, `missing_energy`, `rounding`, |
| 33 | | − `grid_lower`, `seed_lower`, then `few_outsiders_of_inputs`, `cover_7_of_inputs`. With |
| 34 | | − the accepted canonical `container_tail` and the accepted `entropy_and_error_103` this |
| 35 | | − already gives `visible_gap_89_of_inputs` (`88/89` at `2^720`). |
| 36 | | −* Stage 2 (`77/78`): `indep_tail`, `refined_count`, `refined_leaf`, `graph_size_96`, |
| 37 | | − `pair_tail_78`, then `visible_gap_78_of_inputs`. |
| 38 | | − |
| 39 | | −Reused unchanged (accepted, imported): `Erdos530Gap103.incidence`, `exceptional_card_32`, |
| 40 | | −`leaf_census`, `leaf_count`, `initialFamily`, `entropy_and_error_103`, `tau`, `coord`, |
| 41 | | −`iso`, `isoR`, `adjacentPairs`, `edgeFreeQuadruples`, `leaves`, `recordLog`, and from |
| 42 | | −`Erdos530Gap`: `container_tail`, `bernoulli_card_hoeffding`, `trim_survivors`, |
| 43 | | −`ell_lt_of_host`, `deletionLaw`, `deleted`, `containsSidon`, `seedSize`, `coverLog`, |
| 44 | | −`additiveQuadruples`, `card_le_of_few_additiveQuadruples`. |
| 4 | +# Former proof plan for the 77/78 upper bound in Erdős #530 |
| 5 | + |
| 6 | +Every lemma of the plan is proved, and the unconditional theorem |
| 7 | +`visible_gap_78 : ∀ N, 2 ^ 720 ≤ N → ℓ(N) < (77/78)·√N` is in `Main78.lean`, which the library |
| 8 | +root imports (as is the stage-1 bound `visible_gap_89` of `Main89.lean`). `PLAN.md` maps |
| 9 | +each brief to its module. The plan's names remain available, with their statements |
| 10 | +unchanged, for checks that import this module. |
| 11 | + |
| 12 | +Three wiring declarations of the plan have no copy, because the proved modules state the |
| 13 | +same thing without the `Inputs` structure: |
| 14 | + |
| 15 | +* `visible_gap_89_of_inputs` is `visible_gap_89_of_cover` (`Host.lean`) applied to |
| 16 | + `cover_7_of_inputs`; `visible_gap_89` (`Main89.lean`) is that with `coverInputs`. |
| 17 | +* `visible_gap_78_of_inputs`, `Inputs` and `inputs` are `visible_gap_78_of_parts` |
| 18 | + (`Assembly.lean`) applied to the theorems listed in the header of `Main78.lean`. |
| 19 | +* `window_transfer` is `windowTransfer_holds` (`WindowTransfer.lean`). |
| 45 | 20 | -/ |
| 46 | 21 | |
| 47 | | −namespace ErdosSwarm.Erdos530Gap78 |
| 48 | | − |
| 49 | | −open Finset MeasureTheory ErdosSwarm.Erdos530Gap |
| 50 | | − |
| 51 | | −noncomputable section |
| 52 | | − |
| 53 | | −set_option exponentiation.threshold 1024 |
| 54 | | − |
| 55 | | −/- The definitions and the charging inequality (A1) are in `Data.lean` and `Charging.lean`. -/ |
| 56 | | − |
| 57 | | −/- ## Stage 1, lemma 2: the missing energy (§1, the display before (2)) |
| 58 | | − |
| 59 | | −**Brief A2, proved:** `missing_energy` (this statement, unchanged) is in |
| 60 | | −`ErdosSwarm/Erdos530Gap78/Energy.lean`, from `missing_energy_of_kernel`, the proof of |
| 61 | | −`Erdos530Gap103.missing_energy` generalised over an even kernel. -/ |
| 62 | | − |
| 63 | | −/- ## Stage 1, lemma 3: the lower bound at every centre (§2) |
| 64 | | − |
| 65 | | −The grid definitions and the proof of `rounding` (A3a) are in `Rounding.lean`. -/ |
| 66 | | − |
| 67 | | −/- **Briefs A3b and A3c, proved.** `grid_lower` (inequality (3) at every centre, for every |
| 68 | | −admissible peak and every nonnegative grid mass of total at least `31 − 10⁻⁵`; this |
| 69 | | −statement, unchanged) is in `GridLower.lean`: the kernel-checked certificate |
| 70 | | −`GridData78/` with `grid_cells78` (A3b-1, A3b-3), the soundness of the test |
| 71 | | −`grid_lower_of_check78` (A3b-2, `GridBridge.lean`) and the reflection `j ↦ 768 − j` for the |
| 72 | | −centres `i > 384` (A3b-4, `SeedLower.lean`). `seed_lower` (this statement, unchanged) is in |
| 73 | | −`Main89.lean`, from `rounding` and `grid_lower` (`seed_lower_of_grid` in `SeedLower.lean`). -/ |
| 74 | | − |
| 75 | | −/- The conditional outsider bound and cover (A4) are proved in `Cover.lean`. -/ |
| 76 | | − |
| 77 | | −/- ## Stage 1 milestone: `88/89` with the canonical deletion -/ |
| 78 | | − |
| 79 | | −/-- **Brief A5.** With the `K = 7` cover, the accepted canonical `container_tail` and the |
| 80 | | −accepted `entropy_and_error_103` (same `gap`, `tail`, `reserve`), at |
| 81 | | −`δ = (τ + g)/(1 − 7τ) = 31263/781250`, `η = 10⁻⁹`, `M = ⌊N/(1 − δ − η)⌋`: |
| 82 | | −`(31/32)² < (1 − δ − η)(88/89)²`. A copy of the host part of |
| 83 | | −`Erdos530Gap103.visible_gap_103_of_inputs` with `K = 7`. -/ |
| 84 | | −theorem visible_gap_89_of_inputs (inputs : CoverInputs) (N : ℕ) (hN : 2 ^ 720 ≤ N) : |
| 85 | | − (Erdos530FC.ell N : ℝ) < (88 / 89) * Real.sqrt N := |
| 86 | | − -- Proved in `Host.lean` from the cover (`cover_7_of_inputs`, `Cover.lean`). |
| 87 | | − visible_gap_89_of_cover (fun hm => cover_7_of_inputs inputs hm) N hN |
| 88 | | − |
| 89 | | −/- ## Stage 2: the doubled deletion (`upper-deletion-constant/` Lemma 3 and Theorem 5) -/ |
| 90 | | − |
| 91 | | −/- **Brief B1** (`indep_tail`) is proved in `IndepTail.lean` (t-ca2a676774, imported through |
| 92 | | −`Assembly.lean`). -/ |
| 93 | | − |
| 94 | | −/- The refined count and leaf bounds (B2) are proved in `Refined.lean`. -/ |
| 95 | | − |
| 96 | | −/-- **Brief B3d (window transfer).** (12) of `upper-deletion-constant/NOTES.md` §4: for an |
| 97 | | −independent seed of size `⌈(1 − λ)m⌉` and every left-half point `x ∈ U ∖ S`, |
| 98 | | −`F_x − Q₀/b₀ > (48 + g_*/100) λ m`. The statement `WindowTransfer` is in `Selection.lean`; |
| 99 | | −it is **proved** in `WindowTransfer.lean` (`windowTransfer_holds`), from the window identity |
| 100 | | −with multiplicities (`WindowSigned.lean`, `WindowSignedComparison.lean`) and the row |
| 101 | | −certificate with allowance `1/100` (`WindowMargin.lean`). -/ |
| 102 | | −theorem window_transfer : WindowTransfer := |
| 103 | | − windowTransfer_holds |
| 104 | | − |
| 105 | | −/-- **Brief B3.** Theorem 5 (7) of `upper-deletion-constant/NOTES.md`: a large independent |
| 106 | | −set forces a small vertex set. The hypotheses are the conclusions of the accepted |
| 107 | | −`leaf_census` at level `L = ⌈m^(5/32)⌉` for a container of size at most `2m`. Split into |
| 108 | | −B3a–B3e in `PLAN.md`. B3a–B3c ((8)–(10), the signed count (11)), B3d (the uniform window |
| 109 | | −transfer (12), `WindowTransfer.lean`) and B3e (the selection and the reflection, |
| 110 | | −`graph_size_96_of_transfer` in `Selection.lean`) are proved, so no `sorry` is left under |
| 111 | | −this theorem. -/ |
| 112 | | −theorem graph_size_96 {M : ℕ} {U : Finset ℕ} {G : SimpleGraph ℕ} |
| 113 | | − (hm : (2 : ℝ) ^ 256 ≤ Real.sqrt M) (hU : U ⊆ host M) |
| 114 | | − (hn : (U.card : ℝ) ≤ 2 * Real.sqrt M) |
| 115 | | − (hedges : ((Erdos530Gap103.adjacentPairs G U).card : ℝ) ≤ |
| 116 | | − 2 * Real.sqrt M * level532 (Real.sqrt M)) |
| 117 | | − (hquads : 4 * ((Erdos530Gap103.edgeFreeQuadruples G U).card : ℝ) ≤ |
| 118 | | − 2 * Real.sqrt M * ((level532 (Real.sqrt M) : ℝ) ^ 3 + 8 * level532 (Real.sqrt M) ^ 2)) |
| 119 | | − {lam : ℝ} (hlam0 : 4 / 10 ^ 6 ≤ lam) (hlam1 : lam ≤ 1 / 100) |
| 120 | | − (hα : (1 - lam) * Real.sqrt M ≤ (G.induce (U : Set ℕ)).indepNum) : |
| 121 | | − (U.card : ℝ) < (1 + 96 * lam) * Real.sqrt M := |
| 122 | | − graph_size_96_of_transfer window_transfer hm hU hn hedges hquads hlam0 hlam1 hα |
| 123 | | − |
| 124 | | −/- ## Stage 2: the final estimate (`upper-smaller-k2/NOTES.md` §3) |
| 125 | | − |
| 126 | | −The constants `eta`, `host78` are in `Constants.lean`; `refinedLog`, `delta`, `tilt`, |
| 127 | | −`level532` are in `Data.lean`. -/ |
| 128 | | − |
| 129 | | −/- Brief B4, `pair_tail_78`, is proved in `Parameters.lean`. -/ |
| 130 | | − |
| 131 | | −/-- The new inputs of the 77/78 bound. -/ |
| 132 | | −structure Inputs : Prop extends CoverInputs where |
| 133 | | − tail : type_of% @indep_tail |
| 134 | | − count : type_of% @refined_count |
| 135 | | − leaf : type_of% @refined_leaf |
| 136 | | − size : type_of% @graph_size_96 |
| 137 | | − estimate : type_of% @pair_tail_78 |
| 138 | | − |
| 139 | | −/-- **Brief B5.** The assembly: cover by `cover_7_of_inputs`; inside each member refine at |
| 140 | | −level `⌈m^(5/32)⌉` (`refined_leaf`, `refined_count`, `leaf_census`); `α(G)` by |
| 141 | | −`card_le_of_few_additiveQuadruples` (edge-free quadruples `≤ 16 m^(47/32)`); `|U|` by |
| 142 | | −`graph_size_96`; tails by `indep_tail` at `y = tilt`; the union by `pair_tail_78`; the |
| 143 | | −short host by `bernoulli_card_hoeffding` as in the 102/103 row; then `trim_survivors`, |
| 144 | | −`ell_lt_of_host` and `(31/32)² < (1 − δ − η)(77/78)²`. -/ |
| 145 | | −theorem visible_gap_78_of_inputs (inputs : Inputs) (N : ℕ) (hN : 2 ^ 720 ≤ N) : |
| 146 | | − (Erdos530FC.ell N : ℝ) < (77 / 78) * Real.sqrt N := |
| 147 | | − -- Proved in `Assembly.lean` (brief B5) from the cover and the five stage-2 statements. |
| 148 | | − visible_gap_78_of_parts (fun hm => cover_7_of_inputs inputs.toCoverInputs hm) |
| 149 | | − inputs.tail inputs.count inputs.leaf inputs.size inputs.estimate N hN |
| 150 | | − |
| 151 | | −/-- The new lemmas above, collected (no further `sorry`: this is the wiring of `Main.lean`). -/ |
| 152 | | −theorem inputs : Inputs where |
| 153 | | − charging := @second_occurrence |
| 154 | | − energy := @missing_energy |
| 155 | | − lower := @seed_lower |
| 156 | | − tail := @indep_tail |
| 157 | | − count := @refined_count |
| 158 | | − leaf := @refined_leaf |
| 159 | | − size := @graph_size_96 |
| 160 | | − estimate := @pair_tail_78 |
| 161 | | − |
| 162 | | −/-- **The target.** ℓ(N) < (77/78)·√N for every N ≥ 2^720, against the Formal Conjectures |
| 163 | | −`ℓ` (the function of `visible_gap_103`). Its only `sorry`s are those of the lemmas above. -/ |
| 164 | | −theorem visible_gap_78 : |
| 165 | | − ∀ N : ℕ, 2 ^ 720 ≤ N → (Erdos530FC.ell N : ℝ) < (77 / 78) * Real.sqrt N := |
| 166 | | − visible_gap_78_of_inputs inputs |
| 167 | | − |
| 168 | | −/- The stage-1 milestone `visible_gap_89 : ∀ N, 2^720 ≤ N → ℓ(N) < (88/89)·√N` is proved in |
| 169 | | −`Main89.lean` (no `sorry`; imported from the library root). -/ |
| 22 | +namespace ErdosSwarm.Erdos530Gap78.Plan |
| 170 | 23 | |
| 171 | | −end |
| 24 | +export ErdosSwarm.Erdos530Gap78 |
| 25 | + (second_occurrence missing_energy rounding grid_lower seed_lower CoverInputs coverInputs |
| 26 | + few_outsiders_of_inputs cover_7_of_inputs visible_gap_89_of_cover visible_gap_89 |
| 27 | + indep_tail refined_count refined_leaf windowTransfer_holds graph_size_96 pair_tail_78 |
| 28 | + visible_gap_78_of_parts visible_gap_78) |
| 172 | 29 | |
| 173 | | −end ErdosSwarm.Erdos530Gap78 |
| 30 | +end ErdosSwarm.Erdos530Gap78.Plan |