Logarithmic bounds for the sizes of the data
New.Reduction.Data.Magnitudes.lean
Reading
Upstream documentation written by Claude
The class
New.Data.HasLogBound D u F lsays|F| ≤ exp lforu = true(New.Data.HasLogUpper) andexp l ≤ Fforu = false(New.Data.HasLogLower). Instance search computes the exponentlfrom the shape ofF, and comparing exponents then proves inequalities between the numbers attached to the dataD. A table of the sizes is inNew.Reduction.Data.Sizes.Main definitions and results
New.Data.HasLogBound.of_mem_Icc: a quantity between two others inherits their exponents, weakened to a given one.New.Data.HasLogBound.of_lower_of_upperweakens the exponents of one quantity.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.Data.lt_of_hasLogBound,New.Data.le_of_hasLogBound,New.Data.nat_lt_of_hasLogBound,New.Data.nat_le_of_hasLogBound: an upper exponent ofFbelow a lower exponent ofGgivesF < G, and so alsoF ≤ G. The comparison of exponents is a default argument, a linear problem inlog x,log x₁,log b,log log b,log log x₁andNew.Parameters.constantBoundthatgrinddecides fromNew.Data.scale_inequalities. SoD.le_of_hasLogBoundorD.nat_le_of_hasLogBoundalone proves such an inequality.New.Data.k_add_t_add_one_le_halfGap: at the end, inequalities and parities of the ranksm,k,r,t,n jand ofhalfGap.
Notions from other files:
New.Data P: the data for the parametersP = (q₀, d), withq₀a modulus andda prime, among them the scalesx,x₁,b(D.natX,D.natX₁,D.natBas natural numbers) with their logarithmslogX,logX₁,logB, the ranksm,r, the exponents = D.towerExpwith2 ^ s = m ^ 22and the primesp₀,p₁(D.levelPrime).D.q₁ = q₀ * towerDeg s: the order of the root of unity that generates the number fieldE = P.E soverK = ℚ(√-d);P.q₂ s = (q₀ d) ^ (s + 6)is a multiple ofq₁ d.D.weight: the weight at the placesD.Φ; it isbon the setD.bPlacesofb-places andoffWeight = a / x₁elsewhere, wherea = x b.
Declarations
lemma k_add_t_add_one_le_halfGap : D.k + D.t + 1 ≤ D.halfGap
Import route to Main
New.Reduction.Data.Magnitudes → New.Congruences.LocalLoss.CrystallineDefect (pinned import) → New.Congruences.FirstOrder.TraceRelations (pinned import) → New.Congruences.FirstOrder.RibetElement (pinned import) → New.Congruences.FirstOrder.DenominatorBound (pinned import) → New.Congruences.FitTwistsExist (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)