Skip to content

Commit

Permalink
chore: fix bug in omega (#4184)
Browse files Browse the repository at this point in the history
Fixes #4183
  • Loading branch information
kim-em authored May 15, 2024
1 parent 9a8e7a6 commit f636168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Elab/Tactic/Omega/OmegaM.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions tests/lean/run/omega.lean
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ example (x : Nat) : x < 2 →
(0 = 00 = 00 = 00 = 0 → x < 2) ∧ (0 = 00 = 00 = 00 = 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 `<`
Expand Down

0 comments on commit f636168

Please sign in to comment.