Zeta and L-valuesBlueprintDependency graphThesis
Contents

v436-Conductors.lean

Statement index · Original Lean file

1import Mathlib.NumberTheory.DirichletCharacter.Orthogonality2import Mathlib.NumberTheory.LegendreSymbol.ZModChar3import Mathlib.Analysis.Complex.Basic4import Mathlib.Tactic.IntervalCases5import Mathlib.Tactic.FinCases6import Mathlib.Tactic.NormNum78/-! Conductor, primitivity, and the explicit induced characters of §2.1. -/910namespace Thesis.Conductors1112open DirichletCharacter1314variable {R : Type*} [CommMonoidWithZero R] {n : ℕ}1516/-- Remark 2.8. Coprime conductors multiply. This uses the conductor17divisibility for a product twice, also after multiplying by an inverse. -/18theorem conductor_mul_of_coprime (χ ψ : DirichletCharacter R n)19 (h : χ.conductor.Coprime ψ.conductor) :20 (χ * ψ).conductor = χ.conductor * ψ.conductor := by21 have left (a b : DirichletCharacter R n) (hab : a.conductor.Coprime b.conductor) :22 a.conductor ∣ (a * b).conductor := by23 have hd := conductor_mul_dvd_lcm_conductor (a * b) b⁻¹24 rw [mul_inv_cancel_right, conductor_inv] at hd25 exact hab.dvd_of_dvd_mul_right (hd.trans (Nat.lcm_dvd_mul _ _))26 apply Nat.dvd_antisymm27 · simpa only [h.lcm_eq_mul] using conductor_mul_dvd_lcm_conductor χ ψ28 · exact h.mul_dvd_of_dvd_of_dvd (left χ ψ h) (by simpa [mul_comm] using left ψ χ h.symm)2930/-- The literal period description in Definition 2.4, for characters evaluated31on all integers by the standard zero extension. -/32def PeriodConductorClaim : Prop :=33 ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N),34 Function.Periodic (fun a : ℤ => χ a) (χ.conductor : ℤ)3536/-- The principal character modulo five has conductor one and takes distinct37values at 0 and 1. In particular this conductor is not a period. -/38theorem printed_period_conductor_false : ¬ PeriodConductorClaim := by39 intro h40 have hp := h 5 (1 : DirichletCharacter ℂ 5)41 rw [conductor_one] at hp42 have hx := hp 043 norm_num [MulChar.map_zero] at hx44 exact one_ne_zero (hx.trans ((1 : DirichletCharacter ℂ 5).map_zero' (by decide)))4546/-- Corrected Definition 2.4. The conductor is the least level through which the47unit-group character factors. In particular it is positive at positive level. -/48theorem least_inducing_modulus [NeZero n] (χ : DirichletCharacter R n) :49 0 < χ.conductor ∧ IsLeast {d : ℕ | χ.FactorsThrough d} χ.conductor :=50 ⟨Nat.pos_of_ne_zero χ.conductor_ne_zero, χ.factorsThrough_conductor,51 fun _ hd => Nat.sInf_le hd⟩5253noncomputable section5455/-- The integer-valued quadratic character at level three. -/56def three : DirichletCharacter ℤ 3 where57 toFun a := match a with | 0 => 0 | 1 => 1 | 2 => -158 map_one' := rfl59 map_mul' := by decide60 map_nonunit' := by decide6162abbrev four : DirichletCharacter ℂ 4 := ZMod.χ₄.ringHomComp (Int.castRingHom ℂ)63abbrev threeComplex : DirichletCharacter ℂ 3 := three.ringHomComp (Int.castRingHom ℂ)6465/-- Example 2.6. The primitive character at level four cannot descend to two66since 3 is 1 modulo two, while its character value at 3 is −1. -/67theorem conductor_four : four.conductor = 4 := by68 have hn := four.conductor_dvd_level69 by_contra hh70 have div2 : four.conductor ∣ 2 := by71 have reduce (d : ℕ) (hd : d ∣ 4) (hne : d ≠ 4) : d ∣ 2 := by72 have := Nat.le_of_dvd (by decide : 0 < 4) hd73 interval_cases d <;> norm_num at *74 exact reduce _ hn hh75 obtain ⟨hd, ψ, hψ⟩ := (mem_conductorSet_iff_conductor_dvd four (by decide : 2 ∣ 4)).mpr div276 have hv : four ((3 : ℤ) : ZMod 4) = ψ ((3 : ℤ) : ZMod 2) := by77 rw [hψ, changeLevel_eq_cast_of_dvd' ψ hd (show IsCoprime (3 : ℤ) 4 from ⟨-1,1,by decide⟩)]78 have hx : four (3 : ZMod 4) = -1 := by change ((-1 : ℤ) : ℂ) = -1; norm_num79 have hy : ((3 : ℤ) : ZMod 2) = 1 := by decide80 rw [hy, map_one] at hv81 have : (-1 : ℂ) = 1 := hx.symm.trans hv82 norm_num at this8384theorem conductor_three : threeComplex.conductor = 3 := by85 rcases (Nat.dvd_prime (by decide : Nat.Prime 3)).mp threeComplex.conductor_dvd_level with h|h86 · have hone := (eq_one_iff_conductor_eq_one).mpr h87 have hv := congrArg (fun χ : DirichletCharacter ℂ 3 => χ (-1)) hone88 have hx : threeComplex (-1) = -1 := by change ((-1 : ℤ) : ℂ) = -1; norm_num89 change threeComplex (-1) = (1 : DirichletCharacter ℂ 3) (-1) at hv90 have hunit : (1 : DirichletCharacter ℂ 3) (-1) = 1 :=91 MulChar.one_apply (isUnit_one.neg)92 rw [hx,hunit] at hv93 norm_num at hv94 · exact h9596private theorem self_inverse_unit {m : ℕ} (x : ZMod m) (h : x * x = 1) : IsUnit x :=97 isUnit_iff_exists_inv.mpr ⟨x, h⟩9899/-- The character specified in Example 2.6. -/100def eightZ : DirichletCharacter ℤ 8 where101 toFun := fun (a : ZMod 8) => ![0,1,0,-1,0,1,0,-1] a102 map_one' := rfl103 map_mul' := by decide104 map_nonunit' a h := by105 fin_cases a <;> first | rfl | exact (h (self_inverse_unit _ (by decide))).elim106107/-- The level-twelve character specified in Example 2.9. -/108def twelveZ : DirichletCharacter ℤ 12 where109 toFun := fun (a : ZMod 12) => ![0,1,0,0,0,-1,0,-1,0,0,0,1] a110 map_one' := rfl111 map_mul' := by decide112 map_nonunit' a h := by113 fin_cases a <;> first | rfl | exact (h (self_inverse_unit _ (by decide))).elim114115private theorem complexify_change {d m : ℕ} (h : d ∣ m) (χ : DirichletCharacter ℤ d) :116 (changeLevel h χ).ringHomComp (Int.castRingHom ℂ) = changeLevel h (χ.ringHomComp (Int.castRingHom ℂ)) := by117 apply MulChar.ext118 intro u119 rw [MulChar.ringHomComp_apply, changeLevel_eq_cast_of_dvd, changeLevel_eq_cast_of_dvd,120 MulChar.ringHomComp_apply]121122theorem eight_induced : eightZ.ringHomComp (Int.castRingHom ℂ) = changeLevel (by decide : 4 ∣ 8) four := by123 rw [← complexify_change]124 congr 1125 apply MulChar.ext126 intro u127 rw [changeLevel_eq_cast_of_dvd]128 exact (by decide : ∀ u : (ZMod 8)ˣ, eightZ u = ZMod.χ₄ (ZMod.cast (u : ZMod 8))) u129130theorem conductor_eight : conductor (eightZ.ringHomComp (Int.castRingHom ℂ)) = 4 := by131 rw [eight_induced, conductor_changeLevel, conductor_four]132133/-- Multiplying the displayed character of level 12 by the quadratic character134of level 3 gives the character induced from level 4. The comparison is made135on units, with the same extension by zero on every nonunit. -/136theorem twelve_times_three :137 twelveZ.ringHomComp (Int.castRingHom ℂ) * changeLevel (by decide : 3 ∣ 12) threeComplex =138 changeLevel (by decide : 4 ∣ 12) four := by139 rw [← complexify_change, ← complexify_change, ← MulChar.ringHomComp_mul]140 congr 1141 apply MulChar.ext142 intro u143 rw [MulChar.mul_apply, changeLevel_eq_cast_of_dvd, changeLevel_eq_cast_of_dvd]144 exact (by decide : ∀ u : (ZMod 12)ˣ, twelveZ u * three (ZMod.cast (u : ZMod 12)) =145 ZMod.χ₄ (ZMod.cast (u : ZMod 12))) u146147theorem conductor_twelve_times_three :148 conductor (twelveZ.ringHomComp (Int.castRingHom ℂ) * changeLevel (by decide : 3 ∣ 12) threeComplex) = 4 := by149 rw [twelve_times_three, conductor_changeLevel, conductor_four]150151/-- Products of characters at different positive levels have the product152conductor when their conductors are coprime. -/153theorem mixedLevel_conductor {d m : ℕ} [NeZero d] [NeZero m]154 (χ : DirichletCharacter R d) (ψ : DirichletCharacter R m)155 (hc : χ.conductor.Coprime ψ.conductor) :156 (DirichletCharacter.mul χ ψ).conductor = χ.conductor * ψ.conductor := by157 let _ : NeZero (d.lcm m) := ⟨Nat.lcm_ne_zero (NeZero.ne _) (NeZero.ne _)⟩158 unfold DirichletCharacter.mul159 rw [conductor_mul_of_coprime, conductor_changeLevel, conductor_changeLevel]160 simpa only [conductor_changeLevel] using hc161162theorem twelve_from_four_and_three :163 twelveZ.ringHomComp (Int.castRingHom ℂ) =164 changeLevel (by decide : 4 ∣ 12) four * changeLevel (by decide : 3 ∣ 12) threeComplex := by165 rw [← complexify_change, ← complexify_change, ← MulChar.ringHomComp_mul]166 congr 1167 apply MulChar.ext168 intro u169 rw [MulChar.mul_apply, changeLevel_eq_cast_of_dvd, changeLevel_eq_cast_of_dvd]170 exact (by decide : ∀ u : (ZMod 12)ˣ, twelveZ u =171 ZMod.χ₄ (ZMod.cast (u : ZMod 12)) * three (ZMod.cast (u : ZMod 12))) u172173theorem conductor_twelve : conductor (twelveZ.ringHomComp (Int.castRingHom ℂ)) = 12 := by174 rw [twelve_from_four_and_three, conductor_mul_of_coprime, conductor_changeLevel,175 conductor_changeLevel, conductor_four, conductor_three]176 simp only [conductor_changeLevel, conductor_four, conductor_three]177 decide178179180end181182end Thesis.Conductors