chore: update stage0
This commit is contained in:
parent
faedfbe651
commit
cb93590f0b
4 changed files with 2256 additions and 2002 deletions
2
stage0/src/Lean/Elab/Quotation.lean
generated
2
stage0/src/Lean/Elab/Quotation.lean
generated
|
|
@ -140,7 +140,7 @@ private partial def quoteSyntax : Syntax → TermElabM Syntax
|
|||
`(mkSepArray $arr (mkAtom $(getSepFromSplice arg)))
|
||||
else pure arr
|
||||
let arr ← bindLets arr
|
||||
args := args.append arr
|
||||
args := args.append (appendName := appendName) arr
|
||||
else do
|
||||
let arg ← quoteSyntax arg
|
||||
args := args.push arg
|
||||
|
|
|
|||
8
stage0/src/Lean/Meta/Match/Match.lean
generated
8
stage0/src/Lean/Meta/Match/Match.lean
generated
|
|
@ -51,7 +51,13 @@ where
|
|||
loop lhss alts minors
|
||||
|
||||
def assignGoalOf (p : Problem) (e : Expr) : MetaM Unit :=
|
||||
withGoalOf p (assignExprMVar p.mvarId e)
|
||||
withGoalOf p do
|
||||
let mvar := mkMVar p.mvarId
|
||||
let mvarType ← inferType mvar
|
||||
let eType ← inferType e
|
||||
unless (← isDefEq mvarType eType) do
|
||||
throwError "dependent elimination failed, type mismatch when solving alternative with type{indentExpr eType}\nbut expected{indentExpr mvarType}"
|
||||
assignExprMVar p.mvarId e
|
||||
|
||||
structure State where
|
||||
used : Std.HashSet Nat := {} -- used alternatives
|
||||
|
|
|
|||
3733
stage0/stdlib/Lean/Elab/Quotation.c
generated
3733
stage0/stdlib/Lean/Elab/Quotation.c
generated
File diff suppressed because it is too large
Load diff
515
stage0/stdlib/Lean/Meta/Match/Match.c
generated
515
stage0/stdlib/Lean/Meta/Match/Match.c
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue