File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ theorem Float.toBits_inj {x y : Float} : x.toBits = y.toBits ↔ x = y := by
1717instance : 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-
2320theorem 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]
120117theorem 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
You can’t perform that action at this time.
0 commit comments