-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: changeLevel for Dirichlet characters (#7263)
Co-authored-by: Moritz Firsching <firsching@google.com>
- Loading branch information
1 parent
b455943
commit 56e51ea
Showing
4 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/- | ||
Copyright (c) 2023 Moritz Firsching. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Moritz Firsching, Ashvni Narayanan, Michael Stoll | ||
-/ | ||
import Mathlib.Data.ZMod.Basic | ||
|
||
|
||
/-! | ||
# Lemmas about units in `ZMod`. | ||
-/ | ||
|
||
|
||
namespace ZMod | ||
|
||
variable {n m : ℕ} | ||
/-- `unitsMap` is a group homomorphism that maps units of `ZMod m` to units of `ZMod n` when `n` | ||
divides `m`. -/ | ||
def unitsMap (hm : n ∣ m) : (ZMod m)ˣ →* (ZMod n)ˣ := Units.map (castHom hm (ZMod n)) | ||
|
||
lemma unitsMap_def (hm : n ∣ m) : unitsMap hm = Units.map (castHom hm (ZMod n)) := rfl | ||
|
||
lemma unitsMap_comp {d : ℕ} (hm : n ∣ m) (hd : m ∣ d) : | ||
(unitsMap hm).comp (unitsMap hd) = unitsMap (dvd_trans hm hd) := by | ||
simp only [unitsMap_def] | ||
rw [← Units.map_comp] | ||
exact congr_arg Units.map <| congr_arg RingHom.toMonoidHom <| castHom_comp hm hd | ||
|
||
@[simp] | ||
lemma unitsMap_self (n : ℕ) : unitsMap (dvd_refl n) = MonoidHom.id _ := by | ||
simp [unitsMap, castHom_self] | ||
|
||
end ZMod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters