Skip to content

Commit

Permalink
feat(algebra/order/floor): fract_one (#15785)
Browse files Browse the repository at this point in the history
This seems to be an appropriate `simp` lemma, but is currently missing.
  • Loading branch information
jsm28 committed Aug 1, 2022
1 parent 2f1b313 commit 7dcf5c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algebra/order/floor.lean
Expand Up @@ -521,6 +521,9 @@ lemma fract_lt_one (a : α) : fract a < 1 := sub_lt.1 $ sub_one_lt_floor _

@[simp] lemma fract_zero : fract (0 : α) = 0 := by rw [fract, floor_zero, cast_zero, sub_self]

@[simp] lemma fract_one : fract (1 : α) = 0 :=
by simp [fract]

@[simp] lemma fract_coe (z : ℤ) : fract (z : α) = 0 :=
by { unfold fract, rw floor_coe, exact sub_self _ }

Expand Down

0 comments on commit 7dcf5c3

Please sign in to comment.