lean4-htt/src/Lean/Elab/PreDefinition
Leonardo de Moura 096e4eb6d0 fix: equation generation for nested recursive definitions
The issue was raised on Zulip. The issue is triggered in
declarations containing overlapping patterns and nested recursive
definitions occurring as the discriminant of `match`-expressions.
Recall that Lean 4 generates conditional equations for declarations
containing overlapping patterns.
To address the issue we had to "fold" `WellFounded.fix` applications
back as recursive applications of the functions being defined.

The new test exposes the issue.
2022-03-31 17:04:06 -07:00
..
Structural fix: smart unfolding 2022-03-29 15:49:14 -07:00
WF fix: equation generation for nested recursive definitions 2022-03-31 17:04:06 -07:00
Basic.lean feat: store noncomputable declarations 2022-02-16 13:33:02 -08:00
Eqns.lean chore: proper trace message class 2022-03-31 11:04:42 -07:00
Main.lean feat: use sorry instead of trying to synthesize Inhabited at error recovery 2022-02-15 09:15:18 -08:00
MkInhabitant.lean chore: elaborate default_or_ofNonempty% and add mkDefault 2022-01-15 11:55:58 -08:00
Structural.lean refactor: split Structural.lean into smaller files 2021-09-11 03:40:51 -07:00
WF.lean refactor: add src/Lean/Elab/PreDefinition/WF directory 2021-09-21 15:44:21 -07:00