lean4-htt/tests/lean/run/grind_10489.lean
Leonardo de Moura 2f3211028b
feat: support for Rat scientific literals (#10961)
This PR adds support for scientific literals for `Rat` in `grind`.
`grind` does not yet add support for this kind of literal in arbitrary
fields.

closes #10489
2025-10-26 02:05:26 +00:00

10 lines
565 B
Text

example : (2 / 3 : Rat) ≤ (0.67 : Rat) := by grind
example : (1.2 : Rat) ≤ (1.21 : Rat) := by grind
example : (2 / 3 : Rat) ≤ (67 / 100 : Rat) := by grind
example : (2 / 3 : Rat) ≤ (67 * 10 ^ (-2) : Rat) := by grind
example : (2 / 3 : Rat) ≤ (67 / 10 ^ 2 : Rat) := by grind
example : (2 / 3 : Rat) ≤ (67 / 10 ^ (2:Int) : Rat) := by grind
example : (1.2345 : Rat) ≤ (1.2346 : Rat) := by grind
example : (1.2345 : Rat) ≤ (1.234501 : Rat) := by grind
example : (2.3 : Rat) ≤ (4.5 : Rat) := by grind
example : (2.3 : Rat) ≤ (5/2 : Rat) := by grind