This commit is contained in:
Leonardo de Moura 2022-06-08 10:18:05 -07:00
parent fa64c072ab
commit d0499ebf4d
2 changed files with 7 additions and 1 deletions

View file

@ -215,7 +215,7 @@ def applyMatchSplitter (mvarId : MVarId) (matcherDeclName : Name) (us : Array Le
trace[Meta.Tactic.split] "after introN\n{mvarId}"
let discrsNew := discrFVarIdsNew.map mkFVar
let mvarType ← getMVarType mvarId
let elimUniv ← getLevel mvarType
let elimUniv ← withMVarContext mvarId <| getLevel mvarType
let us ←
if let some uElimPos := info.uElimPos? then
pure <| us.set! uElimPos elimUniv

6
tests/lean/run/1200.lean Normal file
View file

@ -0,0 +1,6 @@
example
(h: match .none (α:=α) with
| some _ => True
| _ => True):
True := by
split at h <;> trivial