chore: update stage0
This commit is contained in:
parent
6db01d8e48
commit
b5ad9bd4e2
136 changed files with 50837 additions and 69320 deletions
4
stage0/src/Lean/Elab/PreDefinition/Eqns.lean
generated
4
stage0/src/Lean/Elab/PreDefinition/Eqns.lean
generated
|
|
@ -101,7 +101,7 @@ private def lhsDependsOn (type : Expr) (fvarId : FVarId) : MetaM Bool :=
|
|||
/-- Try to close goal using `rfl` with smart unfolding turned off. -/
|
||||
def tryURefl (mvarId : MVarId) : MetaM Bool :=
|
||||
withOptions (smartUnfolding.set · false) do
|
||||
try applyRefl mvarId; return true catch _ => return false
|
||||
try mvarId.applyRefl; return true catch _ => return false
|
||||
|
||||
/--
|
||||
Eliminate `namedPatterns` from equation, and trivial hypotheses.
|
||||
|
|
@ -300,7 +300,7 @@ def whnfReducibleLHS? (mvarId : MVarId) : MetaM (Option MVarId) := mvarId.withCo
|
|||
return none
|
||||
|
||||
def tryContradiction (mvarId : MVarId) : MetaM Bool := do
|
||||
try contradiction mvarId { genDiseq := true }; return true catch _ => return false
|
||||
mvarId.contradictionCore { genDiseq := true }
|
||||
|
||||
structure UnfoldEqnExtState where
|
||||
map : Std.PHashMap Name Name := {}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ private partial def mkPSigmaCasesOn (y : Expr) (codomain : Expr) (xs : Array Exp
|
|||
if ys.size < xs.size - 1 then
|
||||
let xDecl ← xs[ys.size]!.fvarId!.getDecl
|
||||
let xDecl' ← xs[ys.size + 1]!.fvarId!.getDecl
|
||||
let #[s] ← cases mvarId y #[{ varNames := [xDecl.userName, xDecl'.userName] }] | unreachable!
|
||||
let #[s] ← mvarId.cases y #[{ varNames := [xDecl.userName, xDecl'.userName] }] | unreachable!
|
||||
go s.mvarId s.fields[1]!.fvarId! (ys.push s.fields[0]!)
|
||||
else
|
||||
let ys := ys.push (mkFVar y)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ private partial def packValues (x : Expr) (codomain : Expr) (preDefValues : Arra
|
|||
#[{ varNames := [varNames[i]!] }, { varNames := [varNames[i+1]!] }]
|
||||
else
|
||||
#[{ varNames := [varNames[i]!] }]
|
||||
let #[s₁, s₂] ← cases mvarId x (givenNames := givenNames) | unreachable!
|
||||
let #[s₁, s₂] ← mvarId.cases x (givenNames := givenNames) | unreachable!
|
||||
s₁.mvarId.assign (mkApp preDefValues[i]! s₁.fields[0]!).headBeta
|
||||
go s₂.mvarId s₂.fields[0]!.fvarId! (i+1)
|
||||
else
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/PreDefinition/WF/Rel.lean
generated
4
stage0/src/Lean/Elab/PreDefinition/WF/Rel.lean
generated
|
|
@ -23,7 +23,7 @@ private def getRefFromElems (elems : Array TerminationByElement) : Syntax := Id.
|
|||
private partial def unpackMutual (preDefs : Array PreDefinition) (mvarId : MVarId) (fvarId : FVarId) : TermElabM (Array (FVarId × MVarId)) := do
|
||||
let rec go (i : Nat) (mvarId : MVarId) (fvarId : FVarId) (result : Array (FVarId × MVarId)) : TermElabM (Array (FVarId × MVarId)) := do
|
||||
if i < preDefs.size - 1 then
|
||||
let #[s₁, s₂] ← cases mvarId fvarId | unreachable!
|
||||
let #[s₁, s₂] ← mvarId.cases fvarId | unreachable!
|
||||
go (i + 1) s₂.mvarId s₂.fields[0]!.fvarId! (result.push (s₁.fields[0]!.fvarId!, s₁.mvarId))
|
||||
else
|
||||
return result.push (fvarId, mvarId)
|
||||
|
|
@ -47,7 +47,7 @@ private partial def unpackUnary (preDef : PreDefinition) (prefixSize : Nat) (mva
|
|||
let rec go (i : Nat) (mvarId : MVarId) (fvarId : FVarId) : TermElabM MVarId := do
|
||||
trace[Elab.definition.wf] "i: {i}, varNames: {varNames}, goal: {mvarId}"
|
||||
if i < numPackedArgs - 1 then
|
||||
let #[s] ← cases mvarId fvarId #[{ varNames := [varNames[prefixSize + i]!] }] | unreachable!
|
||||
let #[s] ← mvarId.cases fvarId #[{ varNames := [varNames[prefixSize + i]!] }] | unreachable!
|
||||
go (i+1) s.mvarId s.fields[1]!.fvarId!
|
||||
else
|
||||
mvarId.rename fvarId varNames.back
|
||||
|
|
|
|||
13
stage0/src/Lean/Elab/Syntax.lean
generated
13
stage0/src/Lean/Elab/Syntax.lean
generated
|
|
@ -53,6 +53,12 @@ def ensureUnaryOutput (x : Term × Nat) : Term :=
|
|||
@[inline] private def withNestedParser (x : ToParserDescr) : ToParserDescr := do
|
||||
withReader (fun ctx => { ctx with leftRec := false, first := false }) x
|
||||
|
||||
/-- (Try to) a term info for the category `catName` at `ref`. -/
|
||||
def addCategoryInfo (ref : Syntax) (catName : Name) : TermElabM Unit := do
|
||||
let declName := ``Lean.Parser.Category ++ catName
|
||||
if (← getEnv).contains declName then
|
||||
addTermInfo' ref (Lean.mkConst declName)
|
||||
|
||||
def checkLeftRec (stx : Syntax) : ToParserDescrM Bool := do
|
||||
let ctx ← read
|
||||
unless ctx.first && stx.getKind == ``Lean.Parser.Syntax.cat do
|
||||
|
|
@ -60,6 +66,7 @@ def checkLeftRec (stx : Syntax) : ToParserDescrM Bool := do
|
|||
let cat := stx[0].getId.eraseMacroScopes
|
||||
unless cat == ctx.catName do
|
||||
return false
|
||||
addCategoryInfo stx cat
|
||||
let prec? ← liftMacroM <| expandOptPrecedence stx[1]
|
||||
unless ctx.leftRec do
|
||||
throwErrorAt stx[3] "invalid occurrence of '{cat}', parser algorithm does not allow this form of left recursion"
|
||||
|
|
@ -87,12 +94,6 @@ def resolveParserName [Monad m] [MonadInfoTree m] [MonadResolveName m] [MonadEnv
|
|||
| _ => none
|
||||
catch _ => return []
|
||||
|
||||
/-- (Try to) a term info for the category `catName` at `ref`. -/
|
||||
def addCategoryInfo (ref : Syntax) (catName : Name) : TermElabM Unit := do
|
||||
let declName := ``Lean.Parser.Category ++ catName
|
||||
if (← getEnv).contains declName then
|
||||
addTermInfo' ref (Lean.mkConst declName)
|
||||
|
||||
open TSyntax.Compat in
|
||||
/--
|
||||
Given a `stx` of category `syntax`, return a `(newStx, lhsPrec?)`,
|
||||
|
|
|
|||
11
stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean
generated
11
stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean
generated
|
|
@ -166,10 +166,11 @@ partial def evalChoiceAux (tactics : Array Syntax) (i : Nat) : TacticM Unit :=
|
|||
@[builtinTactic unknown] def evalUnknown : Tactic := fun stx => do
|
||||
addCompletionInfo <| CompletionInfo.tactic stx (← getGoals)
|
||||
|
||||
@[builtinTactic failIfSuccess] def evalFailIfSuccess : Tactic := fun stx => do
|
||||
let tactic := stx[1]
|
||||
if (← try evalTactic tactic; pure true catch _ => pure false) then
|
||||
throwError "tactic succeeded"
|
||||
@[builtinTactic failIfSuccess] def evalFailIfSuccess : Tactic := fun stx =>
|
||||
Term.withoutErrToSorry <| withoutRecover do
|
||||
let tactic := stx[1]
|
||||
if (← try evalTactic tactic; pure true catch _ => pure false) then
|
||||
throwError "tactic succeeded"
|
||||
|
||||
@[builtinTactic traceState] def evalTraceState : Tactic := fun _ => do
|
||||
let gs ← getUnsolvedGoals
|
||||
|
|
@ -184,7 +185,7 @@ partial def evalChoiceAux (tactics : Array Syntax) (i : Nat) : TacticM Unit :=
|
|||
liftMetaTactic fun mvarId => do mvarId.assumption; pure []
|
||||
|
||||
@[builtinTactic Lean.Parser.Tactic.contradiction] def evalContradiction : Tactic := fun _ =>
|
||||
liftMetaTactic fun mvarId => do Meta.contradiction mvarId; pure []
|
||||
liftMetaTactic fun mvarId => do mvarId.contradiction; pure []
|
||||
|
||||
@[builtinTactic Lean.Parser.Tactic.refl] def evalRefl : Tactic := fun _ =>
|
||||
liftMetaTactic fun mvarId => do mvarId.refl; pure []
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Conv/Basic.lean
generated
2
stage0/src/Lean/Elab/Tactic/Conv/Basic.lean
generated
|
|
@ -38,7 +38,7 @@ def convert (lhs : Expr) (conv : TacticM Unit) : TacticM (Expr × Expr) := do
|
|||
conv
|
||||
for mvarId in (← getGoals) do
|
||||
try
|
||||
applyRefl mvarId
|
||||
mvarId.applyRefl
|
||||
catch _ =>
|
||||
pure ()
|
||||
pruneSolvedGoals
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Conv/Congr.lean
generated
2
stage0/src/Lean/Elab/Tactic/Conv/Congr.lean
generated
|
|
@ -80,7 +80,7 @@ private def selectIdx (tacticName : String) (mvarIds : List (Option MVarId)) (i
|
|||
| none => pure ()
|
||||
| some mvarId =>
|
||||
if i != j then
|
||||
applyRefl mvarId
|
||||
mvarId.applyRefl
|
||||
match mvarIds.get ⟨i, h⟩ with
|
||||
| none => throwError "cannot select argument with forward dependencies"
|
||||
| some mvarId => replaceMainGoal [mvarId]
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean
generated
2
stage0/src/Lean/Elab/Tactic/Conv/Pattern.lean
generated
|
|
@ -67,7 +67,7 @@ private def findPattern? (pattern : AbstractMVarsResult) (e : Expr) : MetaM (Opt
|
|||
| none => throwError "'pattern' conv tactic failed, pattern was not found{indentExpr patternA.expr}"
|
||||
| some (mvarId', result) =>
|
||||
updateLhs result.expr (← result.getProof)
|
||||
applyRefl (← getMainGoal)
|
||||
(← getMainGoal).applyRefl
|
||||
replaceMainGoal [mvarId']
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Generalize.lean
generated
2
stage0/src/Lean/Elab/Tactic/Generalize.lean
generated
|
|
@ -18,7 +18,7 @@ open Meta
|
|||
let expr ← elabTerm arg[1] none
|
||||
return { hName?, expr, xName? := arg[3].getId : GeneralizeArg }
|
||||
liftMetaTactic fun mvarId => do
|
||||
let (_, mvarId) ← generalize mvarId args
|
||||
let (_, mvarId) ← mvarId.generalize args
|
||||
return [mvarId]
|
||||
|
||||
end Lean.Elab.Tactic
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
4
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
|
|
@ -492,7 +492,7 @@ private def shouldGeneralizeTarget (e : Expr) : MetaM Bool := do
|
|||
private def generalizeTargets (exprs : Array Expr) : TacticM (Array Expr) := do
|
||||
if (← withMainContext <| exprs.anyM (shouldGeneralizeTarget ·)) then
|
||||
liftMetaTacticAux fun mvarId => do
|
||||
let (fvarIds, mvarId) ← generalize mvarId (exprs.map fun expr => { expr })
|
||||
let (fvarIds, mvarId) ← mvarId.generalize (exprs.map fun expr => { expr })
|
||||
return (fvarIds.map mkFVar, [mvarId])
|
||||
else
|
||||
return exprs
|
||||
|
|
@ -543,7 +543,7 @@ def elabCasesTargets (targets : Array Syntax) : TacticM (Array Expr) :=
|
|||
if (← withMainContext <| args.anyM fun arg => shouldGeneralizeTarget arg.expr <||> pure arg.hName?.isSome) then
|
||||
liftMetaTacticAux fun mvarId => do
|
||||
let argsToGeneralize ← args.filterM fun arg => shouldGeneralizeTarget arg.expr <||> pure arg.hName?.isSome
|
||||
let (fvarIdsNew, mvarId) ← generalize mvarId argsToGeneralize
|
||||
let (fvarIdsNew, mvarId) ← mvarId.generalize argsToGeneralize
|
||||
let mut result := #[]
|
||||
let mut j := 0
|
||||
for arg in args do
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/Tactic/Match.lean
generated
4
stage0/src/Lean/Elab/Tactic/Match.lean
generated
|
|
@ -51,9 +51,9 @@ private def mkAuxiliaryMatchTerm (parentTag : Name) (matchTac : Syntax) : MacroM
|
|||
@[builtinTactic Lean.Parser.Tactic.match]
|
||||
def evalMatch : Tactic := fun stx => do
|
||||
let tag ← getMainTag
|
||||
let (matchTerm, cases) ← liftMacroM <| mkAuxiliaryMatchTerm tag stx
|
||||
let (matchTerm, casesStx) ← liftMacroM <| mkAuxiliaryMatchTerm tag stx
|
||||
let refineMatchTerm ← `(tactic| refine no_implicit_lambda% $matchTerm)
|
||||
let stxNew := mkNullNode (#[refineMatchTerm] ++ cases)
|
||||
let stxNew := mkNullNode (#[refineMatchTerm] ++ casesStx)
|
||||
withMacroExpansion stx stxNew <| evalTactic stxNew
|
||||
|
||||
end Lean.Elab.Tactic
|
||||
|
|
|
|||
7
stage0/src/Lean/Elab/Term.lean
generated
7
stage0/src/Lean/Elab/Term.lean
generated
|
|
@ -425,12 +425,15 @@ def withAuxDecl (shortDeclName : Name) (type : Expr) (declName : Name) (k : Expr
|
|||
withReader (fun ctx => { ctx with auxDeclToFullName := ctx.auxDeclToFullName.insert x.fvarId! declName }) do
|
||||
k x
|
||||
|
||||
def withoutErrToSorryImp (x : TermElabM α) : TermElabM α :=
|
||||
withReader (fun ctx => { ctx with errToSorry := false }) x
|
||||
|
||||
/--
|
||||
Execute `x` without converting errors (i.e., exceptions) to `sorry` applications.
|
||||
Recall that when `errToSorry = true`, the method `elabTerm` catches exceptions and convert them into `sorry` applications.
|
||||
-/
|
||||
def withoutErrToSorry (x : TermElabM α) : TermElabM α :=
|
||||
withReader (fun ctx => { ctx with errToSorry := false }) x
|
||||
def withoutErrToSorry [MonadFunctorT TermElabM m] : m α → m α :=
|
||||
monadMap (m := TermElabM) withoutErrToSorryImp
|
||||
|
||||
/-- For testing `TermElabM` methods. The #eval command will sign the error. -/
|
||||
def throwErrorIfErrors : TermElabM Unit := do
|
||||
|
|
|
|||
24
stage0/src/Lean/Meta/Basic.lean
generated
24
stage0/src/Lean/Meta/Basic.lean
generated
|
|
@ -235,8 +235,7 @@ structure Cache where
|
|||
synthInstance : SynthInstanceCache := {}
|
||||
whnfDefault : WhnfCache := {} -- cache for closed terms and `TransparencyMode.default`
|
||||
whnfAll : WhnfCache := {} -- cache for closed terms and `TransparencyMode.all`
|
||||
defEqDefault : DefEqCache := {}
|
||||
defEqAll : DefEqCache := {}
|
||||
defEq : DefEqCache := {}
|
||||
deriving Inhabited
|
||||
|
||||
/--
|
||||
|
|
@ -335,8 +334,7 @@ protected def saveState : MetaM SavedState :=
|
|||
/-- Restore backtrackable parts of the state. -/
|
||||
def SavedState.restore (b : SavedState) : MetaM Unit := do
|
||||
Core.restore b.core
|
||||
setMCtx b.meta.mctx -- Recall that `setMCtx` propagate `usedAssignment`
|
||||
modify fun s => { s with zetaFVarIds := b.meta.zetaFVarIds, postponed := b.meta.postponed }
|
||||
modify fun s => { s with mctx := b.meta.mctx, zetaFVarIds := b.meta.zetaFVarIds, postponed := b.meta.postponed }
|
||||
|
||||
instance : MonadBacktrack SavedState MetaM where
|
||||
saveState := Meta.saveState
|
||||
|
|
@ -383,7 +381,10 @@ variable [MonadControlT MetaM n] [Monad n]
|
|||
modify fun ⟨mctx, cache, zetaFVarIds, postponed⟩ => ⟨mctx, f cache, zetaFVarIds, postponed⟩
|
||||
|
||||
@[inline] def modifyInferTypeCache (f : InferTypeCache → InferTypeCache) : MetaM Unit :=
|
||||
modifyCache fun ⟨ic, c1, c2, c3, c4, c5, c6⟩ => ⟨f ic, c1, c2, c3, c4, c5, c6⟩
|
||||
modifyCache fun ⟨ic, c1, c2, c3, c4, c5⟩ => ⟨f ic, c1, c2, c3, c4, c5⟩
|
||||
|
||||
@[inline] def modifyDefEqCache (f : DefEqCache → DefEqCache) : MetaM Unit :=
|
||||
modifyCache fun ⟨c1, c2, c3, c4, c5, defeq⟩ => ⟨c1, c2, c3, c4, c5, f defeq⟩
|
||||
|
||||
def getLocalInstances : MetaM LocalInstances :=
|
||||
return (← read).localInstances
|
||||
|
|
@ -1326,8 +1327,7 @@ private def withNewMCtxDepthImp (x : MetaM α) : MetaM α := do
|
|||
try
|
||||
x
|
||||
finally
|
||||
setMCtx saved.mctx -- Recall that `setMCtx` propagate `usedAssignment`
|
||||
modify fun s => { s with postponed := saved.postponed }
|
||||
modify fun s => { s with mctx := saved.mctx, postponed := saved.postponed }
|
||||
|
||||
/--
|
||||
Save cache and `MetavarContext`, bump the `MetavarContext` depth, execute `x`,
|
||||
|
|
@ -1625,6 +1625,16 @@ partial def processPostponed (mayPostpone : Bool := true) (exceptionOnFailure :=
|
|||
-/
|
||||
@[specialize] def checkpointDefEq (x : MetaM Bool) (mayPostpone : Bool := true) : MetaM Bool := do
|
||||
let s ← saveState
|
||||
/-
|
||||
It is not safe to use the `isDefEq` cache between different `isDefEq` calls.
|
||||
Reason: different configuration settings, and result depends on the state of the `MetavarContext`
|
||||
We have tried in the past to track when the result was independent of the `MetavarContext` state
|
||||
but it was not effective. It is more important to cache aggressively inside of a single `isDefEq`
|
||||
call because some of the heuristics create many similar subproblems.
|
||||
See issue #1102 for an example that triggers an exponential blowup if we don't use this more
|
||||
aggresive form of caching.
|
||||
-/
|
||||
modifyDefEqCache fun _ => {}
|
||||
let postponed ← getResetPostponed
|
||||
try
|
||||
if (← x) then
|
||||
|
|
|
|||
6
stage0/src/Lean/Meta/Check.lean
generated
6
stage0/src/Lean/Meta/Check.lean
generated
|
|
@ -183,10 +183,16 @@ where
|
|||
ensureType b
|
||||
check b
|
||||
|
||||
/--
|
||||
Throw an exception if `e` is not type correct.
|
||||
-/
|
||||
def check (e : Expr) : MetaM Unit :=
|
||||
traceCtx `Meta.check do
|
||||
withTransparency TransparencyMode.all $ checkAux e
|
||||
|
||||
/--
|
||||
Return true if `e` is type correct.
|
||||
-/
|
||||
def isTypeCorrect (e : Expr) : MetaM Bool := do
|
||||
try
|
||||
check e
|
||||
|
|
|
|||
50
stage0/src/Lean/Meta/ExprDefEq.lean
generated
50
stage0/src/Lean/Meta/ExprDefEq.lean
generated
|
|
@ -1689,47 +1689,16 @@ private def isExprDefEqExpensive (t : Expr) (s : Expr) : MetaM Bool := do
|
|||
if (← isDefEqUnitLike t s) then return true else
|
||||
isDefEqOnFailure t s
|
||||
|
||||
/--
|
||||
We only check DefEq cache if
|
||||
- using default and all transparency modes, and
|
||||
- smart unfolding is enabled, and
|
||||
- proof irrelevance, eta for structures, and `zetaNonDep` are enabled
|
||||
-/
|
||||
private def skipDefEqCache : MetaM Bool := do
|
||||
match (← getConfig).transparency with
|
||||
| .reducible => return true
|
||||
| .instances => return true
|
||||
| _ =>
|
||||
unless smartUnfolding.get (← getOptions) do
|
||||
return true
|
||||
let cfg ← getConfig
|
||||
return !(cfg.proofIrrelevance && cfg.etaStruct matches .all && cfg.zetaNonDep)
|
||||
|
||||
private def mkCacheKey (t : Expr) (s : Expr) : Expr × Expr :=
|
||||
if Expr.quickLt t s then (t, s) else (s, t)
|
||||
|
||||
private def getCachedResult (key : Expr × Expr) : MetaM LBool := do
|
||||
let cache ← match (← getConfig).transparency with
|
||||
| TransparencyMode.default => pure (← get).cache.defEqDefault
|
||||
| TransparencyMode.all => pure (← get).cache.defEqAll
|
||||
| _ => return .undef
|
||||
match cache.find? key with
|
||||
match (← get).cache.defEq.find? key with
|
||||
| some val => return val.toLBool
|
||||
| none => return .undef
|
||||
|
||||
private def cacheResult (key : Expr × Expr) (result : Bool) : MetaM Unit := do
|
||||
match (← getConfig).transparency with
|
||||
| TransparencyMode.default => modify fun s => { s with cache.defEqDefault := s.cache.defEqDefault.insert key result }
|
||||
| TransparencyMode.all => modify fun s => { s with cache.defEqAll := s.cache.defEqAll.insert key result }
|
||||
| _ => pure ()
|
||||
|
||||
private abbrev withResetUsedAssignment (k : MetaM α) : MetaM α := do
|
||||
let usedAssignment := (← getMCtx).usedAssignment
|
||||
modifyMCtx fun mctx => { mctx with usedAssignment := false }
|
||||
try
|
||||
k
|
||||
finally
|
||||
modifyMCtx fun mctx => { mctx with usedAssignment := usedAssignment || mctx.usedAssignment }
|
||||
modifyDefEqCache fun c => c.insert key result
|
||||
|
||||
@[export lean_is_expr_def_eq]
|
||||
partial def isExprDefEqAuxImpl (t : Expr) (s : Expr) : MetaM Bool := withIncRecDepth do
|
||||
|
|
@ -1743,8 +1712,6 @@ partial def isExprDefEqAuxImpl (t : Expr) (s : Expr) : MetaM Bool := withIncRecD
|
|||
let s' ← whnfCore s (deltaAtProj := false)
|
||||
if t != t' || s != s' then
|
||||
isExprDefEqAuxImpl t' s'
|
||||
else if (← skipDefEqCache) then
|
||||
isExprDefEqExpensive t s
|
||||
else
|
||||
/-
|
||||
TODO: check whether the following `instantiateMVar`s are expensive or not in practice.
|
||||
|
|
@ -1766,14 +1733,11 @@ partial def isExprDefEqAuxImpl (t : Expr) (s : Expr) : MetaM Bool := withIncRecD
|
|||
trace[Meta.isDefEq.cache] "cache hit 'false' for {t} =?= {s}"
|
||||
return false
|
||||
| .undef =>
|
||||
withResetUsedAssignment do
|
||||
let result ← isExprDefEqExpensive t s
|
||||
if numPostponed == (← getNumPostponed) && !(← getMCtx).usedAssignment then
|
||||
-- It is only safe to cache the result if the mvars assignments have not been accessed/used,
|
||||
-- and universe level variables have not been postponed.
|
||||
trace[Meta.isDefEq.cache] "cache {result} for {t} =?= {s}"
|
||||
cacheResult k result
|
||||
return result
|
||||
let result ← isExprDefEqExpensive t s
|
||||
if numPostponed == (← getNumPostponed) then
|
||||
trace[Meta.isDefEq.cache] "cache {result} for {t} =?= {s}"
|
||||
cacheResult k result
|
||||
return result
|
||||
|
||||
builtin_initialize
|
||||
registerTraceClass `Meta.isDefEq
|
||||
|
|
|
|||
6
stage0/src/Lean/Meta/Injective.lean
generated
6
stage0/src/Lean/Meta/Injective.lean
generated
|
|
@ -123,9 +123,9 @@ private def mkInjectiveEqTheoremValue (ctorName : Name) (targetType : Expr) : Me
|
|||
let (h, mvarId₁) ← mvarId₁.intro1
|
||||
let (_, mvarId₂) ← mvarId₂.intro1
|
||||
solveEqOfCtorEq ctorName mvarId₁ h
|
||||
let mvarId₂ ← casesAnd mvarId₂
|
||||
if let some mvarId₂ ← substEqs mvarId₂ then
|
||||
applyRefl mvarId₂ (injTheoremFailureHeader ctorName)
|
||||
let mvarId₂ ← mvarId₂.casesAnd
|
||||
if let some mvarId₂ ← mvarId₂.substEqs then
|
||||
mvarId₂.applyRefl (injTheoremFailureHeader ctorName)
|
||||
mkLambdaFVars xs mvar
|
||||
|
||||
private def mkInjectiveEqTheorem (ctorVal : ConstructorVal) : MetaM Unit := do
|
||||
|
|
|
|||
21
stage0/src/Lean/Meta/KAbstract.lean
generated
21
stage0/src/Lean/Meta/KAbstract.lean
generated
|
|
@ -9,7 +9,12 @@ import Lean.Meta.Basic
|
|||
|
||||
namespace Lean.Meta
|
||||
|
||||
def kabstract (e : Expr) (p : Expr) (occs : Occurrences := Occurrences.all) : MetaM Expr := do
|
||||
/--
|
||||
Abstract occurrences of `p` in `e`. We detect subterms equivalent to `p` using key-matching.
|
||||
That is, only perform `isDefEq` tests when the head symbol of substerm is equivalent to head symbol of `p`.
|
||||
By default, all occurrences are abstracted, but this behavior can be controlled using the `occs` parameter.
|
||||
-/
|
||||
def kabstract (e : Expr) (p : Expr) (occs : Occurrences := .all) : MetaM Expr := do
|
||||
let e ← instantiateMVars e
|
||||
if p.isFVar && occs == Occurrences.all then
|
||||
return e.abstract #[p] -- Easy case
|
||||
|
|
@ -19,13 +24,13 @@ def kabstract (e : Expr) (p : Expr) (occs : Occurrences := Occurrences.all) : Me
|
|||
let rec visit (e : Expr) (offset : Nat) : StateRefT Nat MetaM Expr := do
|
||||
let visitChildren : Unit → StateRefT Nat MetaM Expr := fun _ => do
|
||||
match e with
|
||||
| Expr.app f a => return e.updateApp! (← visit f offset) (← visit a offset)
|
||||
| Expr.mdata _ b => return e.updateMData! (← visit b offset)
|
||||
| Expr.proj _ _ b => return e.updateProj! (← visit b offset)
|
||||
| Expr.letE _ t v b _ => return e.updateLet! (← visit t offset) (← visit v offset) (← visit b (offset+1))
|
||||
| Expr.lam _ d b _ => return e.updateLambdaE! (← visit d offset) (← visit b (offset+1))
|
||||
| Expr.forallE _ d b _ => return e.updateForallE! (← visit d offset) (← visit b (offset+1))
|
||||
| e => return e
|
||||
| .app f a => return e.updateApp! (← visit f offset) (← visit a offset)
|
||||
| .mdata _ b => return e.updateMData! (← visit b offset)
|
||||
| .proj _ _ b => return e.updateProj! (← visit b offset)
|
||||
| .letE _ t v b _ => return e.updateLet! (← visit t offset) (← visit v offset) (← visit b (offset+1))
|
||||
| .lam _ d b _ => return e.updateLambdaE! (← visit d offset) (← visit b (offset+1))
|
||||
| .forallE _ d b _ => return e.updateForallE! (← visit d offset) (← visit b (offset+1))
|
||||
| e => return e
|
||||
if e.hasLooseBVars then
|
||||
visitChildren ()
|
||||
else if e.toHeadIndex != pHeadIdx || e.headNumArgs != pNumArgs then
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/KExprMap.lean
generated
2
stage0/src/Lean/Meta/KExprMap.lean
generated
|
|
@ -18,6 +18,7 @@ structure KExprMap (α : Type) where
|
|||
map : Std.PHashMap HeadIndex (Std.AssocList Expr α) := {}
|
||||
deriving Inhabited
|
||||
|
||||
/-- Return `some v` if there is an entry `e ↦ v` in `m`. -/
|
||||
def KExprMap.find? (m : KExprMap α) (e : Expr) : MetaM (Option α) := do
|
||||
match m.map.find? e.toHeadIndex with
|
||||
| none => return none
|
||||
|
|
@ -36,6 +37,7 @@ private def updateList (ps : Std.AssocList Expr α) (e : Expr) (v : α) : MetaM
|
|||
else
|
||||
return Std.AssocList.cons e' v' (← updateList ps e v)
|
||||
|
||||
/-- Insert `e ↦ v` into `m` -/
|
||||
def KExprMap.insert (m : KExprMap α) (e : Expr) (v : α) : MetaM (KExprMap α) :=
|
||||
let k := e.toHeadIndex
|
||||
match m.map.find? k with
|
||||
|
|
|
|||
4
stage0/src/Lean/Meta/Match/Match.lean
generated
4
stage0/src/Lean/Meta/Match/Match.lean
generated
|
|
@ -171,7 +171,7 @@ private def processLeaf (p : Problem) : StateRefT State MetaM Unit := do
|
|||
match p.alts with
|
||||
| [] =>
|
||||
/- TODO: allow users to configure which tactic is used to close leaves. -/
|
||||
unless (← contradictionCore p.mvarId {}) do
|
||||
unless (← p.mvarId.contradictionCore {}) do
|
||||
trace[Meta.Match.match] "missing alternative"
|
||||
p.mvarId.admit
|
||||
modify fun s => { s with counterExamples := p.examples :: s.counterExamples }
|
||||
|
|
@ -449,7 +449,7 @@ private def processConstructor (p : Problem) : MetaM (Array Problem) := do
|
|||
let subgoals? ← commitWhenSome? do
|
||||
let subgoals ←
|
||||
try
|
||||
cases p.mvarId x.fvarId!
|
||||
p.mvarId.cases x.fvarId!
|
||||
catch ex =>
|
||||
if p.alts.isEmpty then
|
||||
/- If we have no alternatives and dependent pattern matching fails, then a "missing cases" error is bettern than a "stuck" error message. -/
|
||||
|
|
|
|||
10
stage0/src/Lean/Meta/Match/MatchEqs.lean
generated
10
stage0/src/Lean/Meta/Match/MatchEqs.lean
generated
|
|
@ -20,7 +20,7 @@ partial def casesOnStuckLHS (mvarId : MVarId) : MetaM (Array MVarId) := do
|
|||
let target ← mvarId.getType
|
||||
if let some (_, lhs, _) ← matchEq? target then
|
||||
if let some fvarId ← findFVar? lhs then
|
||||
return (← cases mvarId fvarId).map fun s => s.mvarId
|
||||
return (← mvarId.cases fvarId).map fun s => s.mvarId
|
||||
throwError "'casesOnStuckLHS' failed"
|
||||
where
|
||||
findFVar? (e : Expr) : MetaM (Option FVarId) := do
|
||||
|
|
@ -177,7 +177,7 @@ private def isDone : M Bool :=
|
|||
|
||||
/-- Customized `contradiction` tactic for `simpH?` -/
|
||||
private def contradiction (mvarId : MVarId) : MetaM Bool :=
|
||||
contradictionCore mvarId { genDiseq := false, emptyType := false }
|
||||
mvarId.contradictionCore { genDiseq := false, emptyType := false }
|
||||
|
||||
/--
|
||||
Auxiliary tactic that tries to replace as many variables as possible and then apply `contradiction`.
|
||||
|
|
@ -300,9 +300,9 @@ where
|
|||
let mvarId' ← mvarId.modifyTargetEqLHS whnfCore
|
||||
let mvarId := mvarId'
|
||||
let subgoals ←
|
||||
(do applyRefl mvarId; return #[])
|
||||
(do mvarId.applyRefl; return #[])
|
||||
<|>
|
||||
(do contradiction mvarId { genDiseq := true }; return #[])
|
||||
(do mvarId.contradiction { genDiseq := true }; return #[])
|
||||
<|>
|
||||
(casesOnStuckLHS mvarId)
|
||||
<|>
|
||||
|
|
@ -572,7 +572,7 @@ where
|
|||
| InjectionAnyResult.failed =>
|
||||
let mvarId' ← substVars mvarId
|
||||
if mvarId' == mvarId then
|
||||
if (← contradictionCore mvarId {}) then
|
||||
if (← mvarId.contradictionCore {}) then
|
||||
return ()
|
||||
throwError "failed to generate splitter for match auxiliary declaration '{matchDeclName}', unsolved subgoal:\n{MessageData.ofGoal mvarId}"
|
||||
else
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/Tactic/AC/Main.lean
generated
2
stage0/src/Lean/Meta/Tactic/AC/Main.lean
generated
|
|
@ -147,7 +147,7 @@ def rewriteUnnormalized (mvarId : MVarId) : MetaM Unit := do
|
|||
let tgt ← mvarId.getType
|
||||
let res ← Simp.main tgt simpCtx (methods := { post })
|
||||
let newGoal ← applySimpResultToTarget mvarId tgt res
|
||||
applyRefl newGoal
|
||||
newGoal.applyRefl
|
||||
where
|
||||
post (e : Expr) : SimpM Simp.Step := do
|
||||
let ctx ← read
|
||||
|
|
|
|||
5
stage0/src/Lean/Meta/Tactic/Acyclic.lean
generated
5
stage0/src/Lean/Meta/Tactic/Acyclic.lean
generated
|
|
@ -6,7 +6,8 @@ Authors: Leonardo de Moura
|
|||
import Lean.Meta.MatchUtil
|
||||
import Lean.Meta.Tactic.Simp.Main
|
||||
|
||||
namespace Lean.Meta
|
||||
namespace Lean.MVarId
|
||||
open Meta
|
||||
|
||||
private def isTarget (lhs rhs : Expr) : MetaM Bool := do
|
||||
if !lhs.isFVar || !lhs.occurs rhs then
|
||||
|
|
@ -52,4 +53,4 @@ where
|
|||
builtin_initialize
|
||||
registerTraceClass `Meta.Tactic.acyclic
|
||||
|
||||
end Lean.Meta
|
||||
end Lean.MVarId
|
||||
|
|
|
|||
4
stage0/src/Lean/Meta/Tactic/Apply.lean
generated
4
stage0/src/Lean/Meta/Tactic/Apply.lean
generated
|
|
@ -154,12 +154,12 @@ abbrev _root_.Lean.MVarId.splitAnd (mvarId : MVarId) : MetaM (List MVarId) :=
|
|||
def splitAnd (mvarId : MVarId) : MetaM (List MVarId) :=
|
||||
mvarId.splitAnd
|
||||
|
||||
def applyRefl (mvarId : MVarId) (msg : MessageData := "refl failed") : MetaM Unit :=
|
||||
def _root_.Lean.MVarId.applyRefl (mvarId : MVarId) (msg : MessageData := "refl failed") : MetaM Unit :=
|
||||
mvarId.withContext do
|
||||
let some [] ← observing? do mvarId.apply (mkConst ``Eq.refl [← mkFreshLevelMVar])
|
||||
| throwTacticEx `refl mvarId msg
|
||||
|
||||
def exfalso (mvarId : MVarId) : MetaM MVarId :=
|
||||
def _root_.Lean.MVarId.exfalso (mvarId : MVarId) : MetaM MVarId :=
|
||||
mvarId.withContext do
|
||||
mvarId.checkNotAssigned `exfalso
|
||||
let target ← instantiateMVars (← mvarId.getType)
|
||||
|
|
|
|||
51
stage0/src/Lean/Meta/Tactic/Cases.lean
generated
51
stage0/src/Lean/Meta/Tactic/Cases.lean
generated
|
|
@ -204,7 +204,7 @@ partial def unifyEqs? (numEqs : Nat) (mvarId : MVarId) (subst : FVarSubst) (case
|
|||
return some (mvarId, subst)
|
||||
else
|
||||
let (eqFVarId, mvarId) ← mvarId.intro1
|
||||
if let some { mvarId, subst, numNewEqs } ← unifyEq? mvarId eqFVarId subst acyclic caseName? then
|
||||
if let some { mvarId, subst, numNewEqs } ← unifyEq? mvarId eqFVarId subst MVarId.acyclic caseName? then
|
||||
unifyEqs? (numEqs - 1 + numNewEqs) mvarId subst caseName?
|
||||
else
|
||||
return none
|
||||
|
|
@ -254,46 +254,67 @@ def cases (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array AltVarNam
|
|||
|
||||
end Cases
|
||||
|
||||
/--
|
||||
Apply `casesOn` using the free variable `majorFVarId` as the major premise (aka discriminant).
|
||||
`giveNames` contains user-facing names for each alternative.
|
||||
-/
|
||||
def _root_.Lean.MVarId.cases (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array AltVarNames := #[]) : MetaM (Array CasesSubgoal) :=
|
||||
Cases.cases mvarId majorFVarId givenNames
|
||||
|
||||
@[deprecated MVarId.cases]
|
||||
def cases (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array AltVarNames := #[]) : MetaM (Array CasesSubgoal) :=
|
||||
Cases.cases mvarId majorFVarId givenNames
|
||||
|
||||
def casesRec (mvarId : MVarId) (p : LocalDecl → MetaM Bool) : MetaM (List MVarId) :=
|
||||
/--
|
||||
Keep applying `cases` on any hypothesis that satisfies `p`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.casesRec (mvarId : MVarId) (p : LocalDecl → MetaM Bool) : MetaM (List MVarId) :=
|
||||
saturate mvarId fun mvarId =>
|
||||
mvarId.withContext do
|
||||
for localDecl in (← getLCtx) do
|
||||
if (← p localDecl) then
|
||||
let r? ← observing? do
|
||||
let r ← cases mvarId localDecl.fvarId
|
||||
let r ← mvarId.cases localDecl.fvarId
|
||||
return r.toList.map (·.mvarId)
|
||||
if r?.isSome then
|
||||
return r?
|
||||
return none
|
||||
|
||||
def casesAnd (mvarId : MVarId) : MetaM MVarId := do
|
||||
let mvarIds ← casesRec mvarId fun localDecl => return (← instantiateMVars localDecl.type).isAppOfArity ``And 2
|
||||
/--
|
||||
Applies `cases` (recursively) to any hypothesis of the form `h : p ∧ q`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.casesAnd (mvarId : MVarId) : MetaM MVarId := do
|
||||
let mvarIds ← mvarId.casesRec fun localDecl => return (← instantiateMVars localDecl.type).isAppOfArity ``And 2
|
||||
exactlyOne mvarIds
|
||||
|
||||
def substEqs (mvarId : MVarId) : MetaM (Option MVarId) := do
|
||||
let mvarIds ← casesRec mvarId fun localDecl => do
|
||||
/--
|
||||
Applies `cases` to any hypothesis of the form `h : r = s`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.substEqs (mvarId : MVarId) : MetaM (Option MVarId) := do
|
||||
let mvarIds ← mvarId.casesRec fun localDecl => do
|
||||
let type ← instantiateMVars localDecl.type
|
||||
return type.isEq || type.isHEq
|
||||
ensureAtMostOne mvarIds
|
||||
|
||||
/-- Auxiliary structure for storing `byCases` tactic result. -/
|
||||
structure ByCasesSubgoal where
|
||||
mvarId : MVarId
|
||||
fvarId : FVarId
|
||||
|
||||
def byCases (mvarId : MVarId) (p : Expr) (hName : Name := `h) : MetaM (ByCasesSubgoal × ByCasesSubgoal) := do
|
||||
let mvarId ← mvarId.assert `hByCases (mkOr p (mkNot p)) (mkEM p)
|
||||
let (fvarId, mvarId) ← mvarId.intro1
|
||||
let #[s₁, s₂] ← cases mvarId fvarId #[{ varNames := [hName] }, { varNames := [hName] }] |
|
||||
throwError "'byCases' tactic failed, unexpected number of subgoals"
|
||||
return ((← toByCasesSubgoal s₁), (← toByCasesSubgoal s₂))
|
||||
where
|
||||
toByCasesSubgoal (s : CasesSubgoal) : MetaM ByCasesSubgoal := do
|
||||
private def toByCasesSubgoal (s : CasesSubgoal) : MetaM ByCasesSubgoal := do
|
||||
let #[Expr.fvar fvarId ..] ← pure s.fields | throwError "'byCases' tactic failed, unexpected new hypothesis"
|
||||
return { mvarId := s.mvarId, fvarId }
|
||||
|
||||
/--
|
||||
Split the goal in two subgoals: one containing the hypothesis `h : p` and another containing `h : ¬ p`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.byCases (mvarId : MVarId) (p : Expr) (hName : Name := `h) : MetaM (ByCasesSubgoal × ByCasesSubgoal) := do
|
||||
let mvarId ← mvarId.assert `hByCases (mkOr p (mkNot p)) (mkEM p)
|
||||
let (fvarId, mvarId) ← mvarId.intro1
|
||||
let #[s₁, s₂] ← mvarId.cases fvarId #[{ varNames := [hName] }, { varNames := [hName] }] |
|
||||
throwError "'byCases' tactic failed, unexpected number of subgoals"
|
||||
return ((← toByCasesSubgoal s₁), (← toByCasesSubgoal s₂))
|
||||
|
||||
builtin_initialize registerTraceClass `Meta.Tactic.cases
|
||||
|
||||
end Lean.Meta
|
||||
|
|
|
|||
29
stage0/src/Lean/Meta/Tactic/Contradiction.lean
generated
29
stage0/src/Lean/Meta/Tactic/Contradiction.lean
generated
|
|
@ -57,7 +57,7 @@ partial def elim (mvarId : MVarId) (fvarId : FVarId) : M Bool := do
|
|||
modify (· - 1)
|
||||
-- We only consider inductives with no constructors and indexed families
|
||||
commitWhen do
|
||||
let subgoals ← try cases mvarId fvarId catch ex => trace[Meta.Tactic.contradiction] "{ex.toMessageData}"; return false
|
||||
let subgoals ← try mvarId.cases fvarId catch ex => trace[Meta.Tactic.contradiction] "{ex.toMessageData}"; return false
|
||||
trace[Meta.Tactic.contradiction] "elimEmptyInductive, number subgoals: {subgoals.size}"
|
||||
for subgoal in subgoals do
|
||||
-- If one of the fields is uninhabited, then we are done
|
||||
|
|
@ -79,7 +79,7 @@ private def elimEmptyInductive (mvarId : MVarId) (fvarId : FVarId) (fuel : Nat)
|
|||
mvarId.withContext do
|
||||
if (← isElimEmptyInductiveCandidate fvarId) then
|
||||
commitWhen do
|
||||
ElimEmptyInductive.elim (← exfalso mvarId) fvarId |>.run' fuel
|
||||
ElimEmptyInductive.elim (← mvarId.exfalso) fvarId |>.run' fuel
|
||||
else
|
||||
return false
|
||||
|
||||
|
|
@ -145,7 +145,11 @@ private def processGenDiseq (mvarId : MVarId) (localDecl : LocalDecl) : MetaM Bo
|
|||
else
|
||||
return false
|
||||
|
||||
def contradictionCore (mvarId : MVarId) (config : Contradiction.Config) : MetaM Bool := do
|
||||
/--
|
||||
Return `true` if goal `mvarId` has contradictory hypotheses.
|
||||
See `MVarId.contradiction` for the list of tests performed by this method.
|
||||
-/
|
||||
def _root_.Lean.MVarId.contradictionCore (mvarId : MVarId) (config : Contradiction.Config) : MetaM Bool := do
|
||||
mvarId.withContext do
|
||||
mvarId.checkNotAssigned `contradiction
|
||||
if (← nestedFalseElim mvarId) then
|
||||
|
|
@ -206,10 +210,25 @@ def contradictionCore (mvarId : MVarId) (config : Contradiction.Config) : MetaM
|
|||
return true
|
||||
return false
|
||||
|
||||
def contradiction (mvarId : MVarId) (config : Contradiction.Config := {}) : MetaM Unit :=
|
||||
unless (← contradictionCore mvarId config) do
|
||||
/--
|
||||
Try to close the goal using "contradictions" such as
|
||||
- Contradictory hypotheses `h₁ : p` and `h₂ : ¬ p`.
|
||||
- Contradictory disequality `h : x ≠ x`.
|
||||
- Contradictory equality between different constructors, e.g., `h : List.nil = List.cons x xs`.
|
||||
- Empty inductive types, e.g., `x : Fin 0`.
|
||||
- Decidable propositions that evaluate to false, i.e., a hypothesis `h : p` s.t. `decide p` reduces to `false`.
|
||||
This is only tried if `Config.useDecide = true`.
|
||||
|
||||
Throw exception if goal failed to be closed.
|
||||
-/
|
||||
def _root_.Lean.MVarId.contradiction (mvarId : MVarId) (config : Contradiction.Config := {}) : MetaM Unit :=
|
||||
unless (← mvarId.contradictionCore config) do
|
||||
throwTacticEx `contradiction mvarId ""
|
||||
|
||||
@[deprecated MVarId.contradiction]
|
||||
def contradiction (mvarId : MVarId) (config : Contradiction.Config := {}) : MetaM Unit :=
|
||||
mvarId.contradiction config
|
||||
|
||||
builtin_initialize registerTraceClass `Meta.Tactic.contradiction
|
||||
|
||||
end Lean.Meta
|
||||
|
|
|
|||
20
stage0/src/Lean/Meta/Tactic/Generalize.lean
generated
20
stage0/src/Lean/Meta/Tactic/Generalize.lean
generated
|
|
@ -16,10 +16,11 @@ structure GeneralizeArg where
|
|||
hName? : Option Name := none
|
||||
deriving Inhabited
|
||||
|
||||
partial def generalize
|
||||
(mvarId : MVarId) (args : Array GeneralizeArg)
|
||||
-- (pred : (parent? : Option Expr) → (e : Expr) → MetaM Bool := fun _ _ => return true)
|
||||
: MetaM (Array FVarId × MVarId) :=
|
||||
/--
|
||||
Telescopic `generalize` tactic. It can simultaneously generalize many terms.
|
||||
It uses `kabstract` to occurrences of the terms that need to be generalized.
|
||||
-/
|
||||
private partial def generalizeCore (mvarId : MVarId) (args : Array GeneralizeArg) : MetaM (Array FVarId × MVarId) :=
|
||||
mvarId.withContext do
|
||||
mvarId.checkNotAssigned `generalize
|
||||
let tag ← mvarId.getTag
|
||||
|
|
@ -67,4 +68,15 @@ partial def generalize
|
|||
mvarId.assign (mkAppN (mkAppN mvarNew es) rfls.toArray)
|
||||
mvarNew.mvarId!.introNP (args.size + rfls.length)
|
||||
|
||||
/--
|
||||
Telescopic `generalize` tactic. It can simultaneously generalize many terms.
|
||||
It uses `kabstract` to occurrences of the terms that need to be generalized.
|
||||
-/
|
||||
def _root_.Lean.MVarId.generalize (mvarId : MVarId) (args : Array GeneralizeArg) : MetaM (Array FVarId × MVarId) :=
|
||||
generalizeCore mvarId args
|
||||
|
||||
@[deprecated MVarId.generalize]
|
||||
def generalize (mvarId : MVarId) (args : Array GeneralizeArg) : MetaM (Array FVarId × MVarId) :=
|
||||
generalizeCore mvarId args
|
||||
|
||||
end Lean.Meta
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/Tactic/SplitIf.lean
generated
2
stage0/src/Lean/Meta/Tactic/SplitIf.lean
generated
|
|
@ -72,7 +72,7 @@ def splitIfAt? (mvarId : MVarId) (e : Expr) (hName? : Option Name) : MetaM (Opti
|
|||
| none => mkFreshUserName `h
|
||||
| some hName => pure hName
|
||||
trace[Meta.Tactic.splitIf] "splitting on {cond}"
|
||||
return some (← byCases mvarId cond hName)
|
||||
return some (← mvarId.byCases cond hName)
|
||||
else
|
||||
return none
|
||||
|
||||
|
|
|
|||
46
stage0/src/Lean/MetavarContext.lean
generated
46
stage0/src/Lean/MetavarContext.lean
generated
|
|
@ -280,7 +280,6 @@ structure MetavarContext where
|
|||
lAssignment : PersistentHashMap LMVarId Level := {}
|
||||
eAssignment : PersistentHashMap MVarId Expr := {}
|
||||
dAssignment : PersistentHashMap MVarId DelayedMetavarAssignment := {}
|
||||
usedAssignment : Bool := false
|
||||
|
||||
class MonadMCtx (m : Type → Type) where
|
||||
getMCtx : m MetavarContext
|
||||
|
|
@ -292,32 +291,20 @@ instance (m n) [MonadLift m n] [MonadMCtx m] : MonadMCtx n where
|
|||
getMCtx := liftM (getMCtx : m _)
|
||||
modifyMCtx := fun f => liftM (modifyMCtx f : m _)
|
||||
|
||||
def markUsedAssignment [MonadMCtx m] : m Unit :=
|
||||
modifyMCtx fun mctx => { mctx with usedAssignment := true }
|
||||
abbrev setMCtx [MonadMCtx m] (mctx : MetavarContext) : m Unit :=
|
||||
modifyMCtx fun _ => mctx
|
||||
|
||||
abbrev setMCtx [MonadMCtx m] (mctx' : MetavarContext) : m Unit :=
|
||||
modifyMCtx fun mctx => { mctx' with usedAssignment := mctx'.usedAssignment || mctx.usedAssignment }
|
||||
|
||||
abbrev getLevelMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : LMVarId) : m (Option Level) := do
|
||||
let result? := (← getMCtx).lAssignment.find? mvarId
|
||||
if result?.isSome then
|
||||
markUsedAssignment
|
||||
return result?
|
||||
abbrev getLevelMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : LMVarId) : m (Option Level) :=
|
||||
return (← getMCtx).lAssignment.find? mvarId
|
||||
|
||||
def MetavarContext.getExprAssignmentCore? (m : MetavarContext) (mvarId : MVarId) : Option Expr :=
|
||||
m.eAssignment.find? mvarId
|
||||
|
||||
def getExprMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : MVarId) : m (Option Expr) := do
|
||||
let result? := (← getMCtx).getExprAssignmentCore? mvarId
|
||||
if result?.isSome then
|
||||
markUsedAssignment
|
||||
return result?
|
||||
def getExprMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : MVarId) : m (Option Expr) :=
|
||||
return (← getMCtx).getExprAssignmentCore? mvarId
|
||||
|
||||
def getDelayedMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : MVarId) : m (Option DelayedMetavarAssignment) := do
|
||||
let result? := (← getMCtx).dAssignment.find? mvarId
|
||||
if result?.isSome then
|
||||
markUsedAssignment
|
||||
return result?
|
||||
def getDelayedMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : MVarId) : m (Option DelayedMetavarAssignment) :=
|
||||
return (← getMCtx).dAssignment.find? mvarId
|
||||
|
||||
/-- Given a sequence of delayed assignments
|
||||
```
|
||||
|
|
@ -332,21 +319,18 @@ partial def getDelayedMVarRoot [Monad m] [MonadMCtx m] (mvarId : MVarId) : m MVa
|
|||
| some d => getDelayedMVarRoot d.mvarIdPending
|
||||
| none => return mvarId
|
||||
|
||||
def isLevelMVarAssigned [Monad m] [MonadMCtx m] (mvarId : LMVarId) : m Bool := do
|
||||
markUsedAssignment
|
||||
def isLevelMVarAssigned [Monad m] [MonadMCtx m] (mvarId : LMVarId) : m Bool :=
|
||||
return (← getMCtx).lAssignment.contains mvarId
|
||||
|
||||
/-- Return `true` if the give metavariable is already assigned. -/
|
||||
def _root_.Lean.MVarId.isAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool := do
|
||||
markUsedAssignment
|
||||
def _root_.Lean.MVarId.isAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool :=
|
||||
return (← getMCtx).eAssignment.contains mvarId
|
||||
|
||||
@[deprecated MVarId.isAssigned]
|
||||
def isExprMVarAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool := do
|
||||
mvarId.isAssigned
|
||||
|
||||
def _root_.Lean.MVarId.isDelayedAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool := do
|
||||
markUsedAssignment
|
||||
def _root_.Lean.MVarId.isDelayedAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool :=
|
||||
return (← getMCtx).dAssignment.contains mvarId
|
||||
|
||||
@[deprecated MVarId.isDelayedAssigned]
|
||||
|
|
@ -354,7 +338,6 @@ def isMVarDelayedAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool :=
|
|||
mvarId.isDelayedAssigned
|
||||
|
||||
def isLevelMVarAssignable [Monad m] [MonadMCtx m] (mvarId : LMVarId) : m Bool := do
|
||||
markUsedAssignment
|
||||
let mctx ← getMCtx
|
||||
match mctx.lDepth.find? mvarId with
|
||||
| some d => return d == mctx.depth
|
||||
|
|
@ -366,7 +349,6 @@ def MetavarContext.getDecl (mctx : MetavarContext) (mvarId : MVarId) : MetavarDe
|
|||
| none => panic! "unknown metavariable"
|
||||
|
||||
def _root_.Lean.MVarId.isAssignable [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool := do
|
||||
markUsedAssignment
|
||||
let mctx ← getMCtx
|
||||
let decl := mctx.getDecl mvarId
|
||||
return decl.depth == mctx.depth
|
||||
|
|
@ -430,7 +412,7 @@ def hasAssignableMVar [Monad m] [MonadMCtx m] : Expr → m Bool
|
|||
This is a low-level API, and it is safer to use `isLevelDefEq (mkLevelMVar mvarId) u`.
|
||||
-/
|
||||
def assignLevelMVar [MonadMCtx m] (mvarId : LMVarId) (val : Level) : m Unit :=
|
||||
modifyMCtx fun m => { m with lAssignment := m.lAssignment.insert mvarId val, usedAssignment := true }
|
||||
modifyMCtx fun m => { m with lAssignment := m.lAssignment.insert mvarId val }
|
||||
|
||||
/--
|
||||
Add `mvarId := x` to the metavariable assignment.
|
||||
|
|
@ -439,14 +421,14 @@ a cycle is being introduced, or whether the expression has the right type.
|
|||
This is a low-level API, and it is safer to use `isDefEq (mkMVar mvarId) x`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.assign [MonadMCtx m] (mvarId : MVarId) (val : Expr) : m Unit :=
|
||||
modifyMCtx fun m => { m with eAssignment := m.eAssignment.insert mvarId val, usedAssignment := true }
|
||||
modifyMCtx fun m => { m with eAssignment := m.eAssignment.insert mvarId val }
|
||||
|
||||
@[deprecated MVarId.assign]
|
||||
def assignExprMVar [MonadMCtx m] (mvarId : MVarId) (val : Expr) : m Unit :=
|
||||
mvarId.assign val
|
||||
|
||||
def assignDelayedMVar [MonadMCtx m] (mvarId : MVarId) (fvars : Array Expr) (mvarIdPending : MVarId) : m Unit :=
|
||||
modifyMCtx fun m => { m with dAssignment := m.dAssignment.insert mvarId { fvars, mvarIdPending }, usedAssignment := true }
|
||||
modifyMCtx fun m => { m with dAssignment := m.dAssignment.insert mvarId { fvars, mvarIdPending } }
|
||||
|
||||
/--
|
||||
Notes on artificial eta-expanded terms due to metavariables.
|
||||
|
|
|
|||
27
stage0/stdlib/Lean/Compiler/ExternAttr.c
generated
27
stage0/stdlib/Lean/Compiler/ExternAttr.c
generated
|
|
@ -1999,23 +1999,21 @@ return x_3;
|
|||
static lean_object* _init_l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__10;
|
||||
x_3 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__11;
|
||||
x_4 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__12;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__14() {
|
||||
|
|
@ -2104,14 +2102,13 @@ x_1 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed_
|
|||
x_2 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__16;
|
||||
x_3 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__17;
|
||||
x_4 = l___private_Lean_Compiler_ExternAttr_0__Lean_getExternConstArity___closed__20;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
24
stage0/stdlib/Lean/CoreM.c
generated
24
stage0/stdlib/Lean/CoreM.c
generated
|
|
@ -1543,23 +1543,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__1;
|
||||
x_3 = l_Lean_Core_State_infoState___default___closed__1;
|
||||
x_4 = l_Lean_Core_Cache_instLevelType___default___closed__3;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1___closed__3() {
|
||||
|
|
|
|||
1563
stage0/stdlib/Lean/Elab/App.c
generated
1563
stage0/stdlib/Lean/Elab/App.c
generated
File diff suppressed because it is too large
Load diff
12
stage0/stdlib/Lean/Elab/Binders.c
generated
12
stage0/stdlib/Lean/Elab/Binders.c
generated
|
|
@ -628,7 +628,6 @@ lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object*,
|
|||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__41;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl_declRange___closed__2;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__4;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun___closed__3;
|
||||
|
|
@ -758,6 +757,7 @@ static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_1952_
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun_declRange___closed__5;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_elabLetDeclCore___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__4;
|
||||
|
|
@ -6606,7 +6606,7 @@ x_21 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_checkLocalInstanceParamet
|
|||
x_22 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_20);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
x_23 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_11);
|
||||
x_23 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_11);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -6726,7 +6726,7 @@ x_11 = lean_ctor_get(x_7, 5);
|
|||
x_12 = l_Lean_replaceRef(x_1, x_11);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_7, 5, x_12);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_7);
|
||||
return x_13;
|
||||
}
|
||||
|
|
@ -6770,7 +6770,7 @@ lean_ctor_set(x_26, 7, x_21);
|
|||
lean_ctor_set(x_26, 8, x_22);
|
||||
lean_ctor_set(x_26, 9, x_23);
|
||||
lean_ctor_set(x_26, 10, x_24);
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
lean_dec(x_26);
|
||||
return x_27;
|
||||
}
|
||||
|
|
@ -26775,7 +26775,7 @@ x_35 = lean_ctor_get(x_32, 1);
|
|||
lean_inc(x_35);
|
||||
lean_dec(x_32);
|
||||
x_36 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3___closed__2;
|
||||
x_37 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_35);
|
||||
x_37 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_35);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -28385,7 +28385,7 @@ lean_dec(x_16);
|
|||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_46 = l_Lean_Elab_Term_elabLetDeclCore___closed__6;
|
||||
x_47 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_47 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
|
|||
8
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
8
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
|
|
@ -617,7 +617,6 @@ static lean_object* l_Lean_Elab_Term_expandAssert___closed__5;
|
|||
lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
|
|
@ -799,6 +798,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry___closed__5;
|
|||
static lean_object* l_Lean_Elab_Term_expandShow___closed__14;
|
||||
static lean_object* l_Lean_Elab_Term_expandAssert___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro___closed__1;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabSubst___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor___closed__1;
|
||||
|
|
@ -2586,7 +2586,7 @@ x_79 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16;
|
|||
x_80 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_78);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
x_81 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_57);
|
||||
x_81 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_57);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -19111,7 +19111,7 @@ x_81 = lean_ctor_get(x_78, 1);
|
|||
lean_inc(x_81);
|
||||
lean_dec(x_78);
|
||||
x_82 = l_Lean_Elab_Term_elabSubst___lambda__8___closed__2;
|
||||
x_83 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_81);
|
||||
x_83 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_81);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -19415,7 +19415,7 @@ x_138 = l_Lean_Elab_Term_elabSubst___closed__15;
|
|||
x_139 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_139, 0, x_137);
|
||||
lean_ctor_set(x_139, 1, x_138);
|
||||
x_140 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_125);
|
||||
x_140 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_125);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
|
|||
227
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
227
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
|
|
@ -372,7 +372,6 @@ uint8_t l_Lean_Expr_hasExprMVar(lean_object*);
|
|||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName_docString___closed__1;
|
||||
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoImplicitLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabWithAnnotateTerm_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -440,6 +439,7 @@ LEAN_EXPORT lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___sp
|
|||
static lean_object* l_Lean_Elab_Term_elabCharLit___closed__2;
|
||||
lean_object* lean_expr_dbg_to_string(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetMVar_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetMVar(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__36(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -651,7 +651,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType_declRan
|
|||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion_declRange___closed__1;
|
||||
static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Term_elabOpen___spec__22___lambda__1___closed__3;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption_declRange___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -664,7 +663,6 @@ static lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1;
|
|||
static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Term_elabOpen___spec__22___lambda__1___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHole_declRange___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetMVar_declRange___closed__6;
|
||||
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetMVar___closed__3;
|
||||
|
|
@ -694,6 +692,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Term_el
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit_declRange___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption_declRange___closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -738,7 +737,6 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen_declRange(lean_o
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoImplicitLambda_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic_docString(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__20(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRawNatLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -815,6 +813,7 @@ lean_object* lean_uint32_to_nat(uint32_t);
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen_declRange___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__4;
|
||||
|
|
@ -2581,16 +2580,6 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_1);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2603,140 +2592,79 @@ x_11 = lean_st_ref_get(x_5, x_10);
|
|||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_15);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_16 = l_Lean_MetavarContext_getExprAssignmentCore_x3f(x_15, x_1);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_ctor_set(x_11, 0, x_16);
|
||||
x_15 = l_Lean_MetavarContext_getExprAssignmentCore_x3f(x_14, x_1);
|
||||
lean_ctor_set(x_11, 0, x_15);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
lean_free_object(x_11);
|
||||
x_17 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(x_5, x_6, x_7, x_14);
|
||||
x_18 = !lean_is_exclusive(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
lean_dec(x_19);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
x_20 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_17);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_16);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_22 = lean_ctor_get(x_11, 0);
|
||||
x_23 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_16 = lean_ctor_get(x_11, 0);
|
||||
x_17 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_11);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = l_Lean_MetavarContext_getExprAssignmentCore_x3f(x_24, x_1);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
lean_object* x_26;
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_23);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_27 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(x_5, x_6, x_7, x_23);
|
||||
x_28 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_28);
|
||||
if (lean_is_exclusive(x_27)) {
|
||||
lean_ctor_release(x_27, 0);
|
||||
lean_ctor_release(x_27, 1);
|
||||
x_29 = x_27;
|
||||
} else {
|
||||
lean_dec_ref(x_27);
|
||||
x_29 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_29)) {
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_30 = x_29;
|
||||
}
|
||||
lean_ctor_set(x_30, 0, x_25);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
return x_30;
|
||||
}
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = l_Lean_MetavarContext_getExprAssignmentCore_x3f(x_18, x_1);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_17);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isDelayedAssigned___at_Lean_Elab_Term_elabSyntheticHole___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_9 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(x_5, x_6, x_7, x_8);
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_9 = lean_st_ref_get(x_7, x_8);
|
||||
x_10 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_st_ref_get(x_7, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_st_ref_get(x_5, x_12);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
x_11 = lean_st_ref_get(x_5, x_10);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_18 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_17, x_1);
|
||||
x_19 = lean_box(x_18);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
return x_13;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_15 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_15, x_1);
|
||||
x_17 = lean_box(x_16);
|
||||
lean_ctor_set(x_11, 0, x_17);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_20 = lean_ctor_get(x_13, 0);
|
||||
x_21 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_21);
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_18 = lean_ctor_get(x_11, 0);
|
||||
x_19 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_11);
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_13);
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_ctor_get(x_20, 7);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_23 = lean_ctor_get(x_22, 7);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_22);
|
||||
x_24 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_23, x_1);
|
||||
x_25 = lean_box(x_24);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_21);
|
||||
return x_26;
|
||||
x_22 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_21, x_1);
|
||||
x_23 = lean_box(x_22);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_19);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4343,21 +4271,6 @@ return x_170;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_Elab_Term_elabSyntheticHole___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7120,6 +7033,16 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_1);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7217,6 +7140,21 @@ return x_27;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -9018,7 +8956,7 @@ x_14 = l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_getMVarFromUserName__
|
|||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
|
|
@ -11203,14 +11141,13 @@ x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__2___closed__
|
|||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__2___closed__7;
|
||||
x_3 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__2___closed__8;
|
||||
x_4 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__2___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -16671,7 +16608,7 @@ lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
|||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_16 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___closed__2;
|
||||
x_17 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_13);
|
||||
x_17 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
|
|||
27
stage0/stdlib/Lean/Elab/Command.c
generated
27
stage0/stdlib/Lean/Elab/Command.c
generated
|
|
@ -2043,23 +2043,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__1;
|
||||
x_3 = l_Lean_Elab_Command_State_infoState___default___closed__3;
|
||||
x_4 = l_Lean_Elab_Command_instInhabitedState___closed__2;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__3() {
|
||||
|
|
@ -19327,14 +19325,13 @@ x_1 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1;
|
|||
x_2 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__3;
|
||||
x_3 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__4;
|
||||
x_4 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__7;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
3
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
|
|
@ -4080,14 +4080,13 @@ x_1 = l_Lean_setEnv___at_Lean_Elab_ComputedFields_mkImplType___spec__6___closed_
|
|||
x_2 = l_Lean_setEnv___at_Lean_Elab_ComputedFields_mkImplType___spec__6___closed__7;
|
||||
x_3 = l_Lean_setEnv___at_Lean_Elab_ComputedFields_mkImplType___spec__6___closed__8;
|
||||
x_4 = l_Lean_setEnv___at_Lean_Elab_ComputedFields_mkImplType___spec__6___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
181
stage0/stdlib/Lean/Elab/DefView.c
generated
181
stage0/stdlib/Lean/Elab/DefView.c
generated
|
|
@ -18,7 +18,6 @@ static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_21
|
|||
lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
||||
lean_object* lean_erase_macro_scopes(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -26,6 +25,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
|||
static lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__1;
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5___rarg(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*);
|
||||
|
|
@ -33,12 +33,17 @@ uint8_t l_Lean_Expr_isProp(lean_object*);
|
|||
static lean_object* l_Lean_Elab_Command_mkInstanceName___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15____boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_SourceInfo_fromRef(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__13;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__3;
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1;
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfInstance___spec__11(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
|
|
@ -59,19 +64,22 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__4;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfDef(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_DefKind_isExample(uint8_t);
|
||||
lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__8;
|
||||
extern lean_object* l_Lean_levelZero;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__2;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfExample(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefView___closed__2;
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__4;
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1;
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__8;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__7;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -80,18 +88,19 @@ lean_object* l_Lean_Elab_mkFreshInstanceName(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__11;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__16;
|
||||
static lean_object* l_Lean_Elab_instBEqDefKind___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forEachExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfInstance___spec__11___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__9(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__1;
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -104,6 +113,7 @@ uint8_t l_Char_isLower(uint32_t);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_isDefLike___boxed(lean_object*);
|
||||
lean_object* l_Nat_repr(lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_instInhabitedDefKind;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_isTheorem___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__12;
|
||||
|
|
@ -129,9 +139,9 @@ static lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__5___closed__1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isConst(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_Command_isDefLike(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkFreshInstanceName___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isForall(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -140,6 +150,7 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__6;
|
|||
size_t lean_usize_of_nat(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkFreshInstanceName(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__5(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -149,16 +160,17 @@ lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___closed__1;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__4;
|
||||
uint8_t l_Lean_Expr_isType(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getSepArgs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__3;
|
||||
lean_object* lean_environment_main_module(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__9(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -167,18 +179,13 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
|||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkInstanceName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkFreshInstanceName___boxed(lean_object*);
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2170_(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkInstanceName___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2;
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__6;
|
||||
lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfExample___closed__2;
|
||||
lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_expandDeclSig(lean_object*);
|
||||
|
|
@ -192,12 +199,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Comma
|
|||
lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_expandOptNamedPrio___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2170____closed__4;
|
||||
lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__17;
|
||||
lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__3;
|
||||
|
|
@ -206,7 +212,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_instBEqDefKind;
|
|||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_2170____closed__2;
|
||||
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_isExample___boxed(lean_object*);
|
||||
lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -214,17 +219,13 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__15;
|
|||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__18;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DefKind_noConfusion(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkInstanceName___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2;
|
||||
static lean_object* l_Lean_Elab_Command_mkDefView___closed__1;
|
||||
lean_object* l_Lean_Core_resetMessageLog(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__10___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_mkDefViewOfOpaque___closed__6;
|
||||
lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -242,7 +243,7 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_mkDefViewOfInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_isDefLike___closed__7;
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_DefView___hyg_15_(uint8_t, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Command_mkInstanceName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isSort(lean_object*);
|
||||
lean_object* l_Lean_Elab_mkUnusedBaseName(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -898,7 +899,15 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Command_mkInstanceName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
|
|
@ -952,7 +961,7 @@ return x_20;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
|
|
@ -972,7 +981,7 @@ lean_object* x_11; lean_object* x_12;
|
|||
x_11 = lean_ctor_get(x_3, 6);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_3, 6, x_9);
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3(x_2, x_3, x_4, x_8);
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4(x_2, x_3, x_4, x_8);
|
||||
lean_dec(x_4);
|
||||
return x_12;
|
||||
}
|
||||
|
|
@ -1003,13 +1012,13 @@ lean_ctor_set(x_20, 4, x_17);
|
|||
lean_ctor_set(x_20, 5, x_18);
|
||||
lean_ctor_set(x_20, 6, x_9);
|
||||
lean_ctor_set(x_20, 7, x_19);
|
||||
x_21 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3(x_2, x_20, x_4, x_8);
|
||||
x_21 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4(x_2, x_20, x_4, x_8);
|
||||
lean_dec(x_4);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1() {
|
||||
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -1019,21 +1028,21 @@ lean_ctor_set(x_2, 0, x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2() {
|
||||
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1;
|
||||
x_1 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2;
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
|
|
@ -1043,7 +1052,7 @@ lean_ctor_set(x_7, 1, x_4);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -1051,38 +1060,38 @@ x_1 = l_Lean_Elab_unsupportedSyntaxExceptionId;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg), 1, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
|
|
@ -1251,7 +1260,7 @@ return x_41;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5; lean_object* x_6; lean_object* x_7;
|
||||
|
|
@ -1263,7 +1272,7 @@ lean_ctor_set(x_7, 1, x_4);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
|
|
@ -1274,7 +1283,7 @@ lean_ctor_set(x_8, 1, x_6);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
|
|
@ -1285,7 +1294,7 @@ lean_ctor_set(x_8, 1, x_6);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
|
|
@ -1317,23 +1326,23 @@ x_16 = lean_ctor_get(x_14, 3);
|
|||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_8);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1___boxed), 4, 1);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1___boxed), 4, 1);
|
||||
lean_closure_set(x_17, 0, x_8);
|
||||
lean_inc(x_12);
|
||||
x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed), 3, 1);
|
||||
lean_closure_set(x_18, 0, x_12);
|
||||
lean_inc(x_8);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2___boxed), 4, 1);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2___boxed), 4, 1);
|
||||
lean_closure_set(x_19, 0, x_8);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_8);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3___boxed), 6, 3);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3___boxed), 6, 3);
|
||||
lean_closure_set(x_20, 0, x_8);
|
||||
lean_closure_set(x_20, 1, x_12);
|
||||
lean_closure_set(x_20, 2, x_16);
|
||||
lean_inc(x_8);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4___boxed), 6, 3);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4___boxed), 6, 3);
|
||||
lean_closure_set(x_21, 0, x_8);
|
||||
lean_closure_set(x_21, 1, x_12);
|
||||
lean_closure_set(x_21, 2, x_16);
|
||||
|
|
@ -1527,14 +1536,14 @@ x_82 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_82, 0, x_79);
|
||||
x_83 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_83, 0, x_82);
|
||||
x_84 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(x_78, x_83, x_2, x_3, x_36);
|
||||
x_84 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(x_78, x_83, x_2, x_3, x_36);
|
||||
return x_84;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85;
|
||||
lean_dec(x_79);
|
||||
x_85 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4(x_78, x_2, x_3, x_36);
|
||||
x_85 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5(x_78, x_2, x_3, x_36);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_85;
|
||||
|
|
@ -1545,7 +1554,7 @@ else
|
|||
lean_object* x_86;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_86 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg(x_36);
|
||||
x_86 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg(x_36);
|
||||
return x_86;
|
||||
}
|
||||
}
|
||||
|
|
@ -2000,7 +2009,7 @@ _start:
|
|||
lean_object* x_10; lean_object* x_11;
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkInstanceName___lambda__2), 8, 1);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
x_11 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_11 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
|
|
@ -2253,7 +2262,7 @@ x_25 = l_Lean_Name_str___override(x_24, x_23);
|
|||
x_26 = lean_alloc_closure((void*)(l_Lean_Elab_mkUnusedBaseName), 3, 1);
|
||||
lean_closure_set(x_26, 0, x_25);
|
||||
lean_inc(x_4);
|
||||
x_27 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1(x_26, x_3, x_4, x_21);
|
||||
x_27 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2(x_26, x_3, x_4, x_21);
|
||||
if (lean_obj_tag(x_27) == 0)
|
||||
{
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2292,68 +2301,68 @@ return x_35;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__3(x_1, x_2, x_3, x_4);
|
||||
x_5 = l_Lean_throwError___at_Lean_Elab_Command_mkInstanceName___spec__4(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4(x_1, x_2, x_3, x_4);
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5(x_1, x_2);
|
||||
x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1(x_1, x_2, x_3, x_4);
|
||||
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2(x_1, x_2, x_3, x_4);
|
||||
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
return x_7;
|
||||
}
|
||||
|
|
@ -2515,7 +2524,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefV
|
|||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2;
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
|
|
@ -2529,7 +2538,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Comma
|
|||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
|
|
@ -2576,23 +2585,23 @@ x_16 = lean_ctor_get(x_14, 3);
|
|||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_8);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1___boxed), 4, 1);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1___boxed), 4, 1);
|
||||
lean_closure_set(x_17, 0, x_8);
|
||||
lean_inc(x_12);
|
||||
x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed), 3, 1);
|
||||
lean_closure_set(x_18, 0, x_12);
|
||||
lean_inc(x_8);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2___boxed), 4, 1);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2___boxed), 4, 1);
|
||||
lean_closure_set(x_19, 0, x_8);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_8);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3___boxed), 6, 3);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3___boxed), 6, 3);
|
||||
lean_closure_set(x_20, 0, x_8);
|
||||
lean_closure_set(x_20, 1, x_12);
|
||||
lean_closure_set(x_20, 2, x_16);
|
||||
lean_inc(x_8);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4___boxed), 6, 3);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4___boxed), 6, 3);
|
||||
lean_closure_set(x_21, 0, x_8);
|
||||
lean_closure_set(x_21, 1, x_12);
|
||||
lean_closure_set(x_21, 2, x_16);
|
||||
|
|
@ -2925,7 +2934,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkDefV
|
|||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2;
|
||||
x_5 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2;
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
|
|
@ -2939,7 +2948,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Comma
|
|||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2;
|
||||
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
|
|
@ -2986,23 +2995,23 @@ x_16 = lean_ctor_get(x_14, 3);
|
|||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_8);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__1___boxed), 4, 1);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__1___boxed), 4, 1);
|
||||
lean_closure_set(x_17, 0, x_8);
|
||||
lean_inc(x_12);
|
||||
x_18 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed), 3, 1);
|
||||
lean_closure_set(x_18, 0, x_12);
|
||||
lean_inc(x_8);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__2___boxed), 4, 1);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__2___boxed), 4, 1);
|
||||
lean_closure_set(x_19, 0, x_8);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_8);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__3___boxed), 6, 3);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__3___boxed), 6, 3);
|
||||
lean_closure_set(x_20, 0, x_8);
|
||||
lean_closure_set(x_20, 1, x_12);
|
||||
lean_closure_set(x_20, 2, x_16);
|
||||
lean_inc(x_8);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__1___lambda__4___boxed), 6, 3);
|
||||
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_mkInstanceName___spec__2___lambda__4___boxed), 6, 3);
|
||||
lean_closure_set(x_21, 0, x_8);
|
||||
lean_closure_set(x_21, 1, x_12);
|
||||
lean_closure_set(x_21, 2, x_16);
|
||||
|
|
@ -4575,14 +4584,14 @@ l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__5 = _init_l_Lean_Elab_Command_mk
|
|||
lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__5);
|
||||
l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__6 = _init_l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__6);
|
||||
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1();
|
||||
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__1);
|
||||
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2();
|
||||
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__4___closed__2);
|
||||
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__1);
|
||||
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__5___rarg___closed__2);
|
||||
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1();
|
||||
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__1);
|
||||
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2();
|
||||
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Command_mkInstanceName___spec__5___closed__2);
|
||||
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__1);
|
||||
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkInstanceName___spec__6___rarg___closed__2);
|
||||
l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__1 = _init_l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__1);
|
||||
l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__2 = _init_l_Lean_Elab_Command_mkInstanceName___lambda__1___closed__2();
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
6
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
|
|
@ -20,7 +20,6 @@ size_t lean_usize_add(size_t, size_t);
|
|||
static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__10___closed__1;
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__4;
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_elabDeriving_declRange___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -130,6 +129,7 @@ static lean_object* l_Lean_Elab_elabDeriving___closed__6;
|
|||
lean_object* l_panic___at___private_Init_Prelude_0__Lean_assembleParts___spec__1(lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_elabDeriving___spec__12___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__10(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
|
|
@ -1401,7 +1401,7 @@ x_24 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_24, 0, x_23);
|
||||
x_25 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
x_26 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(x_1, x_25, x_2, x_3, x_7);
|
||||
x_26 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(x_1, x_25, x_2, x_3, x_7);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
|
|
@ -1472,7 +1472,7 @@ x_51 = lean_alloc_ctor(2, 1, 0);
|
|||
lean_ctor_set(x_51, 0, x_50);
|
||||
x_52 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_52, 0, x_51);
|
||||
x_53 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(x_1, x_52, x_2, x_3, x_34);
|
||||
x_53 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(x_1, x_52, x_2, x_3, x_34);
|
||||
return x_53;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Deriving/Repr.c
generated
4
stage0/stdlib/Lean/Elab/Deriving/Repr.c
generated
|
|
@ -249,7 +249,6 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__24;
|
|||
static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___lambda__1___closed__7;
|
||||
static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__2___closed__7;
|
||||
static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__13;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedName;
|
||||
|
|
@ -308,6 +307,7 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkMutualBlock___closed__2;
|
|||
static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___lambda__1___closed__16;
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForStruct___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmds___closed__4;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForStruct___spec__3___lambda__1___closed__3;
|
||||
static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___lambda__1___closed__8;
|
||||
static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__4;
|
||||
|
|
@ -2769,7 +2769,7 @@ lean_object* x_32; lean_object* x_33; uint8_t x_34;
|
|||
lean_dec(x_27);
|
||||
lean_dec(x_3);
|
||||
x_32 = l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__18;
|
||||
x_33 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_19);
|
||||
x_33 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_19);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Do.c
generated
6
stage0/stdlib/Lean/Elab/Do.c
generated
|
|
@ -1077,7 +1077,6 @@ static lean_object* l_Lean_Elab_Term_Do_mkFreshJP___lambda__1___closed__1;
|
|||
static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__27;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_pullExitPointsAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_attachJP___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclHasBinders___boxed(lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple___spec__1(lean_object*);
|
||||
|
|
@ -1328,6 +1327,7 @@ static lean_object* l_Lean_Elab_Term_Do_hasBreakContinueReturn___closed__1;
|
|||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_mkReassignCore___spec__1(lean_object*, lean_object*, size_t, size_t);
|
||||
static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__12;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__5;
|
||||
|
|
@ -12272,7 +12272,7 @@ lean_ctor_set(x_22, 7, x_17);
|
|||
lean_ctor_set(x_22, 8, x_18);
|
||||
lean_ctor_set(x_22, 9, x_19);
|
||||
lean_ctor_set(x_22, 10, x_20);
|
||||
x_23 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9);
|
||||
x_23 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9);
|
||||
lean_dec(x_22);
|
||||
return x_23;
|
||||
}
|
||||
|
|
@ -12614,6 +12614,7 @@ x_13 = lean_ctor_get(x_12, 1);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_13);
|
||||
lean_dec(x_10);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -12657,6 +12658,7 @@ x_13 = lean_ctor_get(x_12, 1);
|
|||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = l_Lean_Meta_SavedState_restore(x_10, x_4, x_5, x_6, x_7, x_13);
|
||||
lean_dec(x_10);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
|
|||
2422
stage0/stdlib/Lean/Elab/Inductive.c
generated
2422
stage0/stdlib/Lean/Elab/Inductive.c
generated
File diff suppressed because it is too large
Load diff
3
stage0/stdlib/Lean/Elab/InfoTree/Main.c
generated
3
stage0/stdlib/Lean/Elab/InfoTree/Main.c
generated
|
|
@ -1870,14 +1870,13 @@ x_1 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__4;
|
|||
x_2 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__6;
|
||||
x_3 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__7;
|
||||
x_4 = l_Lean_Elab_ContextInfo_runMetaM___rarg___closed__10;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
48
stage0/stdlib/Lean/Elab/InfoTree/Types.c
generated
48
stage0/stdlib/Lean/Elab/InfoTree/Types.c
generated
|
|
@ -139,23 +139,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Elab_ContextInfo_mctx___default___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_Elab_ContextInfo_mctx___default___closed__3;
|
||||
x_3 = l_Lean_Elab_ContextInfo_mctx___default___closed__4;
|
||||
x_4 = l_Lean_Elab_ContextInfo_mctx___default___closed__5;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_ContextInfo_mctx___default() {
|
||||
|
|
@ -290,23 +288,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_Elab_ContextInfo_mctx___default___closed__3;
|
||||
x_3 = l_Lean_Elab_ContextInfo_mctx___default___closed__4;
|
||||
x_4 = l_Lean_Elab_ContextInfo_mctx___default___closed__5;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_instInhabitedContextInfo___closed__10() {
|
||||
|
|
|
|||
7
stage0/stdlib/Lean/Elab/LetRec.c
generated
7
stage0/stdlib/Lean/Elab/LetRec.c
generated
|
|
@ -225,7 +225,6 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Le
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___lambda__3___closed__4;
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___lambda__1___closed__7;
|
||||
|
|
@ -273,6 +272,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__13___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_appendTR___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___closed__6;
|
||||
|
|
@ -824,14 +824,13 @@ x_1 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_T
|
|||
x_2 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___closed__8;
|
||||
x_3 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___closed__9;
|
||||
x_4 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___closed__12;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -2297,7 +2296,7 @@ x_20 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mk
|
|||
x_21 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
|
|||
628
stage0/stdlib/Lean/Elab/Match.c
generated
628
stage0/stdlib/Lean/Elab/Match.c
generated
|
|
@ -140,6 +140,7 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lea
|
|||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__21;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__11(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withDepElimPatterns(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -213,7 +214,6 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3
|
|||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_containsFVar___spec__1(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* lean_string_append(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__2;
|
||||
lean_object* l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__6(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -361,6 +361,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Elab_Match_0_
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__5;
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -492,6 +493,7 @@ lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Offset_0__Lean_Met
|
|||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_applyRefMap___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___spec__1(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__9;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_Term_GeneralizeResult_refined___default;
|
||||
|
|
@ -623,6 +625,7 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMa
|
|||
static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__3;
|
||||
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -848,7 +851,6 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_ToDepElimPattern_main___spec__4___closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__5___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -920,7 +922,6 @@ lean_object* l_Lean_Meta_eraseInaccessibleAnnotations___lambda__1___boxed(lean_o
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch_docString(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_contains___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -975,7 +976,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatte
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_ToDepElimPattern_isExplicitPatternVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_normalize___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_Context_explicitPatternVars___default;
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withoutAuxDiscrs___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1041,6 +1041,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Match_0
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__9___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__13___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -1084,6 +1085,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch___lambda__3(lean_object*
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_checkCompatibleApps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(lean_object*, lean_object*);
|
||||
lean_object* l_runST___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrsWitMatchType___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -14980,6 +14982,22 @@ x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_e
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___spec__1___rarg), 8, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -15049,7 +15067,7 @@ _start:
|
|||
lean_object* x_9; lean_object* x_10;
|
||||
x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternElabConfig___rarg___lambda__1), 8, 1);
|
||||
lean_closure_set(x_9, 0, x_1);
|
||||
x_10 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_10 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
|
|
@ -22555,7 +22573,7 @@ x_125 = lean_ctor_get(x_122, 1);
|
|||
x_126 = lean_ctor_get(x_124, 1);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_124);
|
||||
x_127 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(x_126, x_111);
|
||||
x_127 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(x_126, x_111);
|
||||
lean_dec(x_126);
|
||||
if (lean_obj_tag(x_127) == 0)
|
||||
{
|
||||
|
|
@ -22696,7 +22714,7 @@ lean_dec(x_122);
|
|||
x_169 = lean_ctor_get(x_167, 1);
|
||||
lean_inc(x_169);
|
||||
lean_dec(x_167);
|
||||
x_170 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(x_169, x_111);
|
||||
x_170 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(x_169, x_111);
|
||||
lean_dec(x_169);
|
||||
if (lean_obj_tag(x_170) == 0)
|
||||
{
|
||||
|
|
@ -22887,7 +22905,7 @@ if (lean_is_exclusive(x_219)) {
|
|||
x_223 = lean_ctor_get(x_220, 1);
|
||||
lean_inc(x_223);
|
||||
lean_dec(x_220);
|
||||
x_224 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(x_223, x_111);
|
||||
x_224 = l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(x_223, x_111);
|
||||
lean_dec(x_223);
|
||||
if (lean_obj_tag(x_224) == 0)
|
||||
{
|
||||
|
|
@ -28584,7 +28602,7 @@ else
|
|||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
lean_inc(x_2);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(x_2, x_3);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(x_2, x_3);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
|
|
@ -29312,7 +29330,7 @@ else
|
|||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
lean_inc(x_2);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(x_2, x_3);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(x_2, x_3);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
|
|
@ -29612,7 +29630,7 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_114; lean_object* x_115; uint8_t x_116;
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_10 = lean_st_ref_get(x_8, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_11);
|
||||
|
|
@ -29626,235 +29644,170 @@ lean_dec(x_12);
|
|||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
x_114 = l_Lean_exprDependsOn___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__1___closed__1;
|
||||
x_115 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_115, 0, x_114);
|
||||
lean_ctor_set(x_115, 1, x_15);
|
||||
x_116 = l_Lean_Expr_hasFVar(x_1);
|
||||
if (x_116 == 0)
|
||||
x_16 = l_Lean_exprDependsOn___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__1___closed__1;
|
||||
lean_inc(x_15);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
x_18 = l_Lean_Expr_hasFVar(x_1);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
uint8_t x_117;
|
||||
x_117 = l_Lean_Expr_hasMVar(x_1);
|
||||
if (x_117 == 0)
|
||||
uint8_t x_19;
|
||||
x_19 = l_Lean_Expr_hasMVar(x_1);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
uint8_t x_118;
|
||||
lean_dec(x_1);
|
||||
x_118 = 0;
|
||||
x_16 = x_118;
|
||||
x_17 = x_115;
|
||||
goto block_113;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122;
|
||||
x_119 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__2(x_2, x_1, x_115);
|
||||
x_120 = lean_ctor_get(x_119, 0);
|
||||
lean_inc(x_120);
|
||||
x_121 = lean_ctor_get(x_119, 1);
|
||||
lean_inc(x_121);
|
||||
lean_dec(x_119);
|
||||
x_122 = lean_unbox(x_120);
|
||||
lean_dec(x_120);
|
||||
x_16 = x_122;
|
||||
x_17 = x_121;
|
||||
goto block_113;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126;
|
||||
x_123 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__10(x_2, x_1, x_115);
|
||||
x_124 = lean_ctor_get(x_123, 0);
|
||||
lean_inc(x_124);
|
||||
x_125 = lean_ctor_get(x_123, 1);
|
||||
lean_inc(x_125);
|
||||
lean_dec(x_123);
|
||||
x_126 = lean_unbox(x_124);
|
||||
lean_dec(x_124);
|
||||
x_16 = x_126;
|
||||
x_17 = x_125;
|
||||
goto block_113;
|
||||
}
|
||||
block_113:
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25;
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_st_ref_get(x_8, x_14);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = lean_st_ref_take(x_6, x_20);
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get_uint8(x_18, sizeof(void*)*8);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34;
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_dec(x_1);
|
||||
x_20 = lean_st_ref_get(x_8, x_14);
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = lean_st_ref_take(x_6, x_21);
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_21);
|
||||
x_26 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_27);
|
||||
x_28 = lean_ctor_get(x_18, 2);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_18, 3);
|
||||
lean_inc(x_29);
|
||||
x_30 = lean_ctor_get(x_18, 4);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_18, 5);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_18, 6);
|
||||
lean_dec(x_22);
|
||||
x_25 = !lean_is_exclusive(x_23);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_26 = lean_ctor_get(x_23, 0);
|
||||
lean_dec(x_26);
|
||||
lean_ctor_set(x_23, 0, x_15);
|
||||
x_27 = lean_st_ref_set(x_6, x_23, x_24);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; uint8_t x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
lean_dec(x_29);
|
||||
x_30 = 0;
|
||||
x_31 = lean_box(x_30);
|
||||
lean_ctor_set(x_27, 0, x_31);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_32 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_18, 7);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_18);
|
||||
x_34 = !lean_is_exclusive(x_22);
|
||||
if (x_34 == 0)
|
||||
lean_dec(x_27);
|
||||
x_33 = 0;
|
||||
x_34 = lean_box(x_33);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_32);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; uint8_t x_36;
|
||||
x_35 = lean_ctor_get(x_22, 0);
|
||||
lean_dec(x_35);
|
||||
x_36 = !lean_is_exclusive(x_24);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46;
|
||||
x_37 = lean_ctor_get(x_24, 7);
|
||||
lean_dec(x_37);
|
||||
x_38 = lean_ctor_get(x_24, 6);
|
||||
lean_dec(x_38);
|
||||
x_39 = lean_ctor_get(x_24, 5);
|
||||
lean_dec(x_39);
|
||||
x_40 = lean_ctor_get(x_24, 4);
|
||||
lean_dec(x_40);
|
||||
x_41 = lean_ctor_get(x_24, 3);
|
||||
lean_dec(x_41);
|
||||
x_42 = lean_ctor_get(x_24, 2);
|
||||
lean_dec(x_42);
|
||||
x_43 = lean_ctor_get(x_24, 1);
|
||||
lean_dec(x_43);
|
||||
x_44 = lean_ctor_get(x_24, 0);
|
||||
lean_dec(x_44);
|
||||
lean_ctor_set(x_24, 7, x_33);
|
||||
lean_ctor_set(x_24, 6, x_32);
|
||||
lean_ctor_set(x_24, 5, x_31);
|
||||
lean_ctor_set(x_24, 4, x_30);
|
||||
lean_ctor_set(x_24, 3, x_29);
|
||||
lean_ctor_set(x_24, 2, x_28);
|
||||
lean_ctor_set(x_24, 1, x_27);
|
||||
lean_ctor_set(x_24, 0, x_26);
|
||||
x_45 = lean_st_ref_set(x_6, x_22, x_25);
|
||||
x_46 = !lean_is_exclusive(x_45);
|
||||
if (x_46 == 0)
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48;
|
||||
x_47 = lean_ctor_get(x_45, 0);
|
||||
lean_dec(x_47);
|
||||
x_48 = lean_box(x_16);
|
||||
lean_ctor_set(x_45, 0, x_48);
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45;
|
||||
x_36 = lean_ctor_get(x_23, 1);
|
||||
x_37 = lean_ctor_get(x_23, 2);
|
||||
x_38 = lean_ctor_get(x_23, 3);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_23);
|
||||
x_39 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_39, 0, x_15);
|
||||
lean_ctor_set(x_39, 1, x_36);
|
||||
lean_ctor_set(x_39, 2, x_37);
|
||||
lean_ctor_set(x_39, 3, x_38);
|
||||
x_40 = lean_st_ref_set(x_6, x_39, x_24);
|
||||
x_41 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_41);
|
||||
if (lean_is_exclusive(x_40)) {
|
||||
lean_ctor_release(x_40, 0);
|
||||
lean_ctor_release(x_40, 1);
|
||||
x_42 = x_40;
|
||||
} else {
|
||||
lean_dec_ref(x_40);
|
||||
x_42 = lean_box(0);
|
||||
}
|
||||
x_43 = 0;
|
||||
x_44 = lean_box(x_43);
|
||||
if (lean_is_scalar(x_42)) {
|
||||
x_45 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_45 = x_42;
|
||||
}
|
||||
lean_ctor_set(x_45, 0, x_44);
|
||||
lean_ctor_set(x_45, 1, x_41);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_45, 1);
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
lean_dec(x_15);
|
||||
x_46 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__2(x_2, x_1, x_17);
|
||||
x_47 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_46);
|
||||
x_49 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_45);
|
||||
x_50 = lean_box(x_16);
|
||||
x_51 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
return x_51;
|
||||
}
|
||||
lean_dec(x_47);
|
||||
x_50 = lean_st_ref_get(x_8, x_14);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = lean_st_ref_take(x_6, x_51);
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
x_55 = !lean_is_exclusive(x_53);
|
||||
if (x_55 == 0)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; uint8_t x_58;
|
||||
x_56 = lean_ctor_get(x_53, 0);
|
||||
lean_dec(x_56);
|
||||
lean_ctor_set(x_53, 0, x_49);
|
||||
x_57 = lean_st_ref_set(x_6, x_53, x_54);
|
||||
x_58 = !lean_is_exclusive(x_57);
|
||||
if (x_58 == 0)
|
||||
{
|
||||
lean_object* x_59;
|
||||
x_59 = lean_ctor_get(x_57, 0);
|
||||
lean_dec(x_59);
|
||||
lean_ctor_set(x_57, 0, x_48);
|
||||
return x_57;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_52 = lean_ctor_get_uint8(x_24, sizeof(void*)*8);
|
||||
lean_dec(x_24);
|
||||
x_53 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_53, 0, x_26);
|
||||
lean_ctor_set(x_53, 1, x_27);
|
||||
lean_ctor_set(x_53, 2, x_28);
|
||||
lean_ctor_set(x_53, 3, x_29);
|
||||
lean_ctor_set(x_53, 4, x_30);
|
||||
lean_ctor_set(x_53, 5, x_31);
|
||||
lean_ctor_set(x_53, 6, x_32);
|
||||
lean_ctor_set(x_53, 7, x_33);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_52);
|
||||
lean_ctor_set(x_22, 0, x_53);
|
||||
x_54 = lean_st_ref_set(x_6, x_22, x_25);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
if (lean_is_exclusive(x_54)) {
|
||||
lean_ctor_release(x_54, 0);
|
||||
lean_ctor_release(x_54, 1);
|
||||
x_56 = x_54;
|
||||
} else {
|
||||
lean_dec_ref(x_54);
|
||||
x_56 = lean_box(0);
|
||||
}
|
||||
x_57 = lean_box(x_16);
|
||||
if (lean_is_scalar(x_56)) {
|
||||
x_58 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_58 = x_56;
|
||||
}
|
||||
lean_ctor_set(x_58, 0, x_57);
|
||||
lean_ctor_set(x_58, 1, x_55);
|
||||
return x_58;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_59 = lean_ctor_get(x_22, 1);
|
||||
x_60 = lean_ctor_get(x_22, 2);
|
||||
x_61 = lean_ctor_get(x_22, 3);
|
||||
lean_inc(x_61);
|
||||
lean_object* x_60; lean_object* x_61;
|
||||
x_60 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_60);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_22);
|
||||
x_62 = lean_ctor_get_uint8(x_24, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_24)) {
|
||||
lean_ctor_release(x_24, 0);
|
||||
lean_ctor_release(x_24, 1);
|
||||
lean_ctor_release(x_24, 2);
|
||||
lean_ctor_release(x_24, 3);
|
||||
lean_ctor_release(x_24, 4);
|
||||
lean_ctor_release(x_24, 5);
|
||||
lean_ctor_release(x_24, 6);
|
||||
lean_ctor_release(x_24, 7);
|
||||
x_63 = x_24;
|
||||
} else {
|
||||
lean_dec_ref(x_24);
|
||||
x_63 = lean_box(0);
|
||||
lean_dec(x_57);
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_48);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
return x_61;
|
||||
}
|
||||
if (lean_is_scalar(x_63)) {
|
||||
x_64 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_64 = x_63;
|
||||
}
|
||||
lean_ctor_set(x_64, 0, x_26);
|
||||
lean_ctor_set(x_64, 1, x_27);
|
||||
lean_ctor_set(x_64, 2, x_28);
|
||||
lean_ctor_set(x_64, 3, x_29);
|
||||
lean_ctor_set(x_64, 4, x_30);
|
||||
lean_ctor_set(x_64, 5, x_31);
|
||||
lean_ctor_set(x_64, 6, x_32);
|
||||
lean_ctor_set(x_64, 7, x_33);
|
||||
lean_ctor_set_uint8(x_64, sizeof(void*)*8, x_62);
|
||||
else
|
||||
{
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69;
|
||||
x_62 = lean_ctor_get(x_53, 1);
|
||||
x_63 = lean_ctor_get(x_53, 2);
|
||||
x_64 = lean_ctor_get(x_53, 3);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_53);
|
||||
x_65 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_65, 0, x_64);
|
||||
lean_ctor_set(x_65, 1, x_59);
|
||||
lean_ctor_set(x_65, 2, x_60);
|
||||
lean_ctor_set(x_65, 3, x_61);
|
||||
x_66 = lean_st_ref_set(x_6, x_65, x_25);
|
||||
lean_ctor_set(x_65, 0, x_49);
|
||||
lean_ctor_set(x_65, 1, x_62);
|
||||
lean_ctor_set(x_65, 2, x_63);
|
||||
lean_ctor_set(x_65, 3, x_64);
|
||||
x_66 = lean_st_ref_set(x_6, x_65, x_54);
|
||||
x_67 = lean_ctor_get(x_66, 1);
|
||||
lean_inc(x_67);
|
||||
if (lean_is_exclusive(x_66)) {
|
||||
|
|
@ -29865,176 +29818,103 @@ if (lean_is_exclusive(x_66)) {
|
|||
lean_dec_ref(x_66);
|
||||
x_68 = lean_box(0);
|
||||
}
|
||||
x_69 = lean_box(x_16);
|
||||
if (lean_is_scalar(x_68)) {
|
||||
x_70 = lean_alloc_ctor(0, 2, 0);
|
||||
x_69 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_70 = x_68;
|
||||
x_69 = x_68;
|
||||
}
|
||||
lean_ctor_set(x_69, 0, x_48);
|
||||
lean_ctor_set(x_69, 1, x_67);
|
||||
return x_69;
|
||||
}
|
||||
lean_ctor_set(x_70, 0, x_69);
|
||||
lean_ctor_set(x_70, 1, x_67);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_71; uint8_t x_72;
|
||||
x_71 = lean_ctor_get(x_21, 1);
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79;
|
||||
lean_dec(x_15);
|
||||
x_70 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__10(x_2, x_1, x_17);
|
||||
x_71 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_71);
|
||||
lean_dec(x_21);
|
||||
x_72 = !lean_is_exclusive(x_18);
|
||||
if (x_72 == 0)
|
||||
{
|
||||
uint8_t x_73;
|
||||
x_73 = !lean_is_exclusive(x_22);
|
||||
if (x_73 == 0)
|
||||
{
|
||||
lean_object* x_74; uint8_t x_75; lean_object* x_76; uint8_t x_77;
|
||||
x_74 = lean_ctor_get(x_22, 0);
|
||||
x_72 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_70);
|
||||
x_73 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_71);
|
||||
x_74 = lean_st_ref_get(x_8, x_14);
|
||||
x_75 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_75);
|
||||
lean_dec(x_74);
|
||||
x_75 = 1;
|
||||
lean_ctor_set_uint8(x_18, sizeof(void*)*8, x_75);
|
||||
lean_ctor_set(x_22, 0, x_18);
|
||||
x_76 = lean_st_ref_set(x_6, x_22, x_71);
|
||||
x_77 = !lean_is_exclusive(x_76);
|
||||
if (x_77 == 0)
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79;
|
||||
x_78 = lean_ctor_get(x_76, 0);
|
||||
lean_dec(x_78);
|
||||
x_79 = lean_box(x_16);
|
||||
lean_ctor_set(x_76, 0, x_79);
|
||||
return x_76;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82;
|
||||
x_80 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_80);
|
||||
x_76 = lean_st_ref_take(x_6, x_75);
|
||||
x_77 = lean_ctor_get(x_76, 0);
|
||||
lean_inc(x_77);
|
||||
x_78 = lean_ctor_get(x_76, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_76);
|
||||
x_81 = lean_box(x_16);
|
||||
x_82 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_81);
|
||||
lean_ctor_set(x_82, 1, x_80);
|
||||
return x_82;
|
||||
}
|
||||
x_79 = !lean_is_exclusive(x_77);
|
||||
if (x_79 == 0)
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; uint8_t x_82;
|
||||
x_80 = lean_ctor_get(x_77, 0);
|
||||
lean_dec(x_80);
|
||||
lean_ctor_set(x_77, 0, x_73);
|
||||
x_81 = lean_st_ref_set(x_6, x_77, x_78);
|
||||
x_82 = !lean_is_exclusive(x_81);
|
||||
if (x_82 == 0)
|
||||
{
|
||||
lean_object* x_83;
|
||||
x_83 = lean_ctor_get(x_81, 0);
|
||||
lean_dec(x_83);
|
||||
lean_ctor_set(x_81, 0, x_72);
|
||||
return x_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_83 = lean_ctor_get(x_22, 1);
|
||||
x_84 = lean_ctor_get(x_22, 2);
|
||||
x_85 = lean_ctor_get(x_22, 3);
|
||||
lean_inc(x_85);
|
||||
lean_object* x_84; lean_object* x_85;
|
||||
x_84 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_22);
|
||||
x_86 = 1;
|
||||
lean_ctor_set_uint8(x_18, sizeof(void*)*8, x_86);
|
||||
x_87 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_87, 0, x_18);
|
||||
lean_ctor_set(x_87, 1, x_83);
|
||||
lean_ctor_set(x_87, 2, x_84);
|
||||
lean_ctor_set(x_87, 3, x_85);
|
||||
x_88 = lean_st_ref_set(x_6, x_87, x_71);
|
||||
x_89 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_89);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_90 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_90 = lean_box(0);
|
||||
}
|
||||
x_91 = lean_box(x_16);
|
||||
if (lean_is_scalar(x_90)) {
|
||||
x_92 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_92 = x_90;
|
||||
}
|
||||
lean_ctor_set(x_92, 0, x_91);
|
||||
lean_ctor_set(x_92, 1, x_89);
|
||||
return x_92;
|
||||
lean_dec(x_81);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_72);
|
||||
lean_ctor_set(x_85, 1, x_84);
|
||||
return x_85;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112;
|
||||
x_93 = lean_ctor_get(x_18, 0);
|
||||
x_94 = lean_ctor_get(x_18, 1);
|
||||
x_95 = lean_ctor_get(x_18, 2);
|
||||
x_96 = lean_ctor_get(x_18, 3);
|
||||
x_97 = lean_ctor_get(x_18, 4);
|
||||
x_98 = lean_ctor_get(x_18, 5);
|
||||
x_99 = lean_ctor_get(x_18, 6);
|
||||
x_100 = lean_ctor_get(x_18, 7);
|
||||
lean_inc(x_100);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_97);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_18);
|
||||
x_101 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_22, 2);
|
||||
lean_inc(x_102);
|
||||
x_103 = lean_ctor_get(x_22, 3);
|
||||
lean_inc(x_103);
|
||||
if (lean_is_exclusive(x_22)) {
|
||||
lean_ctor_release(x_22, 0);
|
||||
lean_ctor_release(x_22, 1);
|
||||
lean_ctor_release(x_22, 2);
|
||||
lean_ctor_release(x_22, 3);
|
||||
x_104 = x_22;
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_86 = lean_ctor_get(x_77, 1);
|
||||
x_87 = lean_ctor_get(x_77, 2);
|
||||
x_88 = lean_ctor_get(x_77, 3);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_77);
|
||||
x_89 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_89, 0, x_73);
|
||||
lean_ctor_set(x_89, 1, x_86);
|
||||
lean_ctor_set(x_89, 2, x_87);
|
||||
lean_ctor_set(x_89, 3, x_88);
|
||||
x_90 = lean_st_ref_set(x_6, x_89, x_78);
|
||||
x_91 = lean_ctor_get(x_90, 1);
|
||||
lean_inc(x_91);
|
||||
if (lean_is_exclusive(x_90)) {
|
||||
lean_ctor_release(x_90, 0);
|
||||
lean_ctor_release(x_90, 1);
|
||||
x_92 = x_90;
|
||||
} else {
|
||||
lean_dec_ref(x_22);
|
||||
x_104 = lean_box(0);
|
||||
lean_dec_ref(x_90);
|
||||
x_92 = lean_box(0);
|
||||
}
|
||||
x_105 = 1;
|
||||
x_106 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_106, 0, x_93);
|
||||
lean_ctor_set(x_106, 1, x_94);
|
||||
lean_ctor_set(x_106, 2, x_95);
|
||||
lean_ctor_set(x_106, 3, x_96);
|
||||
lean_ctor_set(x_106, 4, x_97);
|
||||
lean_ctor_set(x_106, 5, x_98);
|
||||
lean_ctor_set(x_106, 6, x_99);
|
||||
lean_ctor_set(x_106, 7, x_100);
|
||||
lean_ctor_set_uint8(x_106, sizeof(void*)*8, x_105);
|
||||
if (lean_is_scalar(x_104)) {
|
||||
x_107 = lean_alloc_ctor(0, 4, 0);
|
||||
if (lean_is_scalar(x_92)) {
|
||||
x_93 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_107 = x_104;
|
||||
}
|
||||
lean_ctor_set(x_107, 0, x_106);
|
||||
lean_ctor_set(x_107, 1, x_101);
|
||||
lean_ctor_set(x_107, 2, x_102);
|
||||
lean_ctor_set(x_107, 3, x_103);
|
||||
x_108 = lean_st_ref_set(x_6, x_107, x_71);
|
||||
x_109 = lean_ctor_get(x_108, 1);
|
||||
lean_inc(x_109);
|
||||
if (lean_is_exclusive(x_108)) {
|
||||
lean_ctor_release(x_108, 0);
|
||||
lean_ctor_release(x_108, 1);
|
||||
x_110 = x_108;
|
||||
} else {
|
||||
lean_dec_ref(x_108);
|
||||
x_110 = lean_box(0);
|
||||
}
|
||||
x_111 = lean_box(x_16);
|
||||
if (lean_is_scalar(x_110)) {
|
||||
x_112 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_112 = x_110;
|
||||
}
|
||||
lean_ctor_set(x_112, 0, x_111);
|
||||
lean_ctor_set(x_112, 1, x_109);
|
||||
return x_112;
|
||||
x_93 = x_92;
|
||||
}
|
||||
lean_ctor_set(x_93, 0, x_72);
|
||||
lean_ctor_set(x_93, 1, x_91);
|
||||
return x_93;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -32974,7 +32854,7 @@ x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term
|
|||
x_39 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
x_40 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_35);
|
||||
x_40 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_35);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -33130,7 +33010,7 @@ x_73 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term
|
|||
x_74 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_74, 0, x_72);
|
||||
lean_ctor_set(x_74, 1, x_73);
|
||||
x_75 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_74, x_10, x_11, x_12, x_13, x_14, x_15, x_70);
|
||||
x_75 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_74, x_10, x_11, x_12, x_13, x_14, x_15, x_70);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -42710,7 +42590,7 @@ lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
|||
lean_dec(x_13);
|
||||
lean_dec(x_1);
|
||||
x_19 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__2;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -43300,7 +43180,7 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_19 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__2___closed__2;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_19, x_1, x_2, x_3, x_4, x_11, x_12, x_16);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_1, x_2, x_3, x_4, x_11, x_12, x_16);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_4);
|
||||
|
|
|
|||
31
stage0/stdlib/Lean/Elab/MutualDef.c
generated
31
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -45,7 +45,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualD
|
|||
lean_object* lean_erase_macro_scopes(lean_object*);
|
||||
lean_object* l_Lean_CollectMVars_visit(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -579,6 +578,7 @@ lean_object* l_Lean_Expr_bvar___override(lean_object*);
|
|||
static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_resetZetaFVarIds___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -789,7 +789,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls
|
|||
static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__8___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__9(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -973,6 +972,7 @@ static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualD
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_checkForHiddenUnivLevels___spec__2___closed__1;
|
||||
|
|
@ -1231,7 +1231,7 @@ block_18:
|
|||
lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
lean_dec(x_11);
|
||||
x_12 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2;
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
@ -1328,7 +1328,7 @@ block_17:
|
|||
lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
lean_dec(x_10);
|
||||
x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__2;
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -1533,7 +1533,7 @@ block_17:
|
|||
lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
lean_dec(x_10);
|
||||
x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___closed__2;
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_12 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -1748,7 +1748,7 @@ if (x_20 == 0)
|
|||
lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
lean_dec(x_16);
|
||||
x_21 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__2;
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1988,7 +1988,7 @@ else
|
|||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2;
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2062,7 +2062,7 @@ else
|
|||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__2;
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2136,7 +2136,7 @@ else
|
|||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2;
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2211,7 +2211,7 @@ else
|
|||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2286,7 +2286,7 @@ else
|
|||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -2360,7 +2360,7 @@ else
|
|||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2;
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -3611,14 +3611,13 @@ x_1 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Ela
|
|||
x_2 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__8;
|
||||
x_3 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__9;
|
||||
x_4 = l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__12;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -34691,7 +34690,7 @@ x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabMutualDef_processDeri
|
|||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
|
|
@ -38160,7 +38159,7 @@ lean_dec(x_18);
|
|||
lean_dec(x_12);
|
||||
lean_dec(x_9);
|
||||
x_26 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__3;
|
||||
x_27 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__2(x_16, x_26, x_2, x_3, x_17);
|
||||
x_27 = l_Lean_throwErrorAt___at_Lean_Elab_Command_mkInstanceName___spec__3(x_16, x_26, x_2, x_3, x_17);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
3
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
|
|
@ -3297,14 +3297,13 @@ x_1 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lamb
|
|||
x_2 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__9;
|
||||
x_3 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__10;
|
||||
x_4 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__13;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
151
stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c
generated
151
stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c
generated
|
|
@ -43,6 +43,7 @@ static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__2;
|
|||
uint8_t l_Lean_Expr_isMData(lean_object*);
|
||||
extern lean_object* l_Lean_Meta_tactic_hygienic;
|
||||
lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__22(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__19(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
|
|
@ -50,13 +51,11 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___s
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_shouldUseSimpMatch___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1;
|
||||
lean_object* l_Lean_Meta_isMatcherAppCore_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Eqns_mkUnfoldProof___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_whnfReducibleLHS_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2;
|
||||
static lean_object* l_Lean_Elab_Eqns_simpEqnType_collect___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_whnfAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -210,7 +209,6 @@ LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentA
|
|||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpIf_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_collectDeps___spec__2(lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
|
|
@ -226,11 +224,12 @@ lean_object* l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(lean_obje
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_shouldUseSimpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_isIrrelevant___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___at_Lean_Elab_Eqns_simpEqnType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421_(lean_object*);
|
||||
static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_pushDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -272,6 +271,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default;
|
|||
static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__3;
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1;
|
||||
extern lean_object* l_Lean_Expr_instHashableExpr;
|
||||
static lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__6;
|
||||
static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__4;
|
||||
|
|
@ -288,6 +288,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnus
|
|||
uint8_t l_Std_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_splitMatch_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_shift_left(size_t, size_t);
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType_collect___lambda__2(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_apply(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -305,7 +306,6 @@ static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___lambda__1___closed__2;
|
|||
static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__1;
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
|
|
@ -462,6 +462,7 @@ lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__3___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__7;
|
||||
lean_object* l_Lean_MVarId_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__24(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*);
|
||||
|
|
@ -508,7 +509,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDe
|
|||
lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__3___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_unfoldEqnExt;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -948,6 +948,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
@ -1043,6 +1044,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
|
|
@ -1170,6 +1172,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_47 = !lean_is_exclusive(x_46);
|
||||
if (x_47 == 0)
|
||||
{
|
||||
|
|
@ -1222,6 +1225,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_56 = !lean_is_exclusive(x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
|
|
@ -1260,6 +1264,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_63 = !lean_is_exclusive(x_62);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
|
|
@ -1293,6 +1298,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
|
|
@ -2954,7 +2960,7 @@ x_10 = 0;
|
|||
x_11 = l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(x_8, x_9, x_10);
|
||||
lean_ctor_set(x_4, 2, x_11);
|
||||
x_12 = l_Lean_Elab_Eqns_tryURefl___closed__3;
|
||||
x_13 = l_Lean_Meta_applyRefl(x_1, x_12, x_2, x_3, x_4, x_5, x_6);
|
||||
x_13 = l_Lean_MVarId_applyRefl(x_1, x_12, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
uint8_t x_14;
|
||||
|
|
@ -3053,7 +3059,7 @@ lean_ctor_set(x_42, 8, x_36);
|
|||
lean_ctor_set(x_42, 9, x_37);
|
||||
lean_ctor_set(x_42, 10, x_38);
|
||||
x_43 = l_Lean_Elab_Eqns_tryURefl___closed__3;
|
||||
x_44 = l_Lean_Meta_applyRefl(x_1, x_43, x_2, x_3, x_42, x_5, x_6);
|
||||
x_44 = l_Lean_MVarId_applyRefl(x_1, x_43, x_2, x_3, x_42, x_5, x_6);
|
||||
if (lean_obj_tag(x_44) == 0)
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49;
|
||||
|
|
@ -21047,65 +21053,9 @@ _start:
|
|||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = l_Lean_Elab_Eqns_tryContradiction___closed__1;
|
||||
x_8 = l_Lean_Meta_contradiction(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = !lean_is_exclusive(x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11; lean_object* x_12;
|
||||
x_10 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_10);
|
||||
x_11 = 1;
|
||||
x_12 = lean_box(x_11);
|
||||
lean_ctor_set(x_8, 0, x_12);
|
||||
x_8 = l_Lean_MVarId_contradictionCore(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_13 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_8);
|
||||
x_14 = 1;
|
||||
x_15 = lean_box(x_14);
|
||||
x_16 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_15);
|
||||
lean_ctor_set(x_16, 1, x_13);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_17;
|
||||
x_17 = !lean_is_exclusive(x_8);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18; uint8_t x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_18);
|
||||
x_19 = 0;
|
||||
x_20 = lean_box(x_19);
|
||||
lean_ctor_set_tag(x_8, 0);
|
||||
lean_ctor_set(x_8, 0, x_20);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_21 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_8);
|
||||
x_22 = 0;
|
||||
x_23 = lean_box(x_22);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_21);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default___closed__1() {
|
||||
_start:
|
||||
|
|
@ -21135,7 +21085,7 @@ x_1 = l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default___closed__1;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -21145,11 +21095,11 @@ lean_closure_set(x_2, 0, x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1;
|
||||
x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -21293,7 +21243,7 @@ return x_18;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
lean_object* x_9;
|
||||
lean_dec(x_3);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
|
|
@ -21301,6 +21251,9 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_9 = l_Lean_Elab_Eqns_tryContradiction(x_1, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_unbox(x_10);
|
||||
|
|
@ -21352,6 +21305,35 @@ return x_20;
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_21 = !lean_is_exclusive(x_9);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_9, 0);
|
||||
x_23 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_9);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
|
|
@ -23550,14 +23532,13 @@ x_1 = l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__3;
|
|||
x_2 = l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__5;
|
||||
x_3 = l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__6;
|
||||
x_4 = l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__9;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -24322,7 +24303,7 @@ x_8 = l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___s
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -24330,21 +24311,21 @@ x_1 = lean_mk_string_from_bytes("unfoldEqn", 9);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__4;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2;
|
||||
x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
|
|
@ -24587,9 +24568,9 @@ l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default = _init_l_Lean_Elab_Eqns_Unfold
|
|||
lean_mark_persistent(l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default);
|
||||
l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState = _init_l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState);
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466____closed__1);
|
||||
if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5466_(lean_io_mk_world());
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421____closed__1);
|
||||
if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_5421_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Elab_Eqns_unfoldEqnExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_unfoldEqnExt);
|
||||
|
|
@ -24640,11 +24621,11 @@ l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__9 = _init_l_Lean_Elab_Eqns_getUnfold
|
|||
lean_mark_persistent(l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__9);
|
||||
l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__10 = _init_l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__10();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__10);
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__1);
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539____closed__2);
|
||||
res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6539_(lean_io_mk_world());
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__1);
|
||||
l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494____closed__2);
|
||||
res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6494_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
727
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
727
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
|
|
@ -6985,432 +6985,178 @@ goto block_19;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75;
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40;
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_32);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
lean_ctor_release(x_30, 1);
|
||||
x_33 = x_30;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_33 = lean_box(0);
|
||||
}
|
||||
x_69 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_23, x_5, x_6, x_7, x_8, x_32);
|
||||
x_70 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_69);
|
||||
x_71 = lean_st_ref_get(x_8, x_70);
|
||||
x_72 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_71);
|
||||
x_73 = lean_st_ref_take(x_6, x_72);
|
||||
x_74 = lean_ctor_get(x_73, 0);
|
||||
lean_inc(x_74);
|
||||
x_75 = lean_ctor_get_uint8(x_29, sizeof(void*)*8);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86;
|
||||
x_76 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_76);
|
||||
x_77 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_77);
|
||||
lean_dec(x_73);
|
||||
x_78 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_78);
|
||||
x_79 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_79);
|
||||
x_80 = lean_ctor_get(x_29, 2);
|
||||
lean_inc(x_80);
|
||||
x_81 = lean_ctor_get(x_29, 3);
|
||||
lean_inc(x_81);
|
||||
x_82 = lean_ctor_get(x_29, 4);
|
||||
lean_inc(x_82);
|
||||
x_83 = lean_ctor_get(x_29, 5);
|
||||
lean_inc(x_83);
|
||||
x_84 = lean_ctor_get(x_29, 6);
|
||||
lean_inc(x_84);
|
||||
x_85 = lean_ctor_get(x_29, 7);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_29);
|
||||
x_86 = !lean_is_exclusive(x_74);
|
||||
if (x_86 == 0)
|
||||
{
|
||||
lean_object* x_87; uint8_t x_88;
|
||||
x_87 = lean_ctor_get(x_74, 0);
|
||||
lean_dec(x_87);
|
||||
x_88 = !lean_is_exclusive(x_76);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98;
|
||||
x_89 = lean_ctor_get(x_76, 7);
|
||||
lean_dec(x_89);
|
||||
x_90 = lean_ctor_get(x_76, 6);
|
||||
lean_dec(x_90);
|
||||
x_91 = lean_ctor_get(x_76, 5);
|
||||
lean_dec(x_91);
|
||||
x_92 = lean_ctor_get(x_76, 4);
|
||||
lean_dec(x_92);
|
||||
x_93 = lean_ctor_get(x_76, 3);
|
||||
lean_dec(x_93);
|
||||
x_94 = lean_ctor_get(x_76, 2);
|
||||
lean_dec(x_94);
|
||||
x_95 = lean_ctor_get(x_76, 1);
|
||||
lean_dec(x_95);
|
||||
x_96 = lean_ctor_get(x_76, 0);
|
||||
lean_dec(x_96);
|
||||
lean_ctor_set(x_76, 7, x_85);
|
||||
lean_ctor_set(x_76, 6, x_84);
|
||||
lean_ctor_set(x_76, 5, x_83);
|
||||
lean_ctor_set(x_76, 4, x_82);
|
||||
lean_ctor_set(x_76, 3, x_81);
|
||||
lean_ctor_set(x_76, 2, x_80);
|
||||
lean_ctor_set(x_76, 1, x_79);
|
||||
lean_ctor_set(x_76, 0, x_78);
|
||||
x_97 = lean_st_ref_set(x_6, x_74, x_77);
|
||||
x_98 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_98);
|
||||
lean_dec(x_97);
|
||||
x_34 = x_98;
|
||||
goto block_68;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102;
|
||||
x_99 = lean_ctor_get_uint8(x_76, sizeof(void*)*8);
|
||||
lean_dec(x_76);
|
||||
x_100 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_100, 0, x_78);
|
||||
lean_ctor_set(x_100, 1, x_79);
|
||||
lean_ctor_set(x_100, 2, x_80);
|
||||
lean_ctor_set(x_100, 3, x_81);
|
||||
lean_ctor_set(x_100, 4, x_82);
|
||||
lean_ctor_set(x_100, 5, x_83);
|
||||
lean_ctor_set(x_100, 6, x_84);
|
||||
lean_ctor_set(x_100, 7, x_85);
|
||||
lean_ctor_set_uint8(x_100, sizeof(void*)*8, x_99);
|
||||
lean_ctor_set(x_74, 0, x_100);
|
||||
x_101 = lean_st_ref_set(x_6, x_74, x_77);
|
||||
x_102 = lean_ctor_get(x_101, 1);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_101);
|
||||
x_34 = x_102;
|
||||
goto block_68;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111;
|
||||
x_103 = lean_ctor_get(x_74, 1);
|
||||
x_104 = lean_ctor_get(x_74, 2);
|
||||
x_105 = lean_ctor_get(x_74, 3);
|
||||
lean_inc(x_105);
|
||||
lean_inc(x_104);
|
||||
lean_inc(x_103);
|
||||
lean_dec(x_74);
|
||||
x_106 = lean_ctor_get_uint8(x_76, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_76)) {
|
||||
lean_ctor_release(x_76, 0);
|
||||
lean_ctor_release(x_76, 1);
|
||||
lean_ctor_release(x_76, 2);
|
||||
lean_ctor_release(x_76, 3);
|
||||
lean_ctor_release(x_76, 4);
|
||||
lean_ctor_release(x_76, 5);
|
||||
lean_ctor_release(x_76, 6);
|
||||
lean_ctor_release(x_76, 7);
|
||||
x_107 = x_76;
|
||||
} else {
|
||||
lean_dec_ref(x_76);
|
||||
x_107 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_107)) {
|
||||
x_108 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_108 = x_107;
|
||||
}
|
||||
lean_ctor_set(x_108, 0, x_78);
|
||||
lean_ctor_set(x_108, 1, x_79);
|
||||
lean_ctor_set(x_108, 2, x_80);
|
||||
lean_ctor_set(x_108, 3, x_81);
|
||||
lean_ctor_set(x_108, 4, x_82);
|
||||
lean_ctor_set(x_108, 5, x_83);
|
||||
lean_ctor_set(x_108, 6, x_84);
|
||||
lean_ctor_set(x_108, 7, x_85);
|
||||
lean_ctor_set_uint8(x_108, sizeof(void*)*8, x_106);
|
||||
x_109 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_109, 0, x_108);
|
||||
lean_ctor_set(x_109, 1, x_103);
|
||||
lean_ctor_set(x_109, 2, x_104);
|
||||
lean_ctor_set(x_109, 3, x_105);
|
||||
x_110 = lean_st_ref_set(x_6, x_109, x_77);
|
||||
x_111 = lean_ctor_get(x_110, 1);
|
||||
lean_inc(x_111);
|
||||
lean_dec(x_110);
|
||||
x_34 = x_111;
|
||||
goto block_68;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_112; uint8_t x_113;
|
||||
x_112 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_112);
|
||||
lean_dec(x_73);
|
||||
x_113 = !lean_is_exclusive(x_29);
|
||||
if (x_113 == 0)
|
||||
{
|
||||
uint8_t x_114;
|
||||
x_114 = !lean_is_exclusive(x_74);
|
||||
if (x_114 == 0)
|
||||
{
|
||||
lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118;
|
||||
x_115 = lean_ctor_get(x_74, 0);
|
||||
lean_dec(x_115);
|
||||
x_116 = 1;
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*8, x_116);
|
||||
lean_ctor_set(x_74, 0, x_29);
|
||||
x_117 = lean_st_ref_set(x_6, x_74, x_112);
|
||||
x_118 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_118);
|
||||
lean_dec(x_117);
|
||||
x_34 = x_118;
|
||||
goto block_68;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125;
|
||||
x_119 = lean_ctor_get(x_74, 1);
|
||||
x_120 = lean_ctor_get(x_74, 2);
|
||||
x_121 = lean_ctor_get(x_74, 3);
|
||||
lean_inc(x_121);
|
||||
lean_inc(x_120);
|
||||
lean_inc(x_119);
|
||||
lean_dec(x_74);
|
||||
x_122 = 1;
|
||||
lean_ctor_set_uint8(x_29, sizeof(void*)*8, x_122);
|
||||
x_123 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_123, 0, x_29);
|
||||
lean_ctor_set(x_123, 1, x_119);
|
||||
lean_ctor_set(x_123, 2, x_120);
|
||||
lean_ctor_set(x_123, 3, x_121);
|
||||
x_124 = lean_st_ref_set(x_6, x_123, x_112);
|
||||
x_125 = lean_ctor_get(x_124, 1);
|
||||
lean_inc(x_125);
|
||||
lean_dec(x_124);
|
||||
x_34 = x_125;
|
||||
goto block_68;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142;
|
||||
x_126 = lean_ctor_get(x_29, 0);
|
||||
x_127 = lean_ctor_get(x_29, 1);
|
||||
x_128 = lean_ctor_get(x_29, 2);
|
||||
x_129 = lean_ctor_get(x_29, 3);
|
||||
x_130 = lean_ctor_get(x_29, 4);
|
||||
x_131 = lean_ctor_get(x_29, 5);
|
||||
x_132 = lean_ctor_get(x_29, 6);
|
||||
x_133 = lean_ctor_get(x_29, 7);
|
||||
lean_inc(x_133);
|
||||
lean_inc(x_132);
|
||||
lean_inc(x_131);
|
||||
lean_inc(x_130);
|
||||
lean_inc(x_129);
|
||||
lean_inc(x_128);
|
||||
lean_inc(x_127);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_29);
|
||||
x_134 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_134);
|
||||
x_135 = lean_ctor_get(x_74, 2);
|
||||
lean_inc(x_135);
|
||||
x_136 = lean_ctor_get(x_74, 3);
|
||||
lean_inc(x_136);
|
||||
if (lean_is_exclusive(x_74)) {
|
||||
lean_ctor_release(x_74, 0);
|
||||
lean_ctor_release(x_74, 1);
|
||||
lean_ctor_release(x_74, 2);
|
||||
lean_ctor_release(x_74, 3);
|
||||
x_137 = x_74;
|
||||
} else {
|
||||
lean_dec_ref(x_74);
|
||||
x_137 = lean_box(0);
|
||||
}
|
||||
x_138 = 1;
|
||||
x_139 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_139, 0, x_126);
|
||||
lean_ctor_set(x_139, 1, x_127);
|
||||
lean_ctor_set(x_139, 2, x_128);
|
||||
lean_ctor_set(x_139, 3, x_129);
|
||||
lean_ctor_set(x_139, 4, x_130);
|
||||
lean_ctor_set(x_139, 5, x_131);
|
||||
lean_ctor_set(x_139, 6, x_132);
|
||||
lean_ctor_set(x_139, 7, x_133);
|
||||
lean_ctor_set_uint8(x_139, sizeof(void*)*8, x_138);
|
||||
if (lean_is_scalar(x_137)) {
|
||||
x_140 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_140 = x_137;
|
||||
}
|
||||
lean_ctor_set(x_140, 0, x_139);
|
||||
lean_ctor_set(x_140, 1, x_134);
|
||||
lean_ctor_set(x_140, 2, x_135);
|
||||
lean_ctor_set(x_140, 3, x_136);
|
||||
x_141 = lean_st_ref_set(x_6, x_140, x_112);
|
||||
x_142 = lean_ctor_get(x_141, 1);
|
||||
lean_inc(x_142);
|
||||
lean_dec(x_141);
|
||||
x_34 = x_142;
|
||||
goto block_68;
|
||||
}
|
||||
}
|
||||
block_68:
|
||||
{
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
lean_dec(x_30);
|
||||
x_33 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_23, x_5, x_6, x_7, x_8, x_32);
|
||||
x_34 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
x_35 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_31, 1);
|
||||
x_35 = lean_st_ref_get(x_8, x_34);
|
||||
x_36 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_31);
|
||||
lean_inc(x_4);
|
||||
x_37 = l_Lean_Elab_wfRecursion(x_1, x_4, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_34);
|
||||
if (lean_obj_tag(x_37) == 0)
|
||||
{
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_35);
|
||||
x_10 = x_37;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38;
|
||||
x_37 = lean_st_ref_take(x_6, x_36);
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
if (lean_obj_tag(x_38) == 0)
|
||||
{
|
||||
uint8_t x_39;
|
||||
x_39 = !lean_is_exclusive(x_37);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40; uint8_t x_41;
|
||||
x_40 = lean_ctor_get(x_37, 0);
|
||||
lean_dec(x_40);
|
||||
x_41 = !lean_is_exclusive(x_38);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_42 = lean_ctor_get(x_38, 1);
|
||||
x_43 = lean_ctor_get(x_38, 0);
|
||||
lean_dec(x_43);
|
||||
x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_45 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_36);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
x_46 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
lean_ctor_set(x_46, 1, x_44);
|
||||
x_47 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_42);
|
||||
lean_ctor_set(x_38, 1, x_47);
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
x_10 = x_37;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53;
|
||||
x_48 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_38);
|
||||
x_49 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_50 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_36);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
x_51 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
x_52 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_52, 0, x_51);
|
||||
lean_ctor_set(x_52, 1, x_48);
|
||||
x_53 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_35);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
lean_ctor_set(x_37, 0, x_53);
|
||||
x_10 = x_37;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_54 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_54);
|
||||
x_39 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_37);
|
||||
x_55 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_55);
|
||||
if (lean_is_exclusive(x_38)) {
|
||||
lean_ctor_release(x_38, 0);
|
||||
lean_ctor_release(x_38, 1);
|
||||
x_56 = x_38;
|
||||
} else {
|
||||
lean_dec_ref(x_38);
|
||||
x_56 = lean_box(0);
|
||||
x_40 = !lean_is_exclusive(x_38);
|
||||
if (x_40 == 0)
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42;
|
||||
x_41 = lean_ctor_get(x_38, 0);
|
||||
lean_dec(x_41);
|
||||
lean_ctor_set(x_38, 0, x_29);
|
||||
x_42 = lean_st_ref_set(x_6, x_38, x_39);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_43 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_42);
|
||||
x_44 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_31);
|
||||
lean_inc(x_4);
|
||||
x_46 = l_Lean_Elab_wfRecursion(x_1, x_4, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_43);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
lean_dec(x_45);
|
||||
lean_dec(x_44);
|
||||
x_10 = x_46;
|
||||
goto block_19;
|
||||
}
|
||||
x_57 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_58 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_36);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
else
|
||||
{
|
||||
lean_object* x_47;
|
||||
x_47 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_47);
|
||||
if (lean_obj_tag(x_47) == 0)
|
||||
{
|
||||
uint8_t x_48;
|
||||
x_48 = !lean_is_exclusive(x_46);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
lean_object* x_49; uint8_t x_50;
|
||||
x_49 = lean_ctor_get(x_46, 0);
|
||||
lean_dec(x_49);
|
||||
x_50 = !lean_is_exclusive(x_47);
|
||||
if (x_50 == 0)
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_51 = lean_ctor_get(x_47, 1);
|
||||
x_52 = lean_ctor_get(x_47, 0);
|
||||
lean_dec(x_52);
|
||||
x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_54 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_54, 0, x_45);
|
||||
lean_ctor_set(x_54, 1, x_53);
|
||||
x_55 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
lean_ctor_set(x_55, 1, x_53);
|
||||
x_56 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_51);
|
||||
lean_ctor_set(x_47, 1, x_56);
|
||||
lean_ctor_set(x_47, 0, x_44);
|
||||
x_10 = x_46;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_57 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_47);
|
||||
x_58 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_59 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_58);
|
||||
lean_ctor_set(x_59, 1, x_57);
|
||||
lean_ctor_set(x_59, 0, x_45);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
x_60 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_55);
|
||||
if (lean_is_scalar(x_56)) {
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
x_61 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_57);
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_44);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
lean_ctor_set(x_46, 0, x_62);
|
||||
x_10 = x_46;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_63 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_46);
|
||||
x_64 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_64);
|
||||
if (lean_is_exclusive(x_47)) {
|
||||
lean_ctor_release(x_47, 0);
|
||||
lean_ctor_release(x_47, 1);
|
||||
x_65 = x_47;
|
||||
} else {
|
||||
x_61 = x_56;
|
||||
lean_dec_ref(x_47);
|
||||
x_65 = lean_box(0);
|
||||
}
|
||||
lean_ctor_set(x_61, 0, x_35);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_54);
|
||||
x_10 = x_62;
|
||||
x_66 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_67 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_45);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
x_68 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_68, 0, x_67);
|
||||
lean_ctor_set(x_68, 1, x_66);
|
||||
x_69 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_68);
|
||||
lean_ctor_set(x_69, 1, x_64);
|
||||
if (lean_is_scalar(x_65)) {
|
||||
x_70 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_70 = x_65;
|
||||
}
|
||||
lean_ctor_set(x_70, 0, x_44);
|
||||
lean_ctor_set(x_70, 1, x_69);
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_70);
|
||||
lean_ctor_set(x_71, 1, x_63);
|
||||
x_10 = x_71;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_63;
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_35);
|
||||
x_63 = !lean_is_exclusive(x_37);
|
||||
if (x_63 == 0)
|
||||
uint8_t x_72;
|
||||
lean_dec(x_45);
|
||||
lean_dec(x_44);
|
||||
x_72 = !lean_is_exclusive(x_46);
|
||||
if (x_72 == 0)
|
||||
{
|
||||
lean_object* x_64;
|
||||
x_64 = lean_ctor_get(x_37, 0);
|
||||
lean_dec(x_64);
|
||||
x_10 = x_37;
|
||||
lean_object* x_73;
|
||||
x_73 = lean_ctor_get(x_46, 0);
|
||||
lean_dec(x_73);
|
||||
x_10 = x_46;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66;
|
||||
x_65 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_37);
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_38);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
x_10 = x_66;
|
||||
lean_object* x_74; lean_object* x_75;
|
||||
x_74 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_46);
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_47);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
x_10 = x_75;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
|
|
@ -7418,7 +7164,7 @@ goto block_19;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67;
|
||||
uint8_t x_76;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -7427,14 +7173,179 @@ lean_dec(x_4);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
if (lean_is_scalar(x_33)) {
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_67 = x_33;
|
||||
x_76 = !lean_is_exclusive(x_42);
|
||||
if (x_76 == 0)
|
||||
{
|
||||
lean_object* x_77;
|
||||
x_77 = lean_ctor_get(x_42, 0);
|
||||
lean_dec(x_77);
|
||||
lean_ctor_set_tag(x_42, 1);
|
||||
lean_ctor_set(x_42, 0, x_31);
|
||||
x_10 = x_42;
|
||||
goto block_19;
|
||||
}
|
||||
lean_ctor_set(x_67, 0, x_31);
|
||||
lean_ctor_set(x_67, 1, x_34);
|
||||
x_10 = x_67;
|
||||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79;
|
||||
x_78 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_42);
|
||||
x_79 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_79, 0, x_31);
|
||||
lean_ctor_set(x_79, 1, x_78);
|
||||
x_10 = x_79;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84;
|
||||
x_80 = lean_ctor_get(x_38, 1);
|
||||
x_81 = lean_ctor_get(x_38, 2);
|
||||
x_82 = lean_ctor_get(x_38, 3);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_38);
|
||||
x_83 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_83, 0, x_29);
|
||||
lean_ctor_set(x_83, 1, x_80);
|
||||
lean_ctor_set(x_83, 2, x_81);
|
||||
lean_ctor_set(x_83, 3, x_82);
|
||||
x_84 = lean_st_ref_set(x_6, x_83, x_39);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_85 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_84);
|
||||
x_86 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_86);
|
||||
x_87 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_31);
|
||||
lean_inc(x_4);
|
||||
x_88 = l_Lean_Elab_wfRecursion(x_1, x_4, x_4, x_2, x_3, x_5, x_6, x_7, x_8, x_85);
|
||||
if (lean_obj_tag(x_88) == 0)
|
||||
{
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_86);
|
||||
x_10 = x_88;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_89;
|
||||
x_89 = lean_ctor_get(x_88, 0);
|
||||
lean_inc(x_89);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99;
|
||||
x_90 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_90);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_91 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_91 = lean_box(0);
|
||||
}
|
||||
x_92 = lean_ctor_get(x_89, 1);
|
||||
lean_inc(x_92);
|
||||
if (lean_is_exclusive(x_89)) {
|
||||
lean_ctor_release(x_89, 0);
|
||||
lean_ctor_release(x_89, 1);
|
||||
x_93 = x_89;
|
||||
} else {
|
||||
lean_dec_ref(x_89);
|
||||
x_93 = lean_box(0);
|
||||
}
|
||||
x_94 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__22___lambda__1___closed__3;
|
||||
x_95 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_95, 0, x_87);
|
||||
lean_ctor_set(x_95, 1, x_94);
|
||||
x_96 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_95);
|
||||
lean_ctor_set(x_96, 1, x_94);
|
||||
x_97 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_97, 0, x_96);
|
||||
lean_ctor_set(x_97, 1, x_92);
|
||||
if (lean_is_scalar(x_93)) {
|
||||
x_98 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_98 = x_93;
|
||||
}
|
||||
lean_ctor_set(x_98, 0, x_86);
|
||||
lean_ctor_set(x_98, 1, x_97);
|
||||
if (lean_is_scalar(x_91)) {
|
||||
x_99 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_99 = x_91;
|
||||
}
|
||||
lean_ctor_set(x_99, 0, x_98);
|
||||
lean_ctor_set(x_99, 1, x_90);
|
||||
x_10 = x_99;
|
||||
goto block_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_100; lean_object* x_101; lean_object* x_102;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_86);
|
||||
x_100 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_100);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_101 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_101 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_101)) {
|
||||
x_102 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_102 = x_101;
|
||||
}
|
||||
lean_ctor_set(x_102, 0, x_89);
|
||||
lean_ctor_set(x_102, 1, x_100);
|
||||
x_10 = x_102;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_103; lean_object* x_104; lean_object* x_105;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_103 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_103);
|
||||
if (lean_is_exclusive(x_84)) {
|
||||
lean_ctor_release(x_84, 0);
|
||||
lean_ctor_release(x_84, 1);
|
||||
x_104 = x_84;
|
||||
} else {
|
||||
lean_dec_ref(x_84);
|
||||
x_104 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_104)) {
|
||||
x_105 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_105 = x_104;
|
||||
lean_ctor_set_tag(x_105, 1);
|
||||
}
|
||||
lean_ctor_set(x_105, 0, x_31);
|
||||
lean_ctor_set(x_105, 1, x_103);
|
||||
x_10 = x_105;
|
||||
goto block_19;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1049,6 +1049,7 @@ x_34 = lean_ctor_get(x_33, 1);
|
|||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
x_35 = l_Lean_Meta_SavedState_restore(x_27, x_6, x_7, x_8, x_9, x_34);
|
||||
lean_dec(x_27);
|
||||
x_36 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_35);
|
||||
|
|
@ -1108,6 +1109,7 @@ x_46 = lean_ctor_get(x_30, 1);
|
|||
lean_inc(x_46);
|
||||
lean_dec(x_30);
|
||||
x_47 = l_Lean_Meta_SavedState_restore(x_27, x_6, x_7, x_8, x_9, x_46);
|
||||
lean_dec(x_27);
|
||||
x_48 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_47);
|
||||
|
|
@ -1215,6 +1217,7 @@ x_68 = lean_ctor_get(x_67, 1);
|
|||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
x_69 = l_Lean_Meta_SavedState_restore(x_61, x_6, x_7, x_8, x_9, x_68);
|
||||
lean_dec(x_61);
|
||||
x_70 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_69);
|
||||
|
|
@ -1274,6 +1277,7 @@ x_80 = lean_ctor_get(x_64, 1);
|
|||
lean_inc(x_80);
|
||||
lean_dec(x_64);
|
||||
x_81 = l_Lean_Meta_SavedState_restore(x_61, x_6, x_7, x_8, x_9, x_80);
|
||||
lean_dec(x_61);
|
||||
x_82 = lean_ctor_get(x_81, 1);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_81);
|
||||
|
|
|
|||
|
|
@ -512,7 +512,7 @@ x_11 = lean_unbox(x_10);
|
|||
lean_dec(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -522,6 +522,9 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_13 = l_Lean_Elab_Eqns_tryContradiction(x_1, x_4, x_5, x_6, x_7, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; uint8_t x_15;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_unbox(x_14);
|
||||
|
|
@ -1138,27 +1141,56 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_133 = !lean_is_exclusive(x_9);
|
||||
x_133 = !lean_is_exclusive(x_13);
|
||||
if (x_133 == 0)
|
||||
{
|
||||
lean_object* x_134; lean_object* x_135;
|
||||
x_134 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_134);
|
||||
x_135 = lean_box(0);
|
||||
lean_ctor_set(x_9, 0, x_135);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_134; lean_object* x_135; lean_object* x_136;
|
||||
x_134 = lean_ctor_get(x_13, 0);
|
||||
x_135 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_135);
|
||||
lean_inc(x_134);
|
||||
lean_dec(x_13);
|
||||
x_136 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_136, 0, x_134);
|
||||
lean_ctor_set(x_136, 1, x_135);
|
||||
return x_136;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_137;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_137 = !lean_is_exclusive(x_9);
|
||||
if (x_137 == 0)
|
||||
{
|
||||
lean_object* x_138; lean_object* x_139;
|
||||
x_138 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_138);
|
||||
x_139 = lean_box(0);
|
||||
lean_ctor_set(x_9, 0, x_139);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_136; lean_object* x_137; lean_object* x_138;
|
||||
x_136 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_136);
|
||||
lean_object* x_140; lean_object* x_141; lean_object* x_142;
|
||||
x_140 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_140);
|
||||
lean_dec(x_9);
|
||||
x_137 = lean_box(0);
|
||||
x_138 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_138, 0, x_137);
|
||||
lean_ctor_set(x_138, 1, x_136);
|
||||
return x_138;
|
||||
x_141 = lean_box(0);
|
||||
x_142 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_142, 0, x_141);
|
||||
lean_ctor_set(x_142, 1, x_140);
|
||||
return x_142;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1360,14 +1360,13 @@ x_1 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Le
|
|||
x_2 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2___closed__7;
|
||||
x_3 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2___closed__8;
|
||||
x_4 = l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__2___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
65
stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c
generated
65
stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c
generated
|
|
@ -5137,7 +5137,7 @@ x_14 = lean_unbox(x_13);
|
|||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_12);
|
||||
|
|
@ -5147,6 +5147,9 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_1);
|
||||
x_16 = l_Lean_Elab_Eqns_tryContradiction(x_1, x_7, x_8, x_9, x_10, x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_unbox(x_17);
|
||||
|
|
@ -5810,27 +5813,59 @@ lean_dec(x_4);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_136 = !lean_is_exclusive(x_12);
|
||||
x_136 = !lean_is_exclusive(x_16);
|
||||
if (x_136 == 0)
|
||||
{
|
||||
lean_object* x_137; lean_object* x_138;
|
||||
x_137 = lean_ctor_get(x_12, 0);
|
||||
lean_dec(x_137);
|
||||
x_138 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_138);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_137; lean_object* x_138; lean_object* x_139;
|
||||
x_137 = lean_ctor_get(x_16, 0);
|
||||
x_138 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_138);
|
||||
lean_inc(x_137);
|
||||
lean_dec(x_16);
|
||||
x_139 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_139, 0, x_137);
|
||||
lean_ctor_set(x_139, 1, x_138);
|
||||
return x_139;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_140;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_140 = !lean_is_exclusive(x_12);
|
||||
if (x_140 == 0)
|
||||
{
|
||||
lean_object* x_141; lean_object* x_142;
|
||||
x_141 = lean_ctor_get(x_12, 0);
|
||||
lean_dec(x_141);
|
||||
x_142 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_142);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_139; lean_object* x_140; lean_object* x_141;
|
||||
x_139 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_139);
|
||||
lean_object* x_143; lean_object* x_144; lean_object* x_145;
|
||||
x_143 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_143);
|
||||
lean_dec(x_12);
|
||||
x_140 = lean_box(0);
|
||||
x_141 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_141, 0, x_140);
|
||||
lean_ctor_set(x_141, 1, x_139);
|
||||
return x_141;
|
||||
x_144 = lean_box(0);
|
||||
x_145 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_145, 0, x_144);
|
||||
lean_ctor_set(x_145, 1, x_143);
|
||||
return x_145;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
226
stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c
generated
226
stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c
generated
|
|
@ -515,7 +515,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj
|
|||
x_1 = l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackMutual_go___closed__2;
|
||||
x_2 = l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackMutual_go___closed__3;
|
||||
x_3 = lean_unsigned_to_nat(26u);
|
||||
x_4 = lean_unsigned_to_nat(44u);
|
||||
x_4 = lean_unsigned_to_nat(45u);
|
||||
x_5 = l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackMutual_go___closed__4;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
return x_6;
|
||||
|
|
@ -4341,48 +4341,45 @@ lean_dec(x_17);
|
|||
x_18 = !lean_is_exclusive(x_14);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23;
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_19 = lean_ctor_get(x_14, 6);
|
||||
x_20 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_19, x_1, x_2);
|
||||
x_21 = 1;
|
||||
lean_ctor_set(x_14, 6, x_20);
|
||||
lean_ctor_set_uint8(x_14, sizeof(void*)*8, x_21);
|
||||
x_22 = lean_st_ref_set(x_6, x_13, x_15);
|
||||
x_23 = !lean_is_exclusive(x_22);
|
||||
if (x_23 == 0)
|
||||
x_21 = lean_st_ref_set(x_6, x_13, x_15);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_dec(x_24);
|
||||
x_25 = lean_box(0);
|
||||
lean_ctor_set(x_22, 0, x_25);
|
||||
return x_22;
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_23);
|
||||
x_24 = lean_box(0);
|
||||
lean_ctor_set(x_21, 0, x_24);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_22);
|
||||
x_27 = lean_box(0);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_26);
|
||||
return x_28;
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_25 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_21);
|
||||
x_26 = lean_box(0);
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_25);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_29 = lean_ctor_get(x_14, 0);
|
||||
x_30 = lean_ctor_get(x_14, 1);
|
||||
x_31 = lean_ctor_get(x_14, 2);
|
||||
x_32 = lean_ctor_get(x_14, 3);
|
||||
x_33 = lean_ctor_get(x_14, 4);
|
||||
x_34 = lean_ctor_get(x_14, 5);
|
||||
x_35 = lean_ctor_get(x_14, 6);
|
||||
x_36 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_36);
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_28 = lean_ctor_get(x_14, 0);
|
||||
x_29 = lean_ctor_get(x_14, 1);
|
||||
x_30 = lean_ctor_get(x_14, 2);
|
||||
x_31 = lean_ctor_get(x_14, 3);
|
||||
x_32 = lean_ctor_get(x_14, 4);
|
||||
x_33 = lean_ctor_get(x_14, 5);
|
||||
x_34 = lean_ctor_get(x_14, 6);
|
||||
x_35 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_inc(x_33);
|
||||
|
|
@ -4390,68 +4387,67 @@ lean_inc(x_32);
|
|||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_14);
|
||||
x_37 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_35, x_1, x_2);
|
||||
x_38 = 1;
|
||||
x_39 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_39, 0, x_29);
|
||||
lean_ctor_set(x_39, 1, x_30);
|
||||
lean_ctor_set(x_39, 2, x_31);
|
||||
lean_ctor_set(x_39, 3, x_32);
|
||||
lean_ctor_set(x_39, 4, x_33);
|
||||
lean_ctor_set(x_39, 5, x_34);
|
||||
lean_ctor_set(x_39, 6, x_37);
|
||||
lean_ctor_set(x_39, 7, x_36);
|
||||
lean_ctor_set_uint8(x_39, sizeof(void*)*8, x_38);
|
||||
lean_ctor_set(x_13, 0, x_39);
|
||||
x_40 = lean_st_ref_set(x_6, x_13, x_15);
|
||||
x_41 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_41);
|
||||
if (lean_is_exclusive(x_40)) {
|
||||
lean_ctor_release(x_40, 0);
|
||||
lean_ctor_release(x_40, 1);
|
||||
x_36 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_34, x_1, x_2);
|
||||
x_37 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_37, 0, x_28);
|
||||
lean_ctor_set(x_37, 1, x_29);
|
||||
lean_ctor_set(x_37, 2, x_30);
|
||||
lean_ctor_set(x_37, 3, x_31);
|
||||
lean_ctor_set(x_37, 4, x_32);
|
||||
lean_ctor_set(x_37, 5, x_33);
|
||||
lean_ctor_set(x_37, 6, x_36);
|
||||
lean_ctor_set(x_37, 7, x_35);
|
||||
lean_ctor_set(x_13, 0, x_37);
|
||||
x_38 = lean_st_ref_set(x_6, x_13, x_15);
|
||||
x_39 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_39);
|
||||
if (lean_is_exclusive(x_38)) {
|
||||
lean_ctor_release(x_38, 0);
|
||||
lean_ctor_release(x_38, 1);
|
||||
x_40 = x_38;
|
||||
} else {
|
||||
lean_dec_ref(x_38);
|
||||
x_40 = lean_box(0);
|
||||
}
|
||||
x_41 = lean_box(0);
|
||||
if (lean_is_scalar(x_40)) {
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_42 = x_40;
|
||||
} else {
|
||||
lean_dec_ref(x_40);
|
||||
x_42 = lean_box(0);
|
||||
}
|
||||
x_43 = lean_box(0);
|
||||
if (lean_is_scalar(x_42)) {
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_44 = x_42;
|
||||
}
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_41);
|
||||
return x_44;
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_39);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_45 = lean_ctor_get(x_13, 1);
|
||||
x_46 = lean_ctor_get(x_13, 2);
|
||||
x_47 = lean_ctor_get(x_13, 3);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_43 = lean_ctor_get(x_13, 1);
|
||||
x_44 = lean_ctor_get(x_13, 2);
|
||||
x_45 = lean_ctor_get(x_13, 3);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_13);
|
||||
x_48 = lean_ctor_get(x_14, 0);
|
||||
x_46 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_14, 2);
|
||||
lean_inc(x_48);
|
||||
x_49 = lean_ctor_get(x_14, 1);
|
||||
x_49 = lean_ctor_get(x_14, 3);
|
||||
lean_inc(x_49);
|
||||
x_50 = lean_ctor_get(x_14, 2);
|
||||
x_50 = lean_ctor_get(x_14, 4);
|
||||
lean_inc(x_50);
|
||||
x_51 = lean_ctor_get(x_14, 3);
|
||||
x_51 = lean_ctor_get(x_14, 5);
|
||||
lean_inc(x_51);
|
||||
x_52 = lean_ctor_get(x_14, 4);
|
||||
x_52 = lean_ctor_get(x_14, 6);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_14, 5);
|
||||
x_53 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_14, 6);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_55);
|
||||
if (lean_is_exclusive(x_14)) {
|
||||
lean_ctor_release(x_14, 0);
|
||||
lean_ctor_release(x_14, 1);
|
||||
|
|
@ -4461,52 +4457,50 @@ if (lean_is_exclusive(x_14)) {
|
|||
lean_ctor_release(x_14, 5);
|
||||
lean_ctor_release(x_14, 6);
|
||||
lean_ctor_release(x_14, 7);
|
||||
x_56 = x_14;
|
||||
x_54 = x_14;
|
||||
} else {
|
||||
lean_dec_ref(x_14);
|
||||
x_56 = lean_box(0);
|
||||
x_54 = lean_box(0);
|
||||
}
|
||||
x_57 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_54, x_1, x_2);
|
||||
x_58 = 1;
|
||||
if (lean_is_scalar(x_56)) {
|
||||
x_59 = lean_alloc_ctor(0, 8, 1);
|
||||
x_55 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_52, x_1, x_2);
|
||||
if (lean_is_scalar(x_54)) {
|
||||
x_56 = lean_alloc_ctor(0, 8, 0);
|
||||
} else {
|
||||
x_59 = x_56;
|
||||
x_56 = x_54;
|
||||
}
|
||||
lean_ctor_set(x_59, 0, x_48);
|
||||
lean_ctor_set(x_59, 1, x_49);
|
||||
lean_ctor_set(x_59, 2, x_50);
|
||||
lean_ctor_set(x_59, 3, x_51);
|
||||
lean_ctor_set(x_59, 4, x_52);
|
||||
lean_ctor_set(x_59, 5, x_53);
|
||||
lean_ctor_set(x_59, 6, x_57);
|
||||
lean_ctor_set(x_59, 7, x_55);
|
||||
lean_ctor_set_uint8(x_59, sizeof(void*)*8, x_58);
|
||||
x_60 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_45);
|
||||
lean_ctor_set(x_60, 2, x_46);
|
||||
lean_ctor_set(x_60, 3, x_47);
|
||||
x_61 = lean_st_ref_set(x_6, x_60, x_15);
|
||||
x_62 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_62);
|
||||
if (lean_is_exclusive(x_61)) {
|
||||
lean_ctor_release(x_61, 0);
|
||||
lean_ctor_release(x_61, 1);
|
||||
x_63 = x_61;
|
||||
lean_ctor_set(x_56, 0, x_46);
|
||||
lean_ctor_set(x_56, 1, x_47);
|
||||
lean_ctor_set(x_56, 2, x_48);
|
||||
lean_ctor_set(x_56, 3, x_49);
|
||||
lean_ctor_set(x_56, 4, x_50);
|
||||
lean_ctor_set(x_56, 5, x_51);
|
||||
lean_ctor_set(x_56, 6, x_55);
|
||||
lean_ctor_set(x_56, 7, x_53);
|
||||
x_57 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_57, 0, x_56);
|
||||
lean_ctor_set(x_57, 1, x_43);
|
||||
lean_ctor_set(x_57, 2, x_44);
|
||||
lean_ctor_set(x_57, 3, x_45);
|
||||
x_58 = lean_st_ref_set(x_6, x_57, x_15);
|
||||
x_59 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_59);
|
||||
if (lean_is_exclusive(x_58)) {
|
||||
lean_ctor_release(x_58, 0);
|
||||
lean_ctor_release(x_58, 1);
|
||||
x_60 = x_58;
|
||||
} else {
|
||||
lean_dec_ref(x_61);
|
||||
x_63 = lean_box(0);
|
||||
lean_dec_ref(x_58);
|
||||
x_60 = lean_box(0);
|
||||
}
|
||||
x_64 = lean_box(0);
|
||||
if (lean_is_scalar(x_63)) {
|
||||
x_65 = lean_alloc_ctor(0, 2, 0);
|
||||
x_61 = lean_box(0);
|
||||
if (lean_is_scalar(x_60)) {
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_65 = x_63;
|
||||
x_62 = x_60;
|
||||
}
|
||||
lean_ctor_set(x_65, 0, x_64);
|
||||
lean_ctor_set(x_65, 1, x_62);
|
||||
return x_65;
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_59);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
8
stage0/stdlib/Lean/Elab/Quotation.c
generated
8
stage0/stdlib/Lean/Elab/Quotation.c
generated
|
|
@ -990,7 +990,6 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_5000____closed__3;
|
||||
static lean_object* l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__26___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_5006____closed__1;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1208,6 +1207,7 @@ static lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__20;
|
|||
static lean_object* l_Lean_Elab_Term_Quotation_getQuotKind___closed__22;
|
||||
static lean_object* l_Lean_Elab_Term_Quotation___aux__Lean__Elab__Quotation______macroRules__Lean__Elab__Term__Quotation__commandElab__stx__quot____1___closed__17;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_ArrayStxBuilder_build(lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4994____closed__4;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__27___closed__38;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__27___closed__21;
|
||||
|
|
@ -5263,7 +5263,7 @@ x_11 = lean_ctor_get(x_7, 5);
|
|||
x_12 = l_Lean_replaceRef(x_1, x_11);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_7, 5, x_12);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_7);
|
||||
return x_13;
|
||||
}
|
||||
|
|
@ -5307,7 +5307,7 @@ lean_ctor_set(x_26, 7, x_21);
|
|||
lean_ctor_set(x_26, 8, x_22);
|
||||
lean_ctor_set(x_26, 9, x_23);
|
||||
lean_ctor_set(x_26, 10, x_24);
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
lean_dec(x_26);
|
||||
return x_27;
|
||||
}
|
||||
|
|
@ -14042,7 +14042,7 @@ x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_
|
|||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1814
stage0/stdlib/Lean/Elab/StructInst.c
generated
1814
stage0/stdlib/Lean/Elab/StructInst.c
generated
File diff suppressed because it is too large
Load diff
39
stage0/stdlib/Lean/Elab/Structure.c
generated
39
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -779,7 +779,6 @@ lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*,
|
|||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__2;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___lambda__2___closed__1;
|
||||
|
|
@ -961,6 +960,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_co
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_logWarning___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
|
|
@ -3105,7 +3105,7 @@ x_20 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Comm
|
|||
x_21 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -4481,7 +4481,7 @@ else
|
|||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___lambda__2___closed__2;
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
|
|
@ -4537,7 +4537,7 @@ else
|
|||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___lambda__3___closed__2;
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
|
|
@ -4597,7 +4597,7 @@ else
|
|||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_12 = l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___closed__2;
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -4802,7 +4802,7 @@ lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_19 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__2;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -4959,7 +4959,7 @@ lean_dec(x_22);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_38 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2;
|
||||
x_39 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_38, x_4, x_5, x_6, x_7, x_8, x_9, x_31);
|
||||
x_39 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_38, x_4, x_5, x_6, x_7, x_8, x_9, x_31);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -5148,7 +5148,7 @@ lean_dec(x_22);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_76 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__2;
|
||||
x_77 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_76, x_4, x_5, x_6, x_7, x_64, x_9, x_69);
|
||||
x_77 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_76, x_4, x_5, x_6, x_7, x_64, x_9, x_69);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_64);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -5729,7 +5729,7 @@ else
|
|||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2;
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
|
|
@ -5785,7 +5785,7 @@ else
|
|||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = l_Lean_Elab_Command_checkValidFieldModifier___lambda__3___closed__2;
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
|
|
@ -5845,7 +5845,7 @@ else
|
|||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_12 = l_Lean_Elab_Command_checkValidFieldModifier___closed__2;
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
x_13 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -7466,7 +7466,7 @@ lean_dec(x_3);
|
|||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_21 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__4___closed__2;
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
x_22 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
|
|
@ -7573,7 +7573,7 @@ lean_dec(x_3);
|
|||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_26 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__5___closed__2;
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_19);
|
||||
x_27 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_19);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -9450,7 +9450,7 @@ x_29 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go_
|
|||
x_30 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
x_31 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
x_31 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
|
|
@ -12767,7 +12767,7 @@ x_98 = l_Lean_getDocStringText___at___private_Lean_Elab_Structure_0__Lean_Elab_C
|
|||
x_99 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_99, 0, x_97);
|
||||
lean_ctor_set(x_99, 1, x_98);
|
||||
x_100 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_99, x_10, x_11, x_12, x_13, x_14, x_15, x_87);
|
||||
x_100 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_99, x_10, x_11, x_12, x_13, x_14, x_15, x_87);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -16864,7 +16864,7 @@ default:
|
|||
lean_object* x_96; uint8_t x_97;
|
||||
lean_dec(x_92);
|
||||
lean_dec(x_18);
|
||||
x_96 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_91, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_96 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_91, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -17419,7 +17419,7 @@ default:
|
|||
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204;
|
||||
lean_dec(x_196);
|
||||
lean_dec(x_18);
|
||||
x_200 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_195, x_6, x_7, x_8, x_9, x_126, x_11, x_12);
|
||||
x_200 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_195, x_6, x_7, x_8, x_9, x_126, x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_126);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -22066,14 +22066,13 @@ x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___c
|
|||
x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___closed__5;
|
||||
x_3 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___closed__6;
|
||||
x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___closed__9;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -23017,7 +23016,7 @@ x_36 = l_Lean_getDocStringText___at___private_Lean_Elab_Structure_0__Lean_Elab_C
|
|||
x_37 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
x_38 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_20);
|
||||
x_38 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_20);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
|
|||
453
stage0/stdlib/Lean/Elab/Syntax.c
generated
453
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -352,7 +352,6 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn
|
|||
static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__5;
|
||||
static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__12;
|
||||
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -360,7 +359,8 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn
|
|||
lean_object* l_Lean_Unhygienic_run___rarg(lean_object*);
|
||||
lean_object* l_String_capitalize(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureUnaryOutput(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421_(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__13;
|
||||
static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1996,6 +1996,114 @@ return x_18;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Category", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4;
|
||||
x_2 = l_Lean_Elab_Term_addCategoryInfo___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_addCategoryInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_10 = l_Lean_Elab_Term_addCategoryInfo___closed__2;
|
||||
x_11 = l_Lean_Name_append(x_10, x_2);
|
||||
x_12 = lean_st_ref_get(x_8, x_9);
|
||||
x_13 = !lean_is_exclusive(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
x_15 = lean_ctor_get(x_12, 1);
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_11);
|
||||
x_17 = l_Lean_Environment_contains(x_16, x_11);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_18);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24;
|
||||
lean_free_object(x_12);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = l_Lean_Expr_const___override(x_11, x_19);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = 0;
|
||||
x_24 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_20, x_21, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_15);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_25 = lean_ctor_get(x_12, 0);
|
||||
x_26 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_12);
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
lean_inc(x_11);
|
||||
x_28 = l_Lean_Environment_contains(x_27, x_11);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
lean_ctor_set(x_30, 1, x_26);
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36;
|
||||
x_31 = lean_box(0);
|
||||
x_32 = l_Lean_Expr_const___override(x_11, x_31);
|
||||
x_33 = lean_box(0);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = 0;
|
||||
x_36 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_32, x_33, x_33, x_34, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_26);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_checkLeftRec___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -3250,12 +3358,27 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
lean_object* x_14;
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandOptPrecedence___boxed), 3, 1);
|
||||
lean_closure_set(x_16, 0, x_15);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_14 = l_Lean_Elab_Term_addCategoryInfo(x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_unsigned_to_nat(1u);
|
||||
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
|
||||
x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandOptPrecedence___boxed), 3, 1);
|
||||
lean_closure_set(x_18, 0, x_17);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
|
|
@ -3264,63 +3387,63 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_17 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
x_19 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_15);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
uint8_t x_18;
|
||||
x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1);
|
||||
lean_dec(x_2);
|
||||
if (x_18 == 0)
|
||||
uint8_t x_20;
|
||||
x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 1);
|
||||
lean_dec(x_3);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = lean_unsigned_to_nat(3u);
|
||||
x_21 = l_Lean_Syntax_getArg(x_1, x_20);
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30;
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_unsigned_to_nat(3u);
|
||||
x_23 = l_Lean_Syntax_getArg(x_1, x_22);
|
||||
lean_dec(x_1);
|
||||
x_22 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_22, 0, x_3);
|
||||
x_23 = l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__2;
|
||||
x_24 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
x_25 = l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__4;
|
||||
x_24 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_2);
|
||||
x_25 = l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__2;
|
||||
x_26 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__9(x_21, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_24);
|
||||
x_27 = l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__4;
|
||||
x_28 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
x_29 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__9(x_23, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21);
|
||||
x_30 = !lean_is_exclusive(x_29);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
return x_27;
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
x_30 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_27);
|
||||
x_31 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_32 = lean_ctor_get(x_17, 0);
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_29, 0);
|
||||
x_32 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_17);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = l_Lean_Elab_Term_checkLeftRec___lambda__1(x_32, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_33);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_29);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_34 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_19);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = l_Lean_Elab_Term_checkLeftRec___lambda__1(x_34, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -3329,12 +3452,12 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_35;
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_36;
|
||||
uint8_t x_38;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -3346,23 +3469,57 @@ lean_dec(x_5);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_36 = !lean_is_exclusive(x_17);
|
||||
if (x_36 == 0)
|
||||
x_38 = !lean_is_exclusive(x_19);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
return x_17;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
x_37 = lean_ctor_get(x_17, 0);
|
||||
x_38 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_17);
|
||||
x_39 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
return x_39;
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
x_39 = lean_ctor_get(x_19, 0);
|
||||
x_40 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_40);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_19);
|
||||
x_41 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_39);
|
||||
lean_ctor_set(x_41, 1, x_40);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_42;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_42 = !lean_is_exclusive(x_14);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
x_43 = lean_ctor_get(x_14, 0);
|
||||
x_44 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_14);
|
||||
x_45 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3406,7 +3563,7 @@ else
|
|||
{
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
x_22 = lean_box(0);
|
||||
x_23 = l_Lean_Elab_Term_checkLeftRec___lambda__2(x_1, x_2, x_16, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_23 = l_Lean_Elab_Term_checkLeftRec___lambda__2(x_1, x_16, x_2, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
|
|
@ -4316,114 +4473,6 @@ lean_dec(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Category", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_addCategoryInfo___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4;
|
||||
x_2 = l_Lean_Elab_Term_addCategoryInfo___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_addCategoryInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_10 = l_Lean_Elab_Term_addCategoryInfo___closed__2;
|
||||
x_11 = l_Lean_Name_append(x_10, x_2);
|
||||
x_12 = lean_st_ref_get(x_8, x_9);
|
||||
x_13 = !lean_is_exclusive(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
x_15 = lean_ctor_get(x_12, 1);
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_11);
|
||||
x_17 = l_Lean_Environment_contains(x_16, x_11);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_18);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24;
|
||||
lean_free_object(x_12);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = l_Lean_Expr_const___override(x_11, x_19);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = 0;
|
||||
x_24 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_20, x_21, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_15);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_25 = lean_ctor_get(x_12, 0);
|
||||
x_26 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_12);
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
lean_inc(x_11);
|
||||
x_28 = l_Lean_Environment_contains(x_27, x_11);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
lean_ctor_set(x_30, 1, x_26);
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36;
|
||||
x_31 = lean_box(0);
|
||||
x_32 = l_Lean_Expr_const___override(x_11, x_31);
|
||||
x_33 = lean_box(0);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = 0;
|
||||
x_36 = l_Lean_Elab_Term_addTermInfo_x27(x_1, x_32, x_33, x_33, x_34, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_26);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__1___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -8442,7 +8491,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__1;
|
||||
x_2 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(176u);
|
||||
x_3 = lean_unsigned_to_nat(177u);
|
||||
x_4 = lean_unsigned_to_nat(21u);
|
||||
x_5 = l_Lean_Elab_Term_toParserDescr_processAlias___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -15274,7 +15323,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(263u);
|
||||
x_1 = lean_unsigned_to_nat(264u);
|
||||
x_2 = lean_unsigned_to_nat(32u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15286,7 +15335,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(278u);
|
||||
x_1 = lean_unsigned_to_nat(279u);
|
||||
x_2 = lean_unsigned_to_nat(17u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15314,7 +15363,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(263u);
|
||||
x_1 = lean_unsigned_to_nat(264u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15326,7 +15375,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(263u);
|
||||
x_1 = lean_unsigned_to_nat(264u);
|
||||
x_2 = lean_unsigned_to_nat(56u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19265,7 +19314,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(336u);
|
||||
x_1 = lean_unsigned_to_nat(337u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19277,7 +19326,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(367u);
|
||||
x_1 = lean_unsigned_to_nat(368u);
|
||||
x_2 = lean_unsigned_to_nat(43u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19305,7 +19354,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(336u);
|
||||
x_1 = lean_unsigned_to_nat(337u);
|
||||
x_2 = lean_unsigned_to_nat(35u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19317,7 +19366,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntax_declRange_
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(336u);
|
||||
x_1 = lean_unsigned_to_nat(337u);
|
||||
x_2 = lean_unsigned_to_nat(45u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -20468,7 +20517,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_1 = lean_unsigned_to_nat(370u);
|
||||
x_2 = lean_unsigned_to_nat(37u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -20480,7 +20529,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(375u);
|
||||
x_1 = lean_unsigned_to_nat(376u);
|
||||
x_2 = lean_unsigned_to_nat(49u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -20508,7 +20557,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_1 = lean_unsigned_to_nat(370u);
|
||||
x_2 = lean_unsigned_to_nat(41u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -20520,7 +20569,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_1 = lean_unsigned_to_nat(370u);
|
||||
x_2 = lean_unsigned_to_nat(57u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -21678,7 +21727,7 @@ lean_dec(x_2);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -21688,11 +21737,11 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1;
|
||||
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -21832,6 +21881,10 @@ l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17 = _init_l_Lean_Elab_
|
|||
lean_mark_persistent(l_Lean_Elab_Term_ensureUnaryOutput___lambda__1___closed__17);
|
||||
l_Lean_Elab_Term_ensureUnaryOutput___closed__1 = _init_l_Lean_Elab_Term_ensureUnaryOutput___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_ensureUnaryOutput___closed__1);
|
||||
l_Lean_Elab_Term_addCategoryInfo___closed__1 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__1);
|
||||
l_Lean_Elab_Term_addCategoryInfo___closed__2 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__2);
|
||||
l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__1 = _init_l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__1();
|
||||
lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__1);
|
||||
l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__2 = _init_l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__2();
|
||||
|
|
@ -21872,10 +21925,6 @@ l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__1 = _
|
|||
lean_mark_persistent(l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__1);
|
||||
l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2 = _init_l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2();
|
||||
lean_mark_persistent(l_List_filterMap___at_Lean_Elab_Term_resolveParserName___spec__1___closed__2);
|
||||
l_Lean_Elab_Term_addCategoryInfo___closed__1 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__1);
|
||||
l_Lean_Elab_Term_addCategoryInfo___closed__2 = _init_l_Lean_Elab_Term_addCategoryInfo___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_addCategoryInfo___closed__2);
|
||||
l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1 = _init_l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__1);
|
||||
l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__2 = _init_l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__2();
|
||||
|
|
@ -22514,9 +22563,9 @@ l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5 = _init_l_
|
|||
lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__5);
|
||||
l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6 = _init_l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6);
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403____closed__1);
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10403_(lean_io_mk_world());
|
||||
l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421____closed__1);
|
||||
res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_10421_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
1062
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
1062
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
File diff suppressed because it is too large
Load diff
531
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
531
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
|
|
@ -80,7 +80,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_expandEval(lean_object*,
|
|||
static lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_run___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -156,6 +155,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_eval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -173,7 +173,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkTacticInfo___boxed(lean_object*, l
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_orElse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focusAndDone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_hasExprMVar(lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
|
|
@ -199,7 +198,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_w
|
|||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_eval___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_saveTacticInfoForToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_admitGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -225,7 +223,6 @@ lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_instAlternativeMetaM;
|
||||
lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -243,6 +240,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handle
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -320,7 +318,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_
|
|||
lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_evalTactic_eval___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__4;
|
||||
lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__13;
|
||||
|
|
@ -330,7 +327,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1__
|
|||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_instAlternativeTacticM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1282,256 +1278,55 @@ lean_dec(x_2);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_5 = lean_st_ref_get(x_3, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_st_ref_take(x_1, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_7);
|
||||
x_11 = !lean_is_exclusive(x_8);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13;
|
||||
x_12 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_12);
|
||||
x_13 = !lean_is_exclusive(x_9);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
uint8_t x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_14 = 1;
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8, x_14);
|
||||
x_15 = lean_st_ref_set(x_1, x_8, x_10);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = lean_box(0);
|
||||
lean_ctor_set(x_15, 0, x_18);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_15);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_19);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_22 = lean_ctor_get(x_9, 0);
|
||||
x_23 = lean_ctor_get(x_9, 1);
|
||||
x_24 = lean_ctor_get(x_9, 2);
|
||||
x_25 = lean_ctor_get(x_9, 3);
|
||||
x_26 = lean_ctor_get(x_9, 4);
|
||||
x_27 = lean_ctor_get(x_9, 5);
|
||||
x_28 = lean_ctor_get(x_9, 6);
|
||||
x_29 = lean_ctor_get(x_9, 7);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_9);
|
||||
x_30 = 1;
|
||||
x_31 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_31, 0, x_22);
|
||||
lean_ctor_set(x_31, 1, x_23);
|
||||
lean_ctor_set(x_31, 2, x_24);
|
||||
lean_ctor_set(x_31, 3, x_25);
|
||||
lean_ctor_set(x_31, 4, x_26);
|
||||
lean_ctor_set(x_31, 5, x_27);
|
||||
lean_ctor_set(x_31, 6, x_28);
|
||||
lean_ctor_set(x_31, 7, x_29);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_30);
|
||||
lean_ctor_set(x_8, 0, x_31);
|
||||
x_32 = lean_st_ref_set(x_1, x_8, x_10);
|
||||
x_33 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_33);
|
||||
if (lean_is_exclusive(x_32)) {
|
||||
lean_ctor_release(x_32, 0);
|
||||
lean_ctor_release(x_32, 1);
|
||||
x_34 = x_32;
|
||||
} else {
|
||||
lean_dec_ref(x_32);
|
||||
x_34 = lean_box(0);
|
||||
}
|
||||
x_35 = lean_box(0);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_36 = x_34;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_33);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_37 = lean_ctor_get(x_8, 1);
|
||||
x_38 = lean_ctor_get(x_8, 2);
|
||||
x_39 = lean_ctor_get(x_8, 3);
|
||||
lean_inc(x_39);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_8);
|
||||
x_40 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_9, 2);
|
||||
lean_inc(x_42);
|
||||
x_43 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_9, 4);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_9, 5);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_9, 6);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_9, 7);
|
||||
lean_inc(x_47);
|
||||
if (lean_is_exclusive(x_9)) {
|
||||
lean_ctor_release(x_9, 0);
|
||||
lean_ctor_release(x_9, 1);
|
||||
lean_ctor_release(x_9, 2);
|
||||
lean_ctor_release(x_9, 3);
|
||||
lean_ctor_release(x_9, 4);
|
||||
lean_ctor_release(x_9, 5);
|
||||
lean_ctor_release(x_9, 6);
|
||||
lean_ctor_release(x_9, 7);
|
||||
x_48 = x_9;
|
||||
} else {
|
||||
lean_dec_ref(x_9);
|
||||
x_48 = lean_box(0);
|
||||
}
|
||||
x_49 = 1;
|
||||
if (lean_is_scalar(x_48)) {
|
||||
x_50 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_50 = x_48;
|
||||
}
|
||||
lean_ctor_set(x_50, 0, x_40);
|
||||
lean_ctor_set(x_50, 1, x_41);
|
||||
lean_ctor_set(x_50, 2, x_42);
|
||||
lean_ctor_set(x_50, 3, x_43);
|
||||
lean_ctor_set(x_50, 4, x_44);
|
||||
lean_ctor_set(x_50, 5, x_45);
|
||||
lean_ctor_set(x_50, 6, x_46);
|
||||
lean_ctor_set(x_50, 7, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_49);
|
||||
x_51 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_37);
|
||||
lean_ctor_set(x_51, 2, x_38);
|
||||
lean_ctor_set(x_51, 3, x_39);
|
||||
x_52 = lean_st_ref_set(x_1, x_51, x_10);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
x_54 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_54 = lean_box(0);
|
||||
}
|
||||
x_55 = lean_box(0);
|
||||
if (lean_is_scalar(x_54)) {
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_56 = x_54;
|
||||
}
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_alloc_closure((void*)(l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg___boxed), 4, 0);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_11 = l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg(x_7, x_8, x_9, x_10);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_11 = lean_st_ref_get(x_9, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_st_ref_get(x_9, x_12);
|
||||
x_14 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_15 = lean_st_ref_get(x_7, x_14);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
if (x_16 == 0)
|
||||
x_13 = lean_st_ref_get(x_7, x_12);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_ctor_get(x_18, 6);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_19, x_1);
|
||||
x_21 = lean_box(x_20);
|
||||
lean_ctor_set(x_15, 0, x_21);
|
||||
return x_15;
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = lean_ctor_get(x_16, 6);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_18 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_17, x_1);
|
||||
x_19 = lean_box(x_18);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_22 = lean_ctor_get(x_15, 0);
|
||||
x_23 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_23);
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_20 = lean_ctor_get(x_13, 0);
|
||||
x_21 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_13);
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_15);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_20);
|
||||
x_23 = lean_ctor_get(x_22, 6);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_ctor_get(x_24, 6);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_24);
|
||||
x_26 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_25, x_1);
|
||||
x_27 = lean_box(x_26);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_23);
|
||||
return x_28;
|
||||
x_24 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(x_23, x_1);
|
||||
x_25 = lean_box(x_24);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_21);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
|
|
@ -1641,7 +1436,7 @@ x_12 = lean_ctor_get(x_10, 1);
|
|||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_box(0);
|
||||
x_14 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3(x_11, x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
x_14 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(x_11, x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
|
|
@ -1652,30 +1447,6 @@ x_18 = l_Lean_Elab_Tactic_setGoals(x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8,
|
|||
return x_18;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_markUsedAssignment___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1692,11 +1463,11 @@ lean_dec(x_2);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_12 = l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -12466,48 +12237,45 @@ lean_dec(x_19);
|
|||
x_20 = !lean_is_exclusive(x_16);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25;
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_21 = lean_ctor_get(x_16, 6);
|
||||
x_22 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_21, x_1, x_2);
|
||||
x_23 = 1;
|
||||
lean_ctor_set(x_16, 6, x_22);
|
||||
lean_ctor_set_uint8(x_16, sizeof(void*)*8, x_23);
|
||||
x_24 = lean_st_ref_set(x_8, x_15, x_17);
|
||||
x_25 = !lean_is_exclusive(x_24);
|
||||
if (x_25 == 0)
|
||||
x_23 = lean_st_ref_set(x_8, x_15, x_17);
|
||||
x_24 = !lean_is_exclusive(x_23);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_ctor_get(x_24, 0);
|
||||
lean_dec(x_26);
|
||||
x_27 = lean_box(0);
|
||||
lean_ctor_set(x_24, 0, x_27);
|
||||
return x_24;
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_ctor_get(x_23, 0);
|
||||
lean_dec(x_25);
|
||||
x_26 = lean_box(0);
|
||||
lean_ctor_set(x_23, 0, x_26);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_24);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
return x_30;
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_23);
|
||||
x_28 = lean_box(0);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_27);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_31 = lean_ctor_get(x_16, 0);
|
||||
x_32 = lean_ctor_get(x_16, 1);
|
||||
x_33 = lean_ctor_get(x_16, 2);
|
||||
x_34 = lean_ctor_get(x_16, 3);
|
||||
x_35 = lean_ctor_get(x_16, 4);
|
||||
x_36 = lean_ctor_get(x_16, 5);
|
||||
x_37 = lean_ctor_get(x_16, 6);
|
||||
x_38 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_38);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_30 = lean_ctor_get(x_16, 0);
|
||||
x_31 = lean_ctor_get(x_16, 1);
|
||||
x_32 = lean_ctor_get(x_16, 2);
|
||||
x_33 = lean_ctor_get(x_16, 3);
|
||||
x_34 = lean_ctor_get(x_16, 4);
|
||||
x_35 = lean_ctor_get(x_16, 5);
|
||||
x_36 = lean_ctor_get(x_16, 6);
|
||||
x_37 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_37);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
|
|
@ -12515,68 +12283,67 @@ lean_inc(x_34);
|
|||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_16);
|
||||
x_39 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_37, x_1, x_2);
|
||||
x_40 = 1;
|
||||
x_41 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_41, 0, x_31);
|
||||
lean_ctor_set(x_41, 1, x_32);
|
||||
lean_ctor_set(x_41, 2, x_33);
|
||||
lean_ctor_set(x_41, 3, x_34);
|
||||
lean_ctor_set(x_41, 4, x_35);
|
||||
lean_ctor_set(x_41, 5, x_36);
|
||||
lean_ctor_set(x_41, 6, x_39);
|
||||
lean_ctor_set(x_41, 7, x_38);
|
||||
lean_ctor_set_uint8(x_41, sizeof(void*)*8, x_40);
|
||||
lean_ctor_set(x_15, 0, x_41);
|
||||
x_42 = lean_st_ref_set(x_8, x_15, x_17);
|
||||
x_43 = lean_ctor_get(x_42, 1);
|
||||
lean_inc(x_43);
|
||||
if (lean_is_exclusive(x_42)) {
|
||||
lean_ctor_release(x_42, 0);
|
||||
lean_ctor_release(x_42, 1);
|
||||
x_38 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_36, x_1, x_2);
|
||||
x_39 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_39, 0, x_30);
|
||||
lean_ctor_set(x_39, 1, x_31);
|
||||
lean_ctor_set(x_39, 2, x_32);
|
||||
lean_ctor_set(x_39, 3, x_33);
|
||||
lean_ctor_set(x_39, 4, x_34);
|
||||
lean_ctor_set(x_39, 5, x_35);
|
||||
lean_ctor_set(x_39, 6, x_38);
|
||||
lean_ctor_set(x_39, 7, x_37);
|
||||
lean_ctor_set(x_15, 0, x_39);
|
||||
x_40 = lean_st_ref_set(x_8, x_15, x_17);
|
||||
x_41 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_41);
|
||||
if (lean_is_exclusive(x_40)) {
|
||||
lean_ctor_release(x_40, 0);
|
||||
lean_ctor_release(x_40, 1);
|
||||
x_42 = x_40;
|
||||
} else {
|
||||
lean_dec_ref(x_40);
|
||||
x_42 = lean_box(0);
|
||||
}
|
||||
x_43 = lean_box(0);
|
||||
if (lean_is_scalar(x_42)) {
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_44 = x_42;
|
||||
} else {
|
||||
lean_dec_ref(x_42);
|
||||
x_44 = lean_box(0);
|
||||
}
|
||||
x_45 = lean_box(0);
|
||||
if (lean_is_scalar(x_44)) {
|
||||
x_46 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_46 = x_44;
|
||||
}
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
lean_ctor_set(x_46, 1, x_43);
|
||||
return x_46;
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_41);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_47 = lean_ctor_get(x_15, 1);
|
||||
x_48 = lean_ctor_get(x_15, 2);
|
||||
x_49 = lean_ctor_get(x_15, 3);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
x_45 = lean_ctor_get(x_15, 1);
|
||||
x_46 = lean_ctor_get(x_15, 2);
|
||||
x_47 = lean_ctor_get(x_15, 3);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_15);
|
||||
x_50 = lean_ctor_get(x_16, 0);
|
||||
x_48 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_48);
|
||||
x_49 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_49);
|
||||
x_50 = lean_ctor_get(x_16, 2);
|
||||
lean_inc(x_50);
|
||||
x_51 = lean_ctor_get(x_16, 1);
|
||||
x_51 = lean_ctor_get(x_16, 3);
|
||||
lean_inc(x_51);
|
||||
x_52 = lean_ctor_get(x_16, 2);
|
||||
x_52 = lean_ctor_get(x_16, 4);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_16, 3);
|
||||
x_53 = lean_ctor_get(x_16, 5);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_16, 4);
|
||||
x_54 = lean_ctor_get(x_16, 6);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_16, 5);
|
||||
x_55 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_16, 6);
|
||||
lean_inc(x_56);
|
||||
x_57 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_57);
|
||||
if (lean_is_exclusive(x_16)) {
|
||||
lean_ctor_release(x_16, 0);
|
||||
lean_ctor_release(x_16, 1);
|
||||
|
|
@ -12586,52 +12353,50 @@ if (lean_is_exclusive(x_16)) {
|
|||
lean_ctor_release(x_16, 5);
|
||||
lean_ctor_release(x_16, 6);
|
||||
lean_ctor_release(x_16, 7);
|
||||
x_58 = x_16;
|
||||
x_56 = x_16;
|
||||
} else {
|
||||
lean_dec_ref(x_16);
|
||||
x_58 = lean_box(0);
|
||||
x_56 = lean_box(0);
|
||||
}
|
||||
x_59 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_56, x_1, x_2);
|
||||
x_60 = 1;
|
||||
if (lean_is_scalar(x_58)) {
|
||||
x_61 = lean_alloc_ctor(0, 8, 1);
|
||||
x_57 = l_Std_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_54, x_1, x_2);
|
||||
if (lean_is_scalar(x_56)) {
|
||||
x_58 = lean_alloc_ctor(0, 8, 0);
|
||||
} else {
|
||||
x_61 = x_58;
|
||||
x_58 = x_56;
|
||||
}
|
||||
lean_ctor_set(x_61, 0, x_50);
|
||||
lean_ctor_set(x_61, 1, x_51);
|
||||
lean_ctor_set(x_61, 2, x_52);
|
||||
lean_ctor_set(x_61, 3, x_53);
|
||||
lean_ctor_set(x_61, 4, x_54);
|
||||
lean_ctor_set(x_61, 5, x_55);
|
||||
lean_ctor_set(x_61, 6, x_59);
|
||||
lean_ctor_set(x_61, 7, x_57);
|
||||
lean_ctor_set_uint8(x_61, sizeof(void*)*8, x_60);
|
||||
x_62 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_47);
|
||||
lean_ctor_set(x_62, 2, x_48);
|
||||
lean_ctor_set(x_62, 3, x_49);
|
||||
x_63 = lean_st_ref_set(x_8, x_62, x_17);
|
||||
x_64 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_64);
|
||||
if (lean_is_exclusive(x_63)) {
|
||||
lean_ctor_release(x_63, 0);
|
||||
lean_ctor_release(x_63, 1);
|
||||
x_65 = x_63;
|
||||
lean_ctor_set(x_58, 0, x_48);
|
||||
lean_ctor_set(x_58, 1, x_49);
|
||||
lean_ctor_set(x_58, 2, x_50);
|
||||
lean_ctor_set(x_58, 3, x_51);
|
||||
lean_ctor_set(x_58, 4, x_52);
|
||||
lean_ctor_set(x_58, 5, x_53);
|
||||
lean_ctor_set(x_58, 6, x_57);
|
||||
lean_ctor_set(x_58, 7, x_55);
|
||||
x_59 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_59, 0, x_58);
|
||||
lean_ctor_set(x_59, 1, x_45);
|
||||
lean_ctor_set(x_59, 2, x_46);
|
||||
lean_ctor_set(x_59, 3, x_47);
|
||||
x_60 = lean_st_ref_set(x_8, x_59, x_17);
|
||||
x_61 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_61);
|
||||
if (lean_is_exclusive(x_60)) {
|
||||
lean_ctor_release(x_60, 0);
|
||||
lean_ctor_release(x_60, 1);
|
||||
x_62 = x_60;
|
||||
} else {
|
||||
lean_dec_ref(x_63);
|
||||
x_65 = lean_box(0);
|
||||
lean_dec_ref(x_60);
|
||||
x_62 = lean_box(0);
|
||||
}
|
||||
x_66 = lean_box(0);
|
||||
if (lean_is_scalar(x_65)) {
|
||||
x_67 = lean_alloc_ctor(0, 2, 0);
|
||||
x_63 = lean_box(0);
|
||||
if (lean_is_scalar(x_62)) {
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_67 = x_65;
|
||||
x_64 = x_62;
|
||||
}
|
||||
lean_ctor_set(x_67, 0, x_66);
|
||||
lean_ctor_set(x_67, 1, x_64);
|
||||
return x_67;
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_61);
|
||||
return x_64;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
276
stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c
generated
276
stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c
generated
|
|
@ -103,11 +103,13 @@ lean_object* lean_array_uget(lean_object*, size_t);
|
|||
lean_object* lean_io_error_to_string(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_renameInaccessibles___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__25___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRange___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__13;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace___closed__1;
|
||||
lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(lean_object*, lean_object*);
|
||||
|
|
@ -638,7 +640,6 @@ lean_object* l_panic___at___private_Init_Prelude_0__Lean_assembleParts___spec__1
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_renameInaccessibles___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
|
|
@ -668,7 +669,6 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals_declRange___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalAnyGoals___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__5;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2;
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange___closed__4;
|
||||
|
|
@ -706,11 +706,13 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange___clo
|
|||
extern lean_object* l_Lean_NameSet_empty;
|
||||
extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__5;
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange___closed__3;
|
||||
lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithAnnotateState___closed__6;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalSubstVars___rarg___closed__1;
|
||||
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_renameInaccessibles___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange___closed__7;
|
||||
|
|
@ -733,6 +735,7 @@ lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec_
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRevert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFocus(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalWithAnnotateState___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -767,7 +770,6 @@ lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_Tactic_addCheckpoints_push___closed__11;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSleep(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1_declRange___closed__2;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__4;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__1;
|
||||
|
|
@ -775,7 +777,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalContradiction(lean_object*);
|
|||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getSepArgs(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRotateRight___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAnyGoals___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -897,6 +898,7 @@ static lean_object* l_Lean_Elab_Tactic_evalWithAnnotateState___closed__7;
|
|||
lean_object* l_Array_ofSubarray___rarg(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented_declRange___closed__1;
|
||||
static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Tactic_evalOpen___spec__25___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_evalFailIfSuccess___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_renameInaccessibles___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Tactic_evalOpen___spec__22___closed__4;
|
||||
|
|
@ -4515,14 +4517,13 @@ x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed
|
|||
x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__7;
|
||||
x_3 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__8;
|
||||
x_4 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -13485,7 +13486,16 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1() {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_evalFailIfSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
x_11 = lean_apply_2(x_1, x_2, x_3);
|
||||
x_12 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -13493,27 +13503,25 @@ x_1 = lean_mk_string_from_bytes("tactic succeeded", 16);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1;
|
||||
x_1 = l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11; lean_object* x_12; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_18 = lean_unsigned_to_nat(1u);
|
||||
x_19 = l_Lean_Syntax_getArg(x_1, x_18);
|
||||
x_20 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_20);
|
||||
uint8_t x_11; lean_object* x_12; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_18 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
|
|
@ -13522,38 +13530,38 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_23 = l_Lean_Elab_Tactic_evalTactic(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
x_21 = l_Lean_Elab_Tactic_evalTactic(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_24; uint8_t x_25;
|
||||
lean_object* x_22; uint8_t x_23;
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_21);
|
||||
x_24 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_23);
|
||||
x_25 = 1;
|
||||
x_11 = x_25;
|
||||
x_12 = x_24;
|
||||
x_23 = 1;
|
||||
x_11 = x_23;
|
||||
x_12 = x_22;
|
||||
goto block_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_26 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_23);
|
||||
x_27 = 0;
|
||||
lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_21);
|
||||
x_25 = 0;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_28 = l_Lean_Elab_Tactic_SavedState_restore(x_21, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26);
|
||||
x_29 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_28);
|
||||
x_11 = x_27;
|
||||
x_12 = x_29;
|
||||
x_26 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24);
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
x_11 = x_25;
|
||||
x_12 = x_27;
|
||||
goto block_17;
|
||||
}
|
||||
block_17:
|
||||
|
|
@ -13578,7 +13586,7 @@ return x_14;
|
|||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2;
|
||||
x_15 = l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2;
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_12);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -13593,13 +13601,19 @@ return x_16;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_Tactic_evalFailIfSuccess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1), 10, 1);
|
||||
lean_closure_set(x_13, 0, x_12);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1);
|
||||
lean_closure_set(x_14, 0, x_13);
|
||||
x_15 = l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_evalFailIfSuccess___spec__1(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1() {
|
||||
|
|
@ -13642,7 +13656,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___cl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalFailIfSuccess___boxed), 10, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalFailIfSuccess), 10, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -13674,8 +13688,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(172u);
|
||||
x_2 = lean_unsigned_to_nat(33u);
|
||||
x_1 = lean_unsigned_to_nat(173u);
|
||||
x_2 = lean_unsigned_to_nat(35u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -13689,7 +13703,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj
|
|||
x_1 = l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess_declRange___closed__2;
|
||||
x_4 = lean_unsigned_to_nat(33u);
|
||||
x_4 = lean_unsigned_to_nat(35u);
|
||||
x_5 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
|
|
@ -14175,7 +14189,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(174u);
|
||||
x_1 = lean_unsigned_to_nat(175u);
|
||||
x_2 = lean_unsigned_to_nat(28u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14187,7 +14201,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(176u);
|
||||
x_1 = lean_unsigned_to_nat(177u);
|
||||
x_2 = lean_unsigned_to_nat(60u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14215,7 +14229,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(174u);
|
||||
x_1 = lean_unsigned_to_nat(175u);
|
||||
x_2 = lean_unsigned_to_nat(32u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14227,7 +14241,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceState_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(174u);
|
||||
x_1 = lean_unsigned_to_nat(175u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14486,7 +14500,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(178u);
|
||||
x_1 = lean_unsigned_to_nat(179u);
|
||||
x_2 = lean_unsigned_to_nat(30u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14498,7 +14512,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(181u);
|
||||
x_1 = lean_unsigned_to_nat(182u);
|
||||
x_2 = lean_unsigned_to_nat(49u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14526,7 +14540,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(178u);
|
||||
x_1 = lean_unsigned_to_nat(179u);
|
||||
x_2 = lean_unsigned_to_nat(34u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14538,7 +14552,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalTraceMessage_declR
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(178u);
|
||||
x_1 = lean_unsigned_to_nat(179u);
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14824,7 +14838,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(183u);
|
||||
x_1 = lean_unsigned_to_nat(184u);
|
||||
x_2 = lean_unsigned_to_nat(47u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14836,7 +14850,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(184u);
|
||||
x_1 = lean_unsigned_to_nat(185u);
|
||||
x_2 = lean_unsigned_to_nat(60u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14864,7 +14878,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(183u);
|
||||
x_1 = lean_unsigned_to_nat(184u);
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14876,7 +14890,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(183u);
|
||||
x_1 = lean_unsigned_to_nat(184u);
|
||||
x_2 = lean_unsigned_to_nat(65u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -14963,7 +14977,7 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_14 = l_Lean_Meta_contradiction(x_11, x_13, x_5, x_6, x_7, x_8, x_12);
|
||||
x_14 = l_Lean_MVarId_contradiction(x_11, x_13, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
|
|
@ -15178,7 +15192,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(186u);
|
||||
x_1 = lean_unsigned_to_nat(187u);
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15190,8 +15204,8 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(187u);
|
||||
x_2 = lean_unsigned_to_nat(68u);
|
||||
x_1 = lean_unsigned_to_nat(188u);
|
||||
x_2 = lean_unsigned_to_nat(63u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -15205,7 +15219,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_obj
|
|||
x_1 = l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = l___regBuiltin_Lean_Elab_Tactic_evalContradiction_declRange___closed__2;
|
||||
x_4 = lean_unsigned_to_nat(68u);
|
||||
x_4 = lean_unsigned_to_nat(63u);
|
||||
x_5 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
|
|
@ -15218,7 +15232,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(186u);
|
||||
x_1 = lean_unsigned_to_nat(187u);
|
||||
x_2 = lean_unsigned_to_nat(54u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15230,7 +15244,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalContradiction_decl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(186u);
|
||||
x_1 = lean_unsigned_to_nat(187u);
|
||||
x_2 = lean_unsigned_to_nat(71u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15516,7 +15530,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(189u);
|
||||
x_1 = lean_unsigned_to_nat(190u);
|
||||
x_2 = lean_unsigned_to_nat(41u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15528,7 +15542,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(190u);
|
||||
x_1 = lean_unsigned_to_nat(191u);
|
||||
x_2 = lean_unsigned_to_nat(54u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15556,7 +15570,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(189u);
|
||||
x_1 = lean_unsigned_to_nat(190u);
|
||||
x_2 = lean_unsigned_to_nat(45u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -15568,7 +15582,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRefl_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(189u);
|
||||
x_1 = lean_unsigned_to_nat(190u);
|
||||
x_2 = lean_unsigned_to_nat(53u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -16741,7 +16755,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(192u);
|
||||
x_1 = lean_unsigned_to_nat(193u);
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -16753,7 +16767,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(207u);
|
||||
x_1 = lean_unsigned_to_nat(208u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -16781,7 +16795,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(192u);
|
||||
x_1 = lean_unsigned_to_nat(193u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -16793,7 +16807,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntro_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(192u);
|
||||
x_1 = lean_unsigned_to_nat(193u);
|
||||
x_2 = lean_unsigned_to_nat(55u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17044,7 +17058,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(209u);
|
||||
x_1 = lean_unsigned_to_nat(210u);
|
||||
x_2 = lean_unsigned_to_nat(47u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17056,7 +17070,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(212u);
|
||||
x_1 = lean_unsigned_to_nat(213u);
|
||||
x_2 = lean_unsigned_to_nat(52u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17084,7 +17098,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(209u);
|
||||
x_1 = lean_unsigned_to_nat(210u);
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17096,7 +17110,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch_declRan
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(209u);
|
||||
x_1 = lean_unsigned_to_nat(210u);
|
||||
x_2 = lean_unsigned_to_nat(65u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17957,7 +17971,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(214u);
|
||||
x_1 = lean_unsigned_to_nat(215u);
|
||||
x_2 = lean_unsigned_to_nat(26u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17969,7 +17983,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(226u);
|
||||
x_1 = lean_unsigned_to_nat(227u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -17997,7 +18011,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(214u);
|
||||
x_1 = lean_unsigned_to_nat(215u);
|
||||
x_2 = lean_unsigned_to_nat(30u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18009,7 +18023,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalIntros_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(214u);
|
||||
x_1 = lean_unsigned_to_nat(215u);
|
||||
x_2 = lean_unsigned_to_nat(40u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18300,7 +18314,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(228u);
|
||||
x_1 = lean_unsigned_to_nat(229u);
|
||||
x_2 = lean_unsigned_to_nat(43u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18312,7 +18326,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(233u);
|
||||
x_1 = lean_unsigned_to_nat(234u);
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18340,7 +18354,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(228u);
|
||||
x_1 = lean_unsigned_to_nat(229u);
|
||||
x_2 = lean_unsigned_to_nat(47u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18352,7 +18366,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert_declRange__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(228u);
|
||||
x_1 = lean_unsigned_to_nat(229u);
|
||||
x_2 = lean_unsigned_to_nat(57u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18850,7 +18864,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(235u);
|
||||
x_1 = lean_unsigned_to_nat(236u);
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18862,7 +18876,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(244u);
|
||||
x_1 = lean_unsigned_to_nat(245u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18890,7 +18904,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(235u);
|
||||
x_1 = lean_unsigned_to_nat(236u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -18902,7 +18916,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalClear_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(235u);
|
||||
x_1 = lean_unsigned_to_nat(236u);
|
||||
x_2 = lean_unsigned_to_nat(55u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19376,7 +19390,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(253u);
|
||||
x_1 = lean_unsigned_to_nat(254u);
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19388,7 +19402,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(256u);
|
||||
x_1 = lean_unsigned_to_nat(257u);
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19416,7 +19430,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(253u);
|
||||
x_1 = lean_unsigned_to_nat(254u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19428,7 +19442,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(253u);
|
||||
x_1 = lean_unsigned_to_nat(254u);
|
||||
x_2 = lean_unsigned_to_nat(55u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19719,7 +19733,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(258u);
|
||||
x_1 = lean_unsigned_to_nat(259u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19731,7 +19745,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(259u);
|
||||
x_1 = lean_unsigned_to_nat(260u);
|
||||
x_2 = lean_unsigned_to_nat(58u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19759,7 +19773,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(258u);
|
||||
x_1 = lean_unsigned_to_nat(259u);
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -19771,7 +19785,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSubstVars_declRang
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(258u);
|
||||
x_1 = lean_unsigned_to_nat(259u);
|
||||
x_2 = lean_unsigned_to_nat(63u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25307,7 +25321,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(316u);
|
||||
x_1 = lean_unsigned_to_nat(317u);
|
||||
x_2 = lean_unsigned_to_nat(24u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25319,7 +25333,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(325u);
|
||||
x_1 = lean_unsigned_to_nat(326u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25347,7 +25361,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(316u);
|
||||
x_1 = lean_unsigned_to_nat(317u);
|
||||
x_2 = lean_unsigned_to_nat(28u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25359,7 +25373,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(316u);
|
||||
x_1 = lean_unsigned_to_nat(317u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25840,7 +25854,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(327u);
|
||||
x_1 = lean_unsigned_to_nat(328u);
|
||||
x_2 = lean_unsigned_to_nat(25u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25852,7 +25866,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(338u);
|
||||
x_1 = lean_unsigned_to_nat(339u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25880,7 +25894,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(327u);
|
||||
x_1 = lean_unsigned_to_nat(328u);
|
||||
x_2 = lean_unsigned_to_nat(29u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -25892,7 +25906,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCase_x27_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(327u);
|
||||
x_1 = lean_unsigned_to_nat(328u);
|
||||
x_2 = lean_unsigned_to_nat(38u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26134,7 +26148,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(340u);
|
||||
x_1 = lean_unsigned_to_nat(341u);
|
||||
x_2 = lean_unsigned_to_nat(27u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26146,7 +26160,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(342u);
|
||||
x_1 = lean_unsigned_to_nat(343u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26174,7 +26188,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(340u);
|
||||
x_1 = lean_unsigned_to_nat(341u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26186,7 +26200,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRenameInaccessible
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(340u);
|
||||
x_1 = lean_unsigned_to_nat(341u);
|
||||
x_2 = lean_unsigned_to_nat(54u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26593,7 +26607,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(344u);
|
||||
x_1 = lean_unsigned_to_nat(345u);
|
||||
x_2 = lean_unsigned_to_nat(33u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26605,7 +26619,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(353u);
|
||||
x_1 = lean_unsigned_to_nat(354u);
|
||||
x_2 = lean_unsigned_to_nat(48u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26633,7 +26647,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(344u);
|
||||
x_1 = lean_unsigned_to_nat(345u);
|
||||
x_2 = lean_unsigned_to_nat(37u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26645,7 +26659,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFirst_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(344u);
|
||||
x_1 = lean_unsigned_to_nat(345u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26943,7 +26957,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(355u);
|
||||
x_1 = lean_unsigned_to_nat(356u);
|
||||
x_2 = lean_unsigned_to_nat(24u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26955,7 +26969,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(361u);
|
||||
x_1 = lean_unsigned_to_nat(362u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26983,7 +26997,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(355u);
|
||||
x_1 = lean_unsigned_to_nat(356u);
|
||||
x_2 = lean_unsigned_to_nat(28u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -26995,7 +27009,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFail_declRange___c
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(355u);
|
||||
x_1 = lean_unsigned_to_nat(356u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27181,7 +27195,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(363u);
|
||||
x_1 = lean_unsigned_to_nat(364u);
|
||||
x_2 = lean_unsigned_to_nat(26u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27193,7 +27207,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(366u);
|
||||
x_1 = lean_unsigned_to_nat(367u);
|
||||
x_2 = lean_unsigned_to_nat(29u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27221,7 +27235,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(363u);
|
||||
x_1 = lean_unsigned_to_nat(364u);
|
||||
x_2 = lean_unsigned_to_nat(30u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27233,7 +27247,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDbgTrace_declRange
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(363u);
|
||||
x_1 = lean_unsigned_to_nat(364u);
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27452,7 +27466,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(368u);
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_2 = lean_unsigned_to_nat(23u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27464,7 +27478,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(371u);
|
||||
x_1 = lean_unsigned_to_nat(372u);
|
||||
x_2 = lean_unsigned_to_nat(35u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27492,7 +27506,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(368u);
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_2 = lean_unsigned_to_nat(27u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -27504,7 +27518,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalSleep_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(368u);
|
||||
x_1 = lean_unsigned_to_nat(369u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -28263,10 +28277,10 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange___clo
|
|||
res = l___regBuiltin_Lean_Elab_Tactic_evalUnknown_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1 = _init_l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1);
|
||||
l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2 = _init_l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2);
|
||||
l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__1);
|
||||
l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalFailIfSuccess___lambda__1___closed__2);
|
||||
l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__2();
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/Elab/Tactic/Calc.c
generated
26
stage0/stdlib/Lean/Elab/Tactic/Calc.c
generated
|
|
@ -31,11 +31,13 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__5;
|
|||
static lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__2___closed__10;
|
||||
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCalc(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc_declRange___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc_declRange___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__7;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__9;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__4;
|
||||
|
|
@ -51,7 +53,6 @@ extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
|||
lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__2___closed__8;
|
||||
|
|
@ -74,7 +75,6 @@ lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_obje
|
|||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__2___closed__5;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc_declRange(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -82,6 +82,7 @@ lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_objec
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc___closed__10;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCalc_declRange___closed__4;
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_elabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalCalc___lambda__2___closed__6;
|
||||
|
|
@ -200,6 +201,14 @@ lean_dec(x_1);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_Tactic_elabCalcSteps_go(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -208,27 +217,30 @@ x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*1);
|
|||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabCalcSteps_go___boxed), 8, 1);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabCalcSteps___lambda__1___boxed), 10, 1);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_elabTerm___spec__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_14 = l_Lean_Elab_Tactic_elabCalcSteps_go(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_1);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCalcSteps___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_Tactic_elabCalcSteps(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_11 = l_Lean_Elab_Tactic_elabCalcSteps___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
|
|
@ -377,6 +389,8 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_11 = l_Lean_Elab_Tactic_elabCalcSteps(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c
generated
4
stage0/stdlib/Lean/Elab/Tactic/Conv/Basic.c
generated
|
|
@ -142,7 +142,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___
|
|||
static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__4;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed_declRange(lean_object*);
|
||||
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic_declRange___closed__6;
|
||||
lean_object* l___private_Lean_Meta_Tactic_Replace_0__Lean_Meta_replaceLocalDeclCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvConvSeq_declRange___closed__7;
|
||||
|
|
@ -203,6 +202,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalWhnf___closed__9;
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalZeta___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_Conv_evalConvSeqBracketed___lambda__2___closed__3;
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConvSeqBracketed_declRange___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalNestedTactic_declRange___closed__2;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalConv_declRange___closed__4;
|
||||
|
|
@ -748,7 +748,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
x_19 = l_Lean_Meta_applyRefl(x_13, x_18, x_7, x_8, x_9, x_10, x_17);
|
||||
x_19 = l_Lean_MVarId_applyRefl(x_13, x_18, x_7, x_8, x_9, x_10, x_17);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/Tactic/Conv/Change.c
generated
2
stage0/stdlib/Lean/Elab/Tactic/Conv/Change.c
generated
|
|
@ -301,6 +301,8 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_31 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_15, x_29, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c
generated
6
stage0/stdlib/Lean/Elab/Tactic/Conv/Congr.c
generated
|
|
@ -120,7 +120,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalRhs_declRange___clo
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalRhs_declRange___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalArg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_selectIdx___lambda__1___closed__4;
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalCongr___closed__10;
|
||||
|
|
@ -157,6 +156,7 @@ lean_object* l_Lean_Elab_Tactic_Conv_markAsConvGoal(lean_object*, lean_object*,
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_extLetBodyCongr_x3f___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_Conv_extLetBodyCongr_x3f___lambda__3___closed__3;
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_Conv_Congr_0__Lean_Elab_Tactic_Conv_congrImplies___closed__3;
|
||||
lean_object* l_Lean_MVarId_apply(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3246,7 +3246,7 @@ lean_inc(x_11);
|
|||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_30 = l_Lean_Meta_applyRefl(x_27, x_29, x_8, x_9, x_10, x_11, x_12);
|
||||
x_30 = l_Lean_MVarId_applyRefl(x_27, x_29, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
lean_object* x_31;
|
||||
|
|
@ -3326,7 +3326,7 @@ lean_inc(x_11);
|
|||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_44 = l_Lean_Meta_applyRefl(x_41, x_43, x_8, x_9, x_10, x_11, x_12);
|
||||
x_44 = l_Lean_MVarId_applyRefl(x_41, x_43, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_44) == 0)
|
||||
{
|
||||
lean_object* x_45;
|
||||
|
|
|
|||
19
stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c
generated
19
stage0/stdlib/Lean/Elab/Tactic/Conv/Pattern.c
generated
|
|
@ -49,7 +49,6 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Meta_Simp_neutralConfig;
|
||||
lean_object* l_Lean_Meta_abstractMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
|
|
@ -63,14 +62,17 @@ lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_obj
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_matchPattern_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_toHeadIndex(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_Conv_getLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_Tactic_Conv_findPattern_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_Conv_evalPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalPattern___closed__2;
|
||||
uint8_t l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_66_(lean_object*, lean_object*);
|
||||
|
|
@ -93,7 +95,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Conv_Pattern_0__Lean_Elab_
|
|||
static lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__3___closed__6;
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_Conv_updateLhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalPattern(lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_Conv_evalPattern_declRange___closed__4;
|
||||
|
|
@ -1466,6 +1467,14 @@ lean_dec(x_2);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_Conv_evalPattern___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Conv_evalPattern___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1531,7 +1540,7 @@ x_11 = lean_ctor_get(x_7, 5);
|
|||
x_12 = l_Lean_replaceRef(x_1, x_11);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_7, 5, x_12);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
|
|
@ -1574,7 +1583,7 @@ lean_ctor_set(x_26, 7, x_21);
|
|||
lean_ctor_set(x_26, 8, x_22);
|
||||
lean_ctor_set(x_26, 9, x_23);
|
||||
lean_ctor_set(x_26, 10, x_24);
|
||||
x_27 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
x_27 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
|
|
@ -1826,7 +1835,7 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_58 = l_Lean_Meta_applyRefl(x_55, x_57, x_6, x_7, x_8, x_9, x_56);
|
||||
x_58 = l_Lean_MVarId_applyRefl(x_55, x_57, x_6, x_7, x_8, x_9, x_56);
|
||||
if (lean_obj_tag(x_58) == 0)
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Elab/Tactic/Conv/Rewrite.c
generated
2
stage0/stdlib/Lean/Elab/Tactic/Conv/Rewrite.c
generated
|
|
@ -72,6 +72,8 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_15 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
|
|
|
|||
87
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
87
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
|
|
@ -135,6 +135,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize_declRange___c
|
|||
lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide_declRange___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact_declRange___closed__7;
|
||||
|
|
@ -160,7 +161,6 @@ static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__2
|
|||
static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___closed__1;
|
||||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalSpecialize___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalRename___closed__2;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__4;
|
||||
|
|
@ -254,10 +254,10 @@ size_t lean_usize_of_nat(lean_object*);
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide_declRange___closed__7;
|
||||
extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRename___closed__3;
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalConstructor_declRange___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalWithUnfoldingAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27___closed__3;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible_declRange___closed__2;
|
||||
lean_object* l_Lean_LocalDecl_fvarId(lean_object*);
|
||||
|
|
@ -282,6 +282,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstance
|
|||
static lean_object* l_Lean_Elab_Tactic_evalRefine___closed__1;
|
||||
static lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_logUnassignedAndAbort___spec__1___rarg___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible_declRange___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getFVarIds___boxed__const__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible_declRange___closed__3;
|
||||
|
|
@ -339,7 +340,6 @@ static lean_object* l_Lean_Elab_Tactic_evalSpecialize___closed__4;
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply_declRange___closed__7;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalExact___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances_declRange___closed__5;
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRefine_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -373,7 +373,6 @@ static lean_object* l_Lean_Elab_Tactic_evalApply___closed__1;
|
|||
lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact_declRange___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide_declRange___closed__4;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide___closed__3;
|
||||
|
|
@ -415,6 +414,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___boxed(lean_objec
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_logUnassignedAndAbort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_declRange___closed__3;
|
||||
static lean_object* l_Lean_Elab_Tactic_getFVarId___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_elabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withCollectingNewGoalsFrom___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply_declRange(lean_object*);
|
||||
|
|
@ -439,6 +439,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalExact(lean_object*, lean_object*
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27_declRange___closed__7;
|
||||
static lean_object* l_Lean_Elab_Tactic_refineCore___lambda__4___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__5;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalConstructor___rarg___closed__1;
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_refineCore___lambda__3(lean_object*, lean_object*);
|
||||
|
|
@ -724,6 +725,23 @@ x_12 = l_Lean_Elab_Tactic_elabTerm_go(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x
|
|||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_elabTerm___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
x_11 = lean_apply_2(x_1, x_2, x_3);
|
||||
x_12 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_13;
|
||||
x_13 = l_Lean_Elab_Tactic_elabTerm_go(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -733,21 +751,35 @@ if (x_13 == 0)
|
|||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_14 = lean_box(x_3);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm_go___boxed), 10, 3);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed), 12, 3);
|
||||
lean_closure_set(x_15, 0, x_1);
|
||||
lean_closure_set(x_15, 1, x_2);
|
||||
lean_closure_set(x_15, 2, x_14);
|
||||
x_16 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_16 = l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Tactic_elabTerm___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_17 = l_Lean_Elab_Tactic_elabTerm_go(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_13; lean_object* x_14;
|
||||
x_13 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_14 = l_Lean_Elab_Tactic_elabTerm___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -755,8 +787,6 @@ uint8_t x_13; lean_object* x_14;
|
|||
x_13 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_14 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
|
|
@ -1202,8 +1232,6 @@ uint8_t x_13; lean_object* x_14;
|
|||
x_13 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_14 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
|
|
@ -1741,6 +1769,8 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_21 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
|
|
@ -1766,6 +1796,8 @@ x_29 = lean_ctor_get(x_27, 1);
|
|||
lean_inc(x_29);
|
||||
lean_dec(x_27);
|
||||
x_30 = l_Lean_Elab_Tactic_logUnassignedAndAbort(x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_29);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
uint8_t x_31;
|
||||
|
|
@ -1824,6 +1856,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_39 = !lean_is_exclusive(x_21);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
|
|
@ -1945,7 +1979,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_obje
|
|||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
lean_dec(x_1);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__1___boxed), 11, 1);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__1), 11, 1);
|
||||
lean_closure_set(x_16, 0, x_15);
|
||||
x_17 = 0;
|
||||
x_18 = l_Lean_Elab_Tactic_closeMainGoalUsing(x_16, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
|
|
@ -1969,16 +2003,6 @@ lean_dec(x_1);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_Elab_Tactic_evalExact___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7175,6 +7199,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_14 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
|
|
@ -8682,6 +8708,8 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_13 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
|
|
@ -8728,6 +8756,7 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_25;
|
||||
}
|
||||
|
|
@ -8741,6 +8770,7 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_26 = !lean_is_exclusive(x_17);
|
||||
if (x_26 == 0)
|
||||
|
|
@ -8780,6 +8810,7 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_32 = !lean_is_exclusive(x_17);
|
||||
if (x_32 == 0)
|
||||
|
|
@ -8810,6 +8841,7 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_36 = !lean_is_exclusive(x_13);
|
||||
if (x_36 == 0)
|
||||
|
|
@ -8836,7 +8868,7 @@ LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_eval
|
|||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___boxed), 11, 2);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1), 11, 2);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
lean_closure_set(x_12, 1, x_2);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1);
|
||||
|
|
@ -9245,15 +9277,6 @@ lean_dec(x_4);
|
|||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_4);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -9476,7 +9499,7 @@ x_14 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8__
|
|||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__4(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Elab/Tactic/Generalize.c
generated
16
stage0/stdlib/Lean/Elab/Tactic/Generalize.c
generated
|
|
@ -31,7 +31,6 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize_declRang
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalGeneralize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__10;
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGeneralize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -50,6 +49,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGeneralize___lambda__1(lean_obje
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__13;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize_declRange___closed__3;
|
||||
lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isNone(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__6;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__9;
|
||||
|
|
@ -78,6 +78,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_3);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
|
|
@ -101,6 +103,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_24 = l_Lean_Elab_Tactic_elabTerm(x_21, x_22, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
|
|
@ -149,6 +153,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_39 = !lean_is_exclusive(x_24);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
|
|
@ -210,6 +216,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_54 = !lean_is_exclusive(x_24);
|
||||
if (x_54 == 0)
|
||||
{
|
||||
|
|
@ -258,7 +266,7 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_14 = l_Lean_Meta_generalize(x_12, x_1, x_6, x_7, x_8, x_9, x_13);
|
||||
x_14 = l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(x_12, x_1, x_6, x_7, x_8, x_9, x_13);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
|
|
@ -398,6 +406,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalGeneralize___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
|
|
@ -483,8 +493,6 @@ lean_dec(x_1);
|
|||
x_14 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalGeneralize___spec__1(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
83
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
83
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
|
|
@ -41,7 +41,7 @@ lean_object* lean_erase_macro_scopes(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064_(lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__6;
|
||||
|
|
@ -59,7 +59,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets___boxed(l
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_filterTRAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_applyPreTac___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__6;
|
||||
|
|
@ -225,7 +224,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_
|
|||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___spec__1(size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabCasesTargets___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
|
|
@ -234,6 +232,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__5;
|
|||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___lambda__2___closed__4;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__3;
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__8___closed__2;
|
||||
|
|
@ -314,7 +313,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_
|
|||
lean_object* lean_format_pretty(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_admitGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__5___lambda__2___closed__1;
|
||||
lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__3;
|
||||
|
|
@ -332,7 +330,6 @@ lean_object* lean_array_to_list(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_State_alts___default;
|
||||
lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_RBTree_toArray___at_Lean_Meta_getFVarsToGeneralize___spec__1(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_generalize___spec__1(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts_go___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType(lean_object*);
|
||||
|
|
@ -485,6 +482,7 @@ extern lean_object* l_Lean_instInhabitedName;
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_isHoleRHS___closed__9;
|
||||
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -528,6 +526,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalIndu
|
|||
lean_object* l_Lean_Meta_generalizeTargetsEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__3___closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore___spec__1(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_elabCasesTargets___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction_declRange___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getUserGeneralizingFVarIds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1181,6 +1180,8 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_21 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
|
|
@ -1218,6 +1219,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
|
|
@ -1249,6 +1252,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_37 = !lean_is_exclusive(x_21);
|
||||
if (x_37 == 0)
|
||||
|
|
@ -1279,6 +1284,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_41 = !lean_is_exclusive(x_15);
|
||||
|
|
@ -1362,6 +1369,8 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_64 = l_Lean_Elab_Tactic_elabTermEnsuringType(x_1, x_62, x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_57, x_10, x_60);
|
||||
if (lean_obj_tag(x_64) == 0)
|
||||
{
|
||||
|
|
@ -1399,6 +1408,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_76 = lean_ctor_get(x_75, 1);
|
||||
lean_inc(x_76);
|
||||
if (lean_is_exclusive(x_75)) {
|
||||
|
|
@ -1428,6 +1439,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_79 = lean_ctor_get(x_64, 0);
|
||||
lean_inc(x_79);
|
||||
|
|
@ -1460,6 +1473,8 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_83 = lean_ctor_get(x_58, 0);
|
||||
|
|
@ -1575,7 +1590,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
|||
lean_dec(x_2);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_14);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2___boxed), 11, 2);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2), 11, 2);
|
||||
lean_closure_set(x_22, 0, x_14);
|
||||
lean_closure_set(x_22, 1, x_1);
|
||||
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__3), 12, 3);
|
||||
|
|
@ -1587,16 +1602,6 @@ return x_24;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_Elab_Tactic_evalAlt___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_State_argPos___default() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4742,6 +4747,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
@ -4776,6 +4782,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
|
|
@ -4843,6 +4850,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
|
|
@ -4878,6 +4886,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_27 = !lean_is_exclusive(x_26);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
|
|
@ -4912,6 +4921,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_35 = !lean_is_exclusive(x_34);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
|
|
@ -4948,6 +4958,7 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_42 = !lean_is_exclusive(x_41);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
|
|
@ -16857,7 +16868,7 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_18 = l_Lean_Meta_generalize(x_12, x_17, x_6, x_7, x_8, x_9, x_13);
|
||||
x_18 = l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(x_12, x_17, x_6, x_7, x_8, x_9, x_13);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
|
|
@ -17514,6 +17525,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_3);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
|
|
@ -17533,6 +17546,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_20 = l_Lean_Elab_Tactic_elabTerm(x_15, x_18, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
|
|
@ -17560,6 +17575,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_27 = !lean_is_exclusive(x_20);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
|
|
@ -18734,8 +18751,6 @@ lean_dec(x_1);
|
|||
x_14 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
|
|
@ -19055,6 +19070,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_3);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
|
|
@ -19079,6 +19096,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_24 = l_Lean_Elab_Tactic_elabTerm(x_21, x_22, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
|
|
@ -19119,6 +19138,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_35 = !lean_is_exclusive(x_24);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
|
|
@ -19172,6 +19193,8 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_46 = !lean_is_exclusive(x_24);
|
||||
if (x_46 == 0)
|
||||
{
|
||||
|
|
@ -19723,7 +19746,7 @@ lean_inc(x_11);
|
|||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_18 = l_Lean_Meta_generalize(x_14, x_16, x_8, x_9, x_10, x_11, x_17);
|
||||
x_18 = l___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore(x_14, x_16, x_8, x_9, x_10, x_11, x_17);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; lean_object* x_24; lean_object* x_25;
|
||||
|
|
@ -19912,6 +19935,8 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabCasesTargets___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
|
|
@ -19995,7 +20020,7 @@ x_22 = lean_ctor_get(x_18, 0);
|
|||
lean_dec(x_22);
|
||||
x_23 = lean_usize_of_nat(x_16);
|
||||
lean_dec(x_16);
|
||||
x_24 = l_Array_mapMUnsafe_map___at_Lean_Meta_generalize___spec__1(x_23, x_2, x_14);
|
||||
x_24 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore___spec__1(x_23, x_2, x_14);
|
||||
lean_ctor_set(x_18, 0, x_24);
|
||||
return x_18;
|
||||
}
|
||||
|
|
@ -20007,7 +20032,7 @@ lean_inc(x_25);
|
|||
lean_dec(x_18);
|
||||
x_26 = lean_usize_of_nat(x_16);
|
||||
lean_dec(x_16);
|
||||
x_27 = l_Array_mapMUnsafe_map___at_Lean_Meta_generalize___spec__1(x_26, x_2, x_14);
|
||||
x_27 = l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Generalize_0__Lean_Meta_generalizeCore___spec__1(x_26, x_2, x_14);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_25);
|
||||
|
|
@ -20130,8 +20155,6 @@ lean_dec(x_1);
|
|||
x_14 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabCasesTargets___spec__1(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
|
|
@ -21262,7 +21285,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -21272,11 +21295,11 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1;
|
||||
x_3 = l_Lean_registerTraceClass(x_2, x_1);
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
|
|
@ -21669,9 +21692,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___close
|
|||
res = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066____closed__1);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9066_(lean_io_mk_world());
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064____closed__1);
|
||||
res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_9064_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
388
stage0/stdlib/Lean/Elab/Tactic/Meta.c
generated
388
stage0/stdlib/Lean/Elab/Tactic/Meta.c
generated
|
|
@ -1036,7 +1036,7 @@ return x_40;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
x_41 = lean_ctor_get(x_27, 0);
|
||||
x_42 = lean_ctor_get(x_27, 1);
|
||||
x_43 = lean_ctor_get(x_27, 2);
|
||||
|
|
@ -1045,7 +1045,6 @@ x_45 = lean_ctor_get(x_27, 4);
|
|||
x_46 = lean_ctor_get(x_27, 5);
|
||||
x_47 = lean_ctor_get(x_27, 6);
|
||||
x_48 = lean_ctor_get(x_27, 7);
|
||||
x_49 = lean_ctor_get_uint8(x_27, sizeof(void*)*8);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
|
|
@ -1057,68 +1056,66 @@ lean_inc(x_41);
|
|||
lean_dec(x_27);
|
||||
lean_ctor_set(x_13, 2, x_21);
|
||||
lean_ctor_set(x_13, 1, x_18);
|
||||
x_50 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_44, x_1, x_13);
|
||||
x_51 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_51, 0, x_41);
|
||||
lean_ctor_set(x_51, 1, x_42);
|
||||
lean_ctor_set(x_51, 2, x_43);
|
||||
lean_ctor_set(x_51, 3, x_50);
|
||||
lean_ctor_set(x_51, 4, x_45);
|
||||
lean_ctor_set(x_51, 5, x_46);
|
||||
lean_ctor_set(x_51, 6, x_47);
|
||||
lean_ctor_set(x_51, 7, x_48);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*8, x_49);
|
||||
lean_ctor_set(x_26, 0, x_51);
|
||||
x_52 = lean_st_ref_set(x_3, x_26, x_28);
|
||||
x_49 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_44, x_1, x_13);
|
||||
x_50 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_50, 0, x_41);
|
||||
lean_ctor_set(x_50, 1, x_42);
|
||||
lean_ctor_set(x_50, 2, x_43);
|
||||
lean_ctor_set(x_50, 3, x_49);
|
||||
lean_ctor_set(x_50, 4, x_45);
|
||||
lean_ctor_set(x_50, 5, x_46);
|
||||
lean_ctor_set(x_50, 6, x_47);
|
||||
lean_ctor_set(x_50, 7, x_48);
|
||||
lean_ctor_set(x_26, 0, x_50);
|
||||
x_51 = lean_st_ref_set(x_3, x_26, x_28);
|
||||
lean_dec(x_3);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
x_54 = x_52;
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
if (lean_is_exclusive(x_51)) {
|
||||
lean_ctor_release(x_51, 0);
|
||||
lean_ctor_release(x_51, 1);
|
||||
x_53 = x_51;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_54 = lean_box(0);
|
||||
lean_dec_ref(x_51);
|
||||
x_53 = lean_box(0);
|
||||
}
|
||||
x_55 = lean_box(0);
|
||||
if (lean_is_scalar(x_54)) {
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
x_54 = lean_box(0);
|
||||
if (lean_is_scalar(x_53)) {
|
||||
x_55 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_56 = x_54;
|
||||
x_55 = x_53;
|
||||
}
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_53);
|
||||
return x_56;
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
lean_ctor_set(x_55, 1, x_52);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77;
|
||||
x_57 = lean_ctor_get(x_26, 1);
|
||||
x_58 = lean_ctor_get(x_26, 2);
|
||||
x_59 = lean_ctor_get(x_26, 3);
|
||||
lean_inc(x_59);
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_56 = lean_ctor_get(x_26, 1);
|
||||
x_57 = lean_ctor_get(x_26, 2);
|
||||
x_58 = lean_ctor_get(x_26, 3);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_26);
|
||||
x_60 = lean_ctor_get(x_27, 0);
|
||||
x_59 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_27, 1);
|
||||
x_61 = lean_ctor_get(x_27, 2);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_27, 2);
|
||||
x_62 = lean_ctor_get(x_27, 3);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_27, 3);
|
||||
x_63 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_63);
|
||||
x_64 = lean_ctor_get(x_27, 4);
|
||||
x_64 = lean_ctor_get(x_27, 5);
|
||||
lean_inc(x_64);
|
||||
x_65 = lean_ctor_get(x_27, 5);
|
||||
x_65 = lean_ctor_get(x_27, 6);
|
||||
lean_inc(x_65);
|
||||
x_66 = lean_ctor_get(x_27, 6);
|
||||
x_66 = lean_ctor_get(x_27, 7);
|
||||
lean_inc(x_66);
|
||||
x_67 = lean_ctor_get(x_27, 7);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get_uint8(x_27, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_27)) {
|
||||
lean_ctor_release(x_27, 0);
|
||||
lean_ctor_release(x_27, 1);
|
||||
|
|
@ -1128,207 +1125,204 @@ if (lean_is_exclusive(x_27)) {
|
|||
lean_ctor_release(x_27, 5);
|
||||
lean_ctor_release(x_27, 6);
|
||||
lean_ctor_release(x_27, 7);
|
||||
x_69 = x_27;
|
||||
x_67 = x_27;
|
||||
} else {
|
||||
lean_dec_ref(x_27);
|
||||
x_69 = lean_box(0);
|
||||
x_67 = lean_box(0);
|
||||
}
|
||||
lean_ctor_set(x_13, 2, x_21);
|
||||
lean_ctor_set(x_13, 1, x_18);
|
||||
x_70 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_63, x_1, x_13);
|
||||
if (lean_is_scalar(x_69)) {
|
||||
x_71 = lean_alloc_ctor(0, 8, 1);
|
||||
x_68 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_62, x_1, x_13);
|
||||
if (lean_is_scalar(x_67)) {
|
||||
x_69 = lean_alloc_ctor(0, 8, 0);
|
||||
} else {
|
||||
x_71 = x_69;
|
||||
x_69 = x_67;
|
||||
}
|
||||
lean_ctor_set(x_71, 0, x_60);
|
||||
lean_ctor_set(x_71, 1, x_61);
|
||||
lean_ctor_set(x_71, 2, x_62);
|
||||
lean_ctor_set(x_71, 3, x_70);
|
||||
lean_ctor_set(x_71, 4, x_64);
|
||||
lean_ctor_set(x_71, 5, x_65);
|
||||
lean_ctor_set(x_71, 6, x_66);
|
||||
lean_ctor_set(x_71, 7, x_67);
|
||||
lean_ctor_set_uint8(x_71, sizeof(void*)*8, x_68);
|
||||
x_72 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_72, 0, x_71);
|
||||
lean_ctor_set(x_72, 1, x_57);
|
||||
lean_ctor_set(x_72, 2, x_58);
|
||||
lean_ctor_set(x_72, 3, x_59);
|
||||
x_73 = lean_st_ref_set(x_3, x_72, x_28);
|
||||
lean_ctor_set(x_69, 0, x_59);
|
||||
lean_ctor_set(x_69, 1, x_60);
|
||||
lean_ctor_set(x_69, 2, x_61);
|
||||
lean_ctor_set(x_69, 3, x_68);
|
||||
lean_ctor_set(x_69, 4, x_63);
|
||||
lean_ctor_set(x_69, 5, x_64);
|
||||
lean_ctor_set(x_69, 6, x_65);
|
||||
lean_ctor_set(x_69, 7, x_66);
|
||||
x_70 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_70, 0, x_69);
|
||||
lean_ctor_set(x_70, 1, x_56);
|
||||
lean_ctor_set(x_70, 2, x_57);
|
||||
lean_ctor_set(x_70, 3, x_58);
|
||||
x_71 = lean_st_ref_set(x_3, x_70, x_28);
|
||||
lean_dec(x_3);
|
||||
x_74 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_74);
|
||||
if (lean_is_exclusive(x_73)) {
|
||||
lean_ctor_release(x_73, 0);
|
||||
lean_ctor_release(x_73, 1);
|
||||
x_72 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_72);
|
||||
if (lean_is_exclusive(x_71)) {
|
||||
lean_ctor_release(x_71, 0);
|
||||
lean_ctor_release(x_71, 1);
|
||||
x_73 = x_71;
|
||||
} else {
|
||||
lean_dec_ref(x_71);
|
||||
x_73 = lean_box(0);
|
||||
}
|
||||
x_74 = lean_box(0);
|
||||
if (lean_is_scalar(x_73)) {
|
||||
x_75 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_75 = x_73;
|
||||
} else {
|
||||
lean_dec_ref(x_73);
|
||||
x_75 = lean_box(0);
|
||||
}
|
||||
x_76 = lean_box(0);
|
||||
if (lean_is_scalar(x_75)) {
|
||||
x_77 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_77 = x_75;
|
||||
}
|
||||
lean_ctor_set(x_77, 0, x_76);
|
||||
lean_ctor_set(x_77, 1, x_74);
|
||||
return x_77;
|
||||
lean_ctor_set(x_75, 0, x_74);
|
||||
lean_ctor_set(x_75, 1, x_72);
|
||||
return x_75;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120;
|
||||
x_78 = lean_ctor_get(x_13, 0);
|
||||
x_79 = lean_ctor_get(x_13, 1);
|
||||
x_80 = lean_ctor_get(x_13, 2);
|
||||
x_81 = lean_ctor_get(x_13, 3);
|
||||
x_82 = lean_ctor_get(x_13, 4);
|
||||
x_83 = lean_ctor_get_uint8(x_13, sizeof(void*)*7);
|
||||
x_84 = lean_ctor_get(x_13, 5);
|
||||
x_85 = lean_ctor_get(x_13, 6);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_84);
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
x_76 = lean_ctor_get(x_13, 0);
|
||||
x_77 = lean_ctor_get(x_13, 1);
|
||||
x_78 = lean_ctor_get(x_13, 2);
|
||||
x_79 = lean_ctor_get(x_13, 3);
|
||||
x_80 = lean_ctor_get(x_13, 4);
|
||||
x_81 = lean_ctor_get_uint8(x_13, sizeof(void*)*7);
|
||||
x_82 = lean_ctor_get(x_13, 5);
|
||||
x_83 = lean_ctor_get(x_13, 6);
|
||||
lean_inc(x_83);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_86 = l_Lean_instantiateLCtxMVars___at_Lean_Elab_runTactic___spec__2(x_79, x_2, x_3, x_4, x_5, x_11);
|
||||
x_87 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_87);
|
||||
x_88 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_86);
|
||||
x_89 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_80, x_2, x_3, x_4, x_5, x_88);
|
||||
x_84 = l_Lean_instantiateLCtxMVars___at_Lean_Elab_runTactic___spec__2(x_77, x_2, x_3, x_4, x_5, x_11);
|
||||
x_85 = lean_ctor_get(x_84, 0);
|
||||
lean_inc(x_85);
|
||||
x_86 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_84);
|
||||
x_87 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_78, x_2, x_3, x_4, x_5, x_86);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_90 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_90);
|
||||
x_91 = lean_ctor_get(x_89, 1);
|
||||
lean_inc(x_91);
|
||||
lean_dec(x_89);
|
||||
x_92 = lean_st_ref_get(x_5, x_91);
|
||||
x_88 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_88);
|
||||
x_89 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_87);
|
||||
x_90 = lean_st_ref_get(x_5, x_89);
|
||||
lean_dec(x_5);
|
||||
x_93 = lean_ctor_get(x_92, 1);
|
||||
x_91 = lean_ctor_get(x_90, 1);
|
||||
lean_inc(x_91);
|
||||
lean_dec(x_90);
|
||||
x_92 = lean_st_ref_take(x_3, x_91);
|
||||
x_93 = lean_ctor_get(x_92, 0);
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_92);
|
||||
x_94 = lean_st_ref_take(x_3, x_93);
|
||||
x_95 = lean_ctor_get(x_94, 0);
|
||||
x_94 = lean_ctor_get(x_93, 0);
|
||||
lean_inc(x_94);
|
||||
x_95 = lean_ctor_get(x_92, 1);
|
||||
lean_inc(x_95);
|
||||
x_96 = lean_ctor_get(x_95, 0);
|
||||
lean_dec(x_92);
|
||||
x_96 = lean_ctor_get(x_93, 1);
|
||||
lean_inc(x_96);
|
||||
x_97 = lean_ctor_get(x_94, 1);
|
||||
x_97 = lean_ctor_get(x_93, 2);
|
||||
lean_inc(x_97);
|
||||
lean_dec(x_94);
|
||||
x_98 = lean_ctor_get(x_95, 1);
|
||||
x_98 = lean_ctor_get(x_93, 3);
|
||||
lean_inc(x_98);
|
||||
x_99 = lean_ctor_get(x_95, 2);
|
||||
lean_inc(x_99);
|
||||
x_100 = lean_ctor_get(x_95, 3);
|
||||
if (lean_is_exclusive(x_93)) {
|
||||
lean_ctor_release(x_93, 0);
|
||||
lean_ctor_release(x_93, 1);
|
||||
lean_ctor_release(x_93, 2);
|
||||
lean_ctor_release(x_93, 3);
|
||||
x_99 = x_93;
|
||||
} else {
|
||||
lean_dec_ref(x_93);
|
||||
x_99 = lean_box(0);
|
||||
}
|
||||
x_100 = lean_ctor_get(x_94, 0);
|
||||
lean_inc(x_100);
|
||||
if (lean_is_exclusive(x_95)) {
|
||||
lean_ctor_release(x_95, 0);
|
||||
lean_ctor_release(x_95, 1);
|
||||
lean_ctor_release(x_95, 2);
|
||||
lean_ctor_release(x_95, 3);
|
||||
x_101 = x_95;
|
||||
} else {
|
||||
lean_dec_ref(x_95);
|
||||
x_101 = lean_box(0);
|
||||
}
|
||||
x_102 = lean_ctor_get(x_96, 0);
|
||||
x_101 = lean_ctor_get(x_94, 1);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_94, 2);
|
||||
lean_inc(x_102);
|
||||
x_103 = lean_ctor_get(x_96, 1);
|
||||
x_103 = lean_ctor_get(x_94, 3);
|
||||
lean_inc(x_103);
|
||||
x_104 = lean_ctor_get(x_96, 2);
|
||||
x_104 = lean_ctor_get(x_94, 4);
|
||||
lean_inc(x_104);
|
||||
x_105 = lean_ctor_get(x_96, 3);
|
||||
x_105 = lean_ctor_get(x_94, 5);
|
||||
lean_inc(x_105);
|
||||
x_106 = lean_ctor_get(x_96, 4);
|
||||
x_106 = lean_ctor_get(x_94, 6);
|
||||
lean_inc(x_106);
|
||||
x_107 = lean_ctor_get(x_96, 5);
|
||||
x_107 = lean_ctor_get(x_94, 7);
|
||||
lean_inc(x_107);
|
||||
x_108 = lean_ctor_get(x_96, 6);
|
||||
lean_inc(x_108);
|
||||
x_109 = lean_ctor_get(x_96, 7);
|
||||
lean_inc(x_109);
|
||||
x_110 = lean_ctor_get_uint8(x_96, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_96)) {
|
||||
lean_ctor_release(x_96, 0);
|
||||
lean_ctor_release(x_96, 1);
|
||||
lean_ctor_release(x_96, 2);
|
||||
lean_ctor_release(x_96, 3);
|
||||
lean_ctor_release(x_96, 4);
|
||||
lean_ctor_release(x_96, 5);
|
||||
lean_ctor_release(x_96, 6);
|
||||
lean_ctor_release(x_96, 7);
|
||||
x_111 = x_96;
|
||||
if (lean_is_exclusive(x_94)) {
|
||||
lean_ctor_release(x_94, 0);
|
||||
lean_ctor_release(x_94, 1);
|
||||
lean_ctor_release(x_94, 2);
|
||||
lean_ctor_release(x_94, 3);
|
||||
lean_ctor_release(x_94, 4);
|
||||
lean_ctor_release(x_94, 5);
|
||||
lean_ctor_release(x_94, 6);
|
||||
lean_ctor_release(x_94, 7);
|
||||
x_108 = x_94;
|
||||
} else {
|
||||
lean_dec_ref(x_96);
|
||||
x_111 = lean_box(0);
|
||||
lean_dec_ref(x_94);
|
||||
x_108 = lean_box(0);
|
||||
}
|
||||
x_112 = lean_alloc_ctor(0, 7, 1);
|
||||
lean_ctor_set(x_112, 0, x_78);
|
||||
lean_ctor_set(x_112, 1, x_87);
|
||||
lean_ctor_set(x_112, 2, x_90);
|
||||
lean_ctor_set(x_112, 3, x_81);
|
||||
lean_ctor_set(x_112, 4, x_82);
|
||||
lean_ctor_set(x_112, 5, x_84);
|
||||
lean_ctor_set(x_112, 6, x_85);
|
||||
lean_ctor_set_uint8(x_112, sizeof(void*)*7, x_83);
|
||||
x_113 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_105, x_1, x_112);
|
||||
if (lean_is_scalar(x_111)) {
|
||||
x_114 = lean_alloc_ctor(0, 8, 1);
|
||||
x_109 = lean_alloc_ctor(0, 7, 1);
|
||||
lean_ctor_set(x_109, 0, x_76);
|
||||
lean_ctor_set(x_109, 1, x_85);
|
||||
lean_ctor_set(x_109, 2, x_88);
|
||||
lean_ctor_set(x_109, 3, x_79);
|
||||
lean_ctor_set(x_109, 4, x_80);
|
||||
lean_ctor_set(x_109, 5, x_82);
|
||||
lean_ctor_set(x_109, 6, x_83);
|
||||
lean_ctor_set_uint8(x_109, sizeof(void*)*7, x_81);
|
||||
x_110 = l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(x_103, x_1, x_109);
|
||||
if (lean_is_scalar(x_108)) {
|
||||
x_111 = lean_alloc_ctor(0, 8, 0);
|
||||
} else {
|
||||
x_114 = x_111;
|
||||
x_111 = x_108;
|
||||
}
|
||||
lean_ctor_set(x_114, 0, x_102);
|
||||
lean_ctor_set(x_114, 1, x_103);
|
||||
lean_ctor_set(x_114, 2, x_104);
|
||||
lean_ctor_set(x_114, 3, x_113);
|
||||
lean_ctor_set(x_114, 4, x_106);
|
||||
lean_ctor_set(x_114, 5, x_107);
|
||||
lean_ctor_set(x_114, 6, x_108);
|
||||
lean_ctor_set(x_114, 7, x_109);
|
||||
lean_ctor_set_uint8(x_114, sizeof(void*)*8, x_110);
|
||||
if (lean_is_scalar(x_101)) {
|
||||
x_115 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_111, 0, x_100);
|
||||
lean_ctor_set(x_111, 1, x_101);
|
||||
lean_ctor_set(x_111, 2, x_102);
|
||||
lean_ctor_set(x_111, 3, x_110);
|
||||
lean_ctor_set(x_111, 4, x_104);
|
||||
lean_ctor_set(x_111, 5, x_105);
|
||||
lean_ctor_set(x_111, 6, x_106);
|
||||
lean_ctor_set(x_111, 7, x_107);
|
||||
if (lean_is_scalar(x_99)) {
|
||||
x_112 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_115 = x_101;
|
||||
x_112 = x_99;
|
||||
}
|
||||
lean_ctor_set(x_115, 0, x_114);
|
||||
lean_ctor_set(x_115, 1, x_98);
|
||||
lean_ctor_set(x_115, 2, x_99);
|
||||
lean_ctor_set(x_115, 3, x_100);
|
||||
x_116 = lean_st_ref_set(x_3, x_115, x_97);
|
||||
lean_ctor_set(x_112, 0, x_111);
|
||||
lean_ctor_set(x_112, 1, x_96);
|
||||
lean_ctor_set(x_112, 2, x_97);
|
||||
lean_ctor_set(x_112, 3, x_98);
|
||||
x_113 = lean_st_ref_set(x_3, x_112, x_95);
|
||||
lean_dec(x_3);
|
||||
x_117 = lean_ctor_get(x_116, 1);
|
||||
lean_inc(x_117);
|
||||
if (lean_is_exclusive(x_116)) {
|
||||
lean_ctor_release(x_116, 0);
|
||||
lean_ctor_release(x_116, 1);
|
||||
x_118 = x_116;
|
||||
x_114 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_114);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_115 = x_113;
|
||||
} else {
|
||||
lean_dec_ref(x_116);
|
||||
x_118 = lean_box(0);
|
||||
lean_dec_ref(x_113);
|
||||
x_115 = lean_box(0);
|
||||
}
|
||||
x_119 = lean_box(0);
|
||||
if (lean_is_scalar(x_118)) {
|
||||
x_120 = lean_alloc_ctor(0, 2, 0);
|
||||
x_116 = lean_box(0);
|
||||
if (lean_is_scalar(x_115)) {
|
||||
x_117 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_120 = x_118;
|
||||
x_117 = x_115;
|
||||
}
|
||||
lean_ctor_set(x_120, 0, x_119);
|
||||
lean_ctor_set(x_120, 1, x_117);
|
||||
return x_120;
|
||||
lean_ctor_set(x_117, 0, x_116);
|
||||
lean_ctor_set(x_117, 1, x_114);
|
||||
return x_117;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Tactic/Rewrite.c
generated
4
stage0/stdlib/Lean/Elab/Tactic/Rewrite.c
generated
|
|
@ -250,6 +250,8 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_15 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
|
|
@ -597,6 +599,8 @@ lean_inc(x_11);
|
|||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_16 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
|
|
|
|||
15
stage0/stdlib/Lean/Elab/Tactic/Simp.c
generated
15
stage0/stdlib/Lean/Elab/Tactic/Simp.c
generated
|
|
@ -231,6 +231,7 @@ lean_object* l_Lean_Syntax_getId(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabDSimpConfigCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_format_pretty(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -276,6 +277,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed_
|
|||
extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ConstantInfo_type(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorryImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpArgs(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_fvarId(lean_object*);
|
||||
|
|
@ -364,7 +366,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSimp
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -4368,6 +4369,14 @@ x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTh
|
|||
return x_14;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4612,7 +4621,7 @@ x_11 = lean_ctor_get(x_7, 5);
|
|||
x_12 = l_Lean_replaceRef(x_1, x_11);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_7, 5, x_12);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_13 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
|
|
@ -4655,7 +4664,7 @@ lean_ctor_set(x_26, 7, x_21);
|
|||
lean_ctor_set(x_26, 8, x_22);
|
||||
lean_ctor_set(x_26, 9, x_23);
|
||||
lean_ctor_set(x_26, 10, x_24);
|
||||
x_27 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
x_27 = l_Lean_Elab_Term_withoutErrToSorryImp___rarg(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3828
stage0/stdlib/Lean/Elab/Term.c
generated
3828
stage0/stdlib/Lean/Elab/Term.c
generated
File diff suppressed because it is too large
Load diff
24
stage0/stdlib/Lean/Message.c
generated
24
stage0/stdlib/Lean/Message.c
generated
|
|
@ -1179,23 +1179,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_MessageData_instantiateMVars___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_MessageData_instantiateMVars___closed__3;
|
||||
x_3 = l_Lean_MessageData_instantiateMVars___closed__4;
|
||||
x_4 = l_Lean_MessageData_instantiateMVars___closed__5;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MessageData_instantiateMVars(lean_object* x_1) {
|
||||
|
|
|
|||
747
stage0/stdlib/Lean/Meta/AbstractMVars.c
generated
747
stage0/stdlib/Lean/Meta/AbstractMVars.c
generated
|
|
@ -3388,7 +3388,7 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_abstractMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42;
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32;
|
||||
x_7 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
|
|
@ -3414,39 +3414,55 @@ x_18 = lean_ctor_get(x_17, 0);
|
|||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
if (lean_is_exclusive(x_17)) {
|
||||
lean_ctor_release(x_17, 0);
|
||||
lean_ctor_release(x_17, 1);
|
||||
x_20 = x_17;
|
||||
} else {
|
||||
lean_dec_ref(x_17);
|
||||
x_20 = lean_box(0);
|
||||
}
|
||||
x_21 = lean_ctor_get(x_18, 2);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_17);
|
||||
x_20 = lean_ctor_get(x_18, 2);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_22 = lean_unsigned_to_nat(0u);
|
||||
x_23 = l_Lean_Meta_instInhabitedAbstractMVarsResult___closed__1;
|
||||
x_24 = l_Lean_Meta_abstractMVars___closed__1;
|
||||
x_21 = lean_unsigned_to_nat(0u);
|
||||
x_22 = l_Lean_Meta_instInhabitedAbstractMVarsResult___closed__1;
|
||||
x_23 = l_Lean_Meta_abstractMVars___closed__1;
|
||||
lean_inc(x_16);
|
||||
x_25 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_25, 0, x_21);
|
||||
lean_ctor_set(x_25, 1, x_16);
|
||||
lean_ctor_set(x_25, 2, x_15);
|
||||
lean_ctor_set(x_25, 3, x_22);
|
||||
lean_ctor_set(x_25, 4, x_23);
|
||||
lean_ctor_set(x_25, 5, x_23);
|
||||
lean_ctor_set(x_25, 6, x_24);
|
||||
lean_ctor_set(x_25, 7, x_24);
|
||||
x_26 = l_Lean_Meta_AbstractMVars_abstractExprMVars(x_8, x_25);
|
||||
x_27 = lean_ctor_get(x_26, 0);
|
||||
x_24 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_24, 0, x_20);
|
||||
lean_ctor_set(x_24, 1, x_16);
|
||||
lean_ctor_set(x_24, 2, x_15);
|
||||
lean_ctor_set(x_24, 3, x_21);
|
||||
lean_ctor_set(x_24, 4, x_22);
|
||||
lean_ctor_set(x_24, 5, x_22);
|
||||
lean_ctor_set(x_24, 6, x_23);
|
||||
lean_ctor_set(x_24, 7, x_23);
|
||||
x_25 = l_Lean_Meta_AbstractMVars_abstractExprMVars(x_8, x_24);
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_27);
|
||||
x_28 = lean_ctor_get(x_26, 1);
|
||||
lean_dec(x_25);
|
||||
x_28 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_26);
|
||||
x_38 = lean_ctor_get(x_28, 0);
|
||||
x_29 = lean_st_ref_take(x_5, x_19);
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_29);
|
||||
x_32 = !lean_is_exclusive(x_30);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42;
|
||||
x_33 = lean_ctor_get(x_30, 2);
|
||||
lean_dec(x_33);
|
||||
lean_ctor_set(x_30, 2, x_28);
|
||||
x_34 = lean_st_ref_set(x_5, x_30, x_31);
|
||||
x_35 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_34);
|
||||
x_36 = lean_ctor_get(x_27, 2);
|
||||
lean_inc(x_36);
|
||||
x_37 = lean_st_ref_get(x_5, x_35);
|
||||
x_38 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_st_ref_take(x_5, x_19);
|
||||
lean_dec(x_37);
|
||||
x_39 = lean_st_ref_take(x_3, x_38);
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_39, 1);
|
||||
|
|
@ -3455,515 +3471,208 @@ lean_dec(x_39);
|
|||
x_42 = !lean_is_exclusive(x_40);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51;
|
||||
x_43 = lean_ctor_get(x_40, 2);
|
||||
lean_object* x_43; lean_object* x_44; uint8_t x_45;
|
||||
x_43 = lean_ctor_get(x_40, 0);
|
||||
lean_dec(x_43);
|
||||
lean_ctor_set(x_40, 2, x_38);
|
||||
x_44 = lean_st_ref_set(x_5, x_40, x_41);
|
||||
x_45 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_44);
|
||||
x_46 = lean_ctor_get(x_28, 2);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_st_ref_get(x_5, x_45);
|
||||
x_48 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_47);
|
||||
x_49 = lean_st_ref_take(x_3, x_48);
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
x_51 = lean_ctor_get_uint8(x_46, sizeof(void*)*8);
|
||||
if (x_51 == 0)
|
||||
lean_ctor_set(x_40, 0, x_36);
|
||||
x_44 = lean_st_ref_set(x_3, x_40, x_41);
|
||||
x_45 = !lean_is_exclusive(x_44);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62;
|
||||
x_52 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_49);
|
||||
x_54 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_46, 2);
|
||||
lean_inc(x_56);
|
||||
x_57 = lean_ctor_get(x_46, 3);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_46, 4);
|
||||
lean_inc(x_58);
|
||||
x_59 = lean_ctor_get(x_46, 5);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_ctor_get(x_46, 6);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_46, 7);
|
||||
lean_inc(x_61);
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_dec(x_46);
|
||||
x_62 = !lean_is_exclusive(x_50);
|
||||
if (x_62 == 0)
|
||||
x_47 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_27, 5);
|
||||
lean_inc(x_48);
|
||||
x_49 = l_Lean_LocalContext_mkLambda(x_47, x_48, x_26);
|
||||
x_50 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_27);
|
||||
x_51 = lean_array_get_size(x_48);
|
||||
lean_dec(x_48);
|
||||
x_52 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_52, 0, x_50);
|
||||
lean_ctor_set(x_52, 1, x_51);
|
||||
lean_ctor_set(x_52, 2, x_49);
|
||||
lean_ctor_set(x_44, 0, x_52);
|
||||
return x_44;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; uint8_t x_64;
|
||||
x_63 = lean_ctor_get(x_50, 0);
|
||||
lean_dec(x_63);
|
||||
x_64 = !lean_is_exclusive(x_52);
|
||||
if (x_64 == 0)
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_53 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_44);
|
||||
x_54 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_27, 5);
|
||||
lean_inc(x_55);
|
||||
x_56 = l_Lean_LocalContext_mkLambda(x_54, x_55, x_26);
|
||||
x_57 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_27);
|
||||
x_58 = lean_array_get_size(x_55);
|
||||
lean_dec(x_55);
|
||||
x_59 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
lean_ctor_set(x_59, 2, x_56);
|
||||
x_60 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_53);
|
||||
return x_60;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_65 = lean_ctor_get(x_52, 7);
|
||||
lean_dec(x_65);
|
||||
x_66 = lean_ctor_get(x_52, 6);
|
||||
lean_dec(x_66);
|
||||
x_67 = lean_ctor_get(x_52, 5);
|
||||
lean_dec(x_67);
|
||||
x_68 = lean_ctor_get(x_52, 4);
|
||||
lean_dec(x_68);
|
||||
x_69 = lean_ctor_get(x_52, 3);
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_61 = lean_ctor_get(x_40, 1);
|
||||
x_62 = lean_ctor_get(x_40, 2);
|
||||
x_63 = lean_ctor_get(x_40, 3);
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_62);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_40);
|
||||
x_64 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_64, 0, x_36);
|
||||
lean_ctor_set(x_64, 1, x_61);
|
||||
lean_ctor_set(x_64, 2, x_62);
|
||||
lean_ctor_set(x_64, 3, x_63);
|
||||
x_65 = lean_st_ref_set(x_3, x_64, x_41);
|
||||
x_66 = lean_ctor_get(x_65, 1);
|
||||
lean_inc(x_66);
|
||||
if (lean_is_exclusive(x_65)) {
|
||||
lean_ctor_release(x_65, 0);
|
||||
lean_ctor_release(x_65, 1);
|
||||
x_67 = x_65;
|
||||
} else {
|
||||
lean_dec_ref(x_65);
|
||||
x_67 = lean_box(0);
|
||||
}
|
||||
x_68 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_68);
|
||||
x_69 = lean_ctor_get(x_27, 5);
|
||||
lean_inc(x_69);
|
||||
x_70 = l_Lean_LocalContext_mkLambda(x_68, x_69, x_26);
|
||||
x_71 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_71);
|
||||
lean_dec(x_27);
|
||||
x_72 = lean_array_get_size(x_69);
|
||||
lean_dec(x_69);
|
||||
x_70 = lean_ctor_get(x_52, 2);
|
||||
lean_dec(x_70);
|
||||
x_71 = lean_ctor_get(x_52, 1);
|
||||
lean_dec(x_71);
|
||||
x_72 = lean_ctor_get(x_52, 0);
|
||||
lean_dec(x_72);
|
||||
lean_ctor_set(x_52, 7, x_61);
|
||||
lean_ctor_set(x_52, 6, x_60);
|
||||
lean_ctor_set(x_52, 5, x_59);
|
||||
lean_ctor_set(x_52, 4, x_58);
|
||||
lean_ctor_set(x_52, 3, x_57);
|
||||
lean_ctor_set(x_52, 2, x_56);
|
||||
lean_ctor_set(x_52, 1, x_55);
|
||||
lean_ctor_set(x_52, 0, x_54);
|
||||
x_73 = lean_st_ref_set(x_3, x_50, x_53);
|
||||
x_74 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_73);
|
||||
x_29 = x_74;
|
||||
goto block_37;
|
||||
x_73 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_73, 0, x_71);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
lean_ctor_set(x_73, 2, x_70);
|
||||
if (lean_is_scalar(x_67)) {
|
||||
x_74 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_74 = x_67;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78;
|
||||
x_75 = lean_ctor_get_uint8(x_52, sizeof(void*)*8);
|
||||
lean_dec(x_52);
|
||||
x_76 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_76, 0, x_54);
|
||||
lean_ctor_set(x_76, 1, x_55);
|
||||
lean_ctor_set(x_76, 2, x_56);
|
||||
lean_ctor_set(x_76, 3, x_57);
|
||||
lean_ctor_set(x_76, 4, x_58);
|
||||
lean_ctor_set(x_76, 5, x_59);
|
||||
lean_ctor_set(x_76, 6, x_60);
|
||||
lean_ctor_set(x_76, 7, x_61);
|
||||
lean_ctor_set_uint8(x_76, sizeof(void*)*8, x_75);
|
||||
lean_ctor_set(x_50, 0, x_76);
|
||||
x_77 = lean_st_ref_set(x_3, x_50, x_53);
|
||||
x_78 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_77);
|
||||
x_29 = x_78;
|
||||
goto block_37;
|
||||
lean_ctor_set(x_74, 0, x_73);
|
||||
lean_ctor_set(x_74, 1, x_66);
|
||||
return x_74;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_79 = lean_ctor_get(x_50, 1);
|
||||
x_80 = lean_ctor_get(x_50, 2);
|
||||
x_81 = lean_ctor_get(x_50, 3);
|
||||
lean_inc(x_81);
|
||||
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
x_75 = lean_ctor_get(x_30, 0);
|
||||
x_76 = lean_ctor_get(x_30, 1);
|
||||
x_77 = lean_ctor_get(x_30, 3);
|
||||
x_78 = lean_ctor_get(x_30, 4);
|
||||
x_79 = lean_ctor_get(x_30, 5);
|
||||
x_80 = lean_ctor_get(x_30, 6);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_50);
|
||||
x_82 = lean_ctor_get_uint8(x_52, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
lean_ctor_release(x_52, 2);
|
||||
lean_ctor_release(x_52, 3);
|
||||
lean_ctor_release(x_52, 4);
|
||||
lean_ctor_release(x_52, 5);
|
||||
lean_ctor_release(x_52, 6);
|
||||
lean_ctor_release(x_52, 7);
|
||||
x_83 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_83 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_83)) {
|
||||
x_84 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_84 = x_83;
|
||||
}
|
||||
lean_ctor_set(x_84, 0, x_54);
|
||||
lean_ctor_set(x_84, 1, x_55);
|
||||
lean_ctor_set(x_84, 2, x_56);
|
||||
lean_ctor_set(x_84, 3, x_57);
|
||||
lean_ctor_set(x_84, 4, x_58);
|
||||
lean_ctor_set(x_84, 5, x_59);
|
||||
lean_ctor_set(x_84, 6, x_60);
|
||||
lean_ctor_set(x_84, 7, x_61);
|
||||
lean_ctor_set_uint8(x_84, sizeof(void*)*8, x_82);
|
||||
x_85 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_79);
|
||||
lean_ctor_set(x_85, 2, x_80);
|
||||
lean_ctor_set(x_85, 3, x_81);
|
||||
x_86 = lean_st_ref_set(x_3, x_85, x_53);
|
||||
x_87 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_86);
|
||||
x_29 = x_87;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; uint8_t x_89;
|
||||
x_88 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_inc(x_75);
|
||||
lean_dec(x_30);
|
||||
x_81 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_81, 0, x_75);
|
||||
lean_ctor_set(x_81, 1, x_76);
|
||||
lean_ctor_set(x_81, 2, x_28);
|
||||
lean_ctor_set(x_81, 3, x_77);
|
||||
lean_ctor_set(x_81, 4, x_78);
|
||||
lean_ctor_set(x_81, 5, x_79);
|
||||
lean_ctor_set(x_81, 6, x_80);
|
||||
x_82 = lean_st_ref_set(x_5, x_81, x_31);
|
||||
x_83 = lean_ctor_get(x_82, 1);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_82);
|
||||
x_84 = lean_ctor_get(x_27, 2);
|
||||
lean_inc(x_84);
|
||||
x_85 = lean_st_ref_get(x_5, x_83);
|
||||
x_86 = lean_ctor_get(x_85, 1);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_85);
|
||||
x_87 = lean_st_ref_take(x_3, x_86);
|
||||
x_88 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_49);
|
||||
x_89 = !lean_is_exclusive(x_46);
|
||||
if (x_89 == 0)
|
||||
{
|
||||
uint8_t x_90;
|
||||
x_90 = !lean_is_exclusive(x_50);
|
||||
if (x_90 == 0)
|
||||
{
|
||||
lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94;
|
||||
x_91 = lean_ctor_get(x_50, 0);
|
||||
lean_dec(x_91);
|
||||
x_92 = 1;
|
||||
lean_ctor_set_uint8(x_46, sizeof(void*)*8, x_92);
|
||||
lean_ctor_set(x_50, 0, x_46);
|
||||
x_93 = lean_st_ref_set(x_3, x_50, x_88);
|
||||
x_94 = lean_ctor_get(x_93, 1);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_93);
|
||||
x_29 = x_94;
|
||||
goto block_37;
|
||||
x_89 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_87);
|
||||
x_90 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_90);
|
||||
x_91 = lean_ctor_get(x_88, 2);
|
||||
lean_inc(x_91);
|
||||
x_92 = lean_ctor_get(x_88, 3);
|
||||
lean_inc(x_92);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
lean_ctor_release(x_88, 2);
|
||||
lean_ctor_release(x_88, 3);
|
||||
x_93 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_93 = lean_box(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101;
|
||||
x_95 = lean_ctor_get(x_50, 1);
|
||||
x_96 = lean_ctor_get(x_50, 2);
|
||||
x_97 = lean_ctor_get(x_50, 3);
|
||||
lean_inc(x_97);
|
||||
if (lean_is_scalar(x_93)) {
|
||||
x_94 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_94 = x_93;
|
||||
}
|
||||
lean_ctor_set(x_94, 0, x_84);
|
||||
lean_ctor_set(x_94, 1, x_90);
|
||||
lean_ctor_set(x_94, 2, x_91);
|
||||
lean_ctor_set(x_94, 3, x_92);
|
||||
x_95 = lean_st_ref_set(x_3, x_94, x_89);
|
||||
x_96 = lean_ctor_get(x_95, 1);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_dec(x_50);
|
||||
x_98 = 1;
|
||||
lean_ctor_set_uint8(x_46, sizeof(void*)*8, x_98);
|
||||
x_99 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_99, 0, x_46);
|
||||
lean_ctor_set(x_99, 1, x_95);
|
||||
lean_ctor_set(x_99, 2, x_96);
|
||||
lean_ctor_set(x_99, 3, x_97);
|
||||
x_100 = lean_st_ref_set(x_3, x_99, x_88);
|
||||
x_101 = lean_ctor_get(x_100, 1);
|
||||
if (lean_is_exclusive(x_95)) {
|
||||
lean_ctor_release(x_95, 0);
|
||||
lean_ctor_release(x_95, 1);
|
||||
x_97 = x_95;
|
||||
} else {
|
||||
lean_dec_ref(x_95);
|
||||
x_97 = lean_box(0);
|
||||
}
|
||||
x_98 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_98);
|
||||
x_99 = lean_ctor_get(x_27, 5);
|
||||
lean_inc(x_99);
|
||||
x_100 = l_Lean_LocalContext_mkLambda(x_98, x_99, x_26);
|
||||
x_101 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_101);
|
||||
lean_dec(x_100);
|
||||
x_29 = x_101;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118;
|
||||
x_102 = lean_ctor_get(x_46, 0);
|
||||
x_103 = lean_ctor_get(x_46, 1);
|
||||
x_104 = lean_ctor_get(x_46, 2);
|
||||
x_105 = lean_ctor_get(x_46, 3);
|
||||
x_106 = lean_ctor_get(x_46, 4);
|
||||
x_107 = lean_ctor_get(x_46, 5);
|
||||
x_108 = lean_ctor_get(x_46, 6);
|
||||
x_109 = lean_ctor_get(x_46, 7);
|
||||
lean_inc(x_109);
|
||||
lean_inc(x_108);
|
||||
lean_inc(x_107);
|
||||
lean_inc(x_106);
|
||||
lean_inc(x_105);
|
||||
lean_inc(x_104);
|
||||
lean_inc(x_103);
|
||||
lean_inc(x_102);
|
||||
lean_dec(x_46);
|
||||
x_110 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_110);
|
||||
x_111 = lean_ctor_get(x_50, 2);
|
||||
lean_inc(x_111);
|
||||
x_112 = lean_ctor_get(x_50, 3);
|
||||
lean_inc(x_112);
|
||||
if (lean_is_exclusive(x_50)) {
|
||||
lean_ctor_release(x_50, 0);
|
||||
lean_ctor_release(x_50, 1);
|
||||
lean_ctor_release(x_50, 2);
|
||||
lean_ctor_release(x_50, 3);
|
||||
x_113 = x_50;
|
||||
lean_dec(x_27);
|
||||
x_102 = lean_array_get_size(x_99);
|
||||
lean_dec(x_99);
|
||||
x_103 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_103, 0, x_101);
|
||||
lean_ctor_set(x_103, 1, x_102);
|
||||
lean_ctor_set(x_103, 2, x_100);
|
||||
if (lean_is_scalar(x_97)) {
|
||||
x_104 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
lean_dec_ref(x_50);
|
||||
x_113 = lean_box(0);
|
||||
x_104 = x_97;
|
||||
}
|
||||
x_114 = 1;
|
||||
x_115 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_115, 0, x_102);
|
||||
lean_ctor_set(x_115, 1, x_103);
|
||||
lean_ctor_set(x_115, 2, x_104);
|
||||
lean_ctor_set(x_115, 3, x_105);
|
||||
lean_ctor_set(x_115, 4, x_106);
|
||||
lean_ctor_set(x_115, 5, x_107);
|
||||
lean_ctor_set(x_115, 6, x_108);
|
||||
lean_ctor_set(x_115, 7, x_109);
|
||||
lean_ctor_set_uint8(x_115, sizeof(void*)*8, x_114);
|
||||
if (lean_is_scalar(x_113)) {
|
||||
x_116 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_116 = x_113;
|
||||
}
|
||||
lean_ctor_set(x_116, 0, x_115);
|
||||
lean_ctor_set(x_116, 1, x_110);
|
||||
lean_ctor_set(x_116, 2, x_111);
|
||||
lean_ctor_set(x_116, 3, x_112);
|
||||
x_117 = lean_st_ref_set(x_3, x_116, x_88);
|
||||
x_118 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_118);
|
||||
lean_dec(x_117);
|
||||
x_29 = x_118;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133;
|
||||
x_119 = lean_ctor_get(x_40, 0);
|
||||
x_120 = lean_ctor_get(x_40, 1);
|
||||
x_121 = lean_ctor_get(x_40, 3);
|
||||
x_122 = lean_ctor_get(x_40, 4);
|
||||
x_123 = lean_ctor_get(x_40, 5);
|
||||
x_124 = lean_ctor_get(x_40, 6);
|
||||
lean_inc(x_124);
|
||||
lean_inc(x_123);
|
||||
lean_inc(x_122);
|
||||
lean_inc(x_121);
|
||||
lean_inc(x_120);
|
||||
lean_inc(x_119);
|
||||
lean_dec(x_40);
|
||||
x_125 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_125, 0, x_119);
|
||||
lean_ctor_set(x_125, 1, x_120);
|
||||
lean_ctor_set(x_125, 2, x_38);
|
||||
lean_ctor_set(x_125, 3, x_121);
|
||||
lean_ctor_set(x_125, 4, x_122);
|
||||
lean_ctor_set(x_125, 5, x_123);
|
||||
lean_ctor_set(x_125, 6, x_124);
|
||||
x_126 = lean_st_ref_set(x_5, x_125, x_41);
|
||||
x_127 = lean_ctor_get(x_126, 1);
|
||||
lean_inc(x_127);
|
||||
lean_dec(x_126);
|
||||
x_128 = lean_ctor_get(x_28, 2);
|
||||
lean_inc(x_128);
|
||||
x_129 = lean_st_ref_get(x_5, x_127);
|
||||
x_130 = lean_ctor_get(x_129, 1);
|
||||
lean_inc(x_130);
|
||||
lean_dec(x_129);
|
||||
x_131 = lean_st_ref_take(x_3, x_130);
|
||||
x_132 = lean_ctor_get(x_131, 0);
|
||||
lean_inc(x_132);
|
||||
x_133 = lean_ctor_get_uint8(x_128, sizeof(void*)*8);
|
||||
if (x_133 == 0)
|
||||
{
|
||||
lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153;
|
||||
x_134 = lean_ctor_get(x_132, 0);
|
||||
lean_inc(x_134);
|
||||
x_135 = lean_ctor_get(x_131, 1);
|
||||
lean_inc(x_135);
|
||||
lean_dec(x_131);
|
||||
x_136 = lean_ctor_get(x_128, 0);
|
||||
lean_inc(x_136);
|
||||
x_137 = lean_ctor_get(x_128, 1);
|
||||
lean_inc(x_137);
|
||||
x_138 = lean_ctor_get(x_128, 2);
|
||||
lean_inc(x_138);
|
||||
x_139 = lean_ctor_get(x_128, 3);
|
||||
lean_inc(x_139);
|
||||
x_140 = lean_ctor_get(x_128, 4);
|
||||
lean_inc(x_140);
|
||||
x_141 = lean_ctor_get(x_128, 5);
|
||||
lean_inc(x_141);
|
||||
x_142 = lean_ctor_get(x_128, 6);
|
||||
lean_inc(x_142);
|
||||
x_143 = lean_ctor_get(x_128, 7);
|
||||
lean_inc(x_143);
|
||||
lean_dec(x_128);
|
||||
x_144 = lean_ctor_get(x_132, 1);
|
||||
lean_inc(x_144);
|
||||
x_145 = lean_ctor_get(x_132, 2);
|
||||
lean_inc(x_145);
|
||||
x_146 = lean_ctor_get(x_132, 3);
|
||||
lean_inc(x_146);
|
||||
if (lean_is_exclusive(x_132)) {
|
||||
lean_ctor_release(x_132, 0);
|
||||
lean_ctor_release(x_132, 1);
|
||||
lean_ctor_release(x_132, 2);
|
||||
lean_ctor_release(x_132, 3);
|
||||
x_147 = x_132;
|
||||
} else {
|
||||
lean_dec_ref(x_132);
|
||||
x_147 = lean_box(0);
|
||||
}
|
||||
x_148 = lean_ctor_get_uint8(x_134, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_134)) {
|
||||
lean_ctor_release(x_134, 0);
|
||||
lean_ctor_release(x_134, 1);
|
||||
lean_ctor_release(x_134, 2);
|
||||
lean_ctor_release(x_134, 3);
|
||||
lean_ctor_release(x_134, 4);
|
||||
lean_ctor_release(x_134, 5);
|
||||
lean_ctor_release(x_134, 6);
|
||||
lean_ctor_release(x_134, 7);
|
||||
x_149 = x_134;
|
||||
} else {
|
||||
lean_dec_ref(x_134);
|
||||
x_149 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_149)) {
|
||||
x_150 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_150 = x_149;
|
||||
}
|
||||
lean_ctor_set(x_150, 0, x_136);
|
||||
lean_ctor_set(x_150, 1, x_137);
|
||||
lean_ctor_set(x_150, 2, x_138);
|
||||
lean_ctor_set(x_150, 3, x_139);
|
||||
lean_ctor_set(x_150, 4, x_140);
|
||||
lean_ctor_set(x_150, 5, x_141);
|
||||
lean_ctor_set(x_150, 6, x_142);
|
||||
lean_ctor_set(x_150, 7, x_143);
|
||||
lean_ctor_set_uint8(x_150, sizeof(void*)*8, x_148);
|
||||
if (lean_is_scalar(x_147)) {
|
||||
x_151 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_151 = x_147;
|
||||
}
|
||||
lean_ctor_set(x_151, 0, x_150);
|
||||
lean_ctor_set(x_151, 1, x_144);
|
||||
lean_ctor_set(x_151, 2, x_145);
|
||||
lean_ctor_set(x_151, 3, x_146);
|
||||
x_152 = lean_st_ref_set(x_3, x_151, x_135);
|
||||
x_153 = lean_ctor_get(x_152, 1);
|
||||
lean_inc(x_153);
|
||||
lean_dec(x_152);
|
||||
x_29 = x_153;
|
||||
goto block_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172;
|
||||
x_154 = lean_ctor_get(x_131, 1);
|
||||
lean_inc(x_154);
|
||||
lean_dec(x_131);
|
||||
x_155 = lean_ctor_get(x_128, 0);
|
||||
lean_inc(x_155);
|
||||
x_156 = lean_ctor_get(x_128, 1);
|
||||
lean_inc(x_156);
|
||||
x_157 = lean_ctor_get(x_128, 2);
|
||||
lean_inc(x_157);
|
||||
x_158 = lean_ctor_get(x_128, 3);
|
||||
lean_inc(x_158);
|
||||
x_159 = lean_ctor_get(x_128, 4);
|
||||
lean_inc(x_159);
|
||||
x_160 = lean_ctor_get(x_128, 5);
|
||||
lean_inc(x_160);
|
||||
x_161 = lean_ctor_get(x_128, 6);
|
||||
lean_inc(x_161);
|
||||
x_162 = lean_ctor_get(x_128, 7);
|
||||
lean_inc(x_162);
|
||||
if (lean_is_exclusive(x_128)) {
|
||||
lean_ctor_release(x_128, 0);
|
||||
lean_ctor_release(x_128, 1);
|
||||
lean_ctor_release(x_128, 2);
|
||||
lean_ctor_release(x_128, 3);
|
||||
lean_ctor_release(x_128, 4);
|
||||
lean_ctor_release(x_128, 5);
|
||||
lean_ctor_release(x_128, 6);
|
||||
lean_ctor_release(x_128, 7);
|
||||
x_163 = x_128;
|
||||
} else {
|
||||
lean_dec_ref(x_128);
|
||||
x_163 = lean_box(0);
|
||||
}
|
||||
x_164 = lean_ctor_get(x_132, 1);
|
||||
lean_inc(x_164);
|
||||
x_165 = lean_ctor_get(x_132, 2);
|
||||
lean_inc(x_165);
|
||||
x_166 = lean_ctor_get(x_132, 3);
|
||||
lean_inc(x_166);
|
||||
if (lean_is_exclusive(x_132)) {
|
||||
lean_ctor_release(x_132, 0);
|
||||
lean_ctor_release(x_132, 1);
|
||||
lean_ctor_release(x_132, 2);
|
||||
lean_ctor_release(x_132, 3);
|
||||
x_167 = x_132;
|
||||
} else {
|
||||
lean_dec_ref(x_132);
|
||||
x_167 = lean_box(0);
|
||||
}
|
||||
x_168 = 1;
|
||||
if (lean_is_scalar(x_163)) {
|
||||
x_169 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_169 = x_163;
|
||||
}
|
||||
lean_ctor_set(x_169, 0, x_155);
|
||||
lean_ctor_set(x_169, 1, x_156);
|
||||
lean_ctor_set(x_169, 2, x_157);
|
||||
lean_ctor_set(x_169, 3, x_158);
|
||||
lean_ctor_set(x_169, 4, x_159);
|
||||
lean_ctor_set(x_169, 5, x_160);
|
||||
lean_ctor_set(x_169, 6, x_161);
|
||||
lean_ctor_set(x_169, 7, x_162);
|
||||
lean_ctor_set_uint8(x_169, sizeof(void*)*8, x_168);
|
||||
if (lean_is_scalar(x_167)) {
|
||||
x_170 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
x_170 = x_167;
|
||||
}
|
||||
lean_ctor_set(x_170, 0, x_169);
|
||||
lean_ctor_set(x_170, 1, x_164);
|
||||
lean_ctor_set(x_170, 2, x_165);
|
||||
lean_ctor_set(x_170, 3, x_166);
|
||||
x_171 = lean_st_ref_set(x_3, x_170, x_154);
|
||||
x_172 = lean_ctor_get(x_171, 1);
|
||||
lean_inc(x_172);
|
||||
lean_dec(x_171);
|
||||
x_29 = x_172;
|
||||
goto block_37;
|
||||
}
|
||||
}
|
||||
block_37:
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_30 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_28, 5);
|
||||
lean_inc(x_31);
|
||||
x_32 = l_Lean_LocalContext_mkLambda(x_30, x_31, x_27);
|
||||
x_33 = lean_ctor_get(x_28, 4);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_28);
|
||||
x_34 = lean_array_get_size(x_31);
|
||||
lean_dec(x_31);
|
||||
x_35 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
lean_ctor_set(x_35, 2, x_32);
|
||||
if (lean_is_scalar(x_20)) {
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_36 = x_20;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_29);
|
||||
return x_36;
|
||||
lean_ctor_set(x_104, 0, x_103);
|
||||
lean_ctor_set(x_104, 1, x_96);
|
||||
return x_104;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
2
stage0/stdlib/Lean/Meta/AppBuilder.c
generated
|
|
@ -11965,6 +11965,7 @@ x_48 = lean_ctor_get(x_45, 1);
|
|||
lean_inc(x_48);
|
||||
lean_dec(x_45);
|
||||
x_49 = l_Lean_Meta_SavedState_restore(x_43, x_10, x_11, x_12, x_13, x_48);
|
||||
lean_dec(x_43);
|
||||
x_50 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_49);
|
||||
|
|
@ -12059,6 +12060,7 @@ x_66 = lean_ctor_get(x_62, 1);
|
|||
lean_inc(x_66);
|
||||
lean_dec(x_62);
|
||||
x_67 = l_Lean_Meta_SavedState_restore(x_60, x_10, x_11, x_12, x_13, x_66);
|
||||
lean_dec(x_60);
|
||||
x_68 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
|
|
|
|||
16499
stage0/stdlib/Lean/Meta/Basic.c
generated
16499
stage0/stdlib/Lean/Meta/Basic.c
generated
File diff suppressed because it is too large
Load diff
434
stage0/stdlib/Lean/Meta/CollectMVars.c
generated
434
stage0/stdlib/Lean/Meta/CollectMVars.c
generated
|
|
@ -15,30 +15,28 @@ extern "C" {
|
|||
#endif
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_CollectMVars_visit(lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Std_mkHashSetImp___rarg(lean_object*);
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_collectMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_collectMVarsAtDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_collectMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_getMVars___closed__2;
|
||||
|
|
@ -56,19 +54,14 @@ static lean_object* l_Lean_Meta_getMVars___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getMVarsNoDelayed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_hasMVar(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isDelayedAssigned___at_Lean_Meta_getMVarsNoDelayed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getMVarsAtDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_collectMVarsAtDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_getMVarsNoDelayed___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_collectMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Meta_collectMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
|
|
@ -183,213 +176,6 @@ return x_38;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_5 = lean_st_ref_get(x_3, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_st_ref_take(x_1, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_7);
|
||||
x_11 = !lean_is_exclusive(x_8);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13;
|
||||
x_12 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_12);
|
||||
x_13 = !lean_is_exclusive(x_9);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
uint8_t x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_14 = 1;
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*8, x_14);
|
||||
x_15 = lean_st_ref_set(x_1, x_8, x_10);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = lean_box(0);
|
||||
lean_ctor_set(x_15, 0, x_18);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_15);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_19);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_22 = lean_ctor_get(x_9, 0);
|
||||
x_23 = lean_ctor_get(x_9, 1);
|
||||
x_24 = lean_ctor_get(x_9, 2);
|
||||
x_25 = lean_ctor_get(x_9, 3);
|
||||
x_26 = lean_ctor_get(x_9, 4);
|
||||
x_27 = lean_ctor_get(x_9, 5);
|
||||
x_28 = lean_ctor_get(x_9, 6);
|
||||
x_29 = lean_ctor_get(x_9, 7);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_9);
|
||||
x_30 = 1;
|
||||
x_31 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_31, 0, x_22);
|
||||
lean_ctor_set(x_31, 1, x_23);
|
||||
lean_ctor_set(x_31, 2, x_24);
|
||||
lean_ctor_set(x_31, 3, x_25);
|
||||
lean_ctor_set(x_31, 4, x_26);
|
||||
lean_ctor_set(x_31, 5, x_27);
|
||||
lean_ctor_set(x_31, 6, x_28);
|
||||
lean_ctor_set(x_31, 7, x_29);
|
||||
lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_30);
|
||||
lean_ctor_set(x_8, 0, x_31);
|
||||
x_32 = lean_st_ref_set(x_1, x_8, x_10);
|
||||
x_33 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_33);
|
||||
if (lean_is_exclusive(x_32)) {
|
||||
lean_ctor_release(x_32, 0);
|
||||
lean_ctor_release(x_32, 1);
|
||||
x_34 = x_32;
|
||||
} else {
|
||||
lean_dec_ref(x_32);
|
||||
x_34 = lean_box(0);
|
||||
}
|
||||
x_35 = lean_box(0);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_36 = x_34;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_33);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_37 = lean_ctor_get(x_8, 1);
|
||||
x_38 = lean_ctor_get(x_8, 2);
|
||||
x_39 = lean_ctor_get(x_8, 3);
|
||||
lean_inc(x_39);
|
||||
lean_inc(x_38);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_8);
|
||||
x_40 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_9, 2);
|
||||
lean_inc(x_42);
|
||||
x_43 = lean_ctor_get(x_9, 3);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_9, 4);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_9, 5);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_9, 6);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_9, 7);
|
||||
lean_inc(x_47);
|
||||
if (lean_is_exclusive(x_9)) {
|
||||
lean_ctor_release(x_9, 0);
|
||||
lean_ctor_release(x_9, 1);
|
||||
lean_ctor_release(x_9, 2);
|
||||
lean_ctor_release(x_9, 3);
|
||||
lean_ctor_release(x_9, 4);
|
||||
lean_ctor_release(x_9, 5);
|
||||
lean_ctor_release(x_9, 6);
|
||||
lean_ctor_release(x_9, 7);
|
||||
x_48 = x_9;
|
||||
} else {
|
||||
lean_dec_ref(x_9);
|
||||
x_48 = lean_box(0);
|
||||
}
|
||||
x_49 = 1;
|
||||
if (lean_is_scalar(x_48)) {
|
||||
x_50 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_50 = x_48;
|
||||
}
|
||||
lean_ctor_set(x_50, 0, x_40);
|
||||
lean_ctor_set(x_50, 1, x_41);
|
||||
lean_ctor_set(x_50, 2, x_42);
|
||||
lean_ctor_set(x_50, 3, x_43);
|
||||
lean_ctor_set(x_50, 4, x_44);
|
||||
lean_ctor_set(x_50, 5, x_45);
|
||||
lean_ctor_set(x_50, 6, x_46);
|
||||
lean_ctor_set(x_50, 7, x_47);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_49);
|
||||
x_51 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_37);
|
||||
lean_ctor_set(x_51, 2, x_38);
|
||||
lean_ctor_set(x_51, 3, x_39);
|
||||
x_52 = lean_st_ref_set(x_1, x_51, x_10);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
x_54 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_54 = lean_box(0);
|
||||
}
|
||||
x_55 = lean_box(0);
|
||||
if (lean_is_scalar(x_54)) {
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_56 = x_54;
|
||||
}
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg___boxed), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_1);
|
||||
lean_ctor_set(x_9, 1, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -402,98 +188,41 @@ x_10 = lean_st_ref_get(x_4, x_9);
|
|||
x_11 = !lean_is_exclusive(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = lean_ctor_get(x_10, 0);
|
||||
x_13 = lean_ctor_get(x_10, 1);
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_15 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(x_15, x_1);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_ctor_set(x_10, 0, x_16);
|
||||
x_14 = lean_ctor_get(x_13, 7);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_15 = l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(x_14, x_1);
|
||||
lean_ctor_set(x_10, 0, x_15);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18;
|
||||
lean_free_object(x_10);
|
||||
x_17 = l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg(x_4, x_5, x_6, x_13);
|
||||
x_18 = !lean_is_exclusive(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
lean_dec(x_19);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
x_20 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_17);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_16 = lean_ctor_get(x_10, 0);
|
||||
x_17 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_10);
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_ctor_get(x_18, 7);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(x_19, x_1);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_16);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_17);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_22 = lean_ctor_get(x_10, 0);
|
||||
x_23 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_10);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_ctor_get(x_24, 7);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_24);
|
||||
x_26 = l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(x_25, x_1);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_23);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_28 = l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg(x_4, x_5, x_6, x_23);
|
||||
x_29 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_29);
|
||||
if (lean_is_exclusive(x_28)) {
|
||||
lean_ctor_release(x_28, 0);
|
||||
lean_ctor_release(x_28, 1);
|
||||
x_30 = x_28;
|
||||
} else {
|
||||
lean_dec_ref(x_28);
|
||||
x_30 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_30)) {
|
||||
x_31 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_31 = x_30;
|
||||
}
|
||||
lean_ctor_set(x_31, 0, x_26);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11;
|
||||
|
|
@ -605,7 +334,7 @@ lean_inc(x_28);
|
|||
x_29 = lean_usize_of_nat(x_28);
|
||||
lean_dec(x_28);
|
||||
x_30 = lean_box(0);
|
||||
x_31 = l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4(x_25, x_27, x_29, x_30, x_2, x_3, x_4, x_5, x_6, x_22);
|
||||
x_31 = l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3(x_25, x_27, x_29, x_30, x_2, x_3, x_4, x_5, x_6, x_22);
|
||||
lean_dec(x_25);
|
||||
x_32 = !lean_is_exclusive(x_31);
|
||||
if (x_32 == 0)
|
||||
|
|
@ -642,41 +371,6 @@ lean_dec(x_2);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_markUsedAssignment___at_Lean_Meta_collectMVars___spec__3(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Meta_collectMVars___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -690,7 +384,7 @@ lean_dec(x_2);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
size_t x_11; size_t x_12; lean_object* x_13;
|
||||
|
|
@ -698,7 +392,7 @@ x_11 = lean_unbox_usize(x_2);
|
|||
lean_dec(x_2);
|
||||
x_12 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_13 = l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__4(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
x_13 = l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___spec__3(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -820,52 +514,48 @@ return x_7;
|
|||
LEAN_EXPORT lean_object* l_Lean_MVarId_isDelayedAssigned___at_Lean_Meta_getMVarsNoDelayed___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_7 = l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(x_3, x_4, x_5, x_6);
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_7 = lean_st_ref_get(x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_7);
|
||||
x_9 = lean_st_ref_get(x_5, x_8);
|
||||
x_10 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_st_ref_get(x_3, x_10);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
x_9 = lean_st_ref_get(x_3, x_8);
|
||||
x_10 = !lean_is_exclusive(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_13);
|
||||
x_15 = lean_ctor_get(x_14, 7);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_15, x_1);
|
||||
x_17 = lean_box(x_16);
|
||||
lean_ctor_set(x_11, 0, x_17);
|
||||
return x_11;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_11 = lean_ctor_get(x_9, 0);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_ctor_get(x_12, 7);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_13, x_1);
|
||||
x_15 = lean_box(x_14);
|
||||
lean_ctor_set(x_9, 0, x_15);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_18 = lean_ctor_get(x_11, 0);
|
||||
x_19 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_19);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
x_17 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_11);
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_ctor_get(x_18, 7);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_ctor_get(x_20, 7);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_21, x_1);
|
||||
x_23 = lean_box(x_22);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_19);
|
||||
return x_24;
|
||||
x_20 = l_Std_PersistentHashMap_contains___at_Lean_MVarId_isDelayedAssigned___spec__1(x_19, x_1);
|
||||
x_21 = lean_box(x_20);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_17);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
588
stage0/stdlib/Lean/Meta/CongrTheorems.c
generated
588
stage0/stdlib/Lean/Meta/CongrTheorems.c
generated
|
|
@ -106,6 +106,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_CongrTh
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_expr_consume_type_annotations(lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2;
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
|
|
@ -239,7 +240,6 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v
|
|||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_panic___at_Lean_Meta_whnfCore_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3219,7 +3219,7 @@ else
|
|||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
lean_inc(x_2);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(x_2, x_3);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(x_2, x_3);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
|
|
@ -3947,7 +3947,7 @@ else
|
|||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
lean_inc(x_2);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(x_2, x_3);
|
||||
x_34 = l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__10(x_2, x_3);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
|
|
@ -4247,7 +4247,7 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_112; lean_object* x_113; uint8_t x_114;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_8 = lean_st_ref_get(x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_9);
|
||||
|
|
@ -4261,235 +4261,170 @@ lean_dec(x_10);
|
|||
x_13 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_112 = l_Lean_exprDependsOn___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__1___closed__1;
|
||||
x_113 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_113, 0, x_112);
|
||||
lean_ctor_set(x_113, 1, x_13);
|
||||
x_114 = l_Lean_Expr_hasFVar(x_1);
|
||||
if (x_114 == 0)
|
||||
x_14 = l_Lean_exprDependsOn___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__1___closed__1;
|
||||
lean_inc(x_13);
|
||||
x_15 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_14);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
x_16 = l_Lean_Expr_hasFVar(x_1);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
uint8_t x_115;
|
||||
x_115 = l_Lean_Expr_hasMVar(x_1);
|
||||
if (x_115 == 0)
|
||||
uint8_t x_17;
|
||||
x_17 = l_Lean_Expr_hasMVar(x_1);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
uint8_t x_116;
|
||||
lean_dec(x_1);
|
||||
x_116 = 0;
|
||||
x_14 = x_116;
|
||||
x_15 = x_113;
|
||||
goto block_111;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120;
|
||||
x_117 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__2(x_2, x_1, x_113);
|
||||
x_118 = lean_ctor_get(x_117, 0);
|
||||
lean_inc(x_118);
|
||||
x_119 = lean_ctor_get(x_117, 1);
|
||||
lean_inc(x_119);
|
||||
lean_dec(x_117);
|
||||
x_120 = lean_unbox(x_118);
|
||||
lean_dec(x_118);
|
||||
x_14 = x_120;
|
||||
x_15 = x_119;
|
||||
goto block_111;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124;
|
||||
x_121 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__10(x_2, x_1, x_113);
|
||||
x_122 = lean_ctor_get(x_121, 0);
|
||||
lean_inc(x_122);
|
||||
x_123 = lean_ctor_get(x_121, 1);
|
||||
lean_inc(x_123);
|
||||
lean_dec(x_121);
|
||||
x_124 = lean_unbox(x_122);
|
||||
lean_dec(x_122);
|
||||
x_14 = x_124;
|
||||
x_15 = x_123;
|
||||
goto block_111;
|
||||
}
|
||||
block_111:
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_16 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_16);
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
lean_dec(x_15);
|
||||
x_17 = lean_st_ref_get(x_6, x_12);
|
||||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_st_ref_take(x_4, x_18);
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get_uint8(x_16, sizeof(void*)*8);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_1);
|
||||
x_18 = lean_st_ref_get(x_6, x_12);
|
||||
x_19 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = lean_st_ref_take(x_4, x_19);
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_19);
|
||||
x_24 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get(x_16, 2);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_16, 3);
|
||||
lean_inc(x_27);
|
||||
x_28 = lean_ctor_get(x_16, 4);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_16, 5);
|
||||
lean_inc(x_29);
|
||||
x_30 = lean_ctor_get(x_16, 6);
|
||||
lean_dec(x_20);
|
||||
x_23 = !lean_is_exclusive(x_21);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_24 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_24);
|
||||
lean_ctor_set(x_21, 0, x_13);
|
||||
x_25 = lean_st_ref_set(x_4, x_21, x_22);
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; uint8_t x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_27);
|
||||
x_28 = 0;
|
||||
x_29 = lean_box(x_28);
|
||||
lean_ctor_set(x_25, 0, x_29);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_30 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_16);
|
||||
x_32 = !lean_is_exclusive(x_20);
|
||||
if (x_32 == 0)
|
||||
lean_dec(x_25);
|
||||
x_31 = 0;
|
||||
x_32 = lean_box(x_31);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_30);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; uint8_t x_34;
|
||||
x_33 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_33);
|
||||
x_34 = !lean_is_exclusive(x_22);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44;
|
||||
x_35 = lean_ctor_get(x_22, 7);
|
||||
lean_dec(x_35);
|
||||
x_36 = lean_ctor_get(x_22, 6);
|
||||
lean_dec(x_36);
|
||||
x_37 = lean_ctor_get(x_22, 5);
|
||||
lean_dec(x_37);
|
||||
x_38 = lean_ctor_get(x_22, 4);
|
||||
lean_dec(x_38);
|
||||
x_39 = lean_ctor_get(x_22, 3);
|
||||
lean_dec(x_39);
|
||||
x_40 = lean_ctor_get(x_22, 2);
|
||||
lean_dec(x_40);
|
||||
x_41 = lean_ctor_get(x_22, 1);
|
||||
lean_dec(x_41);
|
||||
x_42 = lean_ctor_get(x_22, 0);
|
||||
lean_dec(x_42);
|
||||
lean_ctor_set(x_22, 7, x_31);
|
||||
lean_ctor_set(x_22, 6, x_30);
|
||||
lean_ctor_set(x_22, 5, x_29);
|
||||
lean_ctor_set(x_22, 4, x_28);
|
||||
lean_ctor_set(x_22, 3, x_27);
|
||||
lean_ctor_set(x_22, 2, x_26);
|
||||
lean_ctor_set(x_22, 1, x_25);
|
||||
lean_ctor_set(x_22, 0, x_24);
|
||||
x_43 = lean_st_ref_set(x_4, x_20, x_23);
|
||||
x_44 = !lean_is_exclusive(x_43);
|
||||
if (x_44 == 0)
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46;
|
||||
x_45 = lean_ctor_get(x_43, 0);
|
||||
lean_dec(x_45);
|
||||
x_46 = lean_box(x_14);
|
||||
lean_ctor_set(x_43, 0, x_46);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_34 = lean_ctor_get(x_21, 1);
|
||||
x_35 = lean_ctor_get(x_21, 2);
|
||||
x_36 = lean_ctor_get(x_21, 3);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_21);
|
||||
x_37 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_37, 0, x_13);
|
||||
lean_ctor_set(x_37, 1, x_34);
|
||||
lean_ctor_set(x_37, 2, x_35);
|
||||
lean_ctor_set(x_37, 3, x_36);
|
||||
x_38 = lean_st_ref_set(x_4, x_37, x_22);
|
||||
x_39 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_39);
|
||||
if (lean_is_exclusive(x_38)) {
|
||||
lean_ctor_release(x_38, 0);
|
||||
lean_ctor_release(x_38, 1);
|
||||
x_40 = x_38;
|
||||
} else {
|
||||
lean_dec_ref(x_38);
|
||||
x_40 = lean_box(0);
|
||||
}
|
||||
x_41 = 0;
|
||||
x_42 = lean_box(x_41);
|
||||
if (lean_is_scalar(x_40)) {
|
||||
x_43 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_43 = x_40;
|
||||
}
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
lean_ctor_set(x_43, 1, x_39);
|
||||
return x_43;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_47 = lean_ctor_get(x_43, 1);
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53;
|
||||
lean_dec(x_13);
|
||||
x_44 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__2(x_2, x_1, x_15);
|
||||
x_45 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_44);
|
||||
x_47 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_43);
|
||||
x_48 = lean_box(x_14);
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
return x_49;
|
||||
}
|
||||
lean_dec(x_45);
|
||||
x_48 = lean_st_ref_get(x_6, x_12);
|
||||
x_49 = lean_ctor_get(x_48, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_48);
|
||||
x_50 = lean_st_ref_take(x_4, x_49);
|
||||
x_51 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_51);
|
||||
x_52 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_50);
|
||||
x_53 = !lean_is_exclusive(x_51);
|
||||
if (x_53 == 0)
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55; uint8_t x_56;
|
||||
x_54 = lean_ctor_get(x_51, 0);
|
||||
lean_dec(x_54);
|
||||
lean_ctor_set(x_51, 0, x_47);
|
||||
x_55 = lean_st_ref_set(x_4, x_51, x_52);
|
||||
x_56 = !lean_is_exclusive(x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
lean_object* x_57;
|
||||
x_57 = lean_ctor_get(x_55, 0);
|
||||
lean_dec(x_57);
|
||||
lean_ctor_set(x_55, 0, x_46);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_50 = lean_ctor_get_uint8(x_22, sizeof(void*)*8);
|
||||
lean_dec(x_22);
|
||||
x_51 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_51, 0, x_24);
|
||||
lean_ctor_set(x_51, 1, x_25);
|
||||
lean_ctor_set(x_51, 2, x_26);
|
||||
lean_ctor_set(x_51, 3, x_27);
|
||||
lean_ctor_set(x_51, 4, x_28);
|
||||
lean_ctor_set(x_51, 5, x_29);
|
||||
lean_ctor_set(x_51, 6, x_30);
|
||||
lean_ctor_set(x_51, 7, x_31);
|
||||
lean_ctor_set_uint8(x_51, sizeof(void*)*8, x_50);
|
||||
lean_ctor_set(x_20, 0, x_51);
|
||||
x_52 = lean_st_ref_set(x_4, x_20, x_23);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
x_54 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_54 = lean_box(0);
|
||||
}
|
||||
x_55 = lean_box(x_14);
|
||||
if (lean_is_scalar(x_54)) {
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_56 = x_54;
|
||||
}
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_53);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_57 = lean_ctor_get(x_20, 1);
|
||||
x_58 = lean_ctor_get(x_20, 2);
|
||||
x_59 = lean_ctor_get(x_20, 3);
|
||||
lean_inc(x_59);
|
||||
lean_object* x_58; lean_object* x_59;
|
||||
x_58 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_20);
|
||||
x_60 = lean_ctor_get_uint8(x_22, sizeof(void*)*8);
|
||||
if (lean_is_exclusive(x_22)) {
|
||||
lean_ctor_release(x_22, 0);
|
||||
lean_ctor_release(x_22, 1);
|
||||
lean_ctor_release(x_22, 2);
|
||||
lean_ctor_release(x_22, 3);
|
||||
lean_ctor_release(x_22, 4);
|
||||
lean_ctor_release(x_22, 5);
|
||||
lean_ctor_release(x_22, 6);
|
||||
lean_ctor_release(x_22, 7);
|
||||
x_61 = x_22;
|
||||
} else {
|
||||
lean_dec_ref(x_22);
|
||||
x_61 = lean_box(0);
|
||||
lean_dec(x_55);
|
||||
x_59 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_46);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
if (lean_is_scalar(x_61)) {
|
||||
x_62 = lean_alloc_ctor(0, 8, 1);
|
||||
} else {
|
||||
x_62 = x_61;
|
||||
}
|
||||
lean_ctor_set(x_62, 0, x_24);
|
||||
lean_ctor_set(x_62, 1, x_25);
|
||||
lean_ctor_set(x_62, 2, x_26);
|
||||
lean_ctor_set(x_62, 3, x_27);
|
||||
lean_ctor_set(x_62, 4, x_28);
|
||||
lean_ctor_set(x_62, 5, x_29);
|
||||
lean_ctor_set(x_62, 6, x_30);
|
||||
lean_ctor_set(x_62, 7, x_31);
|
||||
lean_ctor_set_uint8(x_62, sizeof(void*)*8, x_60);
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_60 = lean_ctor_get(x_51, 1);
|
||||
x_61 = lean_ctor_get(x_51, 2);
|
||||
x_62 = lean_ctor_get(x_51, 3);
|
||||
lean_inc(x_62);
|
||||
lean_inc(x_61);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_51);
|
||||
x_63 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_57);
|
||||
lean_ctor_set(x_63, 2, x_58);
|
||||
lean_ctor_set(x_63, 3, x_59);
|
||||
x_64 = lean_st_ref_set(x_4, x_63, x_23);
|
||||
lean_ctor_set(x_63, 0, x_47);
|
||||
lean_ctor_set(x_63, 1, x_60);
|
||||
lean_ctor_set(x_63, 2, x_61);
|
||||
lean_ctor_set(x_63, 3, x_62);
|
||||
x_64 = lean_st_ref_set(x_4, x_63, x_52);
|
||||
x_65 = lean_ctor_get(x_64, 1);
|
||||
lean_inc(x_65);
|
||||
if (lean_is_exclusive(x_64)) {
|
||||
|
|
@ -4500,176 +4435,103 @@ if (lean_is_exclusive(x_64)) {
|
|||
lean_dec_ref(x_64);
|
||||
x_66 = lean_box(0);
|
||||
}
|
||||
x_67 = lean_box(x_14);
|
||||
if (lean_is_scalar(x_66)) {
|
||||
x_68 = lean_alloc_ctor(0, 2, 0);
|
||||
x_67 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_68 = x_66;
|
||||
x_67 = x_66;
|
||||
}
|
||||
lean_ctor_set(x_67, 0, x_46);
|
||||
lean_ctor_set(x_67, 1, x_65);
|
||||
return x_67;
|
||||
}
|
||||
lean_ctor_set(x_68, 0, x_67);
|
||||
lean_ctor_set(x_68, 1, x_65);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_69; uint8_t x_70;
|
||||
x_69 = lean_ctor_get(x_19, 1);
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77;
|
||||
lean_dec(x_13);
|
||||
x_68 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___spec__10(x_2, x_1, x_15);
|
||||
x_69 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_19);
|
||||
x_70 = !lean_is_exclusive(x_16);
|
||||
if (x_70 == 0)
|
||||
{
|
||||
uint8_t x_71;
|
||||
x_71 = !lean_is_exclusive(x_20);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
lean_object* x_72; uint8_t x_73; lean_object* x_74; uint8_t x_75;
|
||||
x_72 = lean_ctor_get(x_20, 0);
|
||||
x_70 = lean_ctor_get(x_68, 0);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_68);
|
||||
x_71 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_71);
|
||||
lean_dec(x_69);
|
||||
x_72 = lean_st_ref_get(x_6, x_12);
|
||||
x_73 = lean_ctor_get(x_72, 1);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_72);
|
||||
x_73 = 1;
|
||||
lean_ctor_set_uint8(x_16, sizeof(void*)*8, x_73);
|
||||
lean_ctor_set(x_20, 0, x_16);
|
||||
x_74 = lean_st_ref_set(x_4, x_20, x_69);
|
||||
x_75 = !lean_is_exclusive(x_74);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77;
|
||||
x_76 = lean_ctor_get(x_74, 0);
|
||||
lean_dec(x_76);
|
||||
x_77 = lean_box(x_14);
|
||||
lean_ctor_set(x_74, 0, x_77);
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_78 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_78);
|
||||
x_74 = lean_st_ref_take(x_4, x_73);
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_74);
|
||||
x_79 = lean_box(x_14);
|
||||
x_80 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_79);
|
||||
lean_ctor_set(x_80, 1, x_78);
|
||||
return x_80;
|
||||
}
|
||||
x_77 = !lean_is_exclusive(x_75);
|
||||
if (x_77 == 0)
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79; uint8_t x_80;
|
||||
x_78 = lean_ctor_get(x_75, 0);
|
||||
lean_dec(x_78);
|
||||
lean_ctor_set(x_75, 0, x_71);
|
||||
x_79 = lean_st_ref_set(x_4, x_75, x_76);
|
||||
x_80 = !lean_is_exclusive(x_79);
|
||||
if (x_80 == 0)
|
||||
{
|
||||
lean_object* x_81;
|
||||
x_81 = lean_ctor_get(x_79, 0);
|
||||
lean_dec(x_81);
|
||||
lean_ctor_set(x_79, 0, x_70);
|
||||
return x_79;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
x_81 = lean_ctor_get(x_20, 1);
|
||||
x_82 = lean_ctor_get(x_20, 2);
|
||||
x_83 = lean_ctor_get(x_20, 3);
|
||||
lean_inc(x_83);
|
||||
lean_object* x_82; lean_object* x_83;
|
||||
x_82 = lean_ctor_get(x_79, 1);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_20);
|
||||
x_84 = 1;
|
||||
lean_ctor_set_uint8(x_16, sizeof(void*)*8, x_84);
|
||||
x_85 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_85, 0, x_16);
|
||||
lean_ctor_set(x_85, 1, x_81);
|
||||
lean_ctor_set(x_85, 2, x_82);
|
||||
lean_ctor_set(x_85, 3, x_83);
|
||||
x_86 = lean_st_ref_set(x_4, x_85, x_69);
|
||||
x_87 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_87);
|
||||
if (lean_is_exclusive(x_86)) {
|
||||
lean_ctor_release(x_86, 0);
|
||||
lean_ctor_release(x_86, 1);
|
||||
x_88 = x_86;
|
||||
} else {
|
||||
lean_dec_ref(x_86);
|
||||
x_88 = lean_box(0);
|
||||
}
|
||||
x_89 = lean_box(x_14);
|
||||
if (lean_is_scalar(x_88)) {
|
||||
x_90 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_90 = x_88;
|
||||
}
|
||||
lean_ctor_set(x_90, 0, x_89);
|
||||
lean_ctor_set(x_90, 1, x_87);
|
||||
return x_90;
|
||||
lean_dec(x_79);
|
||||
x_83 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_70);
|
||||
lean_ctor_set(x_83, 1, x_82);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110;
|
||||
x_91 = lean_ctor_get(x_16, 0);
|
||||
x_92 = lean_ctor_get(x_16, 1);
|
||||
x_93 = lean_ctor_get(x_16, 2);
|
||||
x_94 = lean_ctor_get(x_16, 3);
|
||||
x_95 = lean_ctor_get(x_16, 4);
|
||||
x_96 = lean_ctor_get(x_16, 5);
|
||||
x_97 = lean_ctor_get(x_16, 6);
|
||||
x_98 = lean_ctor_get(x_16, 7);
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_97);
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_92);
|
||||
lean_inc(x_91);
|
||||
lean_dec(x_16);
|
||||
x_99 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_99);
|
||||
x_100 = lean_ctor_get(x_20, 2);
|
||||
lean_inc(x_100);
|
||||
x_101 = lean_ctor_get(x_20, 3);
|
||||
lean_inc(x_101);
|
||||
if (lean_is_exclusive(x_20)) {
|
||||
lean_ctor_release(x_20, 0);
|
||||
lean_ctor_release(x_20, 1);
|
||||
lean_ctor_release(x_20, 2);
|
||||
lean_ctor_release(x_20, 3);
|
||||
x_102 = x_20;
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_84 = lean_ctor_get(x_75, 1);
|
||||
x_85 = lean_ctor_get(x_75, 2);
|
||||
x_86 = lean_ctor_get(x_75, 3);
|
||||
lean_inc(x_86);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_84);
|
||||
lean_dec(x_75);
|
||||
x_87 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_87, 0, x_71);
|
||||
lean_ctor_set(x_87, 1, x_84);
|
||||
lean_ctor_set(x_87, 2, x_85);
|
||||
lean_ctor_set(x_87, 3, x_86);
|
||||
x_88 = lean_st_ref_set(x_4, x_87, x_76);
|
||||
x_89 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_89);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_90 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_20);
|
||||
x_102 = lean_box(0);
|
||||
lean_dec_ref(x_88);
|
||||
x_90 = lean_box(0);
|
||||
}
|
||||
x_103 = 1;
|
||||
x_104 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_104, 0, x_91);
|
||||
lean_ctor_set(x_104, 1, x_92);
|
||||
lean_ctor_set(x_104, 2, x_93);
|
||||
lean_ctor_set(x_104, 3, x_94);
|
||||
lean_ctor_set(x_104, 4, x_95);
|
||||
lean_ctor_set(x_104, 5, x_96);
|
||||
lean_ctor_set(x_104, 6, x_97);
|
||||
lean_ctor_set(x_104, 7, x_98);
|
||||
lean_ctor_set_uint8(x_104, sizeof(void*)*8, x_103);
|
||||
if (lean_is_scalar(x_102)) {
|
||||
x_105 = lean_alloc_ctor(0, 4, 0);
|
||||
if (lean_is_scalar(x_90)) {
|
||||
x_91 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_105 = x_102;
|
||||
}
|
||||
lean_ctor_set(x_105, 0, x_104);
|
||||
lean_ctor_set(x_105, 1, x_99);
|
||||
lean_ctor_set(x_105, 2, x_100);
|
||||
lean_ctor_set(x_105, 3, x_101);
|
||||
x_106 = lean_st_ref_set(x_4, x_105, x_69);
|
||||
x_107 = lean_ctor_get(x_106, 1);
|
||||
lean_inc(x_107);
|
||||
if (lean_is_exclusive(x_106)) {
|
||||
lean_ctor_release(x_106, 0);
|
||||
lean_ctor_release(x_106, 1);
|
||||
x_108 = x_106;
|
||||
} else {
|
||||
lean_dec_ref(x_106);
|
||||
x_108 = lean_box(0);
|
||||
}
|
||||
x_109 = lean_box(x_14);
|
||||
if (lean_is_scalar(x_108)) {
|
||||
x_110 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_110 = x_108;
|
||||
}
|
||||
lean_ctor_set(x_110, 0, x_109);
|
||||
lean_ctor_set(x_110, 1, x_107);
|
||||
return x_110;
|
||||
x_91 = x_90;
|
||||
}
|
||||
lean_ctor_set(x_91, 0, x_70);
|
||||
lean_ctor_set(x_91, 1, x_89);
|
||||
return x_91;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Meta/Constructions.c
generated
3
stage0/stdlib/Lean/Meta/Constructions.c
generated
|
|
@ -3303,14 +3303,13 @@ x_1 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spe
|
|||
x_2 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__15___closed__7;
|
||||
x_3 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__15___closed__8;
|
||||
x_4 = l_Lean_setReducibilityStatus___at_Lean_mkNoConfusionEnum_mkToCtorIdx___spec__15___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
872
stage0/stdlib/Lean/Meta/DecLevel.c
generated
872
stage0/stdlib/Lean/Meta/DecLevel.c
generated
File diff suppressed because it is too large
Load diff
19
stage0/stdlib/Lean/Meta/Eqns.c
generated
19
stage0/stdlib/Lean/Meta/Eqns.c
generated
|
|
@ -3326,14 +3326,13 @@ x_1 = l_List_forIn_loop___at_Lean_Meta_getEqnsFor_x3f___spec__8___closed__3;
|
|||
x_2 = l_List_forIn_loop___at_Lean_Meta_getEqnsFor_x3f___spec__8___closed__5;
|
||||
x_3 = l_List_forIn_loop___at_Lean_Meta_getEqnsFor_x3f___spec__8___closed__6;
|
||||
x_4 = l_List_forIn_loop___at_Lean_Meta_getEqnsFor_x3f___spec__8___closed__9;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -3916,16 +3915,14 @@ lean_ctor_set(x_48, 1, x_34);
|
|||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_5);
|
||||
lean_ctor_set(x_49, 1, x_34);
|
||||
lean_inc(x_49);
|
||||
lean_inc_n(x_46, 2);
|
||||
x_50 = lean_alloc_ctor(0, 7, 0);
|
||||
x_50 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_50, 0, x_46);
|
||||
lean_ctor_set(x_50, 1, x_47);
|
||||
lean_ctor_set(x_50, 2, x_48);
|
||||
lean_ctor_set(x_50, 3, x_46);
|
||||
lean_ctor_set(x_50, 4, x_46);
|
||||
lean_ctor_set(x_50, 5, x_49);
|
||||
lean_ctor_set(x_50, 6, x_49);
|
||||
lean_ctor_set(x_42, 1, x_50);
|
||||
x_51 = lean_st_ref_set(x_8, x_42, x_43);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -3977,16 +3974,14 @@ lean_ctor_set(x_61, 1, x_34);
|
|||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_5);
|
||||
lean_ctor_set(x_62, 1, x_34);
|
||||
lean_inc(x_62);
|
||||
lean_inc_n(x_59, 2);
|
||||
x_63 = lean_alloc_ctor(0, 7, 0);
|
||||
x_63 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_63, 0, x_59);
|
||||
lean_ctor_set(x_63, 1, x_60);
|
||||
lean_ctor_set(x_63, 2, x_61);
|
||||
lean_ctor_set(x_63, 3, x_59);
|
||||
lean_ctor_set(x_63, 4, x_59);
|
||||
lean_ctor_set(x_63, 5, x_62);
|
||||
lean_ctor_set(x_63, 6, x_62);
|
||||
x_64 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_64, 0, x_56);
|
||||
lean_ctor_set(x_64, 1, x_63);
|
||||
|
|
@ -4100,16 +4095,14 @@ lean_ctor_set(x_95, 1, x_78);
|
|||
x_96 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_5);
|
||||
lean_ctor_set(x_96, 1, x_78);
|
||||
lean_inc(x_96);
|
||||
lean_inc_n(x_93, 2);
|
||||
x_97 = lean_alloc_ctor(0, 7, 0);
|
||||
x_97 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_97, 0, x_93);
|
||||
lean_ctor_set(x_97, 1, x_94);
|
||||
lean_ctor_set(x_97, 2, x_95);
|
||||
lean_ctor_set(x_97, 3, x_93);
|
||||
lean_ctor_set(x_97, 4, x_93);
|
||||
lean_ctor_set(x_97, 5, x_96);
|
||||
lean_ctor_set(x_97, 6, x_96);
|
||||
if (lean_is_scalar(x_92)) {
|
||||
x_98 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
|
|
@ -4254,16 +4247,14 @@ lean_ctor_set(x_136, 1, x_119);
|
|||
x_137 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_137, 0, x_5);
|
||||
lean_ctor_set(x_137, 1, x_119);
|
||||
lean_inc(x_137);
|
||||
lean_inc_n(x_134, 2);
|
||||
x_138 = lean_alloc_ctor(0, 7, 0);
|
||||
x_138 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_138, 0, x_134);
|
||||
lean_ctor_set(x_138, 1, x_135);
|
||||
lean_ctor_set(x_138, 2, x_136);
|
||||
lean_ctor_set(x_138, 3, x_134);
|
||||
lean_ctor_set(x_138, 4, x_134);
|
||||
lean_ctor_set(x_138, 5, x_137);
|
||||
lean_ctor_set(x_138, 6, x_137);
|
||||
if (lean_is_scalar(x_133)) {
|
||||
x_139 = lean_alloc_ctor(0, 4, 0);
|
||||
} else {
|
||||
|
|
|
|||
32916
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
32916
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
File diff suppressed because it is too large
Load diff
1640
stage0/stdlib/Lean/Meta/FunInfo.c
generated
1640
stage0/stdlib/Lean/Meta/FunInfo.c
generated
File diff suppressed because it is too large
Load diff
7522
stage0/stdlib/Lean/Meta/GeneralizeVars.c
generated
7522
stage0/stdlib/Lean/Meta/GeneralizeVars.c
generated
File diff suppressed because it is too large
Load diff
3
stage0/stdlib/Lean/Meta/GlobalInstances.c
generated
3
stage0/stdlib/Lean/Meta/GlobalInstances.c
generated
|
|
@ -257,14 +257,13 @@ x_1 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addGlobalInstance___spec__1__
|
|||
x_2 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addGlobalInstance___spec__1___closed__4;
|
||||
x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addGlobalInstance___spec__1___closed__5;
|
||||
x_4 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addGlobalInstance___spec__1___closed__8;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Meta/IndPredBelow.c
generated
3
stage0/stdlib/Lean/Meta/IndPredBelow.c
generated
|
|
@ -25602,14 +25602,13 @@ x_1 = l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__5
|
|||
x_2 = l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__7;
|
||||
x_3 = l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__8;
|
||||
x_4 = l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5988
stage0/stdlib/Lean/Meta/InferType.c
generated
5988
stage0/stdlib/Lean/Meta/InferType.c
generated
File diff suppressed because it is too large
Load diff
58
stage0/stdlib/Lean/Meta/Injective.c
generated
58
stage0/stdlib/Lean/Meta/Injective.c
generated
|
|
@ -26,6 +26,7 @@ lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader___closed__4;
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_panic___at___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq___spec__1___closed__1;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
|
|
@ -49,8 +50,6 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*)
|
|||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremValue___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1;
|
||||
lean_object* l_Lean_Meta_casesAnd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_elimOptParam(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_throwInjectiveTheoremFailure___rarg___closed__1;
|
||||
|
|
@ -77,7 +76,6 @@ static lean_object* l_Lean_Meta_mkInjectiveTheoremNameFor___closed__2;
|
|||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__4;
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_mkInjectiveEqTheoremNameFor___closed__2;
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__2;
|
||||
static lean_object* l_Lean_Meta_mkInjectiveTheoremNameFor___closed__1;
|
||||
|
|
@ -89,6 +87,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiv
|
|||
extern lean_object* l_Lean_Meta_simpExtension;
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
|
||||
lean_object* l_Lean_MVarId_substEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_assumptionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f_mkArgs2___closed__3;
|
||||
|
|
@ -97,6 +96,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Injective_0_
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader___closed__2;
|
||||
lean_object* l_Array_back___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheorem___closed__1;
|
||||
lean_object* l_Lean_MVarId_apply(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
||||
|
|
@ -109,18 +109,19 @@ static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTh
|
|||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
uint8_t l_Array_isEmpty___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_injTheoremFailureHeader(lean_object*);
|
||||
lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_throwInjectiveTheoremFailure(lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__5;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___spec__2(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Injective_0__Lean_Meta_mkAnd_x3f___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -130,18 +131,16 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkInjectiveTheoremNameFor(lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__1;
|
||||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_substEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782_(lean_object*);
|
||||
lean_object* l_Lean_Option_register___at_Std_Format_initFn____x40_Lean_Data_Format___hyg_58____spec__1(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_expr_eqv(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_mkInjectiveTheoremNameFor___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3;
|
||||
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withNewBinderInfos___at_Lean_Meta_withInstImplicitAsImplict___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4;
|
||||
lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2;
|
||||
LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Injective_0__Lean_Meta_solveEqOfCtorEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremTypeCore_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -168,6 +167,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_elimOptParam___lambda__1(lean_object*, lean
|
|||
lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_injection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_elimOptParam___closed__2;
|
||||
lean_object* l_Lean_MVarId_casesAnd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveTheoremType_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3211,7 +3211,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_49 = l_Lean_Meta_casesAnd(x_46, x_4, x_5, x_6, x_7, x_48);
|
||||
x_49 = l_Lean_MVarId_casesAnd(x_46, x_4, x_5, x_6, x_7, x_48);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
|
|
@ -3224,7 +3224,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_52 = l_Lean_Meta_substEqs(x_50, x_4, x_5, x_6, x_7, x_51);
|
||||
x_52 = l_Lean_MVarId_substEqs(x_50, x_4, x_5, x_6, x_7, x_51);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
lean_object* x_53;
|
||||
|
|
@ -3260,7 +3260,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_61 = l_Lean_Meta_applyRefl(x_59, x_60, x_4, x_5, x_6, x_7, x_58);
|
||||
x_61 = l_Lean_MVarId_applyRefl(x_59, x_60, x_4, x_5, x_6, x_7, x_58);
|
||||
if (lean_obj_tag(x_61) == 0)
|
||||
{
|
||||
lean_object* x_62; uint8_t x_63; uint8_t x_64; lean_object* x_65;
|
||||
|
|
@ -3904,7 +3904,7 @@ return x_87;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1() {
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -3912,17 +3912,17 @@ x_1 = lean_mk_string_from_bytes("genInjectivity", 14);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2() {
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1;
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3() {
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -3930,13 +3930,13 @@ x_1 = lean_mk_string_from_bytes("generate injectivity theorems for inductive dat
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4() {
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 1;
|
||||
x_2 = l___private_Lean_Meta_Injective_0__Lean_Meta_throwInjectiveTheoremFailure___rarg___closed__1;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3;
|
||||
x_4 = lean_box(x_1);
|
||||
x_5 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
|
|
@ -3945,12 +3945,12 @@ lean_ctor_set(x_5, 2, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4;
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4;
|
||||
x_4 = l_Lean_Option_register___at_Std_Format_initFn____x40_Lean_Data_Format___hyg_58____spec__1(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
|
|
@ -4678,15 +4678,15 @@ l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda_
|
|||
lean_mark_persistent(l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheoremValue___lambda__2___closed__7);
|
||||
l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheorem___closed__1 = _init_l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheorem___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Injective_0__Lean_Meta_mkInjectiveEqTheorem___closed__1);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__1);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__2);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__3);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785____closed__4);
|
||||
if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1785_(lean_io_mk_world());
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__1);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__2);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__3);
|
||||
l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782____closed__4);
|
||||
if (builtin) {res = l_Lean_Meta_initFn____x40_Lean_Meta_Injective___hyg_1782_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Meta_genInjectivity = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Meta_genInjectivity);
|
||||
|
|
|
|||
27
stage0/stdlib/Lean/Meta/Instances.c
generated
27
stage0/stdlib/Lean/Meta/Instances.c
generated
|
|
@ -3282,14 +3282,13 @@ x_1 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___close
|
|||
x_2 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__4;
|
||||
x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__5;
|
||||
x_4 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_addInstance___spec__2___closed__8;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -4239,23 +4238,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_500____lambda__1___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_500____lambda__1___closed__8;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_500____lambda__1___closed__9;
|
||||
x_4 = l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_instanceNames___default___spec__1___closed__3;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_500____lambda__1___closed__11() {
|
||||
|
|
|
|||
159
stage0/stdlib/Lean/Meta/LevelDefEq.c
generated
159
stage0/stdlib/Lean/Meta/LevelDefEq.c
generated
|
|
@ -64,7 +64,6 @@ lean_object* l_Lean_mkLevelMax_x27(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_mkMaxArgsDiff___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_throwIsDefEqStuck___rarg(lean_object*);
|
||||
lean_object* l_instInhabited___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_strictOccursMax_visit(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___closed__5;
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -2186,7 +2185,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__1;
|
||||
x_2 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(361u);
|
||||
x_3 = lean_unsigned_to_nat(344u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -2196,101 +2195,97 @@ return x_6;
|
|||
LEAN_EXPORT lean_object* l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_7 = l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(x_3, x_4, x_5, x_6);
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_7 = lean_st_ref_get(x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_7);
|
||||
x_9 = lean_st_ref_get(x_5, x_8);
|
||||
x_10 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_st_ref_get(x_3, x_10);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
x_9 = lean_st_ref_get(x_3, x_8);
|
||||
x_10 = !lean_is_exclusive(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_11 = lean_ctor_get(x_9, 0);
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
x_16 = lean_ctor_get(x_15, 2);
|
||||
lean_inc(x_16);
|
||||
x_17 = l_Std_PersistentHashMap_find_x3f___at_Lean_isLevelMVarAssignable___spec__1(x_16, x_1);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_15);
|
||||
lean_free_object(x_11);
|
||||
x_18 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__4;
|
||||
x_19 = l_panic___at_Lean_Meta_isLevelDefEqAuxImpl___spec__3(x_18, x_2, x_3, x_4, x_5, x_14);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_20 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_17);
|
||||
x_21 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_15);
|
||||
x_22 = lean_nat_dec_eq(x_20, x_21);
|
||||
lean_dec(x_21);
|
||||
lean_dec(x_20);
|
||||
x_23 = lean_box(x_22);
|
||||
lean_ctor_set(x_11, 0, x_23);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_24 = lean_ctor_get(x_11, 0);
|
||||
x_25 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_26 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_24);
|
||||
x_27 = lean_ctor_get(x_26, 2);
|
||||
lean_inc(x_27);
|
||||
x_28 = l_Std_PersistentHashMap_find_x3f___at_Lean_isLevelMVarAssignable___spec__1(x_27, x_1);
|
||||
if (lean_obj_tag(x_28) == 0)
|
||||
x_14 = lean_ctor_get(x_13, 2);
|
||||
lean_inc(x_14);
|
||||
x_15 = l_Std_PersistentHashMap_find_x3f___at_Lean_isLevelMVarAssignable___spec__1(x_14, x_1);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_26);
|
||||
x_29 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__4;
|
||||
x_30 = l_panic___at_Lean_Meta_isLevelDefEqAuxImpl___spec__3(x_29, x_2, x_3, x_4, x_5, x_25);
|
||||
return x_30;
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_13);
|
||||
lean_free_object(x_9);
|
||||
x_16 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__4;
|
||||
x_17 = l_panic___at_Lean_Meta_isLevelDefEqAuxImpl___spec__3(x_16, x_2, x_3, x_4, x_5, x_12);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35;
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_31 = lean_ctor_get(x_28, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_28);
|
||||
x_32 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_32);
|
||||
x_18 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_15);
|
||||
x_19 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_13);
|
||||
x_20 = lean_nat_dec_eq(x_18, x_19);
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_box(x_20);
|
||||
lean_ctor_set(x_9, 0, x_21);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_22 = lean_ctor_get(x_9, 0);
|
||||
x_23 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_9);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_ctor_get(x_24, 2);
|
||||
lean_inc(x_25);
|
||||
x_26 = l_Std_PersistentHashMap_find_x3f___at_Lean_isLevelMVarAssignable___spec__1(x_25, x_1);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
lean_dec(x_24);
|
||||
x_27 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__4;
|
||||
x_28 = l_panic___at_Lean_Meta_isLevelDefEqAuxImpl___spec__3(x_27, x_2, x_3, x_4, x_5, x_23);
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_29 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_26);
|
||||
x_33 = lean_nat_dec_eq(x_31, x_32);
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_31);
|
||||
x_34 = lean_box(x_33);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_34);
|
||||
lean_ctor_set(x_35, 1, x_25);
|
||||
return x_35;
|
||||
x_30 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_24);
|
||||
x_31 = lean_nat_dec_eq(x_29, x_30);
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_29);
|
||||
x_32 = lean_box(x_31);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_23);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
204
stage0/stdlib/Lean/Meta/Match/Match.c
generated
204
stage0/stdlib/Lean/Meta/Match/Match.c
generated
|
|
@ -26,7 +26,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_Li
|
|||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___closed__1;
|
||||
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldrM___at_Lean_Meta_Match_withCleanLCtxFor___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_Match_mkMatcher___spec__16___at_Lean_Meta_Match_mkMatcher___spec__17(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -126,6 +125,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__4(le
|
|||
lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process_search(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__17___closed__2;
|
||||
lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__22(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -263,8 +263,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_un
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_State_fvarSubst___default;
|
||||
extern lean_object* l_Lean_levelZero;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__5;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4;
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___rarg___closed__4;
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___spec__1(lean_object*, size_t, size_t);
|
||||
static lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___closed__4;
|
||||
|
|
@ -291,8 +291,9 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
|||
static lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__2;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__3;
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14685_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14683_(lean_object*);
|
||||
lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8;
|
||||
uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -301,7 +302,6 @@ static lean_object* l_Lean_Meta_Match_assignGoalOf___lambda__2___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__18(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasVarPattern(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__19___boxed(lean_object**);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_Match_mkMatcher___spec__16(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__4;
|
||||
|
|
@ -334,11 +334,10 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_withMkMatcherInp
|
|||
static lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__2;
|
||||
uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_Match_MkMatcherInput_collectFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__8(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__18;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -373,7 +372,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_wi
|
|||
static lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Match_getMkMatcherInputInContext___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__1;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_assign___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern(lean_object*);
|
||||
|
|
@ -416,6 +414,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_Li
|
|||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__14;
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
|
||||
|
|
@ -435,6 +434,7 @@ lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNonTrivialExample(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1;
|
||||
lean_object* l_Lean_ConstantInfo_name(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___lambda__1___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__3;
|
||||
|
|
@ -547,10 +547,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Match_getMkMatcherInputInContext___lambda__
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNextPatternTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_getMkMatcherInputInContext___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_mul(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_Closure_mkValueTypeClosure(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_getMkMatcherInputInContext___lambda__3___closed__2;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_addArg_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__2___closed__4;
|
||||
|
|
@ -602,16 +602,15 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_wi
|
|||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at_Lean_Meta_MatcherApp_addArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_MkMatcherInput_collectDependencies___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__5___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Match_mkMatcher___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_isCurrVarInductive___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6;
|
||||
lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_Unify_assign___closed__2;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_getNumEqsFromDiscrInfos(lean_object*);
|
||||
|
|
@ -624,7 +623,6 @@ LEAN_EXPORT lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Le
|
|||
static lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__2___closed__3;
|
||||
lean_object* l_Lean_Expr_fvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1(uint8_t, uint8_t);
|
||||
static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__1___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process_checkVarDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -632,6 +630,7 @@ static lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___close
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_redLength___rarg(lean_object*);
|
||||
lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1(uint8_t, uint8_t);
|
||||
lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___closed__5;
|
||||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
|
|
@ -663,22 +662,24 @@ LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Me
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_assignGoalOf___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2;
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_le(size_t, size_t);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___closed__6;
|
||||
lean_object* l_Lean_Meta_Match_Problem_toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2;
|
||||
static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_unify___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasCtorPattern___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6;
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible___spec__3(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__3___boxed(lean_object**);
|
||||
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_isCurrVarInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_checkNumPatterns___spec__1(lean_object*, uint8_t, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__3___closed__1;
|
||||
|
|
@ -687,7 +688,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM__
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__15(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_unify_x3f___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasNonTrivialExample___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at_Lean_Meta_Match_withCleanLCtxFor___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__1;
|
||||
lean_object* l_Lean_Meta_isLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -703,7 +703,6 @@ static lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_withCleanLCtxFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern___spec__1(uint8_t, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2;
|
||||
static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__1___closed__2;
|
||||
static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__3___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processSkipInaccessible(lean_object*);
|
||||
|
|
@ -724,6 +723,7 @@ static lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2;
|
|||
LEAN_EXPORT lean_object* l_Nat_foldAux___at_Lean_Meta_Match_mkMatcher___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__8___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__5(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__5___closed__2;
|
||||
|
|
@ -733,6 +733,7 @@ LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentA
|
|||
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNatValueTransition(lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasAsPattern___boxed(lean_object*);
|
||||
lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isFVar(lean_object*);
|
||||
|
|
@ -768,6 +769,7 @@ LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_Match_mkMatcher___spec__
|
|||
LEAN_EXPORT lean_object* l_List_filterTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6___closed__1;
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___boxed(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___lambda__3___closed__1;
|
||||
|
|
@ -836,15 +838,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__3(le
|
|||
static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__6___closed__3;
|
||||
lean_object* l_Lean_Meta_Match_examplesToMessageData(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__4___closed__5;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
static size_t l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_State_used___default;
|
||||
lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_occurs___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__8;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3;
|
||||
lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateLambdaAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -935,7 +937,6 @@ static lean_object* l_Lean_addTrace___at___private_Lean_Meta_Match_Match_0__Lean
|
|||
static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process_tryToProcess___spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at_Lean_Meta_MatcherApp_addArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_caseArraySizes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts___closed__2;
|
||||
LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -943,10 +944,9 @@ lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_List_moveToFront_loop___spec__1(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException___rarg___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Match_withCleanLCtxFor___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403_(lean_object*);
|
||||
static lean_object* l_Array_mapIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__10___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_withMkMatcherInput___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process_tryToProcess___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___spec__1___closed__1;
|
||||
|
|
@ -955,10 +955,10 @@ lean_object* l_List_appendTR___rarg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT uint8_t l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition___spec__1(uint8_t, lean_object*);
|
||||
static lean_object* l_Array_mapIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__10___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_isAltVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5;
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__5(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwInductiveTypeExpected___rarg___closed__2;
|
||||
static lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5;
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_moveToFront___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_Unify_expandIfVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Match_mkMatcher___spec__7___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -4676,7 +4676,7 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_Meta_contradictionCore(x_9, x_10, x_3, x_4, x_5, x_6, x_7);
|
||||
x_11 = l_Lean_MVarId_contradictionCore(x_9, x_10, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13;
|
||||
|
|
@ -11326,6 +11326,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
@ -11421,6 +11422,7 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
|
|
@ -11507,6 +11509,7 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_12);
|
||||
x_39 = !lean_is_exclusive(x_38);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
|
|
@ -11558,6 +11561,7 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_12);
|
||||
x_51 = !lean_is_exclusive(x_50);
|
||||
if (x_51 == 0)
|
||||
{
|
||||
|
|
@ -11602,6 +11606,7 @@ lean_dec(x_9);
|
|||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_12);
|
||||
x_18 = !lean_is_exclusive(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
|
|
@ -23076,7 +23081,7 @@ lean_dec(x_2);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -23084,17 +23089,17 @@ x_1 = lean_mk_string_from_bytes("bootstrap", 9);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -23102,17 +23107,17 @@ x_1 = lean_mk_string_from_bytes("genMatcherCode", 14);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -23120,13 +23125,13 @@ x_1 = lean_mk_string_from_bytes("disable code generation for auxiliary matcher f
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 1;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1;
|
||||
x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1;
|
||||
x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5;
|
||||
x_4 = lean_box(x_1);
|
||||
x_5 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
|
|
@ -23135,17 +23140,17 @@ lean_ctor_set(x_5, 2, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4;
|
||||
x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4;
|
||||
x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6;
|
||||
x_4 = l_Lean_Option_register___at_Std_Format_initFn____x40_Lean_Data_Format___hyg_58____spec__1(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1(uint8_t x_1, uint8_t x_2) {
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1(uint8_t x_1, uint8_t x_2) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
|
|
@ -23169,37 +23174,37 @@ return x_2;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1___boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_instBEq___rarg), 3, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Expr_instBEqExpr;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2;
|
||||
x_3 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -23207,19 +23212,19 @@ x_1 = lean_alloc_closure((void*)(l_instHashableBool___boxed), 1, 0);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Expr_instHashableExpr;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_instHashableProd___rarg___boxed), 3, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -23227,21 +23232,21 @@ x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -23249,26 +23254,26 @@ lean_ctor_set(x_3, 1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9() {
|
||||
static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8;
|
||||
x_2 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9;
|
||||
x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6;
|
||||
|
|
@ -23276,7 +23281,7 @@ x_3 = lean_unbox(x_1);
|
|||
lean_dec(x_1);
|
||||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____lambda__1(x_3, x_4);
|
||||
x_5 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____lambda__1(x_3, x_4);
|
||||
x_6 = lean_box(x_5);
|
||||
return x_6;
|
||||
}
|
||||
|
|
@ -24449,7 +24454,7 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -24472,7 +24477,7 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -24492,7 +24497,7 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -24504,7 +24509,7 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -24538,7 +24543,7 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -24554,14 +24559,13 @@ x_1 = l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___closed__4;
|
|||
x_2 = l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___closed__6;
|
||||
x_3 = l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___closed__7;
|
||||
x_4 = l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__2___closed__10;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -25044,8 +25048,8 @@ static lean_object* _init_l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__4__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5;
|
||||
x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3;
|
||||
x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5;
|
||||
x_3 = l_Std_PersistentHashMap_instInhabitedPersistentHashMap___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
|
|
@ -36904,7 +36908,7 @@ return x_21;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14685_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14683_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -37390,42 +37394,42 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__1
|
|||
lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__1);
|
||||
l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__1);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__2);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__3);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__4);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__5);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375____closed__6);
|
||||
if (builtin) {res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10375_(lean_io_mk_world());
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__1);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__2);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__3);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__4);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__5);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373____closed__6);
|
||||
if (builtin) {res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10373_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Meta_Match_bootstrap_genMatcherCode = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Meta_Match_bootstrap_genMatcherCode);
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__1);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__2);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__3);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__4);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__5);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__6);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__7);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__8);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405____closed__9);
|
||||
if (builtin) {res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10405_(lean_io_mk_world());
|
||||
}l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__1);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__2);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__3);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__4);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__5);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__6);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__7);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__8);
|
||||
l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403____closed__9);
|
||||
if (builtin) {res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10403_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_Meta_Match_matcherExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_Meta_Match_matcherExt);
|
||||
|
|
@ -37562,7 +37566,7 @@ l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3 = _init_l_Lean_Meta_Matche
|
|||
lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__3);
|
||||
l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__4 = _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__4);
|
||||
res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14685_(lean_io_mk_world());
|
||||
res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_14683_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
26
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
|
|
@ -270,7 +270,6 @@ lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_forallAltTelescope_go___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof___closed__2;
|
||||
lean_object* l_panic___at___private_Lean_Meta_WHNF_0__Lean_Meta_cache___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_processNextEq___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_substSomeVar___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -378,6 +377,7 @@ lean_object* l_Array_back___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withSplitterAlts_go___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_withNewAlts(lean_object*);
|
||||
size_t lean_usize_shift_left(size_t, size_t);
|
||||
lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_mkMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___closed__1;
|
||||
|
|
@ -398,7 +398,6 @@ static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSp
|
|||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___lambda__2___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec___spec__8___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_panic___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec_go___spec__1___closed__2;
|
||||
lean_object* l_Lean_Meta_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__9;
|
||||
|
|
@ -413,7 +412,6 @@ uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__3___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__4___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__5___closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_applySubst(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__3___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec___spec__8___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__1;
|
||||
|
|
@ -471,6 +469,7 @@ static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simp
|
|||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___lambda__4___closed__3;
|
||||
lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_casesOnStuckLHS_findFVar_x3f___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__12___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -526,7 +525,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Match_M
|
|||
uint8_t lean_expr_eqv(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12709_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12704_(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -608,6 +607,7 @@ static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Match_MatchE
|
|||
lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertCastEqRec___spec__8___lambda__9___closed__1;
|
||||
static lean_object* l_Lean_Meta_casesOnStuckLHS_findFVar_x3f___lambda__1___closed__3;
|
||||
|
|
@ -6118,7 +6118,7 @@ _start:
|
|||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_contradiction___closed__1;
|
||||
x_8 = l_Lean_Meta_contradictionCore(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
x_8 = l_Lean_MVarId_contradictionCore(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
|
|
@ -11738,7 +11738,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_12);
|
||||
x_42 = l_Lean_Meta_applyRefl(x_12, x_41, x_5, x_6, x_7, x_8, x_40);
|
||||
x_42 = l_Lean_MVarId_applyRefl(x_12, x_41, x_5, x_6, x_7, x_8, x_40);
|
||||
if (lean_obj_tag(x_42) == 0)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44;
|
||||
|
|
@ -11759,6 +11759,7 @@ x_45 = lean_ctor_get(x_42, 1);
|
|||
lean_inc(x_45);
|
||||
lean_dec(x_42);
|
||||
x_46 = l_Lean_Meta_SavedState_restore(x_39, x_5, x_6, x_7, x_8, x_45);
|
||||
lean_dec(x_39);
|
||||
x_47 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_46);
|
||||
|
|
@ -11774,7 +11775,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_12);
|
||||
x_52 = l_Lean_Meta_contradiction(x_12, x_51, x_5, x_6, x_7, x_8, x_50);
|
||||
x_52 = l_Lean_MVarId_contradiction(x_12, x_51, x_5, x_6, x_7, x_8, x_50);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
uint8_t x_53;
|
||||
|
|
@ -11812,6 +11813,7 @@ x_59 = lean_ctor_get(x_52, 1);
|
|||
lean_inc(x_59);
|
||||
lean_dec(x_52);
|
||||
x_60 = l_Lean_Meta_SavedState_restore(x_49, x_5, x_6, x_7, x_8, x_59);
|
||||
lean_dec(x_49);
|
||||
x_61 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_60);
|
||||
|
|
@ -11841,6 +11843,7 @@ x_66 = lean_ctor_get(x_65, 1);
|
|||
lean_inc(x_66);
|
||||
lean_dec(x_65);
|
||||
x_67 = l_Lean_Meta_SavedState_restore(x_63, x_5, x_6, x_7, x_8, x_66);
|
||||
lean_dec(x_63);
|
||||
x_68 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_67);
|
||||
|
|
@ -11902,6 +11905,7 @@ block_127:
|
|||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_100;
|
||||
x_73 = l_Lean_Meta_SavedState_restore(x_70, x_5, x_6, x_7, x_8, x_72);
|
||||
lean_dec(x_70);
|
||||
x_74 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_73);
|
||||
|
|
@ -12013,6 +12017,7 @@ block_99:
|
|||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_80 = l_Lean_Meta_SavedState_restore(x_77, x_5, x_6, x_7, x_8, x_79);
|
||||
lean_dec(x_77);
|
||||
x_81 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_80);
|
||||
|
|
@ -12042,6 +12047,7 @@ x_86 = lean_ctor_get(x_85, 1);
|
|||
lean_inc(x_86);
|
||||
lean_dec(x_85);
|
||||
x_87 = l_Lean_Meta_SavedState_restore(x_83, x_5, x_6, x_7, x_8, x_86);
|
||||
lean_dec(x_83);
|
||||
x_88 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_87);
|
||||
|
|
@ -32862,7 +32868,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_24 = l_Lean_Meta_contradictionCore(x_1, x_23, x_4, x_5, x_6, x_7, x_20);
|
||||
x_24 = l_Lean_MVarId_contradictionCore(x_1, x_23, x_4, x_5, x_6, x_7, x_20);
|
||||
if (lean_obj_tag(x_24) == 0)
|
||||
{
|
||||
lean_object* x_25; uint8_t x_26;
|
||||
|
|
@ -37990,7 +37996,7 @@ lean_dec(x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12709_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12704_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -38460,7 +38466,7 @@ l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_getEquationsForImpl___spec_
|
|||
l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_getEquationsForImpl___spec__2___closed__2 = _init_l_Std_PersistentHashMap_findAux___at_Lean_Meta_Match_getEquationsForImpl___spec__2___closed__2();
|
||||
l_Lean_Meta_Match_getEquationsForImpl___closed__1 = _init_l_Lean_Meta_Match_getEquationsForImpl___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Match_getEquationsForImpl___closed__1);
|
||||
res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12709_(lean_io_mk_world());
|
||||
res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_12704_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Meta/Match/MatcherInfo.c
generated
3
stage0/stdlib/Lean/Meta/Match/MatcherInfo.c
generated
|
|
@ -2151,14 +2151,13 @@ x_1 = l_Lean_Meta_Match_addMatcherInfo___closed__2;
|
|||
x_2 = l_Lean_Meta_Match_addMatcherInfo___closed__4;
|
||||
x_3 = l_Lean_Meta_Match_addMatcherInfo___closed__5;
|
||||
x_4 = l_Lean_Meta_Match_addMatcherInfo___closed__8;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1936
stage0/stdlib/Lean/Meta/PPGoal.c
generated
1936
stage0/stdlib/Lean/Meta/PPGoal.c
generated
File diff suppressed because it is too large
Load diff
27
stage0/stdlib/Lean/Meta/RecursorInfo.c
generated
27
stage0/stdlib/Lean/Meta/RecursorInfo.c
generated
|
|
@ -9657,23 +9657,21 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__10;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__11;
|
||||
x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__12;
|
||||
x_5 = 0;
|
||||
x_6 = lean_alloc_ctor(0, 8, 1);
|
||||
lean_ctor_set(x_6, 0, x_1);
|
||||
lean_ctor_set(x_6, 1, x_1);
|
||||
lean_ctor_set(x_6, 2, x_2);
|
||||
lean_ctor_set(x_6, 3, x_3);
|
||||
lean_ctor_set(x_6, 4, x_4);
|
||||
lean_ctor_set(x_6, 5, x_2);
|
||||
lean_ctor_set(x_6, 6, x_3);
|
||||
lean_ctor_set(x_6, 7, x_3);
|
||||
lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_5);
|
||||
return x_6;
|
||||
x_5 = lean_alloc_ctor(0, 8, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_1);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_4);
|
||||
lean_ctor_set(x_5, 5, x_2);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__14() {
|
||||
|
|
@ -9762,14 +9760,13 @@ x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2__
|
|||
x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__16;
|
||||
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__17;
|
||||
x_4 = l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2893____lambda__2___closed__20;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Meta/SizeOf.c
generated
3
stage0/stdlib/Lean/Meta/SizeOf.c
generated
|
|
@ -10934,14 +10934,13 @@ x_1 = l_Lean_setEnv___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNeste
|
|||
x_2 = l_Lean_setEnv___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___spec__5___closed__7;
|
||||
x_3 = l_Lean_setEnv___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___spec__5___closed__8;
|
||||
x_4 = l_Lean_setEnv___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___spec__5___closed__11;
|
||||
x_5 = lean_alloc_ctor(0, 7, 0);
|
||||
x_5 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
lean_ctor_set(x_5, 4, x_1);
|
||||
lean_ctor_set(x_5, 5, x_4);
|
||||
lean_ctor_set(x_5, 6, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue