lean4-htt/tests/lean/run/issue7332.lean
Joachim Breitner e2ee629022
fix: allow aux decls to be generated by decreasing_by tactics (#7333)
This PR allows aux decls (like generated by `match`) to be generated by
decreasing_by tactics.

Fixes #7332.
2025-03-04 18:42:36 +00:00

15 lines
327 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

axiom testSorry {α : Sort _} : α
def foo (n : Nat) : Nat := foo (n - 1)
decreasing_by
skip
match n with
| 0 => exact testSorry
| _ + 1 => exact testSorry
def bar (n : Nat) (m : Nat): Nat := bar (n - 1) (m - 1)
decreasing_by
show _ < _
match Nat with
| 0 => exact testSorry
| _ + 1 => exact testSorry