lean4-htt/tests/lean/run/492.lean
thorimur e79370a1e6
fix: only return new mvars from refine, elabTermWithHoles, and withCollectingNewGoalsFrom (#2502)
* fix: `withCollectingNewGoalsFrom`
do not collect old goals

* fix: update occurs check

* test: fix test `run/492.lean`

* docs: add docstring to `elabTermWithHoles`

* test: `refineFiltersOldMVars`

* test: fix `expected.out` name

* test: fix `expected.out` filename and line numbers

* docs: use long ascii dash instead of em dash

Co-authored-by: Scott Morrison <scott@tqft.net>

* docs: fix long line, mention lean4#2502

* docs: a couple more long lines

* test: fix line numbers

---------

Co-authored-by: Scott Morrison <scott@tqft.net>
2023-09-21 14:23:27 +10:00

18 lines
372 B
Text

example : ∃ n : Nat, n = n := by
refine ⟨?n, ?h⟩
case h => exact Eq.refl 3
example : ∃ n : Nat, n = n := by
refine ⟨?n, ?h⟩
case h => exact rfl
case n => exact 3
example : ∃ n : Nat, n = n := by
refine ⟨?n, by rfl⟩
case n => exact 3
example : ∃ n : Nat, n = n := by
refine ⟨?n, ?h⟩
case h =>
refine rfl
case n => exact 3