Skip to content

Commit 2e65b88

Browse files
committed
chore: cleanup
1 parent 306adeb commit 2e65b88

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Batteries/Data/Float/Lemmas.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ theorem Float.toBits_inj {x y : Float} : x.toBits = y.toBits ↔ x = y := by
1717
instance : DecidableEq Float := fun _ _ =>
1818
decidable_of_decidable_of_iff Float.toBits_inj
1919

20-
example : (2047 <<< 52 ||| 2251799813685248) >>> 52 &&& 2047 = 2047 := by
21-
simp
22-
2320
theorem Float.toBits_ofBits_of_isNaNBits {x : UInt64} (h : isNaNBits x) :
2421
(ofBits x).toBits = 0x7ff8_0000_0000_0000 := by
2522
simp only [toBits_ofBits, h, reduceIte]
@@ -119,4 +116,4 @@ theorem Float.beq_self_iff (x : Float) : x == x ↔ x ≠ nan := by
119116
@[simp]
120117
theorem Float.bne_eq_not_beq (x y : Float) : (x != y) = !(x == y) := rfl
121118

122-
example : Float.nan != Float.nan := by simp
119+
theorem Float.nan_bne_nan : Float.nan != Float.nan := by simp

0 commit comments

Comments
 (0)