Skip to content

Commit

Permalink
feat(analysis/normed_space/basic): int.norm_eq_abs (#8117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcommelin committed Jun 29, 2021
1 parent d249e53 commit 23ee7ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/normed_space/basic.lean
Expand Up @@ -1305,6 +1305,8 @@ instance : normed_comm_ring ℤ :=

@[norm_cast] lemma int.norm_cast_real (m : ℤ) : ∥(m : ℝ)∥ = ∥m∥ := rfl

lemma int.norm_eq_abs (n : ℤ) : ∥n∥ = abs n := rfl

lemma nnreal.coe_nat_abs (n : ℤ) : (n.nat_abs : ℝ≥0) = ∥n∥₊ :=
nnreal.eq $ calc ((n.nat_abs : ℝ≥0) : ℝ)
= (n.nat_abs : ℤ) : by simp only [int.cast_coe_nat, nnreal.coe_nat_cast]
Expand Down

0 comments on commit 23ee7ea

Please sign in to comment.