Skip to content

Commit e66c1e1

Browse files
committed
chore(Data/Int/WithZero): remove an erw (#38680)
- makes `map_one'` explicit about `WithZero.unzero` at `1`, so the proof is a plain `rw` chain Extracted from #38415 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 87d83a7 commit e66c1e1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Mathlib/Data/Int/WithZero.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ namespace WithZeroMulInt
4545
def toNNReal {e : ℝ≥0} (he : e ≠ 0) : ℤᵐ⁰ →*₀ ℝ≥0 where
4646
toFun := fun x ↦ if hx : x = 0 then 0 else e ^ (WithZero.unzero hx).toAdd
4747
map_zero' := rfl
48-
map_one' := by
49-
simp only [dif_neg one_ne_zero]
50-
erw [toAdd_one, zpow_zero]
48+
map_one' := by rw [dif_neg one_ne_zero, unzero_coe (x := 1), toAdd_one, zpow_zero]
5149
map_mul' x y := by
5250
by_cases hxy : x * y = 0
5351
· rcases mul_eq_zero.mp hxy with hx | hy

0 commit comments

Comments
 (0)