Skip to content

Commit 482e6c8

Browse files
riccardobrascaReemMelamed
authored andcommitted
feat: add Algebra.norm_zpow (leanprover-community#40238)
We generalize `Algebra.norm_inv` from fields to division rings and we add `Algebra.norm_zpow`. From flt-regular.
1 parent e3f00ac commit 482e6c8

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Mathlib/RingTheory/Norm/Basic.lean

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,21 @@ theorem norm_ne_zero_iff_of_basis [IsDomain R] [IsDomain S] (b : Basis ι R S) {
127127
Algebra.norm R x ≠ 0 ↔ x ≠ 0 :=
128128
not_iff_not.mpr (norm_eq_zero_iff_of_basis b)
129129

130-
theorem norm_inv [Module.Finite K L] (x : L) : Algebra.norm K x⁻¹ = (Algebra.norm K x)⁻¹ := by
130+
end EqZeroIff
131+
132+
section DivisionRing
133+
134+
variable {L : Type*} [DivisionRing L] [Algebra K L] [Module.Finite K L]
135+
136+
theorem norm_inv (x : L) : Algebra.norm K x⁻¹ = (Algebra.norm K x)⁻¹ := by
131137
by_cases hx : x = 0
132138
· simp [hx]
133139
exact mul_left_injective₀ (norm_ne_zero_iff.mpr hx) (by simp [hx, ← map_mul])
134140

135-
end EqZeroIff
141+
theorem norm_zpow (x : L) (n : ℤ) : Algebra.norm K (x ^ n) = Algebra.norm K x ^ n :=
142+
map_zpow' _ norm_inv _ _
143+
144+
end DivisionRing
136145

137146
open IntermediateField
138147

0 commit comments

Comments
 (0)