PaperExactDenominatorR13
DefinitionErdosProblems_Erdos269_PaperExactDenominatorR13definitionerdos-269
Defines the rational representative of a normalized tail under a proposed rational value, the prime-power clearing condition, and its least satisfying index. These are conditional bookkeeping objects, not a rationality assertion.
Definition code
import Definitions.Def_ErdosProblems_Erdos269_BoundedRadixTailEscape
import Definitions.Def_ErdosProblems_Erdos269_ResidueEscape
import Definitions.Def_ErdosProblems_Erdos269_ThreePrimeRunningLcm
import Definitions.Def_ErdosProblems_Erdos269_RestrictedFloorSum
import Definitions.Def_ErdosProblems_Erdos269_DyadicBlockMassIdentity
import Definitions.Def_ErdosProblems_Erdos269_DyadicBlockThresholdPartition
import Definitions.Def_ErdosProblems_Erdos269_DyadicOrderedTailRecurrence
import Definitions.Def_ErdosProblems_Erdos269_DyadicShellSummability
import Definitions.Def_ErdosProblems_Erdos269_IntegralBranchExtinction
import Definitions.Def_ErdosProblems_Erdos269_PaperR7ActualOrbit
import Definitions.Def_ErdosProblems_Erdos269_PaperR7SeriesIdentification
import Definitions.Def_ErdosProblems_Erdos269_RationalLatticeReduction
import Definitions.Def_ErdosProblems_Erdos269_RationalityCarryBridge
import Definitions.Def_ErdosProblems_Erdos269_PaperR7RationalBridge
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Sigma
import Mathlib.Algebra.BigOperators.Group.List.Basic
import Mathlib.Algebra.GCDMonoid.Finset
import Mathlib.Algebra.Ring.Parity
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Int.ModEq
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Data.Nat.Find
import Mathlib.Data.Nat.Log
import Mathlib.Data.Nat.Prime.Basic
import Mathlib.Data.Nat.Prime.Int
import Mathlib.Data.Rat.Lemmas
import Mathlib.Tactic
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Ring
import Mathlib.Topology.Algebra.InfiniteSum.Real
/-!
# Exact reduced denominators for the paper tail states
This module formalises the exact-denominator calculation in the short and long
papers. The rational representative below is proved to cast to the literal
real tail state, so its `Rat.den` is the paper's positive reduced denominator.
-/
namespace ErdosProblems.Erdos269.PaperR13
open scoped BigOperators
open PaperR7
/-- The rational representative of the paper state `X_a`, written from the
value `N / D` and the finite rational prefix below scale `a`. -/
def rationalTailState (N : ℤ) (D a : ℕ) : ℚ :=
(heightNormalizer235 a : ℚ) *
((N : ℚ) / (D : ℚ) - 1 - dyadicSmoothWindowMassQ235 1 (a - 1))
/-- The integer-power condition defining the paper's first clearing index. -/
def ClearingCondition (u v w a : ℕ) : Prop :=
1 ≤ a ∧ 2 ^ (u + 1) ≤ 2 ^ a ∧ 3 ^ v ≤ 2 ^ a ∧ 5 ^ w ≤ 2 ^ a
/-- The paper's elementary bound `a_D = u+1+2v+3w` satisfies all three
integer-power thresholds. -/
theorem clearingCondition_sufficient (u v w : ℕ) :
ClearingCondition u v w (u + 1 + 2 * v + 3 * w) := by
let aD := u + 1 + 2 * v + 3 * w
have h2 : 2 ^ (u + 1) ≤ 2 ^ aD :=
Nat.pow_le_pow_right (by norm_num) (by dsimp [aD]; omega)
have h3four : 3 ^ v ≤ 4 ^ v := Nat.pow_le_pow_left (by norm_num) v
have h4two : 4 ^ v = 2 ^ (2 * v) := by
rw [show (4 : ℕ) = 2 ^ 2 by norm_num, ← pow_mul]
have h3 : 3 ^ v ≤ 2 ^ aD := by
rw [h4two] at h3four
exact h3four.trans (Nat.pow_le_pow_right (by norm_num) (by dsimp [aD]; omega))
have h5eight : 5 ^ w ≤ 8 ^ w := Nat.pow_le_pow_left (by norm_num) w
have h8two : 8 ^ w = 2 ^ (3 * w) := by
rw [show (8 : ℕ) = 2 ^ 3 by norm_num, ← pow_mul]
have h5 : 5 ^ w ≤ 2 ^ aD := by
rw [h8two] at h5eight
exact h5eight.trans (Nat.pow_le_pow_right (by norm_num) (by dsimp [aD]; omega))
exact ⟨by omega, h2, h3, h5⟩
/-- The first positive scale satisfying the three integer-power comparisons. -/
noncomputable def firstClearingIndex (u v w : ℕ) : ℕ := by
classical
exact Nat.find ⟨u + 1 + 2 * v + 3 * w, clearingCondition_sufficient u v w⟩
end ErdosProblems.Erdos269.PaperR13
Source
Lean source (Apache-2.0): https://github.com/wcook04/plectis-erdos-lean/blob/cc7e541cf2081c6fef5a5e377d52e365e33b01eb/ErdosProblems/Erdos269/PaperExactDenominatorR13.lean#L1-L359
Related paper by Will Cook (CC-BY-4.0): https://github.com/wcook04/plectis-erdos/blob/551bae6dc6e732cf85172d66323c8d2bc77ba962/paper/269/erdos-269-three-prime-running-lcm.tex#L1-L260
Paper prior-art bibliography: https://github.com/wcook04/plectis-erdos/blob/551bae6dc6e732cf85172d66323c8d2bc77ba962/paper/269/erdos-269-three-prime-running-lcm.tex#L681-L689