RamificationTheory.DiscreteValuationField.AntitoneNormalSubgroupFiltration.sum_lowerWeights_eq_card_inertia_mul_of_herbrandCut
The lower weighted sum, before dividing by the inertia order, is the inertia order times the character's conductor. The cutoff in the hypothesis uses all real Herbrand indices so it determines the last lower break exactly.
Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
namespace RamificationTheory.DiscreteValuationField.AntitoneNormalSubgroupFiltration
variable {G : Type*} [Group G] [Finite G]
open Classical inLean source · full declaration
theorem sum_lowerWeights_eq_card_inertia_mul_of_herbrandCut
(F : AntitoneNormalSubgroupFiltration G) (H : Subgroup G) (c N : ℕ)
(hN : F.lower N ≤ H)
(hcut : ∀ s : ℝ, 0 ≤ s → (F.lower ⌈s⌉₊ ≤ H ↔ c ≤ ⌈F.herbrandFunction s⌉₊)) :
(∑ n ∈ Finset.range N, if F.lower n ≤ H then 0 else Nat.card (F.lower n)) =
Nat.card (F.lower 0) * c := by
classical
let hex : ∃ n : ℕ, F.lower n ≤ H := ⟨N, hN⟩
let j := Nat.find hex
have htest (n : ℕ) : F.lower n ≤ H ↔ j ≤ n := by
constructor
· exact Nat.find_min' hex
· intro hn
exact (F.antitone hn).trans (Nat.find_spec hex)
have hjN := (htest N).mp hN
have hsum :
(∑ n ∈ Finset.range N, if F.lower n ≤ H then 0 else Nat.card (F.lower n)) =
∑ n ∈ Finset.range j, Nat.card (F.lower n) := by
have hweight (n : ℕ) (hn : n ∈ Finset.range N) (hj' : n ∉ Finset.range j) :
(if F.lower n ≤ H then 0 else Nat.card (F.lower n)) = 0 :=
ite_eq_left ((htest n).mpr (Nat.le_of_not_gt (fun h => hj' (Finset.mem_range.mpr h))))
rw [← Finset.sum_subset (Finset.range_mono hjN) hweight]
apply Finset.sum_congr rfl
intro n hn
exact ite_eq_right (fun h => (Nat.not_le_of_lt (Finset.mem_range.mp hn)) ((htest n).mp h))
have hzero : F.lower 0 ≤ H ↔ c = 0 := by
simpa only [Nat.ceil_zero, F.herbrandFunction_zero, Nat.le_zero] using hcut 0 le_rfl
rw [hsum]
rcases Nat.eq_zero_or_pos j with hj | hj
· have hc := hzero.mp ((htest 0).mpr hj.le)
simp only [hj, hc, Finset.range_zero, Finset.sum_empty, Nat.mul_zero]
· obtain ⟨m, hm⟩ := Nat.exists_eq_succ_of_ne_zero hj.ne'
have hc : c ≠ 0 := fun hc => hj.ne' (Nat.le_zero.mp ((htest 0).mp (hzero.mpr hc)))
obtain ⟨k, hk⟩ := Nat.exists_eq_succ_of_ne_zero hc
have htestReal (s : ℝ) (hs : 0 ≤ s) :
(m : ℝ) < s ↔ (k : ℝ) < F.herbrandFunction s := by
have hh := hcut s hs
rw [htest, hm, hk, Nat.succ_le_iff, Nat.succ_le_iff, Nat.lt_ceil, Nat.lt_ceil] at hh
exact hh
have hphi : F.herbrandFunction (m : ℝ) = k := by
apply le_antisymm
· exact le_of_not_gt (fun h => (lt_irrefl (m : ℝ)) ((htestReal m (Nat.cast_nonneg m)).mpr h))
· apply le_of_not_gt
intro hm_lt
let s := F.inverseHerbrandFunction (k : ℝ)
have hs0 : F.herbrandFunction s = k := F.herbrandFunction_inverseHerbrandFunction _
have hm_lt_s : (m : ℝ) < s := F.herbrandFunction_strictMono.lt_iff_lt.mp (by rwa [hs0])
have hs : 0 ≤ s := (Nat.cast_nonneg m).trans hm_lt_s.le
have h := (htestReal s hs).mp hm_lt_s
rw [hs0] at h
exact (lt_irrefl _ h)
have hw : (∑ n ∈ Finset.range m, Nat.card (F.lower (n + 1))) =
Nat.card (F.lower 0) * k := by
have hcard : (Nat.card (F.lower 0) : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr Finite.card_pos.ne'
have hmul : (∑ n ∈ Finset.range m, (Nat.card (F.lower (n + 1)) : ℝ)) =
(Nat.card (F.lower 0) : ℝ) * (k : ℝ) := by
rw [← hphi, F.herbrandFunction_nat, herbrandValueNat, Finset.mul_sum]
apply Finset.sum_congr rfl
intro n _
rw [herbrandSlope, ← mul_div_assoc, mul_div_cancel_left₀ _ hcard]
exact_mod_cast hmul
rw [hm, hk, Finset.sum_range_succ', hw, Nat.mul_succ]