/- Released under Apache-2.0; see adjacent LICENSE. Actual original main goal via fixed-A12 smooth budget and proved literal reserve supply. No assumed H/P/main estimate; full prime cutoff and natural floor preserved. -/ import PrimeReserveBudget namespace PrimaryMain noncomputable section open ManuscriptParameters (L L2 L3 m chooseB z0 z1) open SieveParameters (mainShape mainPrimes) open KKFiniteCoreDraft (G2) def primaryCoefficient : ℝ := 1 / chooseB 12 theorem primaryCoefficient_pos : 0 < primaryCoefficient := by have hB : 0 < chooseB 12 := by linarith [SmoothParameters.chosen_B_ge_one 12] exact one_div_pos.mpr hB theorem main_mass_identity (y : ℝ) : primaryCoefficient * mainShape y = y / chooseB 12 * (L y)^3 * (L3 y)^2 / (L2 y)^4 := by simp only [primaryCoefficient, SieveParameters.mainShape, L3, L2, L] ring theorem eventual_actual_completion : ∃ Y : ℝ, 0 < Y ∧ ∀ y : ℝ, Y ≤ y → m y (chooseB 12) + 1 ≤ G2 (ManuscriptResidues.primeCutoff y) := by obtain ⟨Y, hY, hR⟩ := SmoothBudget.eventual_uncovered_budget refine ⟨max Y PrimeReserveBudget.supplyThreshold, hY.trans_le (le_max_left _ _), ?_⟩ intro y hy have hr := hR y ((le_max_left _ _).trans hy) have hp := PrimeReserveBudget.actual_reserved_supply y ((le_max_right _ _).trans hy) have hcard : EarlyCover.R (m y (chooseB 12)) y (z0 y 12) (z1 y 12) ≤ (EarlyCover.reservedPrimes y).card := by exact_mod_cast hr.trans hp exact ReserveBudget.actual_completion_gap (m y (chooseB 12)) y (z0 y 12) (z1 y 12) hcard /-- The existing exact eventual equation(1) proposition is genuinely proved. -/ theorem manuscript_main_goal : SieveParameters.ManuscriptMainGoal := by obtain ⟨Y, hY, hcompletion⟩ := eventual_actual_completion refine ⟨primaryCoefficient, primaryCoefficient_pos, Y, ?_⟩ intro y hy have hg : ((m y (chooseB 12) : ℕ) : ℝ) + 1 ≤ (G2 (mainPrimes y) : ℝ) := by exact_mod_cast hcompletion y hy calc primaryCoefficient * mainShape y = _ := main_mass_identity y _ ≤ ((m y (chooseB 12) : ℕ) : ℝ) + 1 := by exact (Nat.lt_floor_add_one (y / chooseB 12 * (L y)^3 * (L3 y)^2 / (L2 y)^4)).le _ ≤ _ := hg /-- The literal main shape dominates y log y on an existing proved log-domain threshold. -/ theorem mainShape_ge_y_log (y : ℝ) (hy : ManuscriptParameters.threshold 4 ≤ y) : y * Real.log y ≤ mainShape y := by have hf := ManuscriptParameters.large_facts y 4 (by norm_num) hy have hypos : 0 < y := hf.1 have hL : 0 < L y := by linarith [hf.2.1] have hT : 0 < L2 y := by linarith [hf.2.2.1] have hR : (1 / 2 : ℝ) ≤ L3 y := hf.2.2.2.1 have hR2 : (1 / 4 : ℝ) ≤ (L3 y)^2 := by have hm := mul_nonneg (show 0 ≤ L3 y - 1 / 2 by linarith) (show 0 ≤ L3 y + 1 / 2 by linarith) nlinarith have hpow := ManuscriptParameters.quartic_le_exp (L2 y) hT.le have hexp : Real.exp (L2 y) = L y := by exact Real.exp_log hL rw [hexp] at hpow have hD : (L2 y)^4 ≤ 64 * L y := by linarith have hRL : 64 ≤ L y * (L3 y)^2 := by have hm := mul_le_mul_of_nonneg_left hR2 hL.le linarith [hf.2.1] change y * L y ≤ y * (L y)^3 * (L3 y)^2 / (L2 y)^4 apply (le_div_iff₀ (pow_pos hT 4)).2 have h1 := mul_le_mul_of_nonneg_left hD (show 0 ≤ y * L y by positivity) have h2 := mul_le_mul_of_nonneg_left hRL (show 0 ≤ y * (L y)^2 by positivity) calc y * L y * (L2 y)^4 ≤ y * L y * (64 * L y) := h1 _ = 64 * y * (L y)^2 := by ring _ ≤ y * (L y)^3 * (L3 y)^2 := by convert h2 using 1 <;> ring /-- Exact weaker eventual y log y lower bound on the same original full prime family. -/ theorem eventual_y_log_gap : ∃ c : ℝ, 0 < c ∧ ∃ Y : ℝ, ∀ y : ℝ, Y ≤ y → c * (y * Real.log y) ≤ (G2 (mainPrimes y) : ℝ) := by obtain ⟨c, hc, Y, hmain⟩ := manuscript_main_goal refine ⟨c, hc, max Y (ManuscriptParameters.threshold 4), ?_⟩ intro y hy exact (mul_le_mul_of_nonneg_left (mainShape_ge_y_log y ((le_max_right _ _).trans hy)) hc.le).trans (hmain y ((le_max_left _ _).trans hy)) end end PrimaryMain #print axioms PrimaryMain.primaryCoefficient #print axioms PrimaryMain.primaryCoefficient_pos #print axioms PrimaryMain.main_mass_identity #print axioms PrimaryMain.eventual_actual_completion #print axioms PrimaryMain.manuscript_main_goal #print axioms PrimaryMain.mainShape_ge_y_log #print axioms PrimaryMain.eventual_y_log_gap