lean4-htt/tests
Leonardo de Moura d1f0db7072 fix: resumePostponed backtracking
Note that test for issue #1200 broke.
The bug fixed by this commit was allowing the example to be elaborated
correctly :(
Initially, the type of the discriminant is not available, and
`.none (α:=α)` can only be elaborated when the expected type is of the
form `C ...`. Lean then tries to elaborate the alternatives, learn
that the discriminant should be `Option ?m`, and fails because the
patterns still have metavariables after elaboration. Before the bug
fix, `resumePostpone` was **not** restoring the metavariable context,
and the assingnment would stay there. With this information, Lean
can now elaborate `.none (α:=α)`.
Although the bug had a positive impact in this case, it produced
incorrect behavior in other examples.
The fixed example looks reasonable. Thus, we will not reopen
issue #1200
2022-07-12 16:52:45 -07:00
..
bench chore: fix tests 2022-07-02 15:25:06 -07:00
compiler chore: require @[computedField] attribute 2022-07-11 12:26:53 -07:00
elabissues chore: style use · instead of . for lambda dot notation 2022-03-11 07:49:03 -08:00
ir
lean fix: resumePostponed backtracking 2022-07-12 16:52:45 -07:00
pkg chore: fix tests 2022-07-02 10:37:22 +02:00
playground feat: sum of monomials normal form by reflection 2022-04-22 18:51:48 -07:00
plugin fix: unused variables linter review comments 2022-06-03 13:03:52 +02:00
simpperf
.gitignore
common.sh feat: print panic backtraces on Linux 2022-06-29 16:29:35 +02:00