| | @@ -1,5 +1,6 @@ |
| 1 | 1 | import ErdosSwarm.Erdos530Gap428.Main |
| 2 | 2 | import ErdosSwarm.Erdos530Gap103.Charging |
| 3 | +import ErdosSwarm.Erdos530Gap103.Parameters |
| 3 | 4 | import Batteries.Tactic.OpenPrivate |
| 4 | 5 | |
| 5 | 6 | /-! |
| | @@ -9,10 +10,10 @@ Target: `visible_gap_103 : ∀ N, 2 ^ 720 ≤ N → ℓ(N) < (102/103)·√N`. |
| 9 | 10 | |
| 10 | 11 | Source: the `1/32` row of `experiments/erdos530/upper-new-cover/NOTES.md` (paper proof with |
| 11 | 12 | exact certificates, verified twice). **Nothing here is an unconditional result.** Of the |
| 12 | | −eight numbered declarations, seven are admitted here (`sorry`); they are the outstanding |
| 13 | | −proof tasks. Lemma 6, `missing_energy`, is proved in `Charging.lean` and imported. The |
| 14 | | −library root does not import this file. What Lean checks in this file is the implication |
| 15 | | −from those eight statements to the target, in three steps with no admission of their own: |
| 13 | +eight numbered declarations, six are admitted here (`sorry`). The plan imports the proofs |
| 14 | +of lemma 6 (`missing_energy`) and lemma 8 (`entropy_and_error_103`). |
| 15 | +The library root does not import this file. Lean checks the implication from the eight |
| 16 | +statements to the target in three steps with no admission of their own: |
| 16 | 17 | |
| 17 | 18 | * `few_outsiders_of_inputs`: lemmas 4–7 give the outsider bound of §§2–4; |
| 18 | 19 | * `cover_35_4_of_inputs`: with lemmas 1–3 this gives Theorem 1 of the note at `τ = 1/32`, |
| | @@ -39,8 +40,6 @@ count error `14/1000`, profile heights `1000, 825, 665, 515, 390, 275, 175, 85, |
| 39 | 40 | |
| 40 | 41 | ## The eight lemmas and their target files (all in `ErdosSwarm/Erdos530Gap103/`) |
| 41 | 42 | |
| 42 | | −Admitted, except 6 (proved in `Charging.lean`). |
| 43 | | − |
| 44 | 43 | 1. `exceptional_card_32` (`InitialRow.lean`): the fixed `R = 32` row, `s = 62`, of |
| 45 | 44 | `upper-large-deficit`. The accepted `covering96` stops at `τ ≤ 1/100`. |
| 46 | 45 | 2. `leaf_census` (`Census.lean`): edges and edge-free additive quadruples of a terminal |
| | @@ -50,12 +49,11 @@ Admitted, except 6 (proved in `Charging.lean`). |
| 50 | 49 | reflection. |
| 51 | 50 | 5. `second_occurrence` and 6. `missing_energy` (`Charging.lean`): §3. |
| 52 | 51 | 7. `seed_lower` (`SeedLower.lean`): §4, the rounding and the `K = 35/4` grid certificate. |
| 53 | | −8. `entropy_and_error_103` (`Parameters.lean`): §5 at `m₀ = 2^360`. |
| 52 | +8. `entropy_and_error_103` proves the estimates of §5 at `m₀ = 2^360` in `Parameters.lean`. |
| 54 | 53 | |
| 55 | | −The definitions shared by these files (`tau` … `missingWeight`) move to `Data.lean` with the |
| 56 | | −lemmas that need them (`kernel`, `coord` and `missingWeight` are there now); the three |
| 57 | | −compositions then move to `Assembly.lean` and the final theorem to `Main.lean`, as for |
| 58 | | −`Erdos530Gap428`. |
| 54 | +As the inputs are proved, their shared definitions move to `Data.lean`. The three |
| 55 | +compositions then move to `Assembly.lean` and the final theorem to `Main.lean`, |
| 56 | +as for `Erdos530Gap428`. |
| 59 | 57 | -/ |
| 60 | 58 | |
| 61 | 59 | namespace ErdosSwarm.Erdos530Gap103 |
| | @@ -68,15 +66,8 @@ set_option exponentiation.threshold 1024 |
| 68 | 66 | |
| 69 | 67 | /-! ## Constants -/ |
| 70 | 68 | |
| 71 | | −/-- The covering deficit `τ = 1/R`, `R = 32`. -/ |
| 72 | | −def tau : ℝ := 1 / 32 |
| 73 | 69 | /-- The covering coefficient of Theorem 1 of the note. -/ |
| 74 | 70 | def K : ℝ := 35 / 4 |
| 75 | | −/-- The margin `g` of §5, row `R = 32`, `N ≥ 2^720`. -/ |
| 76 | | −def gap : ℝ := 13 / 10 ^ 6 |
| 77 | | −/-- The tail parameter `z₀` of §5. -/ |
| 78 | | −def tail : ℝ := 12 / 10 ^ 6 |
| 79 | | −def reserve : ℝ := 1 / 10 ^ 14 |
| 80 | 71 | def eta : ℝ := 1 / 10 ^ 9 |
| 81 | 72 | /-- `δ = (τ + g)/(1 − Kτ)`. -/ |
| 82 | 73 | def delta : unitInterval := ⟨20842 / 484375, by constructor <;> norm_num⟩ |
| | @@ -86,11 +77,6 @@ def host103 (N : ℕ) : ℕ := ⌊(N : ℝ) / keep⌋₊ |
| 86 | 77 | /-- The refinement level `L = ⌈m^(1/8)⌉` of §1 (the accepted `level` is `⌈m^(1/4)⌉`). -/ |
| 87 | 78 | def level8 (m : ℝ) : ℕ := ⌈m ^ (1 / 8 : ℝ)⌉₊ |
| 88 | 79 | |
| 89 | | −/-- §1: the logarithm of the number of recorded sets `F` inside one initial container of |
| 90 | | −size at most `A₀ m`, `A₀ = 5`: `32 A₀ m^(7/8) (1 + (log m)/8 − log 32)`. -/ |
| 91 | | −def recordLog (m : ℝ) : ℝ := |
| 92 | | − 160 * m ^ (7 / 8 : ℝ) * (1 + Real.log m / 8 - Real.log 32) |
| 93 | | − |
| 94 | 80 | /-! ## Definitions for the cover -/ |
| 95 | 81 | |
| 96 | 82 | open Refinement |
| | @@ -830,20 +816,6 @@ theorem cover_35_4_of_inputs (inputs : CoverInputs) {M : ℕ} |
| 830 | 816 | ⟨_, mem_image.mpr ⟨S, mem_filter.mpr ⟨mem_powerset.mpr hSC, hsid⟩, rfl⟩, rfl⟩⟩, |
| 831 | 817 | h2.trans (filter_subset _ _), h3⟩, h1⟩ |
| 832 | 818 | |
| 833 | | −/-- 8. `Parameters.lean`. §5 at `m₀ = 2^360`: the endpoint error with the tail is below the |
| 834 | | −margin, and the three entropies fit under the Hoeffding exponent with the reserve to spare. |
| 835 | | −Follow `Erdos530Gap428.entropy_and_error`: with `u = m^(1/8) ≥ 2^45`, |
| 836 | | −`e_m = 52/u + 64/u²`; `coverLog/m ≤ 4q·log m + 2 log m/m` with |
| 837 | | −`(4 q log m)³ = 64·3240000·32·2·(log m)⁴/m`; `refinementLog/m = 96 log m/u²`; and |
| 838 | | −`recordLog/m = 160 (1 + (log m)/8 − log 32)/u`, which decreases for `u > 32` and at `2^360` |
| 839 | | −is at most `160·(1 + 40·(7/10))/2^45 < 1.32·10⁻¹⁰ < z₀² − 10⁻¹⁴ = 1.4399·10⁻¹⁰` |
| 840 | | −(use `1/2 ≤ log 2 ≤ 7/10`; this is the only tight comparison). -/ |
| 841 | | −theorem entropy_and_error_103 {M : ℕ} (hm : (2 : ℝ) ^ 360 ≤ Real.sqrt M) : |
| 842 | | − intervalError (Real.sqrt M) + tail < gap ∧ |
| 843 | | − coverLog M tau + recordLog (Real.sqrt M) + refinementLog (Real.sqrt M) < |
| 844 | | − (tail ^ 2 - reserve) * Real.sqrt M := by |
| 845 | | − sorry |
| 846 | | − |
| 847 | 819 | /-! ## The host calculation (no admission of its own) -/ |
| 848 | 820 | |
| 849 | 821 | /-- The eight inputs: the seven of the cover and the parameter estimate. -/ |
| | @@ -999,7 +971,7 @@ theorem visible_gap_103_of_inputs (inputs : Inputs) (N : ℕ) (hN : 2 ^ 720 ≤ |
| 999 | 971 | obtain ⟨B, _, hB, h⟩ := trim_survivors sdiff_subset hn hM hbad hc.le |
| 1000 | 972 | exact ell_lt_of_host hB h |
| 1001 | 973 | |
| 1002 | | −/-- Target for `Main.lean` once the eight admitted declarations of this file have proofs. -/ |
| 974 | +/-- Target for `Main.lean` once the remaining inputs have proofs. -/ |
| 1003 | 975 | theorem visible_gap_103 : |
| 1004 | 976 | ∀ N : ℕ, 2 ^ 720 ≤ N → (Erdos530FC.ell N : ℝ) < (102 / 103) * Real.sqrt N := |
| 1005 | 977 | visible_gap_103_of_inputs { |