grh-compacta Lean artifact read back into mathematics

Lean source

New.Data.Weights

New/Data/Weights.lean · 54 lines · 10 declarations · read in Unit 152 · The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x

Its 10 declarations
New/Data/Weights.lean · all 54 lines
import New.Data.Magnitudes/-! Set-up for this proof: size bookkeeping for the data of this proof.This file: Size comparisons among nominal weights and weights of the lifts. -/open Real Setnamespace Datavariable {P} (D : Data P) {j : ℕ} (hj : j ≤ 2 * D.m) (σ : D.Φ)attribute [local simp] w nominalWeight b₁ b₂lemma nominalWeight_mem_Icc :  D.nominalWeight σ ∈ Icc (D.a / D.x₁) (D.a / D.x) := by  simp [mem_Icc]; split <;> simp_all <;> use D.le_of_hasLogBoundinstance {u} : D.HasLogBound u (D.nominalWeight σ) (D.logB + ite u 1 (-D.logX₁)) :=  .of_mem_Icc _ _ (nominalWeight_mem_Icc ..)@[simp, bound] lemma nominalWeight_nonneg : 0 ≤ D.nominalWeight σ := (HasLogBound.pos D).le/-- At every infinite place σ of E, the nominal weight w(σ) = `Data.nominalWeight` σ satisfies w(σ)+ x⁴² ≤ 2b. -/lemma nominalWeight_add_le : D.nominalWeight σ + D.x ^ 42 ≤ 2 * D.b := by  grw [(nominalWeight_mem_Icc ..).2, a, D.roundUp_mem_Icc.2, two_mul, add_div,    add_assoc]; simpa using D.le_of_hasLogBoundlemma nominalWeight_le_w_sub j σ : D.nominalWeight σ ≤  D.w j σ - D.h₂ := by simp; split <;> grw [← D.roundUp_mem_Icc.1] <;> boundinclude hj/-- For j ≤ 2m and every infinite place σ of E, the weight w_j(σ) exceeds the nominal weightw(σ) by at most x^42. -/lemma w_le_nominalWeight_add : D.w j σ ≤ D.nominalWeight σ + D.x ^ 42 := by  simp; split <;> grw [hj, D.roundUp_mem_Icc.2] <;> simpa [add_assoc] using D.le_of_hasLogBound/-- For j ≤ 2m and every infinite place σ of E, the weight w_j(σ) is at most 2b. -/lemma w_le_two_mul_b :  D.w j σ ≤ 2 * D.b := by grw [w_le_nominalWeight_add _ hj, nominalWeight_add_le]instance : D.HasLogUpper (D.w 0 σ) (2 + D.logB) :=  hasLogUpper_of_le_of_nonneg (D.w_le_two_mul_b bot_le _)instance {l} [D.HasLogLower (D.nominalWeight σ) l] :  D.HasLogLower (D.w j σ) l := by grind [HasLogBound, D.nominalWeight_le_w_sub j σ]/-- For j ≤ 2m and every infinite place σ of E, log w_j(σ) ≤ log w(σ) + 1/x, where w_j is the j-thweight and w = `Data.nominalWeight` is the nominal weight. -/lemma log_w_le : log (D.w j σ) ≤ log (D.nominalWeight σ) + D.x⁻¹ := by  grw [log_le_iff_le_exp, w_le_nominalWeight_add _ hj, exp_add, exp_log, ← add_one_le_exp, mul_add,    add_comm] <;> simp [HasLogBound.pos D, -nominalWeight, -w]  exact D.le_of_hasLogBound