Buckets:
| import OAI.NumberTheory.DirichletL.RayOrthogonality | |
| namespace OAI | |
| namespace SevenEighths.RayQuotient | |
| open SevenEighths.RayOrthogonality | |
| open scoped Classical | |
| noncomputable section | |
| variable {A : Type*} [CommRing A] (M : Ideal A) [Finite (A ⧸ M)] | |
| (H : Subgroup (A ⧸ M)ˣ) (hH : globalUnits M ≤ H) | |
| abbrev Characters := characters H | |
| abbrev classNumber := Nat.card ((A ⧸ M)ˣ ⧸ H) | |
| theorem classNumber_pos : 0 < classNumber M H := ray_card_pos H | |
| include hH | |
| theorem character_unitInvariant (χ : Characters M H) : | |
| IdealCharacter.UnitInvariant M χ := by | |
| intro u | |
| exact (mem_characters_iff H χ).mp χ.property _ (hH ⟨u, rfl⟩) | |
| def toFullRay : Characters M H →* rayCharacters M where | |
| toFun χ := ⟨χ, (mem_rayCharacters_iff M χ).mpr (character_unitInvariant M H hH χ)⟩ | |
| map_one' := Subtype.ext rfl | |
| map_mul' _ _ := Subtype.ext rfl | |
| theorem toFullRay_injective : Function.Injective (toFullRay M H hH) := by | |
| intro χ ψ heq | |
| exact Subtype.ext (congrArg (fun ρ : rayCharacters M => (ρ : MulChar (A ⧸ M) ℂ)) heq) | |
| @[simp] theorem toFullRay_eq_one (χ : Characters M H) : | |
| toFullRay M H hH χ = 1 ↔ χ = 1 := by | |
| rw [← map_one (toFullRay M H hH)] | |
| exact (toFullRay_injective M H hH).eq_iff | |
| variable [IsDomain A] [IsPrincipalIdealRing A] | |
| def idealCharacter (χ : Characters M H) : Ideal A →*₀ ℂ := | |
| IdealCharacter.ofResidue M χ (character_unitInvariant M H hH χ) | |
| theorem idealCharacter_eq_fullRay (χ : Characters M H) : | |
| idealCharacter M H hH χ = RayOrthogonality.idealCharacter M (toFullRay M H hH χ) := rfl | |
| def identityClass : Set (Ideal A) := | |
| {I | I ≠ ⊥ ∧ ∃ a : A, Ideal.span ({a} : Set A) = I ∧ | |
| inUnitSubgroup H (Ideal.Quotient.mk M a)} | |
| omit [Finite (A ⧸ M)] in | |
| theorem identityClass_iff_generator {I : Ideal A} (hI : I ≠ ⊥) : | |
| I ∈ identityClass M H ↔ | |
| inUnitSubgroup H (Ideal.Quotient.mk M (Submodule.IsPrincipal.generator I)) := by | |
| constructor | |
| · rintro ⟨_, a, ha, u, hua, huH⟩ | |
| have hga : Associated (Submodule.IsPrincipal.generator I) a := by | |
| rw [← ha] | |
| exact Submodule.IsPrincipal.associated_generator_span_self a | |
| obtain ⟨v, hv⟩ := hga | |
| let w := Units.map (Ideal.Quotient.mk M).toMonoidHom v | |
| refine ⟨u * w⁻¹, ?_, H.mul_mem huH (H.inv_mem (hH ⟨v, rfl⟩))⟩ | |
| have hq := congrArg (Ideal.Quotient.mk M) hv | |
| simp only [map_mul] at hq | |
| change (u : A ⧸ M) * ((Units.map (Ideal.Quotient.mk M).toMonoidHom v)⁻¹ : | |
| (A ⧸ M)ˣ) = _ | |
| rw [hua, ← hq] | |
| change (Ideal.Quotient.mk M (Submodule.IsPrincipal.generator I)) * | |
| (w : A ⧸ M) * (w⁻¹ : (A ⧸ M)ˣ) = _ | |
| rw [mul_assoc, ← Units.val_mul, mul_inv_cancel, Units.val_one, mul_one] | |
| · intro h | |
| exact ⟨hI, _, Ideal.span_singleton_generator I, h⟩ | |
| theorem norm_idealCharacter_le_one (χ : Characters M H) (I : Ideal A) : | |
| ‖idealCharacter M H hH χ I‖ ≤ 1 := | |
| IdealCharacter.norm_ofResidue_le_one M χ _ I | |
| theorem idealCharacter_one (I : Ideal A) : | |
| idealCharacter M H hH 1 I = | |
| if I = ⊥ then 0 else if IsCoprime I M then 1 else 0 := | |
| IdealCharacter.ofResidue_one M I | |
| theorem sum_idealCharacters (I : Ideal A) : | |
| ∑ χ : Characters M H, idealCharacter M H hH χ I = | |
| if I ∈ identityClass M H then (classNumber M H : ℂ) else 0 := by | |
| by_cases hI : I = ⊥ | |
| · subst I | |
| simp [idealCharacter, identityClass] | |
| · have heq (χ : Characters M H) : idealCharacter M H hH χ I = | |
| (χ : MulChar (A ⧸ M) ℂ) (Ideal.Quotient.mk M (Submodule.IsPrincipal.generator I)) := by | |
| exact IdealCharacter.ofResidue_of_generator M χ _ hI (Ideal.span_singleton_generator I) | |
| simp only [heq, sum_characters, identityClass_iff_generator M H hH hI, classNumber] | |
| theorem average_idealCharacters (I : Ideal A) : | |
| (∑ χ : Characters M H, idealCharacter M H hH χ I) / (classNumber M H : ℂ) = | |
| if I ∈ identityClass M H then 1 else 0 := by | |
| rw [sum_idealCharacters] | |
| have hn : (classNumber M H : ℂ) ≠ 0 := by exact_mod_cast (classNumber_pos M H).ne' | |
| split_ifs <;> simp [hn] | |
| omit [Finite (A ⧸ M)] [IsPrincipalIdealRing A] [IsDomain A] hH in | |
| theorem identityClass_globalUnits : identityClass M (globalUnits M) = principalIdeals M := by | |
| ext I | |
| simp only [identityClass, principalIdeals, Set.mem_ofPred_eq, | |
| inUnitSubgroup_globalUnits_iff] | |
| end | |
| end SevenEighths.RayQuotient | |
| end OAI | |
Xet Storage Details
- Size:
- 4.38 kB
- Xet hash:
- 760efb61df64c9b3e9d76088c7c945f727b64ac5b833d73c6f38500dc6a3fa39
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.