lean4-htt/src/Lean/Util
Leonardo de Moura 030f53fa43 fix: closes #421
The unifier used to implement the `cases` tactic should not discard
equations of the form `x = t` and `t = x` using proof irrelanvance.
The new test demonstrates the issue. The unifier was reaching the
state
```
x : Conw Con.nil
|- x = Conw.nilw -> x = Conw.nilw
```
and discarding the equality instead of substituting `x`
because `x` and `Conw.nilw` are definionally equal due to
proof irrelevance.

@javra Do you have more complicated examples that were being
affected by this issue?
2021-04-23 12:27:39 -07:00
..
CollectFVars.lean chore: use deriving Inhabited 2020-12-13 10:09:20 -08:00
CollectLevelParams.lean chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
CollectMVars.lean chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
Constructions.lean chore: replace variables in src/ 2021-01-22 14:36:05 +01:00
FindExpr.lean chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
FindMVar.lean chore: cleanup 2020-10-29 09:35:12 -07:00
FoldConsts.lean chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
ForEachExpr.lean chore: replace variables in src/ 2021-01-22 14:36:05 +01:00
MonadBacktrack.lean fix: closes #421 2021-04-23 12:27:39 -07:00
MonadCache.lean chore: replace variables in src/ 2021-01-22 14:36:05 +01:00
OccursCheck.lean chore: occursCheck semantics was confusing 2021-02-03 15:04:18 -08:00
Path.lean fix: wrong dir in new error message 2021-03-23 14:06:20 +01:00
PPExt.lean fix: use pp.raw options when falling back to raw parser 2021-04-01 16:42:04 +02:00
Profile.lean refactor: pos at time_task::time_task was a dead field 2021-01-30 11:10:18 -08:00
RecDepth.lean chore: use register_builtin_option 2021-01-26 18:24:56 -08:00
Recognizers.lean refactor: remove Monad Option and Alternative Option 2021-03-20 18:25:25 -07:00
ReplaceExpr.lean perf: add workaround for destructive update issue 2021-02-21 13:03:45 -08:00
ReplaceLevel.lean chore: update structure, class, inductive 2020-11-27 15:09:30 -08:00
SCC.lean chore: replace variables in src/ 2021-01-22 14:36:05 +01:00
Sorry.lean fix: bug at hasSyntheticSorry 2021-03-05 19:08:10 -08:00
Trace.lean chore: do not display MessageData tags by default 2021-04-17 23:46:15 +02:00