Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
79aead8b31 chore: fix bug in omega 2024-05-16 08:05:00 +10:00
2 changed files with 5 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ partial def groundInt? (e : Expr) : Option Int :=
| _, _ => none
| _ => e.int?
where op (f : Int Int Int) (x y : Expr) : Option Int :=
match groundNat? x, groundNat? y with
match groundInt? x, groundInt? y with
| some x', some y' => some (f x' y')
| _, _ => none

View File

@@ -382,6 +382,10 @@ example (x : Nat) : x < 2 →
(0 = 0 0 = 0 0 = 0 0 = 0 x < 2) (0 = 0 0 = 0 0 = 0 0 = 0 x < 2 x < 3) := by
omega
-- Reported in Lean FRO office hours 2024-05-16 by Michael George
example (s : Int) (s0 : s < (0 : Int)) : 63 + (s - 2 ^ 63) 62 - 2 ^ 63 := by
omega
/-! ### Fin -/
-- Test `<`