diff --git a/stage0/src/Lean/Meta/Tactic/Apply.lean b/stage0/src/Lean/Meta/Tactic/Apply.lean index 99bafafb81..bb77316e87 100644 --- a/stage0/src/Lean/Meta/Tactic/Apply.lean +++ b/stage0/src/Lean/Meta/Tactic/Apply.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -9,93 +10,89 @@ import Lean.Meta.SynthInstance import Lean.Meta.CollectMVars import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta /- Compute the number of expected arguments and whether the result type is of the form (?m ...) where ?m is an unassigned metavariable. -/ private def getExpectedNumArgsAux (e : Expr) : MetaM (Nat × Bool) := -withReducible $ forallTelescopeReducing e $ fun xs body => +withReducible $ forallTelescopeReducing e fun xs body => pure (xs.size, body.getAppFn.isMVar) private def getExpectedNumArgs (e : Expr) : MetaM Nat := do -(numArgs, _) ← getExpectedNumArgsAux e; +let (numArgs, _) ← getExpectedNumArgsAux e pure numArgs private def throwApplyError {α} (mvarId : MVarId) (eType : Expr) (targetType : Expr) : MetaM α := -throwTacticEx `apply mvarId ("failed to unify" ++ indentExpr eType ++ Format.line ++ "with" ++ indentExpr targetType) +throwTacticEx `apply mvarId msg!"failed to unify{indentExpr eType}\nwith{indentExpr targetType}" def synthAppInstances (tacticName : Name) (mvarId : MVarId) (newMVars : Array Expr) (binderInfos : Array BinderInfo) : MetaM Unit := -newMVars.size.forM $ fun i => - when (binderInfos.get! i).isInstImplicit $ do - let mvar := newMVars.get! i; - mvarType ← inferType mvar; - mvarVal ← synthInstance mvarType; - unlessM (isDefEq mvar mvarVal) $ - throwTacticEx tacticName mvarId ("failed to assign synthesized instance") +newMVars.size.forM fun i => do + if binderInfos[i].isInstImplicit then + let mvar := newMVars[i] + let mvarType ← inferType mvar + let mvarVal ← synthInstance mvarType + unless (← isDefEq mvar mvarVal) do + throwTacticEx tacticName mvarId "failed to assign synthesized instance" def appendParentTag (mvarId : MVarId) (newMVars : Array Expr) (binderInfos : Array BinderInfo) : MetaM Unit := do -parentTag ← getMVarTag mvarId; +let parentTag ← getMVarTag mvarId if newMVars.size == 1 then -- if there is only one subgoal, we inherit the parent tag - setMVarTag (newMVars.get! 0).mvarId! parentTag -else unless parentTag.isAnonymous $ - newMVars.size.forM $ fun i => - let newMVarId := (newMVars.get! i).mvarId!; - unlessM (isExprMVarAssigned newMVarId) $ - unless (binderInfos.get! i).isInstImplicit $ do - currTag ← getMVarTag newMVarId; - setMVarTag newMVarId (appendTag parentTag currTag) + setMVarTag newMVars[0].mvarId! parentTag +else + unless parentTag.isAnonymous do + newMVars.size.forM fun i => do + let newMVarId := newMVars[i].mvarId! + unless (← isExprMVarAssigned newMVarId) do + unless binderInfos[i].isInstImplicit do + let currTag ← getMVarTag newMVarId + setMVarTag newMVarId (appendTag parentTag currTag) def postprocessAppMVars (tacticName : Name) (mvarId : MVarId) (newMVars : Array Expr) (binderInfos : Array BinderInfo) : MetaM Unit := do -synthAppInstances tacticName mvarId newMVars binderInfos; +synthAppInstances tacticName mvarId newMVars binderInfos -- TODO: default and auto params appendParentTag mvarId newMVars binderInfos private def dependsOnOthers (mvar : Expr) (otherMVars : Array Expr) : MetaM Bool := -otherMVars.anyM $ fun otherMVar => +otherMVars.anyM fun otherMVar => if mvar == otherMVar then pure false else do - otherMVarType ← inferType otherMVar; - pure $ (otherMVarType.findMVar? $ fun mvarId => mvarId == mvar.mvarId!).isSome + let otherMVarType ← inferType otherMVar + pure $ (otherMVarType.findMVar? fun mvarId => mvarId == mvar.mvarId!).isSome private def reorderNonDependentFirst (newMVars : Array Expr) : MetaM (List MVarId) := do -(nonDeps, deps) ← newMVars.foldlM - (fun (acc : Array MVarId × Array MVarId) (mvar : Expr) => do - let (nonDeps, deps) := acc; - let currMVarId := mvar.mvarId!; - condM (dependsOnOthers mvar newMVars) - (pure (nonDeps, deps.push currMVarId)) - (pure (nonDeps.push currMVarId, deps))) - (#[], #[]); +let (nonDeps, deps) ← newMVars.foldlM (init := (#[], #[])) fun (nonDeps, deps) (mvar : Expr) => do + let currMVarId := mvar.mvarId! + if (← dependsOnOthers mvar newMVars) then + pure (nonDeps, deps.push currMVarId) + else + pure (nonDeps.push currMVarId, deps) pure $ nonDeps.toList ++ deps.toList inductive ApplyNewGoals | nonDependentFirst | nonDependentOnly | all def apply (mvarId : MVarId) (e : Expr) : MetaM (List MVarId) := -withMVarContext mvarId $ do - checkNotAssigned mvarId `apply; - targetType ← getMVarType mvarId; - eType ← inferType e; - (numArgs, hasMVarHead) ← getExpectedNumArgsAux eType; - numArgs ← if !hasMVarHead then pure numArgs else do { - targetTypeNumArgs ← getExpectedNumArgs targetType; - pure (numArgs - targetTypeNumArgs) - }; - (newMVars, binderInfos, eType) ← forallMetaTelescopeReducing eType (some numArgs); - unlessM (isDefEq eType targetType) $ throwApplyError mvarId eType targetType; - postprocessAppMVars `apply mvarId newMVars binderInfos; - e ← instantiateMVars e; - assignExprMVar mvarId (mkAppN e newMVars); - newMVars ← newMVars.filterM $ fun mvar => not <$> isExprMVarAssigned mvar.mvarId!; - otherMVarIds ← getMVarsNoDelayed e; +withMVarContext mvarId do + checkNotAssigned mvarId `apply + let targetType ← getMVarType mvarId + let eType ← inferType e + let (numArgs, hasMVarHead) ← getExpectedNumArgsAux eType + if hasMVarHead then + let targetTypeNumArgs ← getExpectedNumArgs targetType + numArgs := numArgs - targetTypeNumArgs + let (newMVars, binderInfos, eType) ← forallMetaTelescopeReducing eType (some numArgs) + unless (← isDefEq eType targetType) do throwApplyError mvarId eType targetType + postprocessAppMVars `apply mvarId newMVars binderInfos + let e ← instantiateMVars e + assignExprMVar mvarId (mkAppN e newMVars) + let newMVars ← newMVars.filterM $ fun mvar => not <$> isExprMVarAssigned mvar.mvarId! + let otherMVarIds ← getMVarsNoDelayed e -- TODO: add option `ApplyNewGoals` and implement other orders - newMVarIds ← reorderNonDependentFirst newMVars; - let otherMVarIds := otherMVarIds.filter fun mvarId => !newMVarIds.contains mvarId; + let newMVarIds ← reorderNonDependentFirst newMVars + let otherMVarIds := otherMVarIds.filter fun mvarId => !newMVarIds.contains mvarId pure $ newMVarIds ++ otherMVarIds.toList -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Assert.lean b/stage0/src/Lean/Meta/Tactic/Assert.lean index b0b00ae45c..4046bbe276 100644 --- a/stage0/src/Lean/Meta/Tactic/Assert.lean +++ b/stage0/src/Lean/Meta/Tactic/Assert.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,20 +9,19 @@ import Lean.Meta.Tactic.FVarSubst import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Revert -namespace Lean -namespace Meta +namespace Lean.Meta /-- Convert the given goal `Ctx |- target` into `Ctx |- type -> target`. It assumes `val` has type `type` -/ -def assert (mvarId : MVarId) (name : Name) (type : Expr) (val : Expr) : MetaM MVarId := do -withMVarContext mvarId $ do - checkNotAssigned mvarId `assert; - tag ← getMVarTag mvarId; - target ← getMVarType mvarId; - let newType := Lean.mkForall name BinderInfo.default type target; - newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag; - assignExprMVar mvarId (mkApp newMVar val); +def assert (mvarId : MVarId) (name : Name) (type : Expr) (val : Expr) : MetaM MVarId := +withMVarContext mvarId do + checkNotAssigned mvarId `assert + let tag ← getMVarTag mvarId + let target ← getMVarType mvarId + let newType := Lean.mkForall name BinderInfo.default type target + let newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag + assignExprMVar mvarId (mkApp newMVar val) pure newMVar.mvarId! /-- @@ -29,12 +29,12 @@ withMVarContext mvarId $ do It assumes `val` has type `type` -/ def define (mvarId : MVarId) (name : Name) (type : Expr) (val : Expr) : MetaM MVarId := do withMVarContext mvarId $ do - checkNotAssigned mvarId `define; - tag ← getMVarTag mvarId; - target ← getMVarType mvarId; - let newType := Lean.mkLet name type val target; - newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag; - assignExprMVar mvarId newMVar; + checkNotAssigned mvarId `define + let tag ← getMVarTag mvarId + let target ← getMVarType mvarId + let newType := Lean.mkLet name type val target + let newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag + assignExprMVar mvarId newMVar pure newMVar.mvarId! /-- @@ -42,15 +42,15 @@ withMVarContext mvarId $ do It assumes `val` has type `type` -/ def assertExt (mvarId : MVarId) (name : Name) (type : Expr) (val : Expr) (hName : Name := `h) : MetaM MVarId := do withMVarContext mvarId $ do - checkNotAssigned mvarId `assert; - tag ← getMVarTag mvarId; - target ← getMVarType mvarId; - u ← getLevel type; - let hType := mkApp3 (mkConst `Eq [u]) type (mkBVar 0) val; - let newType := Lean.mkForall name BinderInfo.default type $ Lean.mkForall hName BinderInfo.default hType target; - newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag; - rflPrf ← mkEqRefl val; - assignExprMVar mvarId (mkApp2 newMVar val rflPrf); + checkNotAssigned mvarId `assert + let tag ← getMVarTag mvarId + let target ← getMVarType mvarId + let u ← getLevel type + let hType := mkApp3 (mkConst `Eq [u]) type (mkBVar 0) val + let newType := Lean.mkForall name BinderInfo.default type $ Lean.mkForall hName BinderInfo.default hType target + let newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag + let rflPrf ← mkEqRefl val + assignExprMVar mvarId (mkApp2 newMVar val rflPrf) pure newMVar.mvarId! structure AssertAfterResult := @@ -64,28 +64,25 @@ structure AssertAfterResult := Note that `val` does not need to be well-formed after `fvarId`. That is, it may contain variables that are defined after `fvarId`. -/ def assertAfter (mvarId : MVarId) (fvarId : FVarId) (userName : Name) (type : Expr) (val : Expr) : MetaM AssertAfterResult := do withMVarContext mvarId $ do - checkNotAssigned mvarId `assertAfter; - tag ← getMVarTag mvarId; - target ← getMVarType mvarId; - localDecl ← getLocalDecl fvarId; - lctx ← getLCtx; - localInsts ← getLocalInstances; - let fvarIds := lctx.foldlFrom (fun (fvarIds : Array FVarId) decl => fvarIds.push decl.fvarId) #[] (localDecl.index+1); - let xs := fvarIds.map mkFVar; - targetNew ← mkForallFVars xs target; - let targetNew := Lean.mkForall userName BinderInfo.default type targetNew; - let lctxNew := fvarIds.foldl (fun (lctxNew : LocalContext) fvarId => lctxNew.erase fvarId) lctx; - let localInstsNew := localInsts.filter fun inst => fvarIds.contains inst.fvar.fvarId!; - mvarNew ← mkFreshExprMVarAt lctxNew localInstsNew targetNew MetavarKind.syntheticOpaque tag; - let args := (fvarIds.filter fun fvarId => !(lctx.get! fvarId).isLet).map mkFVar; - let args := #[val] ++ args; - assignExprMVar mvarId (mkAppN mvarNew args); - (fvarIdNew, mvarIdNew) ← intro1P mvarNew.mvarId!; - (fvarIdsNew, mvarIdNew) ← introNP mvarIdNew fvarIds.size; - let subst := fvarIds.size.fold - (fun i (subst : FVarSubst) => subst.insert (fvarIds.get! i) (mkFVar (fvarIdsNew.get! i))) - {}; + checkNotAssigned mvarId `assertAfter + let tag ← getMVarTag mvarId + let target ← getMVarType mvarId + let localDecl ← getLocalDecl fvarId + let lctx ← getLCtx + let localInsts ← getLocalInstances + let fvarIds := lctx.foldlFrom (fun (fvarIds : Array FVarId) decl => fvarIds.push decl.fvarId) #[] (localDecl.index+1) + let xs := fvarIds.map mkFVar + let targetNew ← mkForallFVars xs target + let targetNew := Lean.mkForall userName BinderInfo.default type targetNew + let lctxNew := fvarIds.foldl (fun (lctxNew : LocalContext) fvarId => lctxNew.erase fvarId) lctx + let localInstsNew := localInsts.filter fun inst => fvarIds.contains inst.fvar.fvarId! + let mvarNew ← mkFreshExprMVarAt lctxNew localInstsNew targetNew MetavarKind.syntheticOpaque tag + let args := (fvarIds.filter fun fvarId => !(lctx.get! fvarId).isLet).map mkFVar + let args := #[val] ++ args + assignExprMVar mvarId (mkAppN mvarNew args) + let (fvarIdNew, mvarIdNew) ← intro1P mvarNew.mvarId! + let (fvarIdsNew, mvarIdNew) ← introNP mvarIdNew fvarIds.size + let subst := fvarIds.size.fold (init := {}) fun i subst => subst.insert fvarIds[i] (mkFVar fvarIdsNew[i]) pure { fvarId := fvarIdNew, mvarId := mvarIdNew, subst := subst } -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Assumption.lean b/stage0/src/Lean/Meta/Tactic/Assumption.lean index 21991f9bed..adeb4d9247 100644 --- a/stage0/src/Lean/Meta/Tactic/Assumption.lean +++ b/stage0/src/Lean/Meta/Tactic/Assumption.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -6,25 +7,26 @@ Authors: Leonardo de Moura import Lean.Meta.ExprDefEq import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta def assumptionAux (mvarId : MVarId) : MetaM Bool := -withMVarContext mvarId $ do - checkNotAssigned mvarId `assumption; - mvarType ← getMVarType mvarId; - lctx ← getLCtx; - h? ← lctx.findDeclRevM? $ fun decl => +withMVarContext mvarId do + checkNotAssigned mvarId `assumption + let mvarType ← getMVarType mvarId + let lctx ← getLCtx + let h? ← lctx.findDeclRevM? fun decl => do if decl.isAuxDecl then pure none + else if (← isDefEq mvarType decl.type) then + pure (some decl.toExpr) else - condM (isDefEq mvarType decl.type) (pure (some decl.toExpr)) (pure none); + pure none match h? with | some h => do assignExprMVar mvarId h; pure true | none => pure false -def assumption (mvarId : MVarId) : MetaM Unit := -unlessM (assumptionAux mvarId) $ throwTacticEx `assumption mvarId "" +def assumption (mvarId : MVarId) : MetaM Unit := do +unless (← assumptionAux mvarId) do + throwTacticEx `assumption mvarId "" -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Cases.lean b/stage0/src/Lean/Meta/Tactic/Cases.lean index ff7016c56a..fa89148895 100644 --- a/stage0/src/Lean/Meta/Tactic/Cases.lean +++ b/stage0/src/Lean/Meta/Tactic/Cases.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -9,41 +10,39 @@ import Lean.Meta.Tactic.Injection import Lean.Meta.Tactic.Assert import Lean.Meta.Tactic.Subst -namespace Lean -namespace Meta +namespace Lean.Meta private def throwInductiveTypeExpected {α} (type : Expr) : MetaM α := do -throwError ("failed to compile pattern matching, inductive type expected" ++ indentExpr type) +throwError! "failed to compile pattern matching, inductive type expected{indentExpr type}" def getInductiveUniverseAndParams (type : Expr) : MetaM (List Level × Array Expr) := do -type ← whnfD type; +let type ← whnfD type matchConstInduct type.getAppFn (fun _ => throwInductiveTypeExpected type) fun val us => - let I := type.getAppFn; - let Iargs := type.getAppArgs; - let params := Iargs.extract 0 val.nparams; + let I := type.getAppFn + let Iargs := type.getAppArgs + let params := Iargs.extract 0 val.nparams pure (us, params) private def mkEqAndProof (lhs rhs : Expr) : MetaM (Expr × Expr) := do -lhsType ← inferType lhs; -rhsType ← inferType rhs; -u ← getLevel lhsType; -condM (isDefEq lhsType rhsType) - (pure (mkApp3 (mkConst `Eq [u]) lhsType lhs rhs, mkApp2 (mkConst `Eq.refl [u]) lhsType lhs)) - (pure (mkApp4 (mkConst `HEq [u]) lhsType lhs rhsType rhs, mkApp2 (mkConst `HEq.refl [u]) lhsType lhs)) +let lhsType ← inferType lhs +let rhsType ← inferType rhs +let u ← getLevel lhsType +if (← isDefEq lhsType rhsType) then + pure (mkApp3 (mkConst `Eq [u]) lhsType lhs rhs, mkApp2 (mkConst `Eq.refl [u]) lhsType lhs) +else + pure (mkApp4 (mkConst `HEq [u]) lhsType lhs rhsType rhs, mkApp2 (mkConst `HEq.refl [u]) lhsType lhs) -private partial def withNewIndexEqsAux {α} (indices newIndices : Array Expr) (k : Array Expr → Array Expr → MetaM α) : Nat → Array Expr → Array Expr → MetaM α -| i, newEqs, newRefls => - if h : i < indices.size then do - let index := indices.get! i; - let newIndex := newIndices.get! i; - (newEqType, newRefl) ← mkEqAndProof index newIndex; +private partial def withNewIndexEqs {α} (indices newIndices : Array Expr) (k : Array Expr → Array Expr → MetaM α) : MetaM α := +let rec loop (i : Nat) (newEqs : Array Expr) (newRefls : Array Expr) := do + if h : i < indices.size then + let index := indices[i] + let newIndex := newIndices[i] + let (newEqType, newRefl) ← mkEqAndProof index newIndex withLocalDeclD `h newEqType $ fun newEq => do - withNewIndexEqsAux (i+1) (newEqs.push newEq) (newRefls.push newRefl) + loop (i+1) (newEqs.push newEq) (newRefls.push newRefl) else k newEqs newRefls - -private def withNewIndexEqs {α} (indices newIndices : Array Expr) (k : Array Expr → Array Expr → MetaM α) : MetaM α := -withNewIndexEqsAux indices newIndices k 0 #[] #[] +loop 0 #[] #[] structure GeneralizeIndicesSubgoal := (mvarId : MVarId) @@ -68,38 +67,38 @@ structure GeneralizeIndicesSubgoal := - `indicesFVarIds`: `j'` ids - `fvarId`: `h'` id - `numEqs`: number of equations in the target -/ -def generalizeIndices (mvarId : MVarId) (fvarId : FVarId) : MetaM GeneralizeIndicesSubgoal := do -withMVarContext mvarId $ do - lctx ← getLCtx; - localInsts ← getLocalInstances; - checkNotAssigned mvarId `generalizeIndices; - fvarDecl ← getLocalDecl fvarId; - type ← whnf fvarDecl.type; +def generalizeIndices (mvarId : MVarId) (fvarId : FVarId) : MetaM GeneralizeIndicesSubgoal := +withMVarContext mvarId do + let lctx ← getLCtx + let localInsts ← getLocalInstances + checkNotAssigned mvarId `generalizeIndices + let fvarDecl ← getLocalDecl fvarId + let type ← whnf fvarDecl.type type.withApp fun f args => matchConstInduct f (fun _ => throwTacticEx `generalizeIndices mvarId "inductive type expected") fun val _ => do - unless (val.nindices > 0) $ throwTacticEx `generalizeIndices mvarId "indexed inductive type expected"; - unless (args.size == val.nindices + val.nparams) $ throwTacticEx `generalizeIndices mvarId "ill-formed inductive datatype"; - let indices := args.extract (args.size - val.nindices) args.size; - let IA := mkAppN f (args.extract 0 val.nparams); -- `I A` - IAType ← inferType IA; - forallTelescopeReducing IAType $ fun newIndices _ => do - let newType := mkAppN IA newIndices; - withLocalDeclD fvarDecl.userName newType $ fun h' => - withNewIndexEqs indices newIndices $ fun newEqs newRefls => do - (newEqType, newRefl) ← mkEqAndProof fvarDecl.toExpr h'; - let newRefls := newRefls.push newRefl; - withLocalDeclD `h newEqType $ fun newEq => do - let newEqs := newEqs.push newEq; + unless val.nindices > 0 do throwTacticEx `generalizeIndices mvarId "indexed inductive type expected" + unless args.size == val.nindices + val.nparams do throwTacticEx `generalizeIndices mvarId "ill-formed inductive datatype" + let indices := args.extract (args.size - val.nindices) args.size + let IA := mkAppN f (args.extract 0 val.nparams) -- `I A` + let IAType ← inferType IA + forallTelescopeReducing IAType fun newIndices _ => do + let newType := mkAppN IA newIndices + withLocalDeclD fvarDecl.userName newType fun h' => + withNewIndexEqs indices newIndices fun newEqs newRefls => do + let (newEqType, newRefl) ← mkEqAndProof fvarDecl.toExpr h' + let newRefls := newRefls.push newRefl + withLocalDeclD `h newEqType fun newEq => do + let newEqs := newEqs.push newEq /- auxType `forall (j' : J) (h' : I A j'), j == j' -> h == h' -> target -/ - target ← getMVarType mvarId; - tag ← getMVarTag mvarId; - auxType ← mkForallFVars newEqs target; - auxType ← mkForallFVars #[h'] auxType; - auxType ← mkForallFVars newIndices auxType; - newMVar ← mkFreshExprMVarAt lctx localInsts auxType MetavarKind.syntheticOpaque tag; + let target ← getMVarType mvarId + let tag ← getMVarTag mvarId + let auxType ← mkForallFVars newEqs target + let auxType ← mkForallFVars #[h'] auxType + let auxType ← mkForallFVars newIndices auxType + let newMVar ← mkFreshExprMVarAt lctx localInsts auxType MetavarKind.syntheticOpaque tag /- assign mvarId := newMVar indices h refls -/ - assignExprMVar mvarId (mkAppN (mkApp (mkAppN newMVar indices) fvarDecl.toExpr) newRefls); - (indicesFVarIds, newMVarId) ← introNP newMVar.mvarId! newIndices.size; - (fvarId, newMVarId) ← intro1P newMVarId; + assignExprMVar mvarId (mkAppN (mkApp (mkAppN newMVar indices) fvarDecl.toExpr) newRefls) + let (indicesFVarIds, newMVarId) ← introNP newMVar.mvarId! newIndices.size + let (fvarId, newMVarId) ← intro1P newMVarId pure { mvarId := newMVarId, indicesFVarIds := indicesFVarIds, @@ -122,11 +121,12 @@ structure Context := (majorTypeIndices : Array Expr := majorTypeArgs.extract (majorTypeArgs.size - inductiveVal.nindices) majorTypeArgs.size) private def mkCasesContext? (majorFVarId : FVarId) : MetaM (Option Context) := do -env ← getEnv; -if !env.contains `Eq || !env.contains `HEq then pure none -else do - majorDecl ← getLocalDecl majorFVarId; - majorType ← whnf majorDecl.type; +let env ← getEnv +if !env.contains `Eq || !env.contains `HEq then + pure none +else + let majorDecl ← getLocalDecl majorFVarId + let majorType ← whnf majorDecl.type majorType.withApp fun f args => matchConstInduct f (fun _ => pure none) fun ival _ => if args.size != ival.nindices + ival.nparams then pure none else match env.find? (mkNameStr ival.name "casesOn") with @@ -146,31 +146,31 @@ We say the major premise has independent indices IF 2- its type is an indexed inductive family, but all indices are distinct free variables, and all local declarations different from the major and its indices do not depend on the indices. -/ -private def hasIndepIndices (ctx : Context) : MetaM Bool := +private def hasIndepIndices (ctx : Context) : MetaM Bool := do if ctx.majorTypeIndices.isEmpty then pure true else if ctx.majorTypeIndices.any $ fun idx => !idx.isFVar then /- One of the indices is not a free variable. -/ pure false -else if ctx.majorTypeIndices.size.any $ fun i => i.any $ fun j => ctx.majorTypeIndices.get! i == ctx.majorTypeIndices.get! j then +else if ctx.majorTypeIndices.size.any fun i => i.any fun j => ctx.majorTypeIndices[i] == ctx.majorTypeIndices[j] then /- An index ocurrs more than once -/ pure false -else do - lctx ← getLCtx; - mctx ← getMCtx; - pure $ lctx.all $ fun decl => +else + let lctx ← getLCtx + let mctx ← getMCtx + pure $ lctx.all fun decl => decl.fvarId == ctx.majorDecl.fvarId || -- decl is the major ctx.majorTypeIndices.any (fun index => decl.fvarId == index.fvarId!) || -- decl is one of the indices mctx.findLocalDeclDependsOn decl (fun fvarId => ctx.majorTypeIndices.all $ fun idx => idx.fvarId! != fvarId) -- or does not depend on any index private def elimAuxIndices (s₁ : GeneralizeIndicesSubgoal) (s₂ : Array CasesSubgoal) : MetaM (Array CasesSubgoal) := -let indicesFVarIds := s₁.indicesFVarIds; -s₂.mapM $ fun s => do +let indicesFVarIds := s₁.indicesFVarIds +s₂.mapM fun s => do indicesFVarIds.foldlM (fun s indexFVarId => match s.subst.get indexFVarId with | Expr.fvar indexFVarId' _ => - (do mvarId ← clear s.mvarId indexFVarId'; pure { s with mvarId := mvarId, subst := s.subst.erase indexFVarId }) + (do let mvarId ← clear s.mvarId indexFVarId'; pure { s with mvarId := mvarId, subst := s.subst.erase indexFVarId }) <|> (pure s) | _ => pure s) @@ -181,104 +181,104 @@ s₂.mapM $ fun s => do and adding the substitution `majorFVarId -> ctor_i us params fields` into each subgoal. -/ private def toCasesSubgoals (s : Array InductionSubgoal) (ctorNames : Array Name) (majorFVarId : FVarId) (us : List Level) (params : Array Expr) : Array CasesSubgoal := -s.mapIdx $ fun i s => - let ctorName := ctorNames.get! i; - let ctorApp := mkAppN (mkAppN (mkConst ctorName us) params) s.fields; - let s := { s with subst := s.subst.insert majorFVarId ctorApp }; +s.mapIdx fun i s => + let ctorName := ctorNames[i] + let ctorApp := mkAppN (mkAppN (mkConst ctorName us) params) s.fields + let s := { s with subst := s.subst.insert majorFVarId ctorApp } { ctorName := ctorName, toInductionSubgoal := s } private partial def unifyEqsAux : Nat → CasesSubgoal → MetaM (Option CasesSubgoal) | 0, s => do - trace! `Meta.Tactic.cases ("unifyEqs " ++ MessageData.ofGoal s.mvarId); + trace! `Meta.Tactic.cases ("unifyEqs " ++ MessageData.ofGoal s.mvarId) pure (some s) | n+1, s => do - trace! `Meta.Tactic.cases ("unifyEqs [" ++ toString (n+1) ++ "] " ++ MessageData.ofGoal s.mvarId); - (eqFVarId, mvarId) ← intro1 s.mvarId; - withMVarContext mvarId $ do - eqDecl ← getLocalDecl eqFVarId; + trace[Meta.Tactic.cases]! "unifyEqs [{n+1}] {MessageData.ofGoal s.mvarId}" + let (eqFVarId, mvarId) ← intro1 s.mvarId + withMVarContext mvarId do + let eqDecl ← getLocalDecl eqFVarId match eqDecl.type.heq? with | some (α, a, β, b) => do - prf ← mkEqOfHEq (mkFVar eqFVarId); - aEqb ← mkEq a b; - mvarId ← assert mvarId eqDecl.userName aEqb prf; - mvarId ← clear mvarId eqFVarId; + let prf ← mkEqOfHEq (mkFVar eqFVarId) + let aEqb ← mkEq a b + let mvarId ← assert mvarId eqDecl.userName aEqb prf + let mvarId ← clear mvarId eqFVarId unifyEqsAux (n+1) { s with mvarId := mvarId } | none => match eqDecl.type.eq? with | some (α, a, b) => - let skip : Unit → MetaM (Option CasesSubgoal) := fun _ => do { - mvarId ← clear mvarId eqFVarId; + let skip : Unit → MetaM (Option CasesSubgoal) := fun _ => do + let mvarId ← clear mvarId eqFVarId unifyEqsAux n { s with mvarId := mvarId } - }; - let substEq (symm : Bool) : MetaM (Option CasesSubgoal) := do { - (newSubst, mvarId) ← substCore mvarId eqFVarId symm s.subst; + let substEq (symm : Bool) : MetaM (Option CasesSubgoal) := do + let (newSubst, mvarId) ← substCore mvarId eqFVarId symm s.subst unifyEqsAux n { s with mvarId := mvarId, subst := newSubst, fields := s.fields.map $ fun field => newSubst.apply field } - }; - let inj : Unit → MetaM (Option CasesSubgoal) := fun _ => do { - r ← injectionCore mvarId eqFVarId; + let inj : Unit → MetaM (Option CasesSubgoal) := fun _ => do + let r ← injectionCore mvarId eqFVarId match r with | InjectionResultCore.solved => pure none -- this alternative has been solved | InjectionResultCore.subgoal mvarId numEqs => unifyEqsAux (n+numEqs) { s with mvarId := mvarId } - }; - condM (isDefEq a b) (skip ()) $ do - a' ← whnf a; - b' ← whnf b; - if a' != a || b' != b then do - let prf := mkFVar eqFVarId; - aEqb' ← mkEq a' b'; - mvarId ← assert mvarId eqDecl.userName aEqb' prf; - mvarId ← clear mvarId eqFVarId; - unifyEqsAux (n+1) { s with mvarId := mvarId } + if (← isDefEq a b) then + skip () else - match a, b with - | Expr.fvar aFVarId _, Expr.fvar bFVarId _ => do aDecl ← getLocalDecl aFVarId; bDecl ← getLocalDecl bFVarId; substEq (aDecl.index < bDecl.index) - | Expr.fvar _ _, _ => substEq false - | _, Expr.fvar _ _ => substEq true - | _, _ => inj () + let a' ← whnf a + let b' ← whnf b + if a' != a || b' != b then do + let prf := mkFVar eqFVarId + let aEqb' ← mkEq a' b' + let mvarId ← assert mvarId eqDecl.userName aEqb' prf + let mvarId ← clear mvarId eqFVarId + unifyEqsAux (n+1) { s with mvarId := mvarId } + else + match a, b with + | Expr.fvar aFVarId _, Expr.fvar bFVarId _ => do + let aDecl ← getLocalDecl aFVarId + let bDecl ← getLocalDecl bFVarId + substEq (aDecl.index < bDecl.index) + | Expr.fvar _ _, _ => substEq false + | _, Expr.fvar _ _ => substEq true + | _, _ => inj () | none => throwTacticEx `cases mvarId "equality expected" private def unifyEqs (numEqs : Nat) (subgoals : Array CasesSubgoal) : MetaM (Array CasesSubgoal) := -subgoals.foldlM - (fun subgoals s => do - s? ← unifyEqsAux numEqs s; - match s? with - | none => pure $ subgoals - | some s => pure $ subgoals.push s) - #[] +subgoals.foldlM (init := #[]) fun subgoals s => do + let s? ← unifyEqsAux numEqs s + match s? with + | none => pure $ subgoals + | some s => pure $ subgoals.push s private def inductionCasesOn (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array (List Name)) (useUnusedNames : Bool) (ctx : Context) : MetaM (Array CasesSubgoal) := do withMVarContext mvarId do -majorType ← inferType (mkFVar majorFVarId); -(us, params) ← getInductiveUniverseAndParams majorType; -let casesOn := mkCasesOnFor ctx.inductiveVal.name; -let ctors := ctx.inductiveVal.ctors.toArray; -s ← induction mvarId majorFVarId casesOn givenNames useUnusedNames; +let majorType ← inferType (mkFVar majorFVarId) +let (us, params) ← getInductiveUniverseAndParams majorType +let casesOn := mkCasesOnFor ctx.inductiveVal.name +let ctors := ctx.inductiveVal.ctors.toArray +let s ← induction mvarId majorFVarId casesOn givenNames useUnusedNames pure $ toCasesSubgoals s ctors majorFVarId us params def cases (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array (List Name) := #[]) (useUnusedNames := false) : MetaM (Array CasesSubgoal) := withMVarContext mvarId do - checkNotAssigned mvarId `cases; - context? ← mkCasesContext? majorFVarId; + checkNotAssigned mvarId `cases + let context? ← mkCasesContext? majorFVarId match context? with | none => throwTacticEx `cases mvarId "not applicable to the given hypothesis" | some ctx => /- Remark: if caller does not need a `FVarSubst` (variable substitution), and `hasIndepIndices ctx` is true, then we can also use the simple case. This is a minor optimization, and we currently do not even allow callers to specify whether they want the `FVarSubst` or not. -/ - if ctx.inductiveVal.nindices == 0 then do + if ctx.inductiveVal.nindices == 0 then -- Simple case inductionCasesOn mvarId majorFVarId givenNames useUnusedNames ctx - else do - s₁ ← generalizeIndices mvarId majorFVarId; - trace! `Meta.Tactic.cases ("after generalizeIndices" ++ Format.line ++ MessageData.ofGoal s₁.mvarId); - s₂ ← inductionCasesOn s₁.mvarId s₁.fvarId givenNames useUnusedNames ctx; - s₂ ← elimAuxIndices s₁ s₂; + else + let s₁ ← generalizeIndices mvarId majorFVarId + trace[Meta.Tactic.cases]! "after generalizeIndices\n{MessageData.ofGoal s₁.mvarId}" + let s₂ ← inductionCasesOn s₁.mvarId s₁.fvarId givenNames useUnusedNames ctx + let s₂ ← elimAuxIndices s₁ s₂ unifyEqs s₁.numEqs s₂ end Cases @@ -286,8 +286,6 @@ end Cases def cases (mvarId : MVarId) (majorFVarId : FVarId) (givenNames : Array (List Name) := #[]) (useUnusedNames := false) : MetaM (Array CasesSubgoal) := Cases.cases mvarId majorFVarId givenNames useUnusedNames -@[init] private def regTraceClasses : IO Unit := do -registerTraceClass `Meta.Tactic.cases +initialize registerTraceClass `Meta.Tactic.cases -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Clear.lean b/stage0/src/Lean/Meta/Tactic/Clear.lean index d0b5f966ca..ef366ec46a 100644 --- a/stage0/src/Lean/Meta/Tactic/Clear.lean +++ b/stage0/src/Lean/Meta/Tactic/Clear.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -5,35 +6,33 @@ Authors: Leonardo de Moura -/ import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta def clear (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId := -withMVarContext mvarId $ do - checkNotAssigned mvarId `clear; - lctx ← getLCtx; - unless (lctx.contains fvarId) $ - throwTacticEx `clear mvarId ("unknown variable '" ++ mkFVar fvarId ++ "'"); - tag ← getMVarTag mvarId; - mctx ← getMCtx; - lctx.forM $ fun localDecl => - unless (localDecl.fvarId == fvarId) $ - when (mctx.localDeclDependsOn localDecl fvarId) $ - throwTacticEx `clear mvarId ("variable '" ++ localDecl.toExpr ++ "' depends on '" ++ mkFVar fvarId ++ "'"); - mvarDecl ← getMVarDecl mvarId; - when (mctx.exprDependsOn mvarDecl.type fvarId) $ - throwTacticEx `clear mvarId ("taget depends on '" ++ mkFVar fvarId ++ "'"); - let lctx := lctx.erase fvarId; - localInsts ← getLocalInstances; +withMVarContext mvarId do + checkNotAssigned mvarId `clear + let lctx ← getLCtx + unless lctx.contains fvarId do + throwTacticEx `clear mvarId msg!"unknown variable '{mkFVar fvarId}'" + let tag ← getMVarTag mvarId + let mctx ← getMCtx + lctx.forM fun localDecl => do + unless localDecl.fvarId == fvarId do + if mctx.localDeclDependsOn localDecl fvarId then + throwTacticEx `clear mvarId msg!"variable '{localDecl.toExpr}' depends on '{mkFVar fvarId}'" + let mvarDecl ← getMVarDecl mvarId + if mctx.exprDependsOn mvarDecl.type fvarId then + throwTacticEx `clear mvarId msg!"taget depends on '{mkFVar fvarId}'" + let lctx := lctx.erase fvarId + let localInsts ← getLocalInstances let localInsts := match localInsts.findIdx? $ fun localInst => localInst.fvar.fvarId! == fvarId with | none => localInsts - | some idx => localInsts.eraseIdx idx; - newMVar ← mkFreshExprMVarAt lctx localInsts mvarDecl.type MetavarKind.syntheticOpaque tag; - assignExprMVar mvarId newMVar; + | some idx => localInsts.eraseIdx idx + let newMVar ← mkFreshExprMVarAt lctx localInsts mvarDecl.type MetavarKind.syntheticOpaque tag + assignExprMVar mvarId newMVar pure newMVar.mvarId! def tryClear (mvarId : MVarId) (fvarId : FVarId) : MetaM MVarId := clear mvarId fvarId <|> pure mvarId -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/FVarSubst.lean b/stage0/src/Lean/Meta/Tactic/FVarSubst.lean index 92bc23ccf0..68f4fa27b0 100644 --- a/stage0/src/Lean/Meta/Tactic/FVarSubst.lean +++ b/stage0/src/Lean/Meta/Tactic/FVarSubst.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,8 +9,7 @@ import Lean.Expr import Lean.LocalContext import Lean.Util.ReplaceExpr -namespace Lean -namespace Meta +namespace Lean.Meta /- Some tactics substitute hypotheses with expressions. We track these substitutions using `FVarSubst`. diff --git a/stage0/src/Lean/Meta/Tactic/Generalize.lean b/stage0/src/Lean/Meta/Tactic/Generalize.lean index 860f2b44d5..2c2accb680 100644 --- a/stage0/src/Lean/Meta/Tactic/Generalize.lean +++ b/stage0/src/Lean/Meta/Tactic/Generalize.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -6,25 +7,23 @@ Authors: Leonardo de Moura import Lean.Meta.KAbstract import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta def generalize (mvarId : MVarId) (e : Expr) (x : Name) (failIfNotInTarget : Bool := true) : MetaM MVarId := do -withMVarContext mvarId $ do - checkNotAssigned mvarId `generalize; - tag ← getMVarTag mvarId; - target ← getMVarType mvarId; - target ← instantiateMVars target; - targetAbst ← kabstract target e; - when (failIfNotInTarget && !targetAbst.hasLooseBVars) $ - throwTacticEx `generalize mvarId ("failed to find expression in the target"); - eType ← inferType e; - let targetNew := Lean.mkForall x BinderInfo.default eType targetAbst; - unlessM (isTypeCorrect targetNew) $ - throwTacticEx `generalize mvarId ("result is not type correct"); - mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag; - assignExprMVar mvarId (mkApp mvarNew e); +withMVarContext mvarId do + checkNotAssigned mvarId `generalize + let tag ← getMVarTag mvarId + let target ← getMVarType mvarId + let target ← instantiateMVars target + let targetAbst ← kabstract target e + if failIfNotInTarget && !targetAbst.hasLooseBVars then + throwTacticEx `generalize mvarId "failed to find expression in the target" + let eType ← inferType e + let targetNew := Lean.mkForall x BinderInfo.default eType targetAbst + unless (← isTypeCorrect targetNew) do + throwTacticEx `generalize mvarId "result is not type correct" + let mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag + assignExprMVar mvarId (mkApp mvarNew e) pure mvarNew.mvarId! -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Induction.lean b/stage0/src/Lean/Meta/Tactic/Induction.lean index bbb76b18ba..0423065fce 100644 --- a/stage0/src/Lean/Meta/Tactic/Induction.lean +++ b/stage0/src/Lean/Meta/Tactic/Induction.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -11,8 +12,7 @@ import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Clear import Lean.Meta.Tactic.FVarSubst -namespace Lean -namespace Meta +namespace Lean.Meta private partial def getTargetArity : Expr → Nat | Expr.mdata _ b _ => getTargetArity b @@ -20,19 +20,19 @@ private partial def getTargetArity : Expr → Nat | e => if e.isHeadBetaTarget then getTargetArity e.headBeta else 0 private def addRecParams (mvarId : MVarId) (majorTypeArgs : Array Expr) : List (Option Nat) → Expr → MetaM Expr -| [], rec => pure rec -| some pos :: rest, rec => +| [], recursor => pure recursor +| some pos :: rest, recursor => if h : pos < majorTypeArgs.size then - addRecParams rest (mkApp rec (majorTypeArgs.get ⟨pos, h⟩)) + addRecParams mvarId majorTypeArgs rest (mkApp recursor (majorTypeArgs.get ⟨pos, h⟩)) else - throwTacticEx `induction mvarId ("ill-formed recursor") -| none :: rest, rec => do - recType ← inferType rec; - recType ← whnfForall recType; - match recType with + throwTacticEx `induction mvarId "ill-formed recursor" +| none :: rest, recursor => do + let recursorType ← inferType recursor + let recursorType ← whnfForall recursorType + match recursorType with | Expr.forallE _ d _ _ => do - param ← catch (synthInstance d) (fun _ => throwTacticEx `induction mvarId "failed to generate type class instance parameter"); - addRecParams rest (mkApp rec param) + let param ← try synthInstance d catch _ => throwTacticEx `induction mvarId "failed to generate type class instance parameter" + addRecParams mvarId majorTypeArgs rest (mkApp recursor param) | _ => throwTacticEx `induction mvarId ("ill-formed recursor") @@ -44,176 +44,157 @@ structure InductionSubgoal := instance InductionSubgoal.inhabited : Inhabited InductionSubgoal := ⟨{ mvarId := arbitrary _ }⟩ private def getTypeBody (mvarId : MVarId) (type : Expr) (x : Expr) : MetaM Expr := do -type ← whnfForall type; +type ← whnfForall type match type with | Expr.forallE _ _ b _ => pure $ b.instantiate1 x | _ => throwTacticEx `induction mvarId "ill-formed recursor" -private partial def finalizeAux - (mvarId : MVarId) (givenNames : Array (List Name)) (recInfo : RecursorInfo) - (reverted : Array FVarId) (major : Expr) (initialArity : Nat) (indices : Array Expr) (numMinors : Nat) (baseSubst : FVarSubst) - : Nat → Nat → Expr → Expr → Bool → Array InductionSubgoal → MetaM (Array InductionSubgoal) -| pos, minorIdx, rec, recType, consumedMajor, subgoals => do - recType ← whnfForall recType; - if recType.isForall && pos < recInfo.numArgs then - if pos == recInfo.firstIndexPos then do - (rec, recType) ← indices.foldlM - (fun (acc : Expr × Expr) (index : Expr) => do - let (rec, recType) := acc; - let rec := mkApp rec index; - recType ← getTypeBody mvarId recType index; - pure (rec, recType)) - (rec, recType); - let rec := mkApp rec major; - recType ← getTypeBody mvarId recType major; - finalizeAux (pos+1+indices.size) minorIdx rec recType true subgoals - else do +private partial def finalize + (mvarId : MVarId) (givenNames : Array (List Name)) (recursorInfo : RecursorInfo) + (reverted : Array FVarId) (major : Expr) (indices : Array Expr) (baseSubst : FVarSubst) (recursor : Expr) + : MetaM (Array InductionSubgoal) := do +let target ← getMVarType mvarId +let initialArity := getTargetArity target +let recursorType ← inferType recursor +let numMinors := recursorInfo.produceMotive.length +let rec loop (pos : Nat) (minorIdx : Nat) (recursor recursorType : Expr) (consumedMajor : Bool) (subgoals : Array InductionSubgoal) := do + let recursorType ← whnfForall recursorType + if recursorType.isForall && pos < recursorInfo.numArgs then + if pos == recursorInfo.firstIndexPos then + let (recursor, recursorType) ← indices.foldlM (init := (recursor, recursorType)) fun (recursor, recursorType) index => do + let recursor := mkApp recursor index + let recursorType ← getTypeBody mvarId recursorType index + pure (recursor, recursorType) + let recursor := mkApp recursor major + let recursorType ← getTypeBody mvarId recursorType major + loop (pos+1+indices.size) minorIdx recursor recursorType true subgoals + else -- consume motive - tag ← getMVarTag mvarId; - when (minorIdx ≥ numMinors) $ throwTacticEx `induction mvarId "ill-formed recursor"; - match recType with + let tag ← getMVarTag mvarId + if minorIdx ≥ numMinors then throwTacticEx `induction mvarId "ill-formed recursor" + match recursorType with | Expr.forallE n d b c => - let d := d.headBeta; + let d := d.headBeta -- Remark is givenNames is not empty, then user provided explicit alternatives for each minor premise - if c.binderInfo.isInstImplicit && givenNames.isEmpty then do - inst? ← synthInstance? d; + if c.binderInfo.isInstImplicit && givenNames.isEmpty then + let inst? ← synthInstance? d match inst? with - | some inst => do - let rec := mkApp rec inst; - recType ← getTypeBody mvarId recType inst; - finalizeAux (pos+1) (minorIdx+1) rec recType consumedMajor subgoals + | some inst => + let recursor := mkApp recursor inst + let recursorType ← getTypeBody mvarId recursorType inst + loop (pos+1) (minorIdx+1) recursor recursorType consumedMajor subgoals | none => do -- Add newSubgoal if type class resolution failed - mvar ← mkFreshExprSyntheticOpaqueMVar d (tag ++ n); - let rec := mkApp rec mvar; - recType ← getTypeBody mvarId recType mvar; - finalizeAux (pos+1) (minorIdx+1) rec recType consumedMajor (subgoals.push { mvarId := mvar.mvarId! }) - else do - let arity := getTargetArity d; - when (arity < initialArity) $ throwTacticEx `induction mvarId "ill-formed recursor"; - let nparams := arity - initialArity; -- number of fields due to minor premise - let nextra := reverted.size - indices.size - 1; -- extra dependencies that have been reverted - let minorGivenNames := if h : minorIdx < givenNames.size then givenNames.get ⟨minorIdx, h⟩ else []; - mvar ← mkFreshExprSyntheticOpaqueMVar d (tag ++ n); - let rec := mkApp rec mvar; - recType ← getTypeBody mvarId recType mvar; + let mvar ← mkFreshExprSyntheticOpaqueMVar d (tag ++ n) + let recursor := mkApp recursor mvar + let recursorType ← getTypeBody mvarId recursorType mvar + loop (pos+1) (minorIdx+1) recursor recursorType consumedMajor (subgoals.push { mvarId := mvar.mvarId! }) + else + let arity := getTargetArity d + if arity < initialArity then throwTacticEx `induction mvarId "ill-formed recursor" + let nparams := arity - initialArity -- number of fields due to minor premise + let nextra := reverted.size - indices.size - 1 -- extra dependencies that have been reverted + let minorGivenNames := if h : minorIdx < givenNames.size then givenNames.get ⟨minorIdx, h⟩ else [] + let mvar ← mkFreshExprSyntheticOpaqueMVar d (tag ++ n) + let recursor := mkApp recursor mvar + let recursorType ← getTypeBody mvarId recursorType mvar -- Try to clear major premise from new goal - mvarId' ← tryClear mvar.mvarId! major.fvarId!; - (fields, mvarId') ← introN mvarId' nparams minorGivenNames; - (extra, mvarId') ← introNP mvarId' nextra; - let subst := reverted.size.fold - (fun i (subst : FVarSubst) => + let mvarId' ← tryClear mvar.mvarId! major.fvarId! + let (fields, mvarId') ← introN mvarId' nparams minorGivenNames + let (extra, mvarId') ← introNP mvarId' nextra + let subst := reverted.size.fold (init := baseSubst) fun i (subst : FVarSubst) => if i < indices.size + 1 then subst else - let revertedFVarId := reverted.get! i; - let newFVarId := extra.get! (i - indices.size - 1); - subst.insert revertedFVarId (mkFVar newFVarId)) - baseSubst; - let fields := fields.map mkFVar; - finalizeAux (pos+1) (minorIdx+1) rec recType consumedMajor (subgoals.push { mvarId := mvarId', fields := fields, subst := subst }) + let revertedFVarId := reverted[i] + let newFVarId := extra[i - indices.size - 1] + subst.insert revertedFVarId (mkFVar newFVarId) + let fields := fields.map mkFVar + loop (pos+1) (minorIdx+1) recursor recursorType consumedMajor (subgoals.push { mvarId := mvarId', fields := fields, subst := subst }) | _ => unreachable! - else do - unless consumedMajor $ throwTacticEx `induction mvarId "ill-formed recursor"; - assignExprMVar mvarId rec; + else + unless consumedMajor do throwTacticEx `induction mvarId "ill-formed recursor" + assignExprMVar mvarId recursor pure subgoals - -private def finalize - (mvarId : MVarId) (givenNames : Array (List Name)) (recInfo : RecursorInfo) - (reverted : Array FVarId) (major : Expr) (indices : Array Expr) (baseSubst : FVarSubst) (rec : Expr) - : MetaM (Array InductionSubgoal) := do -target ← getMVarType mvarId; -let initialArity := getTargetArity target; -recType ← inferType rec; -let numMinors := recInfo.produceMotive.length; -finalizeAux mvarId givenNames recInfo reverted major initialArity indices numMinors baseSubst (recInfo.paramsPos.length + 1) 0 rec recType false #[] +loop (recursorInfo.paramsPos.length + 1) 0 recursor recursorType false #[] private def throwUnexpectedMajorType {α} (mvarId : MVarId) (majorType : Expr) : MetaM α := -throwTacticEx `induction mvarId ("unexpected major premise type " ++ indentExpr majorType) +throwTacticEx `induction mvarId msg!"unexpected major premise type{indentExpr majorType}" -def induction (mvarId : MVarId) (majorFVarId : FVarId) (recName : Name) (givenNames : Array (List Name) := #[]) (useUnusedNames := false) : +def induction (mvarId : MVarId) (majorFVarId : FVarId) (recursorName : Name) (givenNames : Array (List Name) := #[]) (useUnusedNames := false) : MetaM (Array InductionSubgoal) := -withMVarContext mvarId $ do - checkNotAssigned mvarId `induction; - majorLocalDecl ← getLocalDecl majorFVarId; - recInfo ← mkRecursorInfo recName; - some majorType ← whnfUntil majorLocalDecl.type recInfo.typeName | throwUnexpectedMajorType mvarId majorLocalDecl.type; - majorType.withApp $ fun _ majorTypeArgs => do - recInfo.paramsPos.forM $ fun paramPos? => do { +withMVarContext mvarId do + checkNotAssigned mvarId `induction + let majorLocalDecl ← getLocalDecl majorFVarId + let recursorInfo ← mkRecursorInfo recursorName + let some majorType ← whnfUntil majorLocalDecl.type recursorInfo.typeName | throwUnexpectedMajorType mvarId majorLocalDecl.type + majorType.withApp fun _ majorTypeArgs => do + recursorInfo.paramsPos.forM fun paramPos? => do match paramPos? with | none => pure () - | some paramPos => when (paramPos ≥ majorTypeArgs.size) $ throwTacticEx `induction mvarId ("major premise type is ill-formed" ++ indentExpr majorType) - }; - mctx ← getMCtx; - indices ← recInfo.indicesPos.toArray.mapM $ fun idxPos => do { - when (idxPos ≥ majorTypeArgs.size) $ throwTacticEx `induction mvarId ("major premise type is ill-formed" ++ indentExpr majorType); - let idx := majorTypeArgs.get! idxPos; - unless idx.isFVar $ throwTacticEx `induction mvarId ("major premise type index " ++ idx ++ " is not variable " ++ indentExpr majorType); - majorTypeArgs.size.forM $ fun i => do { - let arg := majorTypeArgs.get! i; - when (i != idxPos && arg == idx) $ - throwTacticEx `induction mvarId ("'" ++ idx ++ "' is an index in major premise, but it occurs more than once" ++ indentExpr majorType); - when (i < idxPos && mctx.exprDependsOn arg idx.fvarId!) $ - throwTacticEx `induction mvarId ("'" ++ idx ++ "' is an index in major premise, but it occurs in previous arguments" ++ indentExpr majorType); + | some paramPos => if paramPos ≥ majorTypeArgs.size then throwTacticEx `induction mvarId msg!"major premise type is ill-formed{indentExpr majorType}" + let mctx ← getMCtx + let indices ← recursorInfo.indicesPos.toArray.mapM fun idxPos => do + if idxPos ≥ majorTypeArgs.size then throwTacticEx `induction mvarId msg!"major premise type is ill-formed{indentExpr majorType}" + let idx := majorTypeArgs.get! idxPos + unless idx.isFVar do throwTacticEx `induction mvarId msg!"major premise type index {idx} is not variable{indentExpr majorType}" + majorTypeArgs.size.forM fun i => do + let arg := majorTypeArgs[i] + if i != idxPos && arg == idx then + throwTacticEx `induction mvarId msg!"'{idx}' is an index in major premise, but it occurs more than once{indentExpr majorType}" + if i < idxPos && mctx.exprDependsOn arg idx.fvarId! then + throwTacticEx `induction mvarId msg!"'{idx}' is an index in major premise, but it occurs in previous arguments{indentExpr majorType}" -- If arg is also and index and a variable occurring after `idx`, we need to make sure it doesn't depend on `idx`. -- Note that if `arg` is not a variable, we will fail anyway when we visit it. - when (i > idxPos && recInfo.indicesPos.contains i && arg.isFVar) $ do { - idxDecl ← getLocalDecl idx.fvarId!; - when (mctx.localDeclDependsOn idxDecl arg.fvarId!) $ - throwTacticEx `induction mvarId ("'" ++ idx ++ "' is an index in major premise, but it depends on index occurring at position #" ++ toString (i+1)) - } - }; + if i > idxPos && recursorInfo.indicesPos.contains i && arg.isFVar then + let idxDecl ← getLocalDecl idx.fvarId! + if mctx.localDeclDependsOn idxDecl arg.fvarId! then + throwTacticEx `induction mvarId msg!"'{idx}' is an index in major premise, but it depends on index occurring at position #{i+1}" pure idx - }; - target ← getMVarType mvarId; - when (!recInfo.depElim && mctx.exprDependsOn target majorFVarId) $ - throwTacticEx `induction mvarId ("recursor '" ++ recName ++ "' does not support dependent elimination, but conclusion depends on major premise"); + let target ← getMVarType mvarId + if !recursorInfo.depElim && mctx.exprDependsOn target majorFVarId then + throwTacticEx `induction mvarId msg!"recursor '{recursorName}' does not support dependent elimination, but conclusion depends on major premise" -- Revert indices and major premise preserving variable order - (reverted, mvarId) ← revert mvarId ((indices.map Expr.fvarId!).push majorFVarId) true; + let (reverted, mvarId) ← revert mvarId ((indices.map Expr.fvarId!).push majorFVarId) true -- Re-introduce indices and major - (indices', mvarId) ← introNP mvarId indices.size; - (majorFVarId', mvarId) ← intro1P mvarId; + let (indices', mvarId) ← introNP mvarId indices.size + let (majorFVarId', mvarId) ← intro1P mvarId -- Create FVarSubst with indices - let baseSubst : FVarSubst := indices.iterate {} (fun i index subst => subst.insert index.fvarId! (mkFVar (indices'.get! i.val))); - trace! `Meta.Tactic.induction ("after revert&intro" ++ Format.line ++ MessageData.ofGoal mvarId); + let baseSubst : FVarSubst := indices.iterate {} (fun i index subst => subst.insert index.fvarId! (mkFVar (indices'.get! i.val))) + trace[Meta.Tactic.induction]! "after revert&intro\n{MessageData.ofGoal mvarId}" -- Update indices and major - let indices := indices'.map mkFVar; - let majorFVarId := majorFVarId'; - let major := mkFVar majorFVarId; - withMVarContext mvarId $ do - target ← getMVarType mvarId; - targetLevel ← getLevel target; - targetLevel ← normalizeLevel targetLevel; - majorLocalDecl ← getLocalDecl majorFVarId; - some majorType ← whnfUntil majorLocalDecl.type recInfo.typeName | throwUnexpectedMajorType mvarId majorLocalDecl.type; + let indices := indices'.map mkFVar + let majorFVarId := majorFVarId' + let major := mkFVar majorFVarId + withMVarContext mvarId do + let target ← getMVarType mvarId + let targetLevel ← getLevel target + let targetLevel ← normalizeLevel targetLevel + let majorLocalDecl ← getLocalDecl majorFVarId + let some majorType ← whnfUntil majorLocalDecl.type recursorInfo.typeName | throwUnexpectedMajorType mvarId majorLocalDecl.type majorType.withApp fun majorTypeFn majorTypeArgs => do match majorTypeFn with | Expr.const majorTypeFnName majorTypeFnLevels _ => do - let majorTypeFnLevels := majorTypeFnLevels.toArray; - (recLevels, foundTargetLevel) ← recInfo.univLevelPos.foldlM - (fun (result : Array Level × Bool) (univPos : RecursorUnivLevelPos) => - let (recLevels, foundTargetLevel) := result; - match univPos with - | RecursorUnivLevelPos.motive => pure (recLevels.push targetLevel, true) - | RecursorUnivLevelPos.majorType idx => do - when (idx ≥ majorTypeFnLevels.size) $ - throwTacticEx `induction mvarId ("ill-formed recursor"); - pure (recLevels.push (majorTypeFnLevels.get! idx), foundTargetLevel)) - (#[], false); - when (!foundTargetLevel && !targetLevel.isZero) $ - throwTacticEx `induction mvarId ("recursor '" ++ recName ++ "' can only eliminate into Prop"); - let rec := mkConst recName recLevels.toList; - rec ← addRecParams mvarId majorTypeArgs recInfo.paramsPos rec; + let majorTypeFnLevels := majorTypeFnLevels.toArray + let (recursorLevels, foundTargetLevel) ← recursorInfo.univLevelPos.foldlM (init := (#[], false)) + fun (recursorLevels, foundTargetLevel) (univPos : RecursorUnivLevelPos) => do + match univPos with + | RecursorUnivLevelPos.motive => pure (recursorLevels.push targetLevel, true) + | RecursorUnivLevelPos.majorType idx => + if idx ≥ majorTypeFnLevels.size then throwTacticEx `induction mvarId "ill-formed recursor" + pure (recursorLevels.push (majorTypeFnLevels.get! idx), foundTargetLevel) + if !foundTargetLevel && !targetLevel.isZero then + throwTacticEx `induction mvarId msg!"recursor '{recursorName}' can only eliminate into Prop" + let recursor := mkConst recursorName recursorLevels.toList + let recursor ← addRecParams mvarId majorTypeArgs recursorInfo.paramsPos recursor -- Compute motive - let motive := target; - motive ← if recInfo.depElim then mkLambdaFVars #[major] motive else pure motive; - motive ← mkLambdaFVars indices motive; - let rec := mkApp rec motive; - finalize mvarId givenNames recInfo reverted major indices baseSubst rec + let motive := target + let motive ← if recursorInfo.depElim then mkLambdaFVars #[major] motive else pure motive + let motive ← mkLambdaFVars indices motive + let recursor := mkApp recursor motive + finalize mvarId givenNames recursorInfo reverted major indices baseSubst recursor | _ => throwTacticEx `induction mvarId "major premise is not of the form (C ...)" -@[init] private def regTraceClasses : IO Unit := do -registerTraceClass `Meta.Tactic.induction +initialize registerTraceClass `Meta.Tactic.induction -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Injection.lean b/stage0/src/Lean/Meta/Tactic/Injection.lean index 0a67c02e49..5688028fcc 100644 --- a/stage0/src/Lean/Meta/Tactic/Injection.lean +++ b/stage0/src/Lean/Meta/Tactic/Injection.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,41 +9,40 @@ import Lean.Meta.Tactic.Clear import Lean.Meta.Tactic.Assert import Lean.Meta.Tactic.Intro -namespace Lean -namespace Meta +namespace Lean.Meta inductive InjectionResultCore | solved | subgoal (mvarId : MVarId) (numNewEqs : Nat) -def injectionCore (mvarId : MVarId) (fvarId : FVarId) : MetaM InjectionResultCore := do -withMVarContext mvarId $ do - checkNotAssigned mvarId `injection; - decl ← getLocalDecl fvarId; - type ← whnf decl.type; +def injectionCore (mvarId : MVarId) (fvarId : FVarId) : MetaM InjectionResultCore := +withMVarContext mvarId do + checkNotAssigned mvarId `injection + let decl ← getLocalDecl fvarId + let type ← whnf decl.type match type.eq? with | none => throwTacticEx `injection mvarId "equality expected" - | some (α, a, b) => do - a ← whnf a; - b ← whnf b; - target ← getMVarType mvarId; - env ← getEnv; + | some (α, a, b) => + let a ← whnf a + let b ← whnf b + let target ← getMVarType mvarId + let env ← getEnv match a.isConstructorApp? env, b.isConstructorApp? env with - | some aCtor, some bCtor => do - val ← mkNoConfusion target (mkFVar fvarId); - if aCtor.name != bCtor.name then do - assignExprMVar mvarId val; + | some aCtor, some bCtor => + let val ← mkNoConfusion target (mkFVar fvarId) + if aCtor.name != bCtor.name then + assignExprMVar mvarId val pure InjectionResultCore.solved else do - valType ← inferType val; - valType ← whnf valType; + let valType ← inferType val + let valType ← whnf valType match valType with - | Expr.forallE _ newTarget _ _ => do - let newTarget := newTarget.headBeta; - tag ← getMVarTag mvarId; - newMVar ← mkFreshExprSyntheticOpaqueMVar newTarget tag; - assignExprMVar mvarId (mkApp val newMVar); - mvarId ← tryClear newMVar.mvarId! fvarId; + | Expr.forallE _ newTarget _ _ => + let newTarget := newTarget.headBeta + let tag ← getMVarTag mvarId + let newMVar ← mkFreshExprSyntheticOpaqueMVar newTarget tag + assignExprMVar mvarId (mkApp val newMVar) + let mvarId ← tryClear newMVar.mvarId! fvarId pure $ InjectionResultCore.subgoal mvarId aCtor.nfields | _ => throwTacticEx `injection mvarId "ill-formed noConfusion auxiliary construction" | _, _ => throwTacticEx `injection mvarId "equality of constructor applications expected" @@ -52,33 +52,33 @@ inductive InjectionResult | subgoal (mvarId : MVarId) (newEqs : Array FVarId) (remainingNames : List Name) private def heqToEq (mvarId : MVarId) (fvarId : FVarId) : MetaM (FVarId × MVarId) := -withMVarContext mvarId $ do - decl ← getLocalDecl fvarId; - type ← whnf decl.type; +withMVarContext mvarId do + let decl ← getLocalDecl fvarId + let type ← whnf decl.type match type.heq? with | none => pure (fvarId, mvarId) | some (α, a, β, b) => do - pr ← mkEqOfHEq (mkFVar fvarId); - eq ← mkEq a b; - mvarId ← assert mvarId decl.userName eq pr; - mvarId ← clear mvarId fvarId; - (fvarId, mvarId) ← intro1P mvarId; + let pr ← mkEqOfHEq (mkFVar fvarId) + let eq ← mkEq a b + let mvarId ← assert mvarId decl.userName eq pr + let mvarId ← clear mvarId fvarId + let (fvarId, mvarId) ← intro1P mvarId pure (fvarId, mvarId) def injectionIntro : Nat → MVarId → Array FVarId → List Name → MetaM InjectionResult | 0, mvarId, fvarIds, remainingNames => pure $ InjectionResult.subgoal mvarId fvarIds remainingNames | n+1, mvarId, fvarIds, name::remainingNames => do - (fvarId, mvarId) ← intro mvarId name; - (fvarId, mvarId) ← heqToEq mvarId fvarId; + let (fvarId, mvarId) ← intro mvarId name + let (fvarId, mvarId) ← heqToEq mvarId fvarId injectionIntro n mvarId (fvarIds.push fvarId) remainingNames | n+1, mvarId, fvarIds, [] => do - (fvarId, mvarId) ← intro1 mvarId; - (fvarId, mvarId) ← heqToEq mvarId fvarId; + let (fvarId, mvarId) ← intro1 mvarId + let (fvarId, mvarId) ← heqToEq mvarId fvarId injectionIntro n mvarId (fvarIds.push fvarId) [] def injection (mvarId : MVarId) (fvarId : FVarId) (newNames : List Name := []) (useUnusedNames : Bool := true) : MetaM InjectionResult := do -r ← injectionCore mvarId fvarId; +let r ← injectionCore mvarId fvarId match r with | InjectionResultCore.solved => pure InjectionResult.solved | InjectionResultCore.subgoal mvarId numEqs => injectionIntro numEqs mvarId #[] newNames diff --git a/stage0/src/Lean/Meta/Tactic/Intro.lean b/stage0/src/Lean/Meta/Tactic/Intro.lean index 9a33de3df5..eea9cadf08 100644 --- a/stage0/src/Lean/Meta/Tactic/Intro.lean +++ b/stage0/src/Lean/Meta/Tactic/Intro.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -5,90 +6,86 @@ Authors: Leonardo de Moura -/ import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta -@[specialize] -private partial def introNImpAux {σ} (mvarId : MVarId) (mkName : LocalContext → Name → σ → MetaM (Name × σ)) - : Nat → LocalContext → Array Expr → Nat → σ → Expr → MetaM (Array Expr × MVarId) -| 0, lctx, fvars, j, _, type => - let type := type.instantiateRevRange j fvars.size fvars; - withReader (fun ctx => { ctx with lctx := lctx }) $ - withNewLocalInstances fvars j $ do - tag ← getMVarTag mvarId; - let type := type.headBeta; - newMVar ← mkFreshExprSyntheticOpaqueMVar type tag; - lctx ← getLCtx; - newVal ← mkLambdaFVars fvars newMVar; - assignExprMVar mvarId newVal; - pure $ (fvars, newMVar.mvarId!) -| (i+1), lctx, fvars, j, s, Expr.letE n type val body _ => do - let type := type.instantiateRevRange j fvars.size fvars; - let type := type.headBeta; - let val := val.instantiateRevRange j fvars.size fvars; - fvarId ← mkFreshId; - (n, s) ← mkName lctx n s; - let lctx := lctx.mkLetDecl fvarId n type val; - let fvar := mkFVar fvarId; - let fvars := fvars.push fvar; - introNImpAux i lctx fvars j s body -| (i+1), lctx, fvars, j, s, Expr.forallE n type body c => do - let type := type.instantiateRevRange j fvars.size fvars; - let type := type.headBeta; - fvarId ← mkFreshId; - (n, s) ← mkName lctx n s; - let lctx := lctx.mkLocalDecl fvarId n type c.binderInfo; - let fvar := mkFVar fvarId; - let fvars := fvars.push fvar; - introNImpAux i lctx fvars j s body -| (i+1), lctx, fvars, j, s, type => - let type := type.instantiateRevRange j fvars.size fvars; - withReader (fun ctx => { ctx with lctx := lctx }) $ - withNewLocalInstances fvars j $ do - newType ← whnf type; - if newType.isForall then - introNImpAux (i+1) lctx fvars fvars.size s newType - else - throwTacticEx `introN mvarId "insufficient number of binders" - -@[specialize] private def introNImp {σ} (mvarId : MVarId) (n : Nat) (mkName : LocalContext → Name → σ → MetaM (Name × σ)) (s : σ) : MetaM (Array FVarId × MVarId) := -withMVarContext mvarId $ do - checkNotAssigned mvarId `introN; - mvarType ← getMVarType mvarId; - lctx ← getLCtx; - (fvars, mvarId) ← introNImpAux mvarId mkName n lctx #[] 0 s mvarType; +@[inline] private partial def introNImp {σ} (mvarId : MVarId) (n : Nat) (mkName : LocalContext → Name → σ → MetaM (Name × σ)) (s : σ) + : MetaM (Array FVarId × MVarId) := +withMVarContext mvarId do + checkNotAssigned mvarId `introN + let mvarType ← getMVarType mvarId + let lctx ← getLCtx + let rec @[specialize] loop : Nat → LocalContext → Array Expr → Nat → σ → Expr → MetaM (Array Expr × MVarId) + | 0, lctx, fvars, j, _, type => + let type := type.instantiateRevRange j fvars.size fvars + withReader (fun ctx => { ctx with lctx := lctx }) $ + withNewLocalInstances fvars j $ do + let tag ← getMVarTag mvarId + let type := type.headBeta + let newMVar ← mkFreshExprSyntheticOpaqueMVar type tag + let lctx ← getLCtx + let newVal ← mkLambdaFVars fvars newMVar + assignExprMVar mvarId newVal + pure $ (fvars, newMVar.mvarId!) + | (i+1), lctx, fvars, j, s, Expr.letE n type val body _ => do + let type := type.instantiateRevRange j fvars.size fvars + let type := type.headBeta + let val := val.instantiateRevRange j fvars.size fvars + let fvarId ← mkFreshId + let (n, s) ← mkName lctx n s + let lctx := lctx.mkLetDecl fvarId n type val + let fvar := mkFVar fvarId + let fvars := fvars.push fvar + loop i lctx fvars j s body + | (i+1), lctx, fvars, j, s, Expr.forallE n type body c => do + let type := type.instantiateRevRange j fvars.size fvars + let type := type.headBeta + let fvarId ← mkFreshId + let (n, s) ← mkName lctx n s + let lctx := lctx.mkLocalDecl fvarId n type c.binderInfo + let fvar := mkFVar fvarId + let fvars := fvars.push fvar + loop i lctx fvars j s body + | (i+1), lctx, fvars, j, s, type => + let type := type.instantiateRevRange j fvars.size fvars + withReader (fun ctx => { ctx with lctx := lctx }) $ + withNewLocalInstances fvars j do + let newType ← whnf type + if newType.isForall then + loop (i+1) lctx fvars fvars.size s newType + else + throwTacticEx `introN mvarId "insufficient number of binders" + let (fvars, mvarId) ← loop n lctx #[] 0 s mvarType pure (fvars.map Expr.fvarId!, mvarId) -def hygienicIntroDef := true - +def hygienicIntroDefault := true def getHygienicIntro : MetaM Bool := do -o ← getOptions; -pure $ o.get `hygienicIntro hygienicIntroDef +let o ← getOptions +pure $ o.get `hygienicIntro hygienicIntroDefault -@[init] def registerHygienicIntro : IO Unit := -registerOption `hygienicIntro { defValue := hygienicIntroDef, group := "tactic", descr := "make sure 'intro'-like tactics are hygienic" } +initialize registerOption `hygienicIntro { defValue := hygienicIntroDefault, group := "tactic", descr := "make sure 'intro'-like tactics are hygienic" } private def mkAuxNameImp (preserveBinderNames : Bool) (hygienic : Bool) (lctx : LocalContext) (binderName : Name) : List Name → MetaM (Name × List Name) -| [] => +| [] => do if preserveBinderNames then pure (binderName, []) else if hygienic then do - binderName ← mkFreshUserName binderName; + let binderName ← mkFreshUserName binderName; pure (binderName, []) else pure (lctx.getUnusedName binderName, []) -| n :: rest => - if n != "_" then pure (n, rest) +| n :: rest => do + if n != mkNameSimple "_" then + pure (n, rest) else if preserveBinderNames then pure (binderName, rest) - else if hygienic then do - binderName ← mkFreshUserName binderName; + else if hygienic then + let binderName ← mkFreshUserName binderName pure (binderName, rest) else pure (lctx.getUnusedName binderName, rest) def introNCore (mvarId : MVarId) (n : Nat) (givenNames : List Name) (preserveBinderNames : Bool) : MetaM (Array FVarId × MVarId) := do -hygienic ← getHygienicIntro; +let hygienic ← getHygienicIntro if n == 0 then pure (#[], mvarId) else introNImp mvarId n (mkAuxNameImp preserveBinderNames hygienic) givenNames @@ -99,11 +96,11 @@ abbrev introNP (mvarId : MVarId) (n : Nat) : MetaM (Array FVarId × MVarId) := introNCore mvarId n [] true def intro (mvarId : MVarId) (name : Name) : MetaM (FVarId × MVarId) := do -(fvarIds, mvarId) ← introN mvarId 1 [name]; +let (fvarIds, mvarId) ← introN mvarId 1 [name] pure (fvarIds.get! 0, mvarId) def intro1Core (mvarId : MVarId) (preserveBinderNames : Bool) : MetaM (FVarId × MVarId) := do -(fvarIds, mvarId) ← introNCore mvarId 1 [] preserveBinderNames; +let (fvarIds, mvarId) ← introNCore mvarId 1 [] preserveBinderNames pure (fvarIds.get! 0, mvarId) abbrev intro1 (mvarId : MVarId) : MetaM (FVarId × MVarId) := do diff --git a/stage0/src/Lean/Meta/Tactic/Replace.lean b/stage0/src/Lean/Meta/Tactic/Replace.lean index ed953a874e..39fe7c33e8 100644 --- a/stage0/src/Lean/Meta/Tactic/Replace.lean +++ b/stage0/src/Lean/Meta/Tactic/Replace.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -10,23 +11,22 @@ import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Clear import Lean.Meta.Tactic.Assert -namespace Lean -namespace Meta +namespace Lean.Meta /-- Convert the given goal `Ctx |- target` into `Ctx |- targetNew` using an equality proof `eqProof : target = targetNew`. It assumes `eqProof` has type `target = targetNew` -/ def replaceTargetEq (mvarId : MVarId) (targetNew : Expr) (eqProof : Expr) : MetaM MVarId := withMVarContext mvarId do - checkNotAssigned mvarId `replaceTarget; - tag ← getMVarTag mvarId; - mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag; - target ← getMVarType mvarId; - u ← getLevel target; - eq ← mkEq target targetNew; - newProof ← mkExpectedTypeHint eqProof eq; - let val := mkAppN (Lean.mkConst `Eq.mpr [u]) #[target, targetNew, eqProof, mvarNew]; - assignExprMVar mvarId val; + checkNotAssigned mvarId `replaceTarget + let tag ← getMVarTag mvarId + let mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag + let target ← getMVarType mvarId + let u ← getLevel target + let eq ← mkEq target targetNew + let newProof ← mkExpectedTypeHint eqProof eq + let val := mkAppN (Lean.mkConst `Eq.mpr [u]) #[target, targetNew, eqProof, mvarNew] + assignExprMVar mvarId val pure mvarNew.mvarId! /-- @@ -38,14 +38,14 @@ withMVarContext mvarId do to create a checkpoint. -/ def replaceTargetDefEq (mvarId : MVarId) (targetNew : Expr) : MetaM MVarId := withMVarContext mvarId do - checkNotAssigned mvarId `change; - target ← getMVarType mvarId; + checkNotAssigned mvarId `change + let target ← getMVarType mvarId if target == targetNew then pure mvarId - else do - tag ← getMVarTag mvarId; - mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag; - newVal ← mkExpectedTypeHint mvarNew target; - assignExprMVar mvarId mvarNew; + else + let tag ← getMVarTag mvarId + let mvarNew ← mkFreshExprSyntheticOpaqueMVar targetNew tag + let newVal ← mkExpectedTypeHint mvarNew target + assignExprMVar mvarId mvarNew pure mvarNew.mvarId! /-- @@ -56,40 +56,37 @@ withMVarContext mvarId do Remark: the new declaration is added immediately after `fvarId`. `typeNew` must be well-formed at `fvarId`, but `eqProof` may contain variables declared after `fvarId`. -/ def replaceLocalDecl (mvarId : MVarId) (fvarId : FVarId) (typeNew : Expr) (eqProof : Expr) : MetaM AssertAfterResult := do -withMVarContext mvarId $ do - localDecl ← getLocalDecl fvarId; - typeNewPr ← mkEqMP eqProof (mkFVar fvarId); - result ← assertAfter mvarId localDecl.fvarId localDecl.userName typeNew typeNewPr; - (do mvarIdNew ← clear result.mvarId fvarId; pure { result with mvarId := mvarIdNew }) <|> pure result +withMVarContext mvarId do + let localDecl ← getLocalDecl fvarId + let typeNewPr ← mkEqMP eqProof (mkFVar fvarId) + let result ← assertAfter mvarId localDecl.fvarId localDecl.userName typeNew typeNewPr + (do let mvarIdNew ← clear result.mvarId fvarId + pure { result with mvarId := mvarIdNew }) + <|> pure result def change (mvarId : MVarId) (targetNew : Expr) : MetaM MVarId := withMVarContext mvarId do - target ← getMVarType mvarId; - unlessM (isDefEq target targetNew) $ - throwTacticEx `change mvarId - ("given type" ++ indentExpr targetNew ++ Format.line ++ "is not definitionally equal to" ++ indentExpr target); + let target ← getMVarType mvarId + unless (← isDefEq target targetNew) do + throwTacticEx `change mvarId msg!"given type{indentExpr targetNew}\nis not definitionally equal to{indentExpr target}" replaceTargetDefEq mvarId targetNew def changeLocalDecl (mvarId : MVarId) (fvarId : FVarId) (typeNew : Expr) : MetaM MVarId := do -checkNotAssigned mvarId `changeLocalDecl; -(xs, mvarId) ← revert mvarId #[fvarId] true; +checkNotAssigned mvarId `changeLocalDecl +let (xs, mvarId) ← revert mvarId #[fvarId] true withMVarContext mvarId do - let numReverted := xs.size; - target ← getMVarType mvarId; - let checkDefEq (typeOld : Expr) : MetaM Unit := do { - unlessM (isDefEq typeNew typeOld) $ - throwTacticEx `changeHypothesis mvarId - ("given type" ++ indentExpr typeNew ++ Format.line ++ "is not definitionally equal to" ++ indentExpr typeOld) - }; - let finalize (targetNew : Expr) : MetaM MVarId := do { - mvarId ← replaceTargetDefEq mvarId targetNew; - (_, mvarId) ← introNP mvarId (numReverted-1); + let numReverted := xs.size + let target ← getMVarType mvarId + let checkDefEq (typeOld : Expr) : MetaM Unit := do + unless (← isDefEq typeNew typeOld) do + throwTacticEx `changeHypothesis mvarId msg!"given type{indentExpr typeNew}\nis not definitionally equal to{indentExpr typeOld}" + let finalize (targetNew : Expr) : MetaM MVarId := do + let mvarId ← replaceTargetDefEq mvarId targetNew + let (_, mvarId) ← introNP mvarId (numReverted-1) pure mvarId - }; match target with | Expr.forallE n d b c => do checkDefEq d; finalize (mkForall n c.binderInfo typeNew b) | Expr.letE n t v b _ => do checkDefEq t; finalize (mkLet n typeNew v b) | _ => throwTacticEx `changeHypothesis mvarId "unexpected auxiliary target" -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Revert.lean b/stage0/src/Lean/Meta/Tactic/Revert.lean index 3c09876011..80253adb08 100644 --- a/stage0/src/Lean/Meta/Tactic/Revert.lean +++ b/stage0/src/Lean/Meta/Tactic/Revert.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -5,20 +6,19 @@ Authors: Leonardo de Moura -/ import Lean.Meta.Tactic.Util -namespace Lean -namespace Meta +namespace Lean.Meta -def revert (mvarId : MVarId) (fvars : Array FVarId) (preserveOrder : Bool := false) : MetaM (Array FVarId × MVarId) := -if fvars.isEmpty then pure (fvars, mvarId) -else withMVarContext mvarId $ do - tag ← getMVarTag mvarId; - checkNotAssigned mvarId `revert; +def revert (mvarId : MVarId) (fvars : Array FVarId) (preserveOrder : Bool := false) : MetaM (Array FVarId × MVarId) := do +if fvars.isEmpty then + pure (fvars, mvarId) +else withMVarContext mvarId do + let tag ← getMVarTag mvarId + checkNotAssigned mvarId `revert -- Set metavariable kind to natural to make sure `elimMVarDeps` will assign it. - setMVarKind mvarId MetavarKind.natural; - e ← finally (elimMVarDeps (fvars.map mkFVar) (mkMVar mvarId) preserveOrder) (setMVarKind mvarId MetavarKind.syntheticOpaque); - e.withApp $ fun mvar args => do - setMVarTag mvar.mvarId! tag; + setMVarKind mvarId MetavarKind.natural + let e ← try elimMVarDeps (fvars.map mkFVar) (mkMVar mvarId) preserveOrder finally setMVarKind mvarId MetavarKind.syntheticOpaque + e.withApp fun mvar args => do + setMVarTag mvar.mvarId! tag pure (args.map Expr.fvarId!, mvar.mvarId!) -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Rewrite.lean b/stage0/src/Lean/Meta/Tactic/Rewrite.lean index 87ffadfd08..6343574639 100644 --- a/stage0/src/Lean/Meta/Tactic/Rewrite.lean +++ b/stage0/src/Lean/Meta/Tactic/Rewrite.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -8,8 +9,7 @@ import Lean.Meta.KAbstract import Lean.Meta.Check import Lean.Meta.Tactic.Apply -namespace Lean -namespace Meta +namespace Lean.Meta structure RewriteResult := (eNew : Expr) @@ -17,50 +17,47 @@ structure RewriteResult := (mvarIds : List MVarId) -- new goals def rewrite (mvarId : MVarId) (e : Expr) (heq : Expr) (symm : Bool := false) (occs : Occurrences := Occurrences.all) : MetaM RewriteResult := -withMVarContext mvarId $ do - checkNotAssigned mvarId `rewrite; - heqType ← inferType heq; - (newMVars, binderInfos, heqType) ← forallMetaTelescopeReducing heqType; - let heq := mkAppN heq newMVars; - let continue (heq heqType : Expr) : MetaM RewriteResult := +withMVarContext mvarId do + checkNotAssigned mvarId `rewrite + let heqType ← inferType heq + let (newMVars, binderInfos, heqType) ← forallMetaTelescopeReducing heqType + let heq := mkAppN heq newMVars + let cont (heq heqType : Expr) : MetaM RewriteResult := match heqType.eq? with - | none => throwTacticEx `rewrite mvarId ("equality of iff proof expected") + | none => throwTacticEx `rewrite mvarId "equality of iff proof expected" | some (α, lhs, rhs) => - let continue (heq heqType lhs rhs : Expr) : MetaM RewriteResult := do { - when lhs.getAppFn.isMVar $ - throwTacticEx `rewrite mvarId ("pattern is a metavariable " ++ indentExpr lhs ++ Format.line ++ "from equation" ++ indentExpr heqType); - e ← instantiateMVars e; - eAbst ← kabstract e lhs occs; - unless eAbst.hasLooseBVars $ - throwTacticEx `rewrite mvarId ("did not find instance of the pattern in the target expression"); + let cont (heq heqType lhs rhs : Expr) : MetaM RewriteResult := do + if lhs.getAppFn.isMVar then + throwTacticEx `rewrite mvarId msg!"pattern is a metavariable{indentExpr lhs}\nfrom equation{indentExpr heqType}" + let e ← instantiateMVars e + let eAbst ← kabstract e lhs occs + unless eAbst.hasLooseBVars do + throwTacticEx `rewrite mvarId "did not find instance of the pattern in the target expression" -- construct rewrite proof - let eNew := eAbst.instantiate1 rhs; - eNew ← instantiateMVars eNew; - eEqE ← mkEq e e; - let eEqEAbst := mkApp eEqE.appFn! eAbst; - let motive := Lean.mkLambda `_a BinderInfo.default α eEqEAbst; - unlessM (isTypeCorrect motive) $ - throwTacticEx `rewrite mvarId ("motive is not type correct"); - eqRefl ← mkEqRefl e; - eqPrf ← mkEqNDRec motive eqRefl heq; - postprocessAppMVars `rewrite mvarId newMVars binderInfos; - newMVars ← newMVars.filterM $ fun mvar => not <$> isExprMVarAssigned mvar.mvarId!; + let eNew := eAbst.instantiate1 rhs + let eNew ← instantiateMVars eNew + let eEqE ← mkEq e e + let eEqEAbst := mkApp eEqE.appFn! eAbst + let motive := Lean.mkLambda `_a BinderInfo.default α eEqEAbst + unless (← isTypeCorrect motive) do + throwTacticEx `rewrite mvarId "motive is not type correct" + let eqRefl ← mkEqRefl e + let eqPrf ← mkEqNDRec motive eqRefl heq + postprocessAppMVars `rewrite mvarId newMVars binderInfos + let newMVars ← newMVars.filterM fun mvar => not <$> isExprMVarAssigned mvar.mvarId! pure { eNew := eNew, eqProof := eqPrf, mvarIds := newMVars.toList.map Expr.mvarId! } - }; match symm with - | false => continue heq heqType lhs rhs - | true => do { - heq ← mkEqSymm heq; - heqType ← mkEq rhs lhs; - continue heq heqType rhs lhs - }; + | false => cont heq heqType lhs rhs + | true => do + let heq ← mkEqSymm heq + let heqType ← mkEq rhs lhs + cont heq heqType rhs lhs match heqType.iff? with - | some (lhs, rhs) => do - heqType ← mkEq lhs rhs; - let heq := mkApp3 (mkConst `propext) lhs rhs heq; - continue heq heqType + | some (lhs, rhs) => + let heqType ← mkEq lhs rhs + let heq := mkApp3 (mkConst `propext) lhs rhs heq + cont heq heqType | none => - continue heq heqType + cont heq heqType -end Meta -end Lean +end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Subst.lean b/stage0/src/Lean/Meta/Tactic/Subst.lean index a9240b5e45..72ce9fe21c 100644 --- a/stage0/src/Lean/Meta/Tactic/Subst.lean +++ b/stage0/src/Lean/Meta/Tactic/Subst.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -11,138 +12,127 @@ import Lean.Meta.Tactic.Intro import Lean.Meta.Tactic.Clear import Lean.Meta.Tactic.FVarSubst -namespace Lean -namespace Meta +namespace Lean.Meta def substCore (mvarId : MVarId) (hFVarId : FVarId) (symm := false) (fvarSubst : FVarSubst := {}) (clearH := true) : MetaM (FVarSubst × MVarId) := -withMVarContext mvarId $ do - tag ← getMVarTag mvarId; - checkNotAssigned mvarId `subst; - let hFVarIdOriginal := hFVarId; - hLocalDecl ← getLocalDecl hFVarId; - eq? ← matchEq? hLocalDecl.type; - match eq? with +withMVarContext mvarId do + let tag ← getMVarTag mvarId + checkNotAssigned mvarId `subst + let hFVarIdOriginal := hFVarId + let hLocalDecl ← getLocalDecl hFVarId + match (← matchEq? hLocalDecl.type) with | none => throwTacticEx `subst mvarId "argument must be an equality proof" | some (α, lhs, rhs) => do - let a := if symm then rhs else lhs; - let b := if symm then lhs else rhs; - a ← whnf a; + let a := if symm then rhs else lhs + let b := if symm then lhs else rhs + let a ← whnf a match a with | Expr.fvar aFVarId _ => do - let aFVarIdOriginal := aFVarId; - trace! `Meta.Tactic.subst ("substituting " ++ a ++ " (id: " ++ aFVarId ++ ") with " ++ b); - mctx ← getMCtx; - when (mctx.exprDependsOn b aFVarId) $ - throwTacticEx `subst mvarId ("'" ++ a ++ "' occurs at" ++ indentExpr b); - aLocalDecl ← getLocalDecl aFVarId; - (vars, mvarId) ← revert mvarId #[aFVarId, hFVarId] true; - (twoVars, mvarId) ← introNP mvarId 2; - trace! `Meta.Tactic.subst ("reverted variables " ++ toString vars); - let aFVarId := twoVars.get! 0; - let a := mkFVar aFVarId; - let hFVarId := twoVars.get! 1; - let h := mkFVar hFVarId; - withMVarContext mvarId $ do - mvarDecl ← getMVarDecl mvarId; - let type := mvarDecl.type; - hLocalDecl ← getLocalDecl hFVarId; - eq? ← matchEq? hLocalDecl.type; - match eq? with + let aFVarIdOriginal := aFVarId + trace[Meta.Tactic.subst]! "substituting {a} (id: {aFVarId} with {b}" + let mctx ← getMCtx + if mctx.exprDependsOn b aFVarId then + throwTacticEx `subst mvarId msg!"'{a}' occurs at{indentExpr b}" + let aLocalDecl ← getLocalDecl aFVarId + let (vars, mvarId) ← revert mvarId #[aFVarId, hFVarId] true + let (twoVars, mvarId) ← introNP mvarId 2 + trace[Meta.Tactic.subst]! "reverted variables {vars}" + let aFVarId := twoVars[0] + let a := mkFVar aFVarId + let hFVarId := twoVars[1] + let h := mkFVar hFVarId + withMVarContext mvarId do + let mvarDecl ← getMVarDecl mvarId + let type := mvarDecl.type + let hLocalDecl ← getLocalDecl hFVarId + match (← matchEq? hLocalDecl.type) with | none => unreachable! | some (α, lhs, rhs) => do - let b := if symm then lhs else rhs; - mctx ← getMCtx; - let depElim := mctx.exprDependsOn mvarDecl.type hFVarId; - let continue (motive : Expr) (newType : Expr) : MetaM (FVarSubst × MVarId) := do { - major ← if symm then pure h else mkEqSymm h; - newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag; - let minor := newMVar; - newVal ← if depElim then mkEqRec motive minor major else mkEqNDRec motive minor major; - assignExprMVar mvarId newVal; - let mvarId := newMVar.mvarId!; - mvarId ← - if clearH then do - mvarId ← clear mvarId hFVarId; + let b := if symm then lhs else rhs + let mctx ← getMCtx + let depElim := mctx.exprDependsOn mvarDecl.type hFVarId + let cont (motive : Expr) (newType : Expr) : MetaM (FVarSubst × MVarId) := do + let major ← if symm then pure h else mkEqSymm h + let newMVar ← mkFreshExprSyntheticOpaqueMVar newType tag + let minor := newMVar + let newVal ← if depElim then mkEqRec motive minor major else mkEqNDRec motive minor major + assignExprMVar mvarId newVal + let mvarId := newMVar.mvarId! + let mvarId ← + if clearH then + let mvarId ← clear mvarId hFVarId clear mvarId aFVarId else - pure mvarId; - (newFVars, mvarId) ← introNP mvarId (vars.size - 2); - fvarSubst ← newFVars.size.foldM - (fun i (fvarSubst : FVarSubst) => - let var := vars.get! (i+2); - let newFVar := newFVars.get! i; - pure $ fvarSubst.insert var (mkFVar newFVar)) - fvarSubst; - let fvarSubst := fvarSubst.insert aFVarIdOriginal (if clearH then b else mkFVar aFVarId); - let fvarSubst := fvarSubst.insert hFVarIdOriginal (mkFVar hFVarId); + pure mvarId + let (newFVars, mvarId) ← introNP mvarId (vars.size - 2) + let fvarSubst ← newFVars.size.foldM (init := fvarSubst) fun i (fvarSubst : FVarSubst) => + let var := vars[i+2] + let newFVar := newFVars[i] + pure $ fvarSubst.insert var (mkFVar newFVar) + let fvarSubst := fvarSubst.insert aFVarIdOriginal (if clearH then b else mkFVar aFVarId) + let fvarSubst := fvarSubst.insert hFVarIdOriginal (mkFVar hFVarId) pure (fvarSubst, mvarId) - }; if depElim then do - let newType := type.replaceFVar a b; - reflB ← mkEqRefl b; - let newType := newType.replaceFVar h reflB; - if symm then do - motive ← mkLambdaFVars #[a, h] type; - continue motive newType - else do + let newType := type.replaceFVar a b + let reflB ← mkEqRefl b + let newType := newType.replaceFVar h reflB + if symm then + let motive ← mkLambdaFVars #[a, h] type + cont motive newType + else /- `type` depends on (h : a = b). So, we use the following trick to avoid a type incorrect motive. 1- Create a new local (hAux : b = a) 2- Create newType := type [hAux.symm / h] `newType` is type correct because `h` and `hAux.symm` are definitionally equal by proof irrelevance. 3- Create motive by abstracting `a` and `hAux` in `newType`. -/ - hAuxType ← mkEq b a; - motive ← withLocalDeclD `_h hAuxType $ fun hAux => do { - hAuxSymm ← mkEqSymm hAux; + let hAuxType ← mkEq b a + let motive ← withLocalDeclD `_h hAuxType fun hAux => do + let hAuxSymm ← mkEqSymm hAux /- replace h in type with hAuxSymm -/ - let newType := type.replaceFVar h hAuxSymm; + let newType := type.replaceFVar h hAuxSymm mkLambdaFVars #[a, hAux] newType - }; - continue motive newType - else do - motive ← mkLambdaFVars #[a] type; - let newType := type.replaceFVar a b; - continue motive newType + cont motive newType + else + let motive ← mkLambdaFVars #[a] type + let newType := type.replaceFVar a b + cont motive newType | _ => - throwTacticEx `subst mvarId $ - "invalid equality proof, it is not of the form " - ++ (if symm then "(t = x)" else "(x = t)") - ++ indentExpr hLocalDecl.type - ++ Format.line ++ "after WHNF, variable expected, but obtained" ++ indentExpr a + let eqMsg := if symm then "(t = x)" else "(x = t)" + throwTacticEx `subst mvarId + msg!"invalid equality proof, it is not of the form {eqMsg}{indentExpr hLocalDecl.type}\nafter WHNF, variable expected, but obtained{indentExpr a}" def subst (mvarId : MVarId) (hFVarId : FVarId) : MetaM MVarId := -withMVarContext mvarId $ do - hLocalDecl ← getLocalDecl hFVarId; - eq? ← matchEq? hLocalDecl.type; - match eq? with - | some (α, lhs, rhs) => do - rhs ← whnf rhs; +withMVarContext mvarId do + let hLocalDecl ← getLocalDecl hFVarId + match (← matchEq? hLocalDecl.type) with + | some (α, lhs, rhs) => + let rhs ← whnf rhs if rhs.isFVar then - Prod.snd <$> substCore mvarId hFVarId true + (·.2) <$> substCore mvarId hFVarId true else do - lhs ← whnf lhs; + let lhs ← whnf lhs if lhs.isFVar then - Prod.snd <$> substCore mvarId hFVarId + (·.2) <$> substCore mvarId hFVarId else do - throwTacticEx `subst mvarId $ - "invalid equality proof, it is not of the form (x = t) or (t = x)" - ++ indentExpr hLocalDecl.type - | none => do - mctx ← getMCtx; - lctx ← getLCtx; - some (fvarId, symm) ← lctx.findDeclM? - (fun localDecl => if localDecl.isAuxDecl then pure none else do - eq? ← matchEq? localDecl.type; - match eq? with - | some (α, lhs, rhs) => - if rhs.isFVar && rhs.fvarId! == hFVarId && !mctx.exprDependsOn lhs hFVarId then - pure $ some (localDecl.fvarId, true) - else if lhs.isFVar && lhs.fvarId! == hFVarId && !mctx.exprDependsOn rhs hFVarId then - pure $ some (localDecl.fvarId, false) - else - pure none - | _ => pure none) - | throwTacticEx `subst mvarId ("did not find equation for eliminating '" ++ mkFVar hFVarId ++ "'"); - Prod.snd <$> substCore mvarId fvarId symm + throwTacticEx `subst mvarId msg!"invalid equality proof, it is not of the form (x = t) or (t = x){indentExpr hLocalDecl.type}" + | none => + let mctx ← getMCtx + let lctx ← getLCtx + let some (fvarId, symm) ← lctx.findDeclM? fun localDecl => do + if localDecl.isAuxDecl then + pure none + else + match (← matchEq? localDecl.type) with + | some (α, lhs, rhs) => + if rhs.isFVar && rhs.fvarId! == hFVarId && !mctx.exprDependsOn lhs hFVarId then + pure $ some (localDecl.fvarId, true) + else if lhs.isFVar && lhs.fvarId! == hFVarId && !mctx.exprDependsOn rhs hFVarId then + pure $ some (localDecl.fvarId, false) + else + pure none + | _ => pure none + | throwTacticEx `subst mvarId msg!"did not find equation for eliminating '{mkFVar hFVarId}'" + (·.2) <$> substCore mvarId fvarId symm @[init] private def regTraceClasses : IO Unit := registerTraceClass `Meta.Tactic.subst diff --git a/stage0/src/Lean/Meta/Tactic/Util.lean b/stage0/src/Lean/Meta/Tactic/Util.lean index 6b19ceda37..75be488d5b 100644 --- a/stage0/src/Lean/Meta/Tactic/Util.lean +++ b/stage0/src/Lean/Meta/Tactic/Util.lean @@ -1,3 +1,4 @@ +#lang lean4 /- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. @@ -7,56 +8,50 @@ import Lean.Meta.Basic import Lean.Meta.AppBuilder import Lean.Meta.LevelDefEq -namespace Lean -namespace Meta +namespace Lean.Meta /-- Aka user name -/ def getMVarTag (mvarId : MVarId) : MetaM Name := do -mvarDecl ← getMVarDecl mvarId; +let mvarDecl ← getMVarDecl mvarId pure mvarDecl.userName def setMVarTag (mvarId : MVarId) (tag : Name) : MetaM Unit := do modify $ fun s => { s with mctx := s.mctx.setMVarUserName mvarId tag } def appendTag (tag : Name) (suffix : Name) : Name := -let view := extractMacroScopes tag; -let view := { view with name := view.name ++ suffix.eraseMacroScopes }; +let view := extractMacroScopes tag +let view := { view with name := view.name ++ suffix.eraseMacroScopes } view.review def appendTagSuffix (mvarId : MVarId) (suffix : Name) : MetaM Unit := do -tag ← getMVarTag mvarId; +let tag ← getMVarTag mvarId setMVarTag mvarId (appendTag tag suffix) def mkFreshExprSyntheticOpaqueMVar (type : Expr) (userName : Name := Name.anonymous) : MetaM Expr := mkFreshExprMVar type MetavarKind.syntheticOpaque userName def throwTacticEx {α} (tacticName : Name) (mvarId : MVarId) (msg : MessageData) (ref := Syntax.missing) : MetaM α := -throwError $ "tactic '" ++ tacticName ++ "' failed, " ++ msg ++ Format.line ++ MessageData.ofGoal mvarId +throwError! "tactic '{tacticName}' failed, {msg}\n{MessageData.ofGoal mvarId}" -def checkNotAssigned (mvarId : MVarId) (tacticName : Name) : MetaM Unit := -whenM (isExprMVarAssigned mvarId) $ throwTacticEx tacticName mvarId "metavariable has already been assigned" +def checkNotAssigned (mvarId : MVarId) (tacticName : Name) : MetaM Unit := do +if (← isExprMVarAssigned mvarId) then + throwTacticEx tacticName mvarId "metavariable has already been assigned" def getMVarType (mvarId : MVarId) : MetaM Expr := do -mvarDecl ← getMVarDecl mvarId; +let mvarDecl ← getMVarDecl mvarId pure mvarDecl.type def ppGoal (mvarId : MVarId) : MetaM Format := do -env ← getEnv; -mctx ← getMCtx; -opts ← getOptions; -liftIO $ Lean.ppGoal { env := env, mctx := mctx, opts := opts } mvarId +liftIO $ Lean.ppGoal { env := (← getEnv), mctx := (← getMCtx), opts := (← getOptions) } mvarId -@[init] private def regTraceClasses : IO Unit := -registerTraceClass `Meta.Tactic +initialize registerTraceClass `Meta.Tactic /-- Assign `mvarId` to `sorryAx` -/ def admit (mvarId : MVarId) (synthetic := true) : MetaM Unit := -withMVarContext mvarId $ do - checkNotAssigned mvarId `admit; - mvarType ← getMVarType mvarId; - val ← mkSorry mvarType synthetic; - assignExprMVar mvarId val; - pure () +withMVarContext mvarId do + checkNotAssigned mvarId `admit + let mvarType ← getMVarType mvarId + let val ← mkSorry mvarType synthetic + assignExprMVar mvarId val -end Meta -end Lean +end Lean.Meta diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 79d1647283..94cca0a14e 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -120,7 +120,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___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* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2(lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__7; lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,7 +259,6 @@ lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; @@ -292,6 +290,7 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___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*); lean_object* l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1; lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__6; lean_object* l_Lean_Elab_Term_expandApp_match__3___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__1___closed__4; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4; @@ -373,7 +372,6 @@ lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_El lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Elab_Term_elabChoice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2; @@ -609,6 +607,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___lambda__1__ lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ctorName___closed__11; +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; @@ -623,6 +622,7 @@ lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9; lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__2(lean_object*); @@ -1403,7 +1403,7 @@ x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4; x_58 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_59 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_60 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); @@ -9369,7 +9369,7 @@ lean_dec(x_51); lean_inc(x_21); x_77 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_77, 0, x_21); -x_78 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_78 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_79 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_79, 1, x_77); @@ -9654,7 +9654,7 @@ lean_dec(x_128); lean_inc(x_21); x_147 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_147, 0, x_21); -x_148 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_148 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_149 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_149, 0, x_148); lean_ctor_set(x_149, 1, x_147); @@ -9941,7 +9941,7 @@ lean_dec(x_195); lean_inc(x_21); x_214 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_214, 0, x_21); -x_215 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_215 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_216 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_216, 0, x_215); lean_ctor_set(x_216, 1, x_214); @@ -10177,7 +10177,7 @@ lean_ctor_set(x_295, 0, x_11); x_296 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_296, 0, x_294); lean_ctor_set(x_296, 1, x_295); -x_297 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_297 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_298 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_298, 0, x_296); lean_ctor_set(x_298, 1, x_297); @@ -10643,7 +10643,7 @@ lean_dec(x_362); lean_inc(x_332); x_381 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_381, 0, x_332); -x_382 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_382 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_383 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_383, 0, x_382); lean_ctor_set(x_383, 1, x_381); @@ -10875,7 +10875,7 @@ lean_ctor_set(x_460, 0, x_319); x_461 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_461, 0, x_459); lean_ctor_set(x_461, 1, x_460); -x_462 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_462 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_463 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_463, 0, x_461); lean_ctor_set(x_463, 1, x_462); @@ -11919,7 +11919,7 @@ x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda x_42 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); -x_43 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_43 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); @@ -12112,7 +12112,7 @@ x_90 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda x_91 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_91, 0, x_90); lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_92 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_93 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); @@ -12241,7 +12241,7 @@ lean_ctor_set(x_138, 0, x_3); 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_Elab_Term_mkTypeMismatchError___closed__1; +x_140 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_141 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_141, 0, x_139); lean_ctor_set(x_141, 1, x_140); @@ -14899,7 +14899,7 @@ lean_ctor_set(x_53, 0, x_17); x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_55 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -14974,7 +14974,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(l _start: { 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; -x_11 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_11 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_3); @@ -14985,7 +14985,7 @@ x_14 = l_Lean_indentExpr(x_1); 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_Elab_Term_mkTypeMismatchError___closed__7; +x_16 = l_Lean_Elab_Term_mkTypeMismatchError___closed__6; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -15931,7 +15931,7 @@ lean_ctor_set(x_45, 0, x_32); x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_47 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); @@ -16001,7 +16001,7 @@ lean_ctor_set(x_65, 0, x_32); x_66 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); -x_67 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_67 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_68 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); @@ -16102,7 +16102,7 @@ lean_ctor_set(x_90, 0, x_79); x_91 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_91, 0, x_89); lean_ctor_set(x_91, 1, x_90); -x_92 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_92 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_93 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); @@ -16170,7 +16170,7 @@ lean_ctor_set(x_109, 0, x_79); x_110 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_110, 0, x_108); lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_111 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_112 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_111); @@ -16300,7 +16300,7 @@ lean_ctor_set(x_139, 0, x_126); x_140 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_140, 0, x_138); lean_ctor_set(x_140, 1, x_139); -x_141 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_141 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_142 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_142, 0, x_140); lean_ctor_set(x_142, 1, x_141); @@ -16371,7 +16371,7 @@ lean_ctor_set(x_160, 0, x_126); x_161 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_161, 0, x_159); lean_ctor_set(x_161, 1, x_160); -x_162 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_162 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_163 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_163, 0, x_161); lean_ctor_set(x_163, 1, x_162); @@ -16475,7 +16475,7 @@ lean_ctor_set(x_187, 0, x_176); x_188 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_188, 0, x_186); lean_ctor_set(x_188, 1, x_187); -x_189 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_189 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_190 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_190, 0, x_188); lean_ctor_set(x_190, 1, x_189); @@ -16544,7 +16544,7 @@ lean_ctor_set(x_207, 0, x_176); x_208 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_208, 0, x_206); lean_ctor_set(x_208, 1, x_207); -x_209 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_209 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_210 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_210, 0, x_208); lean_ctor_set(x_210, 1, x_209); @@ -16660,7 +16660,7 @@ x_234 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16; x_235 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_235, 0, x_234); lean_ctor_set(x_235, 1, x_233); -x_236 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_236 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_237 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_237, 0, x_235); lean_ctor_set(x_237, 1, x_236); @@ -16708,7 +16708,7 @@ x_247 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16; x_248 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_248, 0, x_247); lean_ctor_set(x_248, 1, x_246); -x_249 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_249 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_250 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_250, 0, x_248); lean_ctor_set(x_250, 1, x_249); @@ -26539,7 +26539,7 @@ lean_inc(x_19); x_20 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_19); x_21 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_22 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -26619,7 +26619,7 @@ lean_inc(x_46); x_47 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_46); x_48 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_49 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); @@ -26955,7 +26955,7 @@ x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_19 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 33726c25b0..f569dcb750 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -202,7 +202,6 @@ lean_object* l_Lean_Meta_isClass_x3f___at___private_Lean_Elab_Binders_0__Lean_El lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__14; lean_object* l___private_Lean_Meta_Basic_28__withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabFun___closed__1; @@ -459,6 +458,7 @@ lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__3; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandLetEqnsDeclVal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderType___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__2; @@ -19383,7 +19383,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean lean_inc(x_1); x_49 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_49, 0, x_1); -x_50 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_50 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 4453cdf878..35f4396280 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -301,7 +301,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeDecide___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandMod___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__13; extern lean_object* l_Lean_Meta_mkDecideProof___rarg___closed__1; -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandAndThen___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10; lean_object* l_Lean_Elab_Term_expandDiv___closed__1; @@ -722,6 +721,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandMapRev___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_expandSub___closed__1; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMapRev___closed__2; +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_Elab_Term_expandMap___closed__4; extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__4___closed__6; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2007,7 +2007,7 @@ x_38 = l_Lean_Elab_Term_elabAnonymousCtor___closed__7; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); -x_40 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_40 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_41 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -2045,7 +2045,7 @@ x_47 = l_Lean_Elab_Term_elabAnonymousCtor___closed__9; x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_49 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); @@ -2263,7 +2263,7 @@ x_125 = l_Lean_Elab_Term_elabAnonymousCtor___closed__9; x_126 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_126, 0, x_125); lean_ctor_set(x_126, 1, x_124); -x_127 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_127 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_128 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_128, 0, x_126); lean_ctor_set(x_128, 1, x_127); @@ -2289,7 +2289,7 @@ x_131 = l_Lean_Elab_Term_elabAnonymousCtor___closed__7; x_132 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_132, 0, x_131); lean_ctor_set(x_132, 1, x_130); -x_133 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_133 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_134 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); @@ -2315,7 +2315,7 @@ x_137 = l_Lean_Elab_Term_elabAnonymousCtor___closed__7; x_138 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_138, 0, x_137); lean_ctor_set(x_138, 1, x_136); -x_139 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_139 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_140 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_140, 0, x_138); lean_ctor_set(x_140, 1, x_139); @@ -5941,7 +5941,7 @@ x_13 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabClosedTerm___ x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_15 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -6024,7 +6024,7 @@ x_17 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabClosedTerm___ x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_19 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -6363,7 +6363,7 @@ x_22 = l_Lean_Elab_Term_elabNativeRefl___lambda__1___closed__2; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_24 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -6600,7 +6600,7 @@ x_24 = l_Lean_Elab_Term_elabNativeRefl___closed__2; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_26 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -7006,7 +7006,7 @@ x_27 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_getPropToDecide__ x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_29 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 035c2b43e4..5afe612771 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -25,6 +25,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_getDoLetRecVars___s lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_getTryCatchUpdatedVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___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* l_Lean_Elab_Term_Do_ToTerm_returnToTermCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__5; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_nameSetToArray(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__5___closed__3; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); @@ -270,7 +271,6 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____c lean_object* l_Lean_Elab_Term_Do_ToTerm_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__1; -extern lean_object* l___private_Lean_Data_Format_10__pushNewline___closed__1; lean_object* l_Lean_Elab_Term_Do_concat___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* lean_nat_add(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___elambda__2___closed__4; @@ -405,12 +405,10 @@ lean_object* l_Lean_Elab_Term_Do_hasReturn_match__1___rarg(lean_object*, lean_ob lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__1___closed__3; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__24; -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_mkJmp___spec__4___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_Elab_Term_Do_ToTerm_continueToTermCore___closed__19; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_ToTerm_mkUVarTuple___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22; lean_object* l_Lean_Elab_Term_Do_addFreshJP___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_Elab_Term_Do_ToTerm_breakToTermCore___closed__20; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkIte___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -572,7 +570,6 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__ lean_object* l_Lean_Elab_Term_Do_mkSingletonDoSeq(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPointCore_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkReassignCore___lambda__1(lean_object*, 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_Elab_syntaxNodeKindOfAttrParam___closed__6; lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__5___closed__5; lean_object* l_Lean_Elab_Term_Do_getPatternVarNames_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoHaveVar___closed__1; @@ -980,6 +977,7 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPointCore_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTermCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_hasExitPointPred_loop_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoLetArrowVars___closed__1; +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__38; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__21; @@ -999,6 +997,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkRe lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_mkJmp___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__1; +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode_match__2(lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___closed__4; @@ -2596,7 +2595,7 @@ x_16 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop(x_1, x_15); x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_14); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_18 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -2693,30 +2692,21 @@ return x_2; static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__5() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Data_Format_10__pushNewline___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__6() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("break "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__7() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__6; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__7() { _start: { lean_object* x_1; @@ -2724,16 +2714,16 @@ x_1 = lean_mk_string("continue "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__8; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__10() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__9() { _start: { lean_object* x_1; @@ -2741,16 +2731,16 @@ x_1 = lean_mk_string("return "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__11() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__10; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__9; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__11() { _start: { lean_object* x_1; @@ -2758,16 +2748,16 @@ x_1 = lean_mk_string("if "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__13() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__12; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__11; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__14() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__13() { _start: { lean_object* x_1; @@ -2775,16 +2765,16 @@ x_1 = lean_mk_string(" then "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__15() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__14; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__13; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__16() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__15() { _start: { lean_object* x_1; @@ -2792,16 +2782,16 @@ x_1 = lean_mk_string("\nelse"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__17() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__16; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__15; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__18() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -2810,7 +2800,7 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__19() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__18() { _start: { lean_object* x_1; @@ -2818,16 +2808,16 @@ x_1 = lean_mk_string(" with"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__19() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__19; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__18; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20() { _start: { lean_object* x_1; @@ -2835,11 +2825,11 @@ x_1 = lean_mk_string("jmp "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22() { +static lean_object* _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21; +x_1 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -2870,7 +2860,7 @@ x_10 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop(x_1, x_4); x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_12 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -2886,7 +2876,7 @@ lean_inc(x_15); lean_dec(x_2); x_16 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData(x_14); lean_dec(x_14); -x_17 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_17 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); @@ -2945,7 +2935,7 @@ x_43 = l_Lean_indentD(x_42); x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_41); lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__5; +x_45 = l_Lean_Meta_throwTacticEx___rarg___closed__5; x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); @@ -2953,7 +2943,7 @@ x_47 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop(x_1, x_27); x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_49 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); @@ -2969,11 +2959,11 @@ lean_inc(x_52); lean_dec(x_2); x_53 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_53, 0, x_51); -x_54 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_54 = l_Lean_Meta_throwTacticEx___rarg___closed__6; 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 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__5; +x_56 = l_Lean_Meta_throwTacticEx___rarg___closed__5; x_57 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_57, 0, x_55); lean_ctor_set(x_57, 1, x_56); @@ -3001,11 +2991,11 @@ case 5: { lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_2); -x_63 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__7; +x_63 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__6; x_64 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_1); -x_65 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_65 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_66 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); @@ -3015,11 +3005,11 @@ case 6: { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_2); -x_67 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__9; +x_67 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__8; x_68 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_1); -x_69 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_69 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_70 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_70, 0, x_68); lean_ctor_set(x_70, 1, x_69); @@ -3033,7 +3023,7 @@ lean_inc(x_71); lean_dec(x_2); x_72 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_72, 0, x_71); -x_73 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__11; +x_73 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__10; x_74 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -3044,7 +3034,7 @@ lean_ctor_set(x_76, 1, x_75); x_77 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_1); -x_78 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_78 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_79 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_79, 0, x_77); lean_ctor_set(x_79, 1, x_78); @@ -3062,11 +3052,11 @@ lean_inc(x_82); lean_dec(x_2); x_83 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_83, 0, x_80); -x_84 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__13; +x_84 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__12; x_85 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_83); -x_86 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__15; +x_86 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__14; x_87 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); @@ -3076,7 +3066,7 @@ x_89 = l_Lean_indentD(x_88); x_90 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_90, 0, x_87); lean_ctor_set(x_90, 1, x_89); -x_91 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__17; +x_91 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__16; x_92 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_92, 0, x_90); lean_ctor_set(x_92, 1, x_91); @@ -3084,7 +3074,7 @@ x_93 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop(x_1, x_82); x_94 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_94, 0, x_92); lean_ctor_set(x_94, 1, x_93); -x_95 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_95 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_96 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_96, 0, x_94); lean_ctor_set(x_96, 1, x_95); @@ -3100,11 +3090,11 @@ lean_inc(x_98); lean_dec(x_2); x_99 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_99, 0, x_97); -x_100 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__18; +x_100 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__17; x_101 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_101, 0, x_100); lean_ctor_set(x_101, 1, x_99); -x_102 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20; +x_102 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__19; x_103 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); @@ -3129,7 +3119,7 @@ lean_dec(x_2); x_110 = lean_simp_macro_scopes(x_108); x_111 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_111, 0, x_110); -x_112 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22; +x_112 = l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21; x_113 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_113, 0, x_112); lean_ctor_set(x_113, 1, x_111); @@ -3145,7 +3135,7 @@ lean_dec(x_117); x_119 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_119, 0, x_115); lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_120 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_121 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_121, 0, x_119); lean_ctor_set(x_121, 1, x_120); @@ -31607,7 +31597,7 @@ lean_dec(x_26); x_29 = lean_simp_macro_scopes(x_23); x_30 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_30, 0, x_29); -x_31 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_31 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); @@ -31667,7 +31657,7 @@ lean_dec(x_26); x_45 = lean_simp_macro_scopes(x_23); x_46 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_46, 0, x_45); -x_47 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_47 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); @@ -41225,7 +41215,7 @@ x_103 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; x_104 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_102); -x_105 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_105 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_106 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_106, 0, x_104); lean_ctor_set(x_106, 1, x_105); @@ -43113,7 +43103,7 @@ x_543 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; x_544 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_544, 0, x_543); lean_ctor_set(x_544, 1, x_542); -x_545 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_545 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_546 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_546, 0, x_544); lean_ctor_set(x_546, 1, x_545); @@ -45240,8 +45230,6 @@ l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20 = _init_l_Lean_Ela lean_mark_persistent(l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__20); l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21 = _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21(); lean_mark_persistent(l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__21); -l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22 = _init_l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22(); -lean_mark_persistent(l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__22); l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__1); l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index 51c1578fa5..3e80ffe2c1 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -96,7 +96,6 @@ extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___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_elabTermEnsuringType___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_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___spec__1(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,6 +140,7 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3___boxed(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_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3___closed__3; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -334,7 +334,7 @@ if (lean_obj_tag(x_16) == 0) lean_object* x_17; 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_17 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_17, 0, x_1); -x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; +x_18 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index cce48d4f4e..64f5e2eaff 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -326,7 +326,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_na lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_match__4(lean_object*); lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_finalize___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -770,6 +769,7 @@ lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___s lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkMVarSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___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*); @@ -1458,7 +1458,7 @@ lean_ctor_set(x_55, 0, x_22); x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_57 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_58 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_58, 0, x_56); lean_ctor_set(x_58, 1, x_57); @@ -1718,7 +1718,7 @@ lean_ctor_set(x_121, 0, x_22); x_122 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_122, 0, x_120); lean_ctor_set(x_122, 1, x_121); -x_123 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_123 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_124 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_124, 0, x_122); lean_ctor_set(x_124, 1, x_123); @@ -4608,7 +4608,7 @@ x_12 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwAmb x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_14 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -5889,7 +5889,7 @@ x_22 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_ x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_24 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -14546,7 +14546,7 @@ x_34 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spe x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_36 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -17063,7 +17063,7 @@ lean_ctor_set(x_51, 0, x_30); x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_53 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); @@ -17172,7 +17172,7 @@ lean_ctor_set(x_99, 0, x_98); x_100 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_100, 0, x_97); lean_ctor_set(x_100, 1, x_99); -x_101 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_101 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_102 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_102, 0, x_100); lean_ctor_set(x_102, 1, x_101); @@ -17595,7 +17595,7 @@ x_11 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInval x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_13 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -21236,7 +21236,7 @@ x_16 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_18 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -21539,7 +21539,7 @@ x_28 = l_Lean_Elab_Term_elabMatchAltView___closed__2; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_30 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -21691,7 +21691,7 @@ x_74 = l_Lean_Elab_Term_elabMatchAltView___closed__2; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); -x_76 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_76 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_77 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_77, 0, x_75); lean_ctor_set(x_77, 1, x_76); @@ -21922,7 +21922,7 @@ x_15 = l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1___closed__2; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_17 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -21975,7 +21975,7 @@ x_12 = l_Lean_Elab_Term_reportMatcherResultErrors___closed__2; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_14 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -22731,7 +22731,7 @@ x_65 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__4; x_66 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_64); -x_67 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_67 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_68 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_68, 0, x_66); lean_ctor_set(x_68, 1, x_67); @@ -23010,7 +23010,7 @@ x_120 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__6; x_121 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_119); -x_122 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_122 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_123 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_123, 0, x_121); lean_ctor_set(x_123, 1, x_122); @@ -24419,7 +24419,7 @@ lean_ctor_set(x_52, 0, x_36); x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); -x_54 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_54 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_54); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index b6e68fab48..e706480f2a 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -271,6 +271,7 @@ lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_0__Lean lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(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_Elab_Command_mkDefViewOfConstant___closed__8; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_instantiateMVarsAtHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__3; @@ -545,7 +546,6 @@ lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_List_forM___main___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2; uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars_match__1(lean_object*); lean_object* l_Lean_Elab_fixLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -12650,7 +12650,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean lean_inc(x_3); x_13 = x_3; x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(x_14, x_13); +x_15 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(x_14, x_13); x_16 = x_15; x_17 = l_List_redLength___main___rarg(x_5); x_18 = lean_mk_empty_array_with_capacity(x_17); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index bb14a1326a..db550f8b9b 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -32,40 +32,40 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBel lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__1(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___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__12(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg(lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__3(lean_object*); lean_object* l_Array_indexOfAux___main___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__1(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___lambda__1(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__1(lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_mkFnInhabitant_x3f_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__2; lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__2; -lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_findAssumption_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2___closed__2; lean_object* l_Array_filterAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -74,7 +74,7 @@ extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___lambda__2___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__1(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___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*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -84,9 +84,7 @@ lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean extern lean_object* l_Lean_Elab_PreDefinition_inhabited; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___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_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__10; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos(lean_object*, lean_object*); @@ -102,18 +100,15 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replace lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___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*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__7; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__7; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___closed__2; lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_findAssumption_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); @@ -128,30 +123,27 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBel extern lean_object* l_Lean_levelZero; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__17; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___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* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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* l_Lean_Elab_structuralRecursion___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__8; lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__1; -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1(lean_object*); lean_object* l_Array_zip___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__9; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); -lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__4; +lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos_match__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2; -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_brecOnSuffix; lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forEachExprImp_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,20 +154,20 @@ lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__7; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___lambda__3(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_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__6___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_nat_sub(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__7(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1; lean_object* l___private_Lean_Meta_Basic_28__withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__1; lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_ForEachExpr_visit___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__4(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___closed__2; lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); @@ -183,10 +175,12 @@ lean_object* l_Lean_Expr_headBeta(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__3(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -198,7 +192,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__3___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__18; -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__5; lean_object* l_Lean_Elab_structuralRecursion___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -216,12 +209,12 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forEachExpr_x27___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___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*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___closed__1; lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_containsRecFn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -233,19 +226,20 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getInde lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__1; lean_object* l___private_Lean_CoreM_1__mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__2(lean_object*); +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3364_(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__2; -lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__4; lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__12; @@ -255,7 +249,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadP uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__8; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__4(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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*); size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_2__decLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__3___closed__2; @@ -269,31 +262,28 @@ lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_ob lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__4; size_t l_USize_mod(size_t, size_t); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__3___closed__4; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__1; lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1; lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__13; +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__2; extern lean_object* l_Lean_Expr_FindImpl_initCache; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__11___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1; size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___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_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__2(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_Meta_matchMatcherApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__1; lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -304,23 +294,24 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Str lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___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_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__1(lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__15; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_containsRecFn___boxed(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__3; lean_object* l_Lean_Meta_MatcherApp_toExpr(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos_match__1(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,9 +333,9 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_mkInhabitant_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -357,6 +348,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRec extern lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ForEachExpr_visit___main___spec__10(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__3(lean_object*, lean_object*, 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* l_Lean_indentD(lean_object*); @@ -366,29 +358,27 @@ extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2___rarg___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__3(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object*); +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(lean_object*); -lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__2(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___lambda__1___closed__2; uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__11; lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_662____closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__2___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__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* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___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* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__13; lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3385,234 +3375,7 @@ x_8 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_7, x_ return x_8; } } -lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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: -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_2); -if (x_7 == 0) -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_2, 0); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -uint8_t x_10; lean_object* x_11; -x_10 = 1; -lean_ctor_set_uint8(x_8, 5, x_10); -x_11 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -return x_11; -} -else -{ -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); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) -{ -return x_11; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_11); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -else -{ -uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_20 = lean_ctor_get_uint8(x_8, 0); -x_21 = lean_ctor_get_uint8(x_8, 1); -x_22 = lean_ctor_get_uint8(x_8, 2); -x_23 = lean_ctor_get_uint8(x_8, 3); -x_24 = lean_ctor_get_uint8(x_8, 4); -x_25 = lean_ctor_get_uint8(x_8, 6); -x_26 = lean_ctor_get_uint8(x_8, 7); -lean_dec(x_8); -x_27 = 1; -x_28 = lean_alloc_ctor(0, 0, 8); -lean_ctor_set_uint8(x_28, 0, x_20); -lean_ctor_set_uint8(x_28, 1, x_21); -lean_ctor_set_uint8(x_28, 2, x_22); -lean_ctor_set_uint8(x_28, 3, x_23); -lean_ctor_set_uint8(x_28, 4, x_24); -lean_ctor_set_uint8(x_28, 5, x_27); -lean_ctor_set_uint8(x_28, 6, x_25); -lean_ctor_set_uint8(x_28, 7, x_26); -lean_ctor_set(x_2, 0, x_28); -x_29 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_32 = x_29; -} else { - lean_dec_ref(x_29); - x_32 = lean_box(0); -} -if (lean_is_scalar(x_32)) { - x_33 = lean_alloc_ctor(0, 2, 0); -} else { - x_33 = x_32; -} -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -return x_33; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_29, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_36 = x_29; -} else { - lean_dec_ref(x_29); - x_36 = lean_box(0); -} -if (lean_is_scalar(x_36)) { - x_37 = lean_alloc_ctor(1, 2, 0); -} else { - x_37 = x_36; -} -lean_ctor_set(x_37, 0, x_34); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_38 = lean_ctor_get(x_2, 0); -x_39 = lean_ctor_get(x_2, 1); -x_40 = lean_ctor_get(x_2, 2); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_2); -x_41 = lean_ctor_get_uint8(x_38, 0); -x_42 = lean_ctor_get_uint8(x_38, 1); -x_43 = lean_ctor_get_uint8(x_38, 2); -x_44 = lean_ctor_get_uint8(x_38, 3); -x_45 = lean_ctor_get_uint8(x_38, 4); -x_46 = lean_ctor_get_uint8(x_38, 6); -x_47 = lean_ctor_get_uint8(x_38, 7); -if (lean_is_exclusive(x_38)) { - x_48 = x_38; -} else { - lean_dec_ref(x_38); - x_48 = lean_box(0); -} -x_49 = 1; -if (lean_is_scalar(x_48)) { - x_50 = lean_alloc_ctor(0, 0, 8); -} else { - x_50 = x_48; -} -lean_ctor_set_uint8(x_50, 0, x_41); -lean_ctor_set_uint8(x_50, 1, x_42); -lean_ctor_set_uint8(x_50, 2, x_43); -lean_ctor_set_uint8(x_50, 3, x_44); -lean_ctor_set_uint8(x_50, 4, x_45); -lean_ctor_set_uint8(x_50, 5, x_49); -lean_ctor_set_uint8(x_50, 6, x_46); -lean_ctor_set_uint8(x_50, 7, x_47); -x_51 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_39); -lean_ctor_set(x_51, 2, x_40); -x_52 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_51, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_55 = x_52; -} else { - lean_dec_ref(x_52); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_59 = x_52; -} else { - lean_dec_ref(x_52); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); -} else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -} -} -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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; uint8_t x_8; @@ -3650,7 +3413,7 @@ return x_18; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1() { _start: { lean_object* x_1; @@ -3658,7 +3421,7 @@ x_1 = lean_mk_string("Lean.Elab.PreDefinition.Structural"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2() { _start: { lean_object* x_1; @@ -3666,12 +3429,12 @@ x_1 = lean_mk_string("_private.Lean.Elab.PreDefinition.Structural.0.Lean.Elab.fi return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3() { _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_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1; -x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1; +x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2; x_3 = lean_unsigned_to_nat(111u); x_4 = lean_unsigned_to_nat(117u); x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; @@ -3679,7 +3442,7 @@ x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3708,7 +3471,7 @@ if (lean_obj_tag(x_11) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_14 = l_Nat_Inhabited; -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3; +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3; x_16 = lean_panic_fn(x_14, x_15); x_17 = x_16; x_18 = lean_array_fset(x_9, x_2, x_17); @@ -3733,7 +3496,7 @@ goto _start; } } } -uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -3771,7 +3534,7 @@ return x_13; } } } -uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3790,7 +3553,7 @@ else lean_object* x_6; uint8_t x_7; x_6 = lean_array_fget(x_1, x_2); lean_inc(x_2); -x_7 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_6, x_2, lean_box(0)); +x_7 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_1, x_6, x_2, lean_box(0)); lean_dec(x_6); if (x_7 == 0) { @@ -3811,7 +3574,7 @@ goto _start; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -4047,7 +3810,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_19 = l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(x_18, x_5, x_6, x_7, x_8, x_16); +x_19 = l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(x_18, x_5, x_6, x_7, x_8, x_16); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; @@ -4108,7 +3871,7 @@ lean_dec(x_35); x_37 = l_Lean_Meta_brecOnSuffix; lean_inc(x_36); x_38 = lean_name_mk_string(x_36, x_37); -x_39 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_38, x_5, x_6, x_7, x_8, x_27); +x_39 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(x_38, x_5, x_6, x_7, x_8, x_27); lean_dec(x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); @@ -4118,7 +3881,7 @@ lean_dec(x_39); x_42 = l_Lean_Meta_binductionOnSuffix; lean_inc(x_36); x_43 = lean_name_mk_string(x_36, x_42); -x_44 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_43, x_5, x_6, x_7, x_8, x_41); +x_44 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(x_43, x_5, x_6, x_7, x_8, x_41); lean_dec(x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); @@ -4196,7 +3959,7 @@ x_58 = l_Array_extract___rarg(x_56, x_50, x_57); x_59 = lean_array_get_size(x_56); x_60 = l_Array_extract___rarg(x_56, x_57, x_59); x_426 = lean_array_get_size(x_60); -x_427 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_20, x_34, x_60, x_426, x_50); +x_427 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_20, x_34, x_60, x_426, x_50); lean_dec(x_426); lean_dec(x_34); if (x_427 == 0) @@ -4259,7 +4022,7 @@ lean_inc(x_69); lean_dec(x_67); lean_inc(x_60); x_70 = x_60; -x_71 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_63, x_50, x_70); +x_71 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_63, x_50, x_70); x_72 = x_71; x_73 = lean_array_get_size(x_62); x_74 = lean_nat_sub(x_4, x_73); @@ -5348,7 +5111,7 @@ block_425: if (x_359 == 0) { uint8_t x_360; -x_360 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_60, x_50); +x_360 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_60, x_50); if (x_360 == 0) { uint8_t x_361; @@ -5750,11 +5513,11 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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) { _start: { lean_object* x_7; -x_7 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -5763,41 +5526,41 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_1, x_2, x_3); +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(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; -x_5 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_1, x_2); +x_3 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_1, x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -6764,245 +6527,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_ return x_2; } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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) { -_start: -{ -lean_object* x_8; -x_8 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -return x_8; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) -{ -return x_8; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -} -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg), 7, 0); -return x_2; -} -} -lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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: -{ -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_ctor_get(x_5, 3); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_st_ref_take(x_6, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 3); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_13, 3); -lean_dec(x_17); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_10); -lean_inc(x_8); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_8); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Std_PersistentArray_push___rarg(x_19, x_21); -lean_ctor_set(x_14, 0, x_22); -x_23 = lean_st_ref_set(x_6, x_13, x_15); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -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_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 -{ -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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_30 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); -x_31 = lean_ctor_get(x_14, 0); -lean_inc(x_31); -lean_dec(x_14); -x_32 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set(x_32, 1, x_10); -lean_inc(x_8); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_8); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Std_PersistentArray_push___rarg(x_31, x_33); -x_35 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_30); -lean_ctor_set(x_13, 3, x_35); -x_36 = lean_st_ref_set(x_6, x_13, x_15); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_38 = x_36; -} else { - lean_dec_ref(x_36); - x_38 = lean_box(0); -} -x_39 = lean_box(0); -if (lean_is_scalar(x_38)) { - x_40 = lean_alloc_ctor(0, 2, 0); -} else { - x_40 = x_38; -} -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -return x_40; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t 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; -x_41 = lean_ctor_get(x_13, 0); -x_42 = lean_ctor_get(x_13, 1); -x_43 = lean_ctor_get(x_13, 2); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_13); -x_44 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); -x_45 = lean_ctor_get(x_14, 0); -lean_inc(x_45); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - x_46 = x_14; -} else { - lean_dec_ref(x_14); - x_46 = lean_box(0); -} -x_47 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_47, 0, x_1); -lean_ctor_set(x_47, 1, x_10); -lean_inc(x_8); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_8); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Std_PersistentArray_push___rarg(x_45, x_48); -if (lean_is_scalar(x_46)) { - x_50 = lean_alloc_ctor(0, 1, 1); -} else { - x_50 = x_46; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set_uint8(x_50, sizeof(void*)*1, x_44); -x_51 = lean_alloc_ctor(0, 4, 0); -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); -x_52 = lean_st_ref_set(x_6, x_51, x_15); -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_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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) { -_start: -{ -lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_4, 0); -x_8 = l_Lean_checkTraceOption(x_7, x_1); -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_6); -return x_10; -} -} lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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: { @@ -7429,7 +6953,7 @@ x_145 = lean_ctor_get(x_139, 1); lean_inc(x_145); lean_dec(x_139); x_146 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_147 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_146, x_5, x_6, x_7, x_8, x_145); +x_147 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_146, x_5, x_6, x_7, x_8, x_145); x_148 = lean_ctor_get(x_147, 0); lean_inc(x_148); x_149 = lean_ctor_get(x_147, 1); @@ -7492,7 +7016,7 @@ x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural lean_closure_set(x_25, 0, x_3); lean_closure_set(x_25, 1, x_4); lean_closure_set(x_25, 2, x_1); -x_26 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_25, x_5, x_6, x_7, x_8, x_13); +x_26 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_25, x_5, x_6, x_7, x_8, x_13); return x_26; } else @@ -7886,7 +7410,7 @@ x_113 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_113, 0, x_3); lean_closure_set(x_113, 1, x_4); lean_closure_set(x_113, 2, x_1); -x_114 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_113, x_5, x_6, x_7, x_8, x_13); +x_114 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_113, x_5, x_6, x_7, x_8, x_13); return x_114; } } @@ -7899,7 +7423,7 @@ x_115 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_115, 0, x_3); lean_closure_set(x_115, 1, x_4); lean_closure_set(x_115, 2, x_1); -x_116 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_115, x_5, x_6, x_7, x_8, x_13); +x_116 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_115, x_5, x_6, x_7, x_8, x_13); return x_116; } } @@ -7912,7 +7436,7 @@ x_117 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_117, 0, x_3); lean_closure_set(x_117, 1, x_4); lean_closure_set(x_117, 2, x_1); -x_118 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_117, x_5, x_6, x_7, x_8, x_13); +x_118 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_117, x_5, x_6, x_7, x_8, x_13); return x_118; } } @@ -7924,7 +7448,7 @@ x_119 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_119, 0, x_3); lean_closure_set(x_119, 1, x_4); lean_closure_set(x_119, 2, x_1); -x_120 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_119, x_5, x_6, x_7, x_8, x_13); +x_120 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_119, x_5, x_6, x_7, x_8, x_13); return x_120; } } @@ -7935,7 +7459,7 @@ x_121 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structura lean_closure_set(x_121, 0, x_3); lean_closure_set(x_121, 1, x_4); lean_closure_set(x_121, 2, x_1); -x_122 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(x_11, x_121, x_5, x_6, x_7, x_8, x_13); +x_122 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_11, x_121, x_5, x_6, x_7, x_8, x_13); return x_122; } } @@ -7971,7 +7495,7 @@ x_134 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); x_135 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_136 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_135, x_134, x_5, x_6, x_7, x_8, x_125); +x_136 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_135, x_134, x_5, x_6, x_7, x_8, x_125); x_137 = lean_ctor_get(x_136, 1); lean_inc(x_137); lean_dec(x_136); @@ -8011,30 +7535,6 @@ return x_154; } } } -lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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: -{ -lean_object* x_8; -x_8 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_8; -} -} -lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___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: { @@ -8082,15 +7582,7 @@ lean_dec(x_3); return x_11; } } -lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___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; -x_7 = l___private_Lean_CoreM_1__mkFreshNameImp(x_1, x_4, x_5, x_6); -return x_7; -} -} -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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) { +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___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; @@ -8141,15 +7633,15 @@ return x_17; } } } -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg), 8, 0); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___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, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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, 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; lean_object* x_16; @@ -8164,7 +7656,7 @@ x_16 = lean_apply_7(x_4, x_5, x_15, x_6, x_7, x_8, x_9, x_10); return x_16; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -8172,17 +7664,17 @@ x_1 = lean_mk_string("C"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1; +x_2 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -8202,14 +7694,14 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2; +x_18 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2; x_19 = l___private_Lean_CoreM_1__mkFreshNameImp(x_18, x_9, x_10, x_17); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__1), 10, 4); +x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__1), 10, 4); lean_closure_set(x_22, 0, x_1); lean_closure_set(x_22, 1, x_2); lean_closure_set(x_22, 2, x_3); @@ -8250,7 +7742,7 @@ return x_28; } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -8273,13 +7765,13 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___boxed), 11, 4); +x_18 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___boxed), 11, 4); lean_closure_set(x_18, 0, x_14); lean_closure_set(x_18, 1, x_1); lean_closure_set(x_18, 2, x_4); lean_closure_set(x_18, 3, x_5); x_19 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_20 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_16, x_19, x_18, x_7, x_8, x_9, x_10, x_17); +x_20 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg(x_16, x_19, x_18, x_7, x_8, x_9, x_10, x_17); return x_20; } else @@ -8314,7 +7806,7 @@ return x_24; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1() { _start: { lean_object* x_1; @@ -8322,16 +7814,16 @@ x_1 = lean_mk_string("unexpected 'below' type"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_4) == 5) @@ -8369,7 +7861,7 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); x_22 = l_Lean_indentExpr(x_3); -x_23 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2; +x_23 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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); @@ -8406,17 +7898,17 @@ else lean_object* x_32; lean_object* x_33; lean_dec(x_3); x_32 = lean_box(0); -x_33 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__3(x_5, x_1, x_4, x_19, x_2, x_32, x_7, x_8, x_9, x_10, x_11); +x_33 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__3(x_5, x_1, x_4, x_19, x_2, x_32, x_7, x_8, x_9, x_10, x_11); return x_33; } } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object* x_1) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg), 11, 0); return x_2; } } @@ -8480,7 +7972,7 @@ x_38 = lean_ctor_get(x_32, 1); lean_inc(x_38); lean_dec(x_32); x_39 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_40 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_39, x_4, x_5, x_6, x_7, x_38); +x_40 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_39, x_4, x_5, x_6, x_7, x_38); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -8504,7 +7996,7 @@ x_17 = lean_unsigned_to_nat(1u); x_18 = lean_nat_sub(x_14, x_17); lean_dec(x_14); lean_inc(x_10); -x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_2, x_3, x_10, x_10, x_16, x_18, x_4, x_5, x_6, x_7, x_12); +x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_2, x_3, x_10, x_10, x_16, x_18, x_4, x_5, x_6, x_7, x_12); return x_19; } block_31: @@ -8529,7 +8021,7 @@ x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); x_28 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_29 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_28, x_27, x_4, x_5, x_6, x_7, x_22); +x_29 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_28, x_27, x_4, x_5, x_6, x_7, x_22); x_30 = lean_ctor_get(x_29, 1); lean_inc(x_30); lean_dec(x_29); @@ -8576,33 +8068,21 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_ return x_2; } } -lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2(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_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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_6); lean_dec(x_5); return x_12; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___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_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_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__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_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__3(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_6); return x_12; } @@ -9962,7 +9442,7 @@ x_57 = lean_ctor_get(x_51, 1); lean_inc(x_57); lean_dec(x_51); x_58 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_59 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_58, x_8, x_9, x_10, x_11, x_57); +x_59 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_58, x_8, x_9, x_10, x_11, x_57); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -10074,7 +9554,7 @@ x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); x_47 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_48 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_47, x_46, x_8, x_9, x_10, x_11, x_34); +x_48 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_47, x_46, x_8, x_9, x_10, x_11, x_34); x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); lean_dec(x_48); @@ -11844,15 +11324,7 @@ goto _start; } } } -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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; -x_7 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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; @@ -12104,7 +11576,7 @@ lean_closure_set(x_28, 5, x_2); lean_closure_set(x_28, 6, x_5); lean_closure_set(x_28, 7, x_6); lean_closure_set(x_28, 8, x_7); -x_29 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_19, x_27, x_28, x_10, x_11, x_12, x_13, x_20); +x_29 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg(x_19, x_27, x_28, x_10, x_11, x_12, x_13, x_20); return x_29; } else @@ -12238,7 +11710,7 @@ x_121 = lean_ctor_get(x_115, 1); lean_inc(x_121); lean_dec(x_115); lean_inc(x_7); -x_122 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_7, x_11, x_12, x_13, x_14, x_121); +x_122 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_7, x_11, x_12, x_13, x_14, x_121); x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); x_124 = lean_ctor_get(x_122, 1); @@ -12347,7 +11819,7 @@ x_79 = lean_ctor_get(x_73, 1); lean_inc(x_79); lean_dec(x_73); lean_inc(x_7); -x_80 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_7, x_11, x_12, x_13, x_14, x_79); +x_80 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_7, x_11, x_12, x_13, x_14, x_79); x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); @@ -12374,7 +11846,7 @@ lean_closure_set(x_36, 4, x_6); lean_closure_set(x_36, 5, x_1); lean_closure_set(x_36, 6, x_28); x_37 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_38 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_32, x_37, x_36, x_11, x_12, x_13, x_14, x_35); +x_38 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg(x_32, x_37, x_36, x_11, x_12, x_13, x_14, x_35); return x_38; } else @@ -12391,7 +11863,7 @@ x_42 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_7, x_43, x_11, x_12, x_13, x_14, x_35); +x_44 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_7, x_43, x_11, x_12, x_13, x_14, x_35); x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); lean_dec(x_44); @@ -12404,7 +11876,7 @@ lean_closure_set(x_46, 4, x_6); lean_closure_set(x_46, 5, x_1); lean_closure_set(x_46, 6, x_28); x_47 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_48 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_32, x_47, x_46, x_11, x_12, x_13, x_14, x_45); +x_48 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___rarg(x_32, x_47, x_46, x_11, x_12, x_13, x_14, x_45); return x_48; } } @@ -12437,7 +11909,7 @@ x_57 = lean_ctor_get(x_51, 1); lean_inc(x_57); lean_dec(x_51); lean_inc(x_7); -x_58 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_7, x_11, x_12, x_13, x_14, x_57); +x_58 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_7, x_11, x_12, x_13, x_14, x_57); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); x_60 = lean_ctor_get(x_58, 1); @@ -12472,7 +11944,7 @@ x_69 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_69, 0, x_67); lean_ctor_set(x_69, 1, x_68); lean_inc(x_7); -x_70 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_7, x_69, x_11, x_12, x_13, x_14, x_64); +x_70 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_7, x_69, x_11, x_12, x_13, x_14, x_64); x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); lean_dec(x_70); @@ -12574,7 +12046,7 @@ x_111 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_111, 0, x_109); lean_ctor_set(x_111, 1, x_110); lean_inc(x_7); -x_112 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_7, x_111, x_11, x_12, x_13, x_14, x_106); +x_112 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_7, x_111, x_11, x_12, x_13, x_14, x_106); x_113 = lean_ctor_get(x_112, 1); lean_inc(x_113); lean_dec(x_112); @@ -12715,7 +12187,7 @@ x_68 = lean_ctor_get(x_62, 1); lean_inc(x_68); lean_dec(x_62); x_69 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_70 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_69, x_4, x_5, x_6, x_7, x_68); +x_70 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_69, x_4, x_5, x_6, x_7, x_68); x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); @@ -12764,7 +12236,7 @@ x_32 = lean_level_eq(x_23, x_31); if (x_32 == 0) { lean_object* x_33; -x_33 = l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3(x_23, x_4, x_5, x_6, x_7, x_25); +x_33 = l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2(x_23, x_4, x_5, x_6, x_7, x_25); if (lean_obj_tag(x_33) == 0) { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; @@ -12844,7 +12316,7 @@ x_57 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_57, 0, x_55); lean_ctor_set(x_57, 1, x_56); x_58 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_59 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_58, x_57, x_4, x_5, x_6, x_7, x_52); +x_59 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_58, x_57, x_4, x_5, x_6, x_7, x_52); x_60 = lean_ctor_get(x_59, 1); lean_inc(x_60); lean_dec(x_59); @@ -12959,11 +12431,11 @@ lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -13076,7 +12548,7 @@ x_74 = lean_ctor_get(x_68, 1); lean_inc(x_74); lean_dec(x_68); lean_inc(x_5); -x_75 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_5, x_7, x_8, x_9, x_10, x_74); +x_75 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_5, x_7, x_8, x_9, x_10, x_74); x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); x_77 = lean_ctor_get(x_75, 1); @@ -13187,7 +12659,7 @@ x_43 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_5, x_44, x_7, x_8, x_9, x_10, x_19); +x_45 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_5, x_44, x_7, x_8, x_9, x_10, x_19); x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); lean_dec(x_45); @@ -13387,7 +12859,7 @@ x_45 = lean_ctor_get(x_39, 1); lean_inc(x_45); lean_dec(x_39); x_46 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_47 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(x_46, x_4, x_5, x_6, x_7, x_45); +x_47 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_46, x_4, x_5, x_6, x_7, x_45); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -13461,7 +12933,7 @@ x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_22); x_35 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; -x_36 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(x_35, x_34, x_4, x_5, x_6, x_7, x_19); +x_36 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_35, x_34, x_4, x_5, x_6, x_7, x_19); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); @@ -13820,12 +13292,12 @@ l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFaile lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__2); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___closed__3); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2(); @@ -13908,14 +13380,14 @@ l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed_ lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__15); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___lambda__2___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___closed__2); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index b4e01378fa..a729456dc0 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -342,6 +342,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compile lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___closed__11; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__3; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; lean_object* l_Lean_Elab_Term_Quotation_isEscapedAntiquot___boxed(lean_object*); extern lean_object* l_List_head_x21___rarg___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -602,7 +603,6 @@ lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f(lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_letBindRhss___spec__1(lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__8___closed__1; -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_toPreterm___lambda__4___closed__1; extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__1___closed__11; @@ -4669,7 +4669,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__4; -x_2 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index f0e52116cd..9ee02e5a02 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -20,7 +20,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabS lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFields(lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax_match__2(lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__6(lean_object*); lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__3; @@ -241,7 +240,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getSt extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_allDefault_match__2(lean_object*); -extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__13; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__28; lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___lambda__1___closed__2; @@ -292,7 +290,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMi lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple(lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields___boxed(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___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*); @@ -306,6 +303,7 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(le lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___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*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandCompositeFields___spec__3(lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1(lean_object*); @@ -416,7 +414,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1___rarg(lean uint8_t l_Array_contains___at_Lean_findField_x3f___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getForallBody(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__2___closed__4; lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__3___boxed(lean_object*); @@ -428,6 +425,7 @@ extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___clos lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___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_Elab_Term_StructInst_Struct_fields_match__1(lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__3(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f_match__1(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux___closed__2; @@ -458,7 +456,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabM lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___spec__1(lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3(lean_object*); @@ -498,6 +495,7 @@ extern lean_object* l_Lean_Expr_FindImpl_initCache; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__1___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___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__4; +extern lean_object* l_Lean_Meta_substCore___lambda__13___closed__25; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step_match__1(lean_object*); extern lean_object* l_Lean_Syntax_inhabited; size_t lean_ptr_addr(lean_object*); @@ -512,6 +510,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_0__L lean_object* l_Lean_Elab_Term_StructInst_expandStructInstExpectedType___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_propagateExpectedType_match__1(lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStruct___spec__1___closed__2; +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNumLitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); @@ -556,7 +555,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(lean_object* lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_530____closed__8; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__3(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkFieldMap___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_ref___boxed(lean_object*); @@ -653,7 +651,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCto lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step(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_mkOptionalNode___closed__2; lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__1___closed__2; -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_addMissingFields_match__1(lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__3(lean_object*); @@ -664,6 +661,7 @@ extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1; lean_object* l_Lean_Elab_Term_StructInst_trySynthStructInstance_x3f___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_StructInst_Field_inhabited___closed__1; lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields___spec__1___closed__2; +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___closed__1; @@ -675,6 +673,7 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expan lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isSimpleField_x3f___boxed(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields_match__2___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat; @@ -3173,7 +3172,7 @@ lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_inc(x_1); x_136 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_136, 0, x_1); -x_137 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_137 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_138 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_138, 0, x_137); lean_ctor_set(x_138, 1, x_136); @@ -3213,7 +3212,7 @@ lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_inc(x_1); x_163 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_163, 0, x_1); -x_164 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_164 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_165 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_163); @@ -3470,7 +3469,7 @@ lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_inc(x_1); x_290 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_290, 0, x_1); -x_291 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_291 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_292 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_292, 0, x_291); lean_ctor_set(x_292, 1, x_290); @@ -3511,7 +3510,7 @@ lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_inc(x_2); x_317 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_317, 0, x_2); -x_318 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_318 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_319 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_319, 0, x_318); lean_ctor_set(x_319, 1, x_317); @@ -3819,7 +3818,7 @@ x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructNa x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_28 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -3864,7 +3863,7 @@ x_36 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructNa x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_38 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -4095,7 +4094,7 @@ x_78 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructNa x_79 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_79, 1, x_77); -x_80 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_80 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_81 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_81, 0, x_79); lean_ctor_set(x_81, 1, x_80); @@ -4140,7 +4139,7 @@ x_88 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructNa x_89 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); -x_90 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_90 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_91 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_91, 0, x_89); lean_ctor_set(x_91, 1, x_90); @@ -4247,7 +4246,7 @@ x_106 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructN x_107 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_107, 0, x_106); lean_ctor_set(x_107, 1, x_105); -x_108 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_108 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_109 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_109, 0, x_107); lean_ctor_set(x_109, 1, x_108); @@ -4371,7 +4370,7 @@ x_130 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructN x_131 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); -x_132 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_132 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_133 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); @@ -4483,7 +4482,7 @@ x_148 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructN x_149 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_149, 0, x_148); lean_ctor_set(x_149, 1, x_147); -x_150 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_150 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_151 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_151, 0, x_149); lean_ctor_set(x_151, 1, x_150); @@ -5645,7 +5644,7 @@ static lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___closed__5() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__13; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__25; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -9207,7 +9206,7 @@ lean_dec(x_13); lean_dec(x_2); x_40 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_40, 0, x_37); -x_41 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_41 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_42 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); @@ -10753,7 +10752,7 @@ lean_ctor_set(x_18, 0, x_1); x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_20 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -15808,7 +15807,7 @@ lean_ctor_set(x_19, 1, x_18); x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_3); -x_21 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_21 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); @@ -17247,7 +17246,7 @@ x_217 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Te x_218 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_218, 0, x_217); lean_ctor_set(x_218, 1, x_216); -x_219 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_219 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_220 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_220, 0, x_218); lean_ctor_set(x_220, 1, x_219); @@ -17833,7 +17832,7 @@ x_335 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Te x_336 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_336, 0, x_335); lean_ctor_set(x_336, 1, x_334); -x_337 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_337 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_338 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_338, 0, x_336); lean_ctor_set(x_338, 1, x_337); @@ -18455,7 +18454,7 @@ x_458 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Te x_459 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_459, 0, x_458); lean_ctor_set(x_459, 1, x_457); -x_460 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_460 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_461 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_461, 0, x_459); lean_ctor_set(x_461, 1, x_460); @@ -19107,7 +19106,7 @@ x_586 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Te x_587 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_587, 0, x_586); lean_ctor_set(x_587, 1, x_585); -x_588 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_588 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_589 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_589, 0, x_587); lean_ctor_set(x_589, 1, x_588); @@ -19907,7 +19906,7 @@ x_743 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_0__Lean_Elab_Te x_744 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_744, 0, x_743); lean_ctor_set(x_744, 1, x_742); -x_745 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_745 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_746 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_746, 0, x_744); lean_ctor_set(x_746, 1, x_745); @@ -22487,218 +22486,7 @@ return x_28; } } } -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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) { -_start: -{ -uint8_t x_8; -x_8 = l_Array_isEmpty___rarg(x_1); -if (x_8 == 0) -{ -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; uint8_t x_20; uint8_t x_21; lean_object* x_22; -x_9 = lean_st_ref_get(x_4, x_7); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_st_ref_get(x_6, x_11); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 2); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_3, 1); -lean_inc(x_17); -x_18 = l_Std_HashMap_inhabited___closed__1; -x_19 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_16); -lean_ctor_set(x_19, 2, x_18); -x_20 = 1; -x_21 = 0; -x_22 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_21, x_21, x_19); -if (lean_obj_tag(x_22) == 0) -{ -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_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -x_27 = lean_st_ref_take(x_6, x_15); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = !lean_is_exclusive(x_28); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_31 = lean_ctor_get(x_28, 2); -lean_dec(x_31); -lean_ctor_set(x_28, 2, x_26); -x_32 = lean_st_ref_set(x_6, x_28, x_29); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = lean_ctor_get(x_24, 0); -lean_inc(x_34); -lean_dec(x_24); -x_35 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_34, x_3, x_4, x_5, x_6, x_33); -lean_dec(x_3); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -lean_ctor_set(x_35, 0, x_25); -return x_35; -} -else -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_25); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -else -{ -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; lean_object* x_49; lean_object* x_50; -x_40 = lean_ctor_get(x_28, 0); -x_41 = lean_ctor_get(x_28, 1); -x_42 = lean_ctor_get(x_28, 3); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_28); -x_43 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set(x_43, 2, x_26); -lean_ctor_set(x_43, 3, x_42); -x_44 = lean_st_ref_set(x_6, x_43, x_29); -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -x_46 = lean_ctor_get(x_24, 0); -lean_inc(x_46); -lean_dec(x_24); -x_47 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_46, x_3, x_4, x_5, x_6, x_45); -lean_dec(x_3); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_49 = x_47; -} else { - lean_dec_ref(x_47); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_25); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -else -{ -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; uint8_t x_59; -x_51 = lean_ctor_get(x_22, 1); -lean_inc(x_51); -lean_dec(x_22); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_52, x_3, x_4, x_5, x_6, x_15); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_ctor_get(x_51, 1); -lean_inc(x_55); -lean_dec(x_51); -x_56 = lean_st_ref_take(x_6, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_60 = lean_ctor_get(x_57, 2); -lean_dec(x_60); -lean_ctor_set(x_57, 2, x_55); -x_61 = lean_st_ref_set(x_6, x_57, x_58); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_63 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_64 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_63, x_3, x_4, x_5, x_6, x_62); -lean_dec(x_3); -return x_64; -} -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; -x_65 = lean_ctor_get(x_57, 0); -x_66 = lean_ctor_get(x_57, 1); -x_67 = lean_ctor_get(x_57, 3); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_57); -x_68 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -lean_ctor_set(x_68, 2, x_55); -lean_ctor_set(x_68, 3, x_67); -x_69 = lean_st_ref_set(x_6, x_68, x_58); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_72 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_71, x_3, x_4, x_5, x_6, x_70); -lean_dec(x_3); -return x_72; -} -} -} -else -{ -lean_object* x_73; -lean_dec(x_3); -lean_dec(x_1); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_2); -lean_ctor_set(x_73, 1, x_7); -return x_73; -} -} -} -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__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_object* x_7) { +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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) { _start: { uint8_t x_8; @@ -22925,7 +22713,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_2, x_10, x_4, x_5, x_6, x_7, x_11); +x_12 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_2, x_10, x_4, x_5, x_6, x_7, x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -22977,7 +22765,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(x_2, x_10, x_4, x_5, x_6, x_7, x_11); +x_12 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_2, x_10, x_4, x_5, x_6, x_7, x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -23598,22 +23386,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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) { _start: { lean_object* x_8; -x_8 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_8; -} -} -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -26506,7 +26283,7 @@ lean_inc(x_20); x_42 = l_Lean_Elab_Term_StructInst_formatStruct(x_20); x_43 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_43, 0, x_42); -x_44 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_44 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_45 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_45, 0, x_44); lean_ctor_set(x_45, 1, x_43); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index fca20c85f3..5d51bbca43 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -44,6 +44,7 @@ lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__3; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__156; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__127; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___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* l_Lean_Elab_Command_elabMacroRulesAux___closed__22; @@ -780,7 +781,6 @@ extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; lean_object* l_Lean_Elab_Term_expandOptPrecedence_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1; lean_object* l_Lean_Elab_Command_mkFreshKind(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_registerHygienicIntro___closed__2; lean_object* l_Lean_Elab_Command_mkKind(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2___rarg(lean_object*, lean_object*); @@ -20305,7 +20305,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandElab___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_registerHygienicIntro___closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -20314,7 +20314,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandElab___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_registerHygienicIntro___closed__2; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Elab_Command_expandElab___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 513c246478..b9a82070ba 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -83,7 +83,6 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__8; lean_object* l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1___closed__1; lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars_match__1(lean_object*); @@ -178,6 +177,7 @@ uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethic lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_runTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forInAux___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___closed__3; lean_object* l_Lean_indentExpr(lean_object*); @@ -766,7 +766,7 @@ x_17 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__2; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_19 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -802,7 +802,7 @@ x_28 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__2; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_30 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -3121,7 +3121,7 @@ x_64 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_0__Lean_ x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); -x_66 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_66 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_67 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); @@ -3934,7 +3934,7 @@ x_22 = l_Lean_indentExpr(x_1); x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_24 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index c772fc10c4..b2b34ed487 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -18,9 +18,9 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalSeq1___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___regBuiltin_Lean_Elab_Tactic_evalDone___closed__3; +extern lean_object* l_Lean_Meta_revert___lambda__2___closed__1; lean_object* l_Lean_Elab_Tactic_getMainTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3___rarg(lean_object*); extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__7; @@ -31,6 +31,7 @@ lean_object* l_Lean_Elab_Tactic_getMainTag(lean_object*, lean_object*, lean_obje lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1___rarg___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_Elab_Tactic_mkTacticAttribute___closed__5; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; lean_object* l_Lean_Elab_Tactic_withMainMVarContext___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_Elab_Tactic_evalIntro_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__3; @@ -139,7 +140,6 @@ lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain_match__1___rarg(lean_object*, le lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object*); extern lean_object* l_Lean_Name_inhabited; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1(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*); -extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__1; extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_Elab_Tactic_evalDone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -155,6 +155,7 @@ lean_object* l_Lean_Elab_Tactic_hasOrElse(lean_object*); lean_object* l_Lean_Elab_Tactic_orelse(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTraceState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_done___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -170,7 +171,6 @@ lean_object* l_Lean_Elab_Tactic_evalRevert_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_evalClear_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic_match__2(lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_substCore___lambda__5___closed__1; lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___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_Elab_Tactic_liftMetaTacticAux___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_nat_add(lean_object*, lean_object*); @@ -193,6 +193,7 @@ lean_object* l_Lean_Elab_Tactic_focusAux_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_try_x3f___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_Meta_instantiateMVars___at_Lean_Elab_Tactic_evalIntros___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_findM_x3f___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f___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*); +extern lean_object* l_Lean_Meta_clear___lambda__3___closed__2; lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___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_Elab_Tactic_TacticM_run_x27(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__1; @@ -239,7 +240,6 @@ lean_object* l_List_forInAux___main___at_Lean_Elab_Tactic_tagUntaggedGoals___spe lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq(lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_TacticM_run(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*); @@ -312,7 +312,6 @@ lean_object* l_Lean_Elab_Tactic_evalSeq1(lean_object*, lean_object*, lean_object lean_object* l_Lean_Elab_Tactic_getMainModule___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; lean_object* l_Lean_Elab_Tactic_evalTacticSeq___boxed(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_clear___lambda__1___closed__4; 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*); extern lean_object* l_Lean_Elab_Term_SavedState_inhabited___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst(lean_object*); @@ -333,6 +332,7 @@ extern lean_object* l_Lean_mkSimpleThunk___closed__1; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_introStep___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_Array_qsortAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__2; lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -352,6 +352,7 @@ lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse___closed__1; lean_object* l_Lean_Elab_Tactic_evalTactic___closed__1; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_substCore___lambda__13___closed__1; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -388,7 +389,6 @@ lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals_match__1(lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Tactic_ensureHasNoMVars___spec__1___boxed(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_revert___lambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_evalIntros___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1___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_Elab_Tactic_evalIntros___closed__2; @@ -551,7 +551,6 @@ lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1___boxed(lean_object*, lean extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__2; lean_object* l_Lean_Elab_Tactic_withMacroExpansion(lean_object*); lean_object* l_Lean_Elab_Tactic_getMainTag_match__1___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_registerHygienicIntro___closed__2; lean_object* l_Lean_Elab_Tactic_evalIntro_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); @@ -560,13 +559,13 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse(lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop(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___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__3; lean_object* lean_local_ctx_find(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__3; lean_object* l_Lean_Elab_Tactic_focus___rarg___closed__1; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3(lean_object*); lean_object* l_Lean_Meta_setMCtx___at_Lean_Elab_Tactic_BacktrackableState_restore___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* lean_usize_to_nat(size_t); 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_object* l_Lean_Elab_Tactic_getFVarId___closed__1; lean_object* l_Lean_Elab_Tactic_getCurrMacroScope(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_getFVarIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -574,7 +573,6 @@ lean_object* l_Lean_Elab_Tactic_getMainModule(lean_object*, lean_object*, lean_o lean_object* l_List_findM_x3f___main___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f___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* l_Lean_Elab_Tactic_evalIntros_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Tactic_getMainModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -716,7 +714,7 @@ x_10 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__2; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_12 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -1700,7 +1698,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_mkMacroAttributeUnsafe___closed__2; -x_2 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1746,7 +1744,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_registerHygienicIntro___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1756,7 +1754,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1770,7 +1768,7 @@ x_3 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__5; x_4 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; x_5 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; x_6 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__7; -x_7 = l_Lean_Meta_registerHygienicIntro___closed__2; +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; x_8 = l_Lean_Elab_mkElabAttribute___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_1); return x_8; } @@ -2000,7 +1998,7 @@ x_15 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_lo x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_17 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -2563,15 +2561,6 @@ x_13 = l_Lean_Elab_Tactic_expandTacticMacroFns_loop(x_1, x_2, x_4, x_5, x_6, x_7 return x_13; } } -static lean_object* _init_l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop(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: { @@ -2582,7 +2571,7 @@ lean_inc(x_1); x_12 = l_Lean_Syntax_getKind(x_1); x_13 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1; +x_14 = l_Lean_Meta_throwTacticEx___rarg___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); @@ -5752,7 +5741,7 @@ x_24 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_26 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -5785,7 +5774,7 @@ x_34 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_36 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -11015,15 +11004,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getFVarId_match__1___rarg), return x_2; } } -static lean_object* _init_l_Lean_Elab_Tactic_getFVarId___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_clear___lambda__1___closed__4; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} lean_object* l_Lean_Elab_Tactic_getFVarId(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: { @@ -11053,7 +11033,7 @@ x_18 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); x_19 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_19, 0, x_18); -x_20 = l_Lean_Elab_Tactic_getFVarId___closed__1; +x_20 = l_Lean_Meta_clear___lambda__3___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); @@ -11140,7 +11120,7 @@ x_43 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); x_44 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_Elab_Tactic_getFVarId___closed__1; +x_45 = l_Lean_Meta_clear___lambda__3___closed__2; x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -11351,7 +11331,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l_Lean_Meta_revert___lambda__1___closed__1; +x_2 = l_Lean_Meta_revert___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -14670,7 +14650,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l_Lean_Meta_substCore___lambda__5___closed__1; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -15797,7 +15777,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -x_2 = l_Lean_Meta_registerHygienicIntro___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -16107,8 +16087,6 @@ l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___cl lean_mark_persistent(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___closed__1); l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___closed__2 = _init_l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___closed__2); -l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1 = _init_l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_expandTacticMacroFns_loop___closed__1); l_Lean_Elab_Tactic_evalTactic___closed__1 = _init_l_Lean_Elab_Tactic_evalTactic___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalTactic___closed__1); l_Lean_Elab_Tactic_evalTactic___closed__2 = _init_l_Lean_Elab_Tactic_evalTactic___closed__2(); @@ -16274,8 +16252,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalIntros(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_getFVarId___closed__1 = _init_l_Lean_Elab_Tactic_getFVarId___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_getFVarId___closed__1); l_Lean_Elab_Tactic_evalRevert___closed__1 = _init_l_Lean_Elab_Tactic_evalRevert___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalRevert___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Binders.c b/stage0/stdlib/Lean/Elab/Tactic/Binders.c index e9647bb22f..13d11e23f3 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Binders.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Binders.c @@ -52,6 +52,7 @@ lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBi lean_object* l___regBuiltin_Lean_Elab_Tactic_expandHaveTactic___closed__1; lean_object* l_Lean_Elab_Tactic_expandSufficesTactic___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__8; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; extern lean_object* l_Lean_Parser_Error_toString___closed__2; lean_object* l_Lean_Elab_Tactic_expandHaveTactic___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandShowTactic(lean_object*, lean_object*, lean_object*); @@ -86,7 +87,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_expandSufficesTactic(lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__2; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__4; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetBangTactic(lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__9; lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__6; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__2; @@ -113,7 +113,7 @@ x_8 = lean_ctor_get(x_4, 1); lean_inc(x_8); x_9 = lean_ctor_get_usize(x_4, 2); lean_dec(x_4); -x_10 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_10 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_11 = lean_string_dec_eq(x_8, x_10); lean_dec(x_8); if (x_11 == 0) @@ -276,7 +276,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); lean_dec(x_5); -x_9 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_9 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_10 = lean_string_dec_eq(x_8, x_9); lean_dec(x_8); if (x_10 == 0) diff --git a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index d4b721360e..fcfe43f0ff 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -80,6 +80,7 @@ extern lean_object* l_Lean_Meta_admit___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandAdmit___closed__1; lean_object* l_Lean_Elab_Tactic_expandAdmit___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1(lean_object*); +extern lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1; lean_object* l_Lean_Meta_getMVarsNoDelayedImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalApply___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*); @@ -136,7 +137,6 @@ lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___lambda__1___boxed(lean_objec lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore___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*); -extern lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine(lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___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_expandAdmit___rarg___closed__7; @@ -2091,7 +2091,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c index 79d7745821..ac691af125 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c @@ -20,43 +20,32 @@ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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*); -extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1; +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__3; lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkMVar(lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*); lean_object* lean_expr_lift_loose_bvars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(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* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName___boxed(lean_object*); -lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName___boxed(lean_object*); -lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2(lean_object*); -extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; 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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,30 +53,24 @@ lean_object* l_Lean_Elab_Tactic_evalGeneralize___boxed(lean_object*, lean_object lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralize(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_Elab_Tactic_tacticElabAttribute; -lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1(lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, 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_assertExt___lambda__1___closed__1; -extern lean_object* l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; -lean_object* l_Lean_Meta_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___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*); extern lean_object* l_Lean_Meta_generalize___closed__1; lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___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*); -lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, 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*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__2(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__2; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); @@ -98,6 +81,7 @@ lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxH lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2(lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(lean_object* x_1) { _start: { @@ -176,193 +160,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean return x_2; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___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; uint8_t x_11; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 3); -lean_inc(x_10); -x_11 = lean_nat_dec_eq(x_8, x_9); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_4); -if (x_12 == 0) -{ -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; -x_13 = lean_ctor_get(x_4, 3); -lean_dec(x_13); -x_14 = lean_ctor_get(x_4, 2); -lean_dec(x_14); -x_15 = lean_ctor_get(x_4, 1); -lean_dec(x_15); -x_16 = lean_ctor_get(x_4, 0); -lean_dec(x_16); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_8, x_17); -lean_dec(x_8); -lean_ctor_set(x_4, 1, x_18); -x_19 = l_Lean_Meta_inferTypeRef; -x_20 = lean_st_ref_get(x_19, x_6); -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); -x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); -return x_23; -} -else -{ -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_dec(x_4); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_8, x_24); -lean_dec(x_8); -x_26 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_26, 2, x_9); -lean_ctor_set(x_26, 3, x_10); -x_27 = l_Lean_Meta_inferTypeRef; -x_28 = lean_st_ref_get(x_27, x_6); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -return x_33; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_33); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} -lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___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; -x_7 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___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) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_st_ref_take(x_4, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_9, 0); -x_13 = l_Lean_MetavarContext_assignExpr(x_12, x_1, x_2); -lean_ctor_set(x_9, 0, x_13); -x_14 = lean_st_ref_set(x_4, x_9, x_10); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -x_17 = lean_box(0); -lean_ctor_set(x_14, 0, x_17); -return x_14; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_14, 1); -lean_inc(x_18); -lean_dec(x_14); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -else -{ -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; -x_21 = lean_ctor_get(x_9, 0); -x_22 = lean_ctor_get(x_9, 1); -x_23 = lean_ctor_get(x_9, 2); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_9); -x_24 = l_Lean_MetavarContext_assignExpr(x_21, x_1, x_2); -x_25 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_22); -lean_ctor_set(x_25, 2, x_23); -x_26 = lean_st_ref_set(x_4, x_25, x_10); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_28 = x_26; -} else { - lean_dec_ref(x_26); - x_28 = lean_box(0); -} -x_29 = lean_box(0); -if (lean_is_scalar(x_28)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_28; -} -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; -} -} -} lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(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: { @@ -382,7 +179,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_12 = l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1(x_2, x_4, x_5, x_6, x_7, x_11); +x_12 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_2, x_4, x_5, x_6, x_7, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -422,7 +219,7 @@ lean_inc(x_2); x_25 = l_Lean_mkAppB(x_24, x_13, x_2); lean_inc(x_19); x_26 = l_Lean_mkAppB(x_19, x_2, x_25); -x_27 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__3(x_1, x_26, x_4, x_5, x_6, x_7, x_20); +x_27 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_26, x_4, x_5, x_6, x_7, x_20); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); @@ -585,18 +382,6 @@ return x_57; } } } -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_8; -} -} lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -654,97 +439,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean return x_2; } } -lean_object* l_Lean_Meta_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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; uint8_t x_8; -x_7 = lean_st_ref_get(x_3, x_6); -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_1); -x_12 = lean_metavar_ctx_find_decl(x_11, x_1); -if (lean_obj_tag(x_12) == 0) -{ -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_free_object(x_7); -x_13 = l_Lean_mkMVar(x_1); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_18, x_2, x_3, x_4, x_5, x_10); -return x_19; -} -else -{ -lean_object* x_20; -lean_dec(x_1); -x_20 = lean_ctor_get(x_12, 0); -lean_inc(x_20); -lean_dec(x_12); -lean_ctor_set(x_7, 0, x_20); -return x_7; -} -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_7); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_1); -x_24 = lean_metavar_ctx_find_decl(x_23, x_1); -if (lean_obj_tag(x_24) == 0) -{ -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; -x_25 = l_Lean_mkMVar(x_1); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_throwUnknownConstant___rarg___closed__5; -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_Meta_mkWHNFRef___spec__1___rarg(x_30, x_2, x_3, x_4, x_5, x_22); -return x_31; -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_1); -x_32 = lean_ctor_get(x_24, 0); -lean_inc(x_32); -lean_dec(x_24); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_22); -return x_33; -} -} -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___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* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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) { _start: { lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -782,11 +477,11 @@ return x_15; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2(lean_object* x_1) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg___boxed), 6, 0); return x_2; } } @@ -839,7 +534,7 @@ x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); lean_inc(x_30); -x_32 = l_Lean_Meta_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(x_30, x_8, x_9, x_10, x_11, x_31); +x_32 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(x_30, x_8, x_9, x_10, x_11, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; @@ -879,7 +574,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_2); -x_42 = l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1(x_2, x_8, x_9, x_10, x_11, x_40); +x_42 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_2, x_8, x_9, x_10, x_11, x_40); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -1037,7 +732,7 @@ x_73 = lean_ctor_get(x_32, 1); lean_inc(x_73); lean_dec(x_32); x_74 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__3; -x_75 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg(x_74, x_8, x_9, x_10, x_11, x_73); +x_75 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg(x_74, x_8, x_9, x_10, x_11, x_73); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1239,23 +934,11 @@ return x_26; } } } -lean_object* l_Lean_Meta_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg___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_Meta_getMVarDecl___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg___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_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -1283,7 +966,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_13 = l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1(x_1, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_1, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index b5f1d58d72..e1dfce49b8 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -18,6 +18,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generali lean_object* l_Lean_Elab_Tactic_evalCases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop___closed__2; +extern lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1; size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___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_erase_macro_scopes(lean_object*); @@ -130,7 +131,6 @@ lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_getRecFro lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_getRecFromUsing___spec__4(lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___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_Lean_Name_append___main(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor___lambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2; @@ -177,6 +177,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCas lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor(lean_object*, 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_throwUnknownConstant___rarg___closed__5; 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_Meta_inferType___at_Lean_Meta_generalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_expr_dbg_to_string(lean_object*); @@ -191,7 +192,6 @@ lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult(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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; -extern lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Meta_getMVarsNoDelayedImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,15 +208,11 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkCasesResult_loop___closed__3; lean_object* l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Tactic_getInductiveValFromMajor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_getRecFromUsing___spec__2___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___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__4(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__1___rarg(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; lean_object* l_Lean_Elab_Tactic_elabTermEnsuringType(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_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__6___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__6; lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -241,13 +237,14 @@ lean_object* l_Lean_Syntax_getSepArgs(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__5(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getMajor___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__2___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCases___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_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_getRecFromUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getMajor(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(lean_object*); @@ -256,6 +253,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecIn lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___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*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__3(lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveBacktrackableState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInduction(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_setGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -267,7 +265,6 @@ lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lea lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabMajor___lambda__1___closed__2; -extern lean_object* l_Lean_Meta_whnfRef; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__4(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___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 l_Lean_Name_isSuffixOf___main(lean_object*, lean_object*); @@ -321,6 +318,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFr uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___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*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_getRecFromUsing___spec__4___rarg___boxed(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_throwTacticEx___rarg___closed__6; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo(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_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__3(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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*); @@ -1050,7 +1048,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -x_2 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1332,7 +1330,7 @@ else lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_17); lean_dec(x_16); -x_22 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_22 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_23 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__2___closed__3; x_24 = lean_box(0); x_25 = l_Lean_Meta_throwTacticEx___rarg(x_22, x_1, x_23, x_24, x_7, x_8, x_9, x_10, x_15); @@ -2045,7 +2043,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean lean_inc(x_18); x_53 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_53, 0, x_18); -x_54 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_54 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -2230,106 +2228,6 @@ x_1 = l_Array_empty___closed__1; return x_1; } } -lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Tactic_getInductiveValFromMajor___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; uint8_t x_11; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 3); -lean_inc(x_10); -x_11 = lean_nat_dec_eq(x_8, x_9); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_4); -if (x_12 == 0) -{ -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; -x_13 = lean_ctor_get(x_4, 3); -lean_dec(x_13); -x_14 = lean_ctor_get(x_4, 2); -lean_dec(x_14); -x_15 = lean_ctor_get(x_4, 1); -lean_dec(x_15); -x_16 = lean_ctor_get(x_4, 0); -lean_dec(x_16); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_8, x_17); -lean_dec(x_8); -lean_ctor_set(x_4, 1, x_18); -x_19 = l_Lean_Meta_whnfRef; -x_20 = lean_st_ref_get(x_19, x_6); -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); -x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); -return x_23; -} -else -{ -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_dec(x_4); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_8, x_24); -lean_dec(x_8); -x_26 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_26, 2, x_9); -lean_ctor_set(x_26, 3, x_10); -x_27 = l_Lean_Meta_whnfRef; -x_28 = lean_st_ref_get(x_27, x_6); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -return x_33; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_33); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} static lean_object* _init_l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1() { _start: { @@ -2355,7 +2253,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_8 = l_Lean_Meta_whnf___at_Lean_Elab_Tactic_getInductiveValFromMajor___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -2391,11 +2289,11 @@ x_20 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_22 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_24 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_25 = lean_box(0); x_26 = l_Lean_Meta_throwTacticEx___rarg(x_24, x_1, x_23, x_25, x_3, x_4, x_5, x_6, x_16); lean_dec(x_6); @@ -2435,11 +2333,11 @@ x_30 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_32 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -x_34 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_34 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_35 = lean_box(0); x_36 = l_Lean_Meta_throwTacticEx___rarg(x_34, x_1, x_33, x_35, x_3, x_4, x_5, x_6, x_16); lean_dec(x_6); @@ -2470,11 +2368,11 @@ x_42 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_44 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_45 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_46 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_47 = lean_box(0); x_48 = l_Lean_Meta_throwTacticEx___rarg(x_46, x_1, x_45, x_47, x_3, x_4, x_5, x_6, x_38); lean_dec(x_6); @@ -2515,11 +2413,11 @@ x_53 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_55 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_57 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_58 = lean_box(0); x_59 = l_Lean_Meta_throwTacticEx___rarg(x_57, x_1, x_56, x_58, x_3, x_4, x_5, x_6, x_38); lean_dec(x_6); @@ -2540,11 +2438,11 @@ x_61 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; x_62 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_63 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_64 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); -x_65 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_65 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; x_66 = lean_box(0); x_67 = l_Lean_Meta_throwTacticEx___rarg(x_65, x_1, x_64, x_66, x_3, x_4, x_5, x_6, x_10); lean_dec(x_6); @@ -2599,7 +2497,7 @@ lean_dec(x_11); x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__1), 6, 1); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___at_Lean_Meta_generalize___spec__3), 6, 1); lean_closure_set(x_15, 0, x_1); lean_inc(x_14); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1), 7, 1); @@ -8510,7 +8408,7 @@ lean_dec(x_29); x_32 = lean_ctor_get(x_18, 0); lean_inc(x_32); lean_dec(x_18); -x_33 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_33 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; lean_inc(x_31); x_34 = l_Lean_Elab_Tactic_tagUntaggedGoals(x_32, x_33, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); lean_dec(x_11); @@ -8668,7 +8566,7 @@ lean_dec(x_65); x_68 = lean_ctor_get(x_54, 0); lean_inc(x_68); lean_dec(x_54); -x_69 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_69 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; lean_inc(x_67); x_70 = l_Lean_Elab_Tactic_tagUntaggedGoals(x_68, x_69, x_67, x_4, x_5, x_6, x_7, x_8, x_9, x_52, x_11, x_66); lean_dec(x_11); @@ -9666,7 +9564,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -10369,7 +10267,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Injection.c b/stage0/stdlib/Lean/Elab/Tactic/Injection.c index a46d7476ee..f4761cdf5a 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Injection.c @@ -25,7 +25,6 @@ lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_obj lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___closed__1; lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection(lean_object*); -extern lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInjection_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -51,6 +50,7 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object*); lean_object* l_Lean_Meta_injection(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds___spec__1(lean_object*); extern lean_object* l_Lean_Meta_injectionCore___closed__2; lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___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*); @@ -208,7 +208,7 @@ x_11 = l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_13 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 2c25c9de91..333fbe6628 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -315,7 +315,6 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1( lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_SavedState_inhabited___closed__2; -lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__9; lean_object* l_Lean_Elab_Term_monadLog___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__1; lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkFreshLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1011,6 +1010,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0_ lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(lean_object*, lean_object*, 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_throwTacticEx___rarg___closed__6; lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_expandCDot_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___spec__2(lean_object*, lean_object*); @@ -9415,30 +9415,21 @@ return x_2; static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_String_splitAux___main___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__2() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("\nbut is expected to have type"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__3() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__2; +x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__4() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__3() { _start: { lean_object* x_1; @@ -9446,16 +9437,16 @@ x_1 = lean_mk_string("type mismatch"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__4; +x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__6() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__5() { _start: { lean_object* x_1; @@ -9463,16 +9454,16 @@ x_1 = lean_mk_string("\nhas type"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__7() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__6; +x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__7() { _start: { lean_object* x_1; @@ -9480,11 +9471,11 @@ x_1 = lean_mk_string(" has type"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__8; +x_1 = l_Lean_Elab_Term_mkTypeMismatchError___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -9499,15 +9490,15 @@ if (lean_obj_tag(x_1) == 0) { 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; x_7 = l_Lean_indentExpr(x_2); -x_8 = l_Lean_Elab_Term_mkTypeMismatchError___closed__5; +x_8 = l_Lean_Elab_Term_mkTypeMismatchError___closed__4; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_Elab_Term_mkTypeMismatchError___closed__7; +x_10 = l_Lean_Elab_Term_mkTypeMismatchError___closed__6; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_12 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); @@ -9517,7 +9508,7 @@ lean_ctor_set(x_14, 1, x_12); x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_5); -x_16 = l_Lean_Elab_Term_mkTypeMismatchError___closed__3; +x_16 = l_Lean_Elab_Term_mkTypeMismatchError___closed__2; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -9535,11 +9526,11 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean lean_dec(x_2); x_20 = lean_ctor_get(x_1, 0); x_21 = l_Lean_stringToMessageData(x_20); -x_22 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_22 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__9; +x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__8; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -9552,7 +9543,7 @@ lean_ctor_set(x_27, 1, x_22); x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_5); -x_29 = l_Lean_Elab_Term_mkTypeMismatchError___closed__3; +x_29 = l_Lean_Elab_Term_mkTypeMismatchError___closed__2; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -11239,7 +11230,7 @@ x_20 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_22 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -11326,7 +11317,7 @@ x_49 = l_Lean_indentExpr(x_38); x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_51 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_52 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -14625,7 +14616,7 @@ x_22 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_24 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -20309,7 +20300,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean lean_inc(x_1); x_28 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_28, 0, x_1); -x_29 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_29 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -20512,7 +20503,7 @@ x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___closed x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_20 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -23804,7 +23795,7 @@ lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; x_124 = l_Lean_Option_format___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1); x_125 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_125, 0, x_124); -x_126 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_126 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_127 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_127, 0, x_126); lean_ctor_set(x_127, 1, x_125); @@ -24239,7 +24230,7 @@ lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; x_231 = l_Lean_Option_format___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1); x_232 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_232, 0, x_231); -x_233 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_233 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_234 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_234, 0, x_233); lean_ctor_set(x_234, 1, x_232); @@ -24781,7 +24772,7 @@ lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; x_360 = l_Lean_Option_format___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1); x_361 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_361, 0, x_360); -x_362 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_362 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_363 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_363, 0, x_362); lean_ctor_set(x_363, 1, x_361); @@ -25369,7 +25360,7 @@ lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; x_500 = l_Lean_Option_format___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1); x_501 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_501, 0, x_500); -x_502 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_502 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_503 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_503, 0, x_502); lean_ctor_set(x_503, 1, x_501); @@ -26250,7 +26241,7 @@ x_40 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__4; x_41 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); -x_42 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_42 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); @@ -27832,7 +27823,7 @@ x_80 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; x_81 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); -x_82 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_82 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_83 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_83, 0, x_81); lean_ctor_set(x_83, 1, x_82); @@ -27877,7 +27868,7 @@ x_92 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; x_93 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); -x_94 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_94 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_95 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_95, 0, x_93); lean_ctor_set(x_95, 1, x_94); @@ -28106,7 +28097,7 @@ x_141 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; x_142 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_140); -x_143 = l_Lean_Elab_Term_mkTypeMismatchError___closed__1; +x_143 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_144 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_144, 0, x_142); lean_ctor_set(x_144, 1, x_143); @@ -34666,8 +34657,6 @@ l_Lean_Elab_Term_mkTypeMismatchError___closed__7 = _init_l_Lean_Elab_Term_mkType lean_mark_persistent(l_Lean_Elab_Term_mkTypeMismatchError___closed__7); l_Lean_Elab_Term_mkTypeMismatchError___closed__8 = _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__8(); lean_mark_persistent(l_Lean_Elab_Term_mkTypeMismatchError___closed__8); -l_Lean_Elab_Term_mkTypeMismatchError___closed__9 = _init_l_Lean_Elab_Term_mkTypeMismatchError___closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_mkTypeMismatchError___closed__9); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c index 46034b4c62..d31e62451e 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c @@ -18,13 +18,14 @@ lean_object* l_Lean_Meta_caseArraySizes___closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_mkAppM___at_Lean_Meta_mkDecideProof___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseArraySizes___closed__3; -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4___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___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___closed__3; extern lean_object* l_Array_empty___closed__1; extern lean_object* l_Lean_Array_hasQuote___rarg___closed__2; lean_object* l___private_Lean_Meta_Match_CaseArraySizes_3__introArrayLit(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_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkArrayLit___at___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4___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* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__3; lean_object* lean_array_push(lean_object*, lean_object*); @@ -33,9 +34,11 @@ lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___ma extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_caseArraySizes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkDecideProof___at___private_Lean_Meta_Match_CaseArraySizes_1__mkArrayGetLit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__3___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* l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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*); extern lean_object* l_Lean_Meta_mkDecideProof___rarg___lambda__1___closed__2; lean_object* l___private_Lean_Meta_Match_CaseArraySizes_1__mkArrayGetLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -58,7 +61,6 @@ lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType___closed__2; lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___closed__5; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___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*); extern lean_object* l_Lean_Meta_mkLt___rarg___closed__4; lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,10 +74,10 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_141____c extern lean_object* l_Lean_boolToExpr___lambda__1___closed__6; lean_object* l_Lean_Meta_CaseArraySizesSubgoal_inhabited; lean_object* l___private_Lean_Meta_Match_CaseArraySizes_1__mkArrayGetLit___closed__1; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___closed__1; lean_object* l_Lean_Meta_assertExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__24; lean_object* l___private_Lean_Meta_Match_CaseArraySizes_2__introArrayLitAux___main___closed__4; lean_object* l_Lean_mkApp(lean_object*, lean_object*); @@ -92,7 +94,6 @@ lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__ge lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Meta_whnfD___at___private_Lean_Meta_InferType_4__getLevelImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1451,7 +1452,15 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__3___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, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_caseArraySizes___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) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4___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, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; @@ -1713,7 +1722,7 @@ return x_65; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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_object* x_12) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__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_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; uint8_t x_14; @@ -1879,12 +1888,12 @@ lean_inc(x_60); lean_dec(x_58); lean_inc(x_24); x_61 = l_Lean_mkFVar(x_24); -x_62 = lean_alloc_closure((void*)(l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__5), 6, 1); +x_62 = lean_alloc_closure((void*)(l_Lean_Meta_mkEqSymm___at_Lean_Meta_caseArraySizes___spec__3), 6, 1); lean_closure_set(x_62, 0, x_61); lean_inc(x_2); lean_inc(x_3); lean_inc(x_59); -x_63 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__3___lambda__1), 12, 6); +x_63 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4___lambda__1), 12, 6); lean_closure_set(x_63, 0, x_59); lean_closure_set(x_63, 1, x_3); lean_closure_set(x_63, 2, x_49); @@ -1898,7 +1907,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_65 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_59, x_64, x_8, x_9, x_10, x_11, x_60); +x_65 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_59, x_64, x_8, x_9, x_10, x_11, x_60); if (lean_obj_tag(x_65) == 0) { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; @@ -2161,7 +2170,7 @@ x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec(x_41); x_44 = x_42; -x_45 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__3___boxed), 12, 7); +x_45 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4___boxed), 12, 7); lean_closure_set(x_45, 0, x_3); lean_closure_set(x_45, 1, x_4); lean_closure_set(x_45, 2, x_11); @@ -2373,11 +2382,11 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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_object* x_12) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___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); +x_13 = l_Array_umapMAux___main___at_Lean_Meta_caseArraySizes___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_1); return x_13; } diff --git a/stage0/stdlib/Lean/Meta/Match/CaseValues.c b/stage0/stdlib/Lean/Meta/Match/CaseValues.c index 59118ec3a7..2110114aca 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseValues.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseValues.c @@ -18,6 +18,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Match_CaseValue lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_appendTagSuffix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__1; lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__2; lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__3; lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,7 +28,6 @@ extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___closed__7; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__4___closed__2; -lean_object* l_List_toString___at_Lean_Meta_substCore___spec__1(lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__4; extern lean_object* l_Lean_Meta_mkAppM___rarg___closed__2; lean_object* l_Lean_Meta_FVarSubst_domain(lean_object*); @@ -36,7 +36,10 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_ lean_object* l___private_Lean_Meta_AppBuilder_20__mkFun___boxed(lean_object*, lean_object*, lean_object*, 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* lean_string_append(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___closed__3; +extern lean_object* l_String_splitAux___main___closed__1; +extern lean_object* l_List_repr___rarg___closed__3; lean_object* l_Lean_Meta_caseValue___closed__1; lean_object* l_Lean_Meta_CaseValueSubgoal_inhabited; extern lean_object* l___private_Lean_Meta_Basic_1__regTraceClasses___closed__2; @@ -44,6 +47,7 @@ lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___cl lean_object* l_Lean_Meta_caseValueAux___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__1___closed__2; +lean_object* l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(uint8_t, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__9; @@ -61,8 +65,10 @@ lean_object* l_Lean_Meta_caseValue___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__2; lean_object* l_Lean_Meta_CaseValueSubgoals_inhabited___closed__1; -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_Meta_caseValueAux___spec__2(lean_object*); +extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___closed__1; lean_object* l_Lean_Meta_caseValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValue___closed__6; @@ -73,6 +79,7 @@ lean_object* l_Lean_Meta_caseValue___closed__5; lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__6; lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___closed__4; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -97,13 +104,16 @@ lean_object* l_Lean_Meta_caseValueAux___lambda__4(lean_object*, lean_object*, le lean_object* l_Array_toList___rarg(lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__7; +lean_object* l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux___main___closed__6; lean_object* l_Lean_Meta_CaseValueSubgoals_inhabited; +extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l___private_Lean_Meta_Match_CaseValues_1__caseValuesAux(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_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_CaseValueSubgoal_inhabited___closed__1; lean_object* l_Lean_Meta_caseValueAux___lambda__1___closed__3; @@ -989,6 +999,86 @@ return x_212; } } } +lean_object* l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (x_1 == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = l_String_splitAux___main___closed__1; +return x_3; +} +else +{ +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; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_dec(x_2); +x_6 = l_System_FilePath_dirName___closed__1; +x_7 = l_Lean_Name_toStringWithSep___main(x_6, x_4); +x_8 = l_List_reprAux___main___rarg___closed__1; +x_9 = lean_string_append(x_8, x_7); +lean_dec(x_7); +x_10 = l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(x_1, x_5); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +return x_11; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_12; +x_12 = l_String_splitAux___main___closed__1; +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +lean_dec(x_2); +x_15 = l_System_FilePath_dirName___closed__1; +x_16 = l_Lean_Name_toStringWithSep___main(x_15, x_13); +x_17 = 0; +x_18 = l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(x_17, x_14); +x_19 = lean_string_append(x_16, x_18); +lean_dec(x_18); +return x_19; +} +} +} +} +lean_object* l_List_toString___at_Lean_Meta_caseValueAux___spec__2(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_List_repr___rarg___closed__1; +return x_2; +} +else +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = 1; +x_4 = l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(x_3, x_1); +x_5 = l_List_repr___rarg___closed__2; +x_6 = lean_string_append(x_5, x_4); +lean_dec(x_4); +x_7 = l_List_repr___rarg___closed__3; +x_8 = lean_string_append(x_6, x_7); +return x_8; +} +} +} static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__1___closed__1() { _start: { @@ -1022,7 +1112,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = l_Lean_Meta_FVarSubst_domain(x_1); -x_4 = l_List_toString___at_Lean_Meta_substCore___spec__1(x_3); +x_4 = l_List_toString___at_Lean_Meta_caseValueAux___spec__2(x_3); x_5 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_5, 0, x_4); x_6 = lean_alloc_ctor(0, 1, 0); @@ -1434,7 +1524,7 @@ x_73 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx__ lean_closure_set(x_73, 0, x_71); lean_closure_set(x_73, 1, x_72); lean_inc(x_68); -x_74 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_68, x_73, x_7, x_8, x_9, x_10, x_65); +x_74 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_68, x_73, x_7, x_8, x_9, x_10, x_65); if (lean_obj_tag(x_74) == 0) { uint8_t x_75; @@ -1530,7 +1620,7 @@ x_95 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx__ lean_closure_set(x_95, 0, x_93); lean_closure_set(x_95, 1, x_94); lean_inc(x_90); -x_96 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_90, x_95, x_7, x_8, x_9, x_10, x_65); +x_96 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_90, x_95, x_7, x_8, x_9, x_10, x_65); if (lean_obj_tag(x_96) == 0) { 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; @@ -1827,10 +1917,20 @@ lean_closure_set(x_12, 4, x_5); x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10); +x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10); return x_14; } } +lean_object* l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_List_toStringAux___main___at_Lean_Meta_caseValueAux___spec__3(x_3, x_2); +return x_4; +} +} lean_object* l_Lean_Meta_caseValueAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 0edc1208a5..cc95b3be93 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -28,6 +28,7 @@ lean_object* l_Lean_Meta_isMatcher___boxed(lean_object*, lean_object*, lean_obje lean_object* l___private_Lean_Meta_Match_Match_37__traceStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_14__isValueTransition___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1; lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_27__processConstructor___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__5(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_8__hasValPattern___boxed(lean_object*); @@ -90,6 +91,7 @@ lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__1 lean_object* l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at___private_Lean_Meta_Match_Match_31__processValue___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_32__collectArraySizes(lean_object*); +lean_object* l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2; lean_object* l_List_map___main___at_Lean_Meta_Match_Alt_applyFVarSubst___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Unify_assign___lambda__3___closed__2; lean_object* l_List_map___main___at___private_Lean_Meta_Match_Match_31__processValue___spec__5___boxed(lean_object*, lean_object*); @@ -414,7 +416,6 @@ lean_object* l_Lean_Meta_isMatcher(lean_object*, lean_object*, lean_object*, lea lean_object* l___private_Lean_Meta_Match_Match_43__regTraceClasses(lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l_Lean_Meta_Match_Pattern_toMessageData___main___closed__4; -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Meta_FVarSubst_find_x3f___spec__1(lean_object*, lean_object*); @@ -550,6 +551,7 @@ lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_List_foldr___main___at___private_Lean_Meta_Match_Match_12__isVariableTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_39__throwNonSupported___closed__1; lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__4; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Extension_extension___elambda__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_38__traceState___closed__2; @@ -714,6 +716,7 @@ extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed_ lean_object* l___private_Lean_Meta_Match_Match_2__withAltsAux(lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__1___closed__3; lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_Match_mkMatcher___spec__9___boxed(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1; lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__1___closed__5; lean_object* l___private_Lean_Meta_Match_Match_1__checkNumPatterns___closed__2; @@ -751,7 +754,6 @@ lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_17__processSkipInaccessible(lean_object*); lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3; extern lean_object* l_Nat_Inhabited; lean_object* l_Lean_Meta_Match_Unify_assign___lambda__3___closed__3; lean_object* l___private_Lean_Meta_Match_Match_31__processValue___lambda__1___closed__2; @@ -4003,7 +4005,7 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_8, x_2, x_3, x_4, x_5, x_6, x_7); return x_9; } } @@ -8590,6 +8592,26 @@ return x_19; } } } +static lean_object* _init_l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___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) { _start: { @@ -8609,7 +8631,7 @@ x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); x_10 = l_Lean_indentExpr(x_1); -x_11 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3; +x_11 = l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2; x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); @@ -14636,7 +14658,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_38 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_20, x_37, x_6, x_7, x_8, x_9, x_10); +x_38 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_20, x_37, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -27887,6 +27909,10 @@ l___private_Lean_Meta_Match_Match_2__withAltsAux___main___rarg___closed__2 = _in lean_mark_persistent(l___private_Lean_Meta_Match_Match_2__withAltsAux___main___rarg___closed__2); l___private_Lean_Meta_Match_Match_2__withAltsAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_Match_Match_2__withAltsAux___main___rarg___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_2__withAltsAux___main___rarg___closed__3); +l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__1); +l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Match_Match_21__throwInductiveTypeExpected___rarg___closed__2); l_Lean_Meta_Match_Unify_assign___lambda__1___closed__1 = _init_l_Lean_Meta_Match_Unify_assign___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Match_Unify_assign___lambda__1___closed__1); l_Lean_Meta_Match_Unify_assign___lambda__1___closed__2 = _init_l_Lean_Meta_Match_Unify_assign___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Apply.c b/stage0/stdlib/Lean/Meta/Tactic/Apply.c index 27d030fbaa..8e6739c949 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Apply.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Apply.c @@ -15,101 +15,132 @@ extern "C" { #endif lean_object* l_Nat_forMAux___main___at_Lean_Meta_appendParentTag___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_Expr_mvarId_x21(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__3___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4; -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___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* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_apply_match__2___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_apply_match__1(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3; +uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__5(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError(lean_object*); +lean_object* l_Lean_Meta_apply___lambda__3(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_Apply_0__Lean_Meta_dependsOnOthers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5; +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_synthAppInstances___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_24__forallMetaTelescopeReducingAux___main(uint8_t, 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_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs_match__1(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_apply___lambda__1___boxed(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_Apply_0__Lean_Meta_getExpectedNumArgs_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4; +lean_object* l_Lean_Meta_apply___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___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__2(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Meta_postprocessAppMVars(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_Apply_3__throwApplyError___rarg___closed__7; +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_synthAppInstances___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError(lean_object*); +lean_object* l_Lean_Meta_apply___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_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendParentTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6; -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3; +lean_object* l_Lean_Meta_apply___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_array_fget(lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4(lean_object*, 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_isExprDefEq___rarg___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprMVarAssigned___at___private_Lean_Meta_SynthInstance_11__synthPendingImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___spec__1___boxed(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_Apply_5__reorderNonDependentFirst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__3(lean_object*, lean_object*); -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_apply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___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_instantiateMVars___at_Lean_Meta_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1; +lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2; +extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_apply___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_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_apply_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1; lean_object* l_Lean_Meta_getMVarsNoDelayedImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_importModules___closed__1; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_2__getExpectedNumArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_10__synthInstanceImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_apply___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_postprocessAppMVars___boxed(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_Apply_1__getExpectedNumArgsAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___spec__1___boxed(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_Apply_0__Lean_Meta_reorderNonDependentFirst_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(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_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_Lean_BinderInfo_inhabited; -lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___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* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Lean_Meta_synthAppInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isAnonymous(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1; +lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(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___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2; -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2; -lean_object* l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_synthInstance___at_Lean_Meta_synthAppInstances___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___at_Lean_Meta_appendParentTag___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8; +lean_object* l_Lean_Meta_apply_match__2(lean_object*); +lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_appendParentTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___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) { _start: { lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -127,15 +158,15 @@ lean_ctor_set(x_13, 1, x_7); return x_13; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___lambda__1___boxed), 7, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed), 7, 0); return x_1; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux(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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux(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: { uint8_t x_7; @@ -150,7 +181,7 @@ if (x_9 == 0) uint8_t x_10; lean_object* x_11; lean_object* x_12; x_10 = 2; lean_ctor_set_uint8(x_8, 5, x_10); -x_11 = l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1; +x_11 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1; x_12 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_1, x_11, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_12) == 0) { @@ -219,7 +250,7 @@ lean_ctor_set_uint8(x_29, 5, x_28); lean_ctor_set_uint8(x_29, 6, x_26); lean_ctor_set_uint8(x_29, 7, x_27); lean_ctor_set(x_2, 0, x_29); -x_30 = l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1; +x_30 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1; x_31 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_1, x_30, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_31) == 0) { @@ -312,7 +343,7 @@ x_53 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_41); lean_ctor_set(x_53, 2, x_42); -x_54 = l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1; +x_54 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1; x_55 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_1, x_54, x_53, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_55) == 0) { @@ -365,11 +396,11 @@ return x_63; } } } -lean_object* l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -379,11 +410,32 @@ lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_2__getExpectedNumArgs(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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs(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___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -439,7 +491,7 @@ return x_18; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1() { _start: { lean_object* x_1; @@ -447,17 +499,17 @@ x_1 = lean_mk_string("apply"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3() { _start: { lean_object* x_1; @@ -465,94 +517,72 @@ x_1 = lean_mk_string("failed to unify"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("with"); +x_1 = lean_mk_string("\nwith"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__7; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___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) { +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___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; 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; x_9 = l_Lean_indentExpr(x_2); -x_10 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5; +x_10 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); -x_12 = l_Lean_MessageData_ofList___closed__3; +x_12 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6; x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8; +x_14 = l_Lean_indentExpr(x_3); 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_indentExpr(x_3); +x_16 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2; +x_18 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2; x_19 = lean_box(0); x_20 = l_Lean_Meta_throwTacticEx___rarg(x_18, x_1, x_17, x_19, x_4, x_5, x_6, x_7, x_8); return x_20; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___boxed), 8, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___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___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg(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); @@ -560,7 +590,1061 @@ lean_dec(x_4); return x_9; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1() { +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___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; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +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; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_inferTypeRef; +x_20 = lean_st_ref_get(x_19, x_6); +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); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_inferTypeRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_Meta_synthInstance___at_Lean_Meta_synthAppInstances___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; +x_7 = l___private_Lean_Meta_SynthInstance_10__synthInstanceImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_synthAppInstances___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +else +{ +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; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +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_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +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_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; + lean_ctor_set_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; + lean_ctor_set_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_126) == 0) +{ +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; 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; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +lean_inc(x_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +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; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1() { _start: { lean_object* x_1; @@ -568,27 +1652,27 @@ x_1 = lean_mk_string("failed to assign synthesized instance"); return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1; +x_1 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2; +x_1 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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, lean_object* x_11) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -626,7 +1710,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_25); -x_26 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_25, x_7, x_8, x_9, x_10, x_11); +x_26 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_25, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -652,7 +1736,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_32 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_25, x_30, x_7, x_8, x_9, x_10, x_31); +x_32 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_synthAppInstances___spec__3(x_25, x_30, x_7, x_8, x_9, x_10, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; uint8_t x_34; @@ -667,7 +1751,7 @@ lean_dec(x_15); x_35 = lean_ctor_get(x_32, 1); lean_inc(x_35); lean_dec(x_32); -x_36 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3; +x_36 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3; x_37 = lean_box(0); x_38 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_36, x_37, x_7, x_8, x_9, x_10, x_35); lean_dec(x_10); @@ -821,16 +1905,16 @@ _start: lean_object* x_10; lean_object* x_11; x_10 = lean_array_get_size(x_3); lean_inc(x_10); -x_11 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1(x_1, x_2, x_3, x_4, x_10, x_10, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4(x_1, x_2, x_3, x_4, x_10, x_10, x_5, x_6, x_7, x_8, x_9); lean_dec(x_10); return x_11; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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, lean_object* x_11) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___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 = l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4(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_5); lean_dec(x_4); lean_dec(x_3); @@ -867,7 +1951,7 @@ x_18 = lean_array_get(x_17, x_1, x_16); x_19 = l_Lean_Expr_mvarId_x21(x_18); lean_dec(x_18); lean_inc(x_19); -x_20 = l_Lean_Meta_isExprMVarAssigned___at___private_Lean_Meta_SynthInstance_11__synthPendingImp___spec__1(x_19, x_6, x_7, x_8, x_9, x_10); +x_20 = l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(x_19, 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_unbox(x_21); @@ -1186,7 +2270,7 @@ lean_dec(x_3); return x_10; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -1242,7 +2326,7 @@ goto _start; else { lean_object* x_13; -x_13 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_8, x_3); +x_13 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_8, x_3); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -1294,7 +2378,7 @@ goto _start; else { lean_object* x_21; -x_21 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_16, x_3); +x_21 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_16, x_3); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -1346,7 +2430,7 @@ goto _start; else { lean_object* x_29; -x_29 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_24, x_3); +x_29 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_24, x_3); if (lean_obj_tag(x_29) == 0) { uint8_t x_30; @@ -1391,7 +2475,7 @@ goto block_42; else { lean_object* x_44; -x_44 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_32, x_3); +x_44 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_32, x_3); if (lean_obj_tag(x_44) == 0) { x_35 = x_44; @@ -1436,7 +2520,7 @@ return x_35; else { lean_object* x_39; -x_39 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_33, x_35); +x_39 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_33, x_35); if (lean_obj_tag(x_39) == 0) { uint8_t x_40; @@ -1510,7 +2594,7 @@ return x_3; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___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: { uint8_t x_11; @@ -1542,7 +2626,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_17 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_15, x_6, x_7, x_8, x_9, x_10); +x_17 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_15, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; @@ -1553,7 +2637,7 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_19 = lean_ctor_get(x_17, 0); x_20 = lean_ctor_get(x_17, 1); x_21 = lean_box(0); -x_22 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_19, x_21); +x_22 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_19, x_21); lean_dec(x_19); if (lean_obj_tag(x_22) == 0) { @@ -1590,7 +2674,7 @@ lean_inc(x_29); lean_inc(x_28); lean_dec(x_17); x_30 = lean_box(0); -x_31 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_28, x_30); +x_31 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_28, x_30); lean_dec(x_28); if (lean_obj_tag(x_31) == 0) { @@ -1661,32 +2745,32 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers(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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(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; x_8 = lean_array_get_size(x_2); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__2(x_1, x_2, x_2, x_8, x_9, x_3, x_4, x_5, x_6, x_7); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__2(x_1, x_2, x_2, x_8, x_9, x_3, x_4, x_5, x_6, x_7); lean_dec(x_8); return x_10; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___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) { _start: { lean_object* x_11; -x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -1694,17 +2778,59 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers___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: { lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); lean_dec(x_1); return x_8; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___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; uint8_t x_11; @@ -1742,7 +2868,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_20 = l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers(x_13, x_1, x_5, x_6, x_7, x_8, x_9); +x_20 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(x_13, x_1, x_5, x_6, x_7, x_8, x_9); lean_dec(x_13); if (lean_obj_tag(x_20) == 0) { @@ -1821,7 +2947,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_36 = l___private_Lean_Meta_Tactic_Apply_4__dependsOnOthers(x_13, x_1, x_5, x_6, x_7, x_8, x_9); +x_36 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(x_13, x_1, x_5, x_6, x_7, x_8, x_9); lean_dec(x_13); if (lean_obj_tag(x_36) == 0) { @@ -1897,13 +3023,13 @@ return x_50; } } } -lean_object* l___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst(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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst(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; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_importModules___closed__1; -x_9 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___spec__1(x_1, x_1, x_7, x_8, x_2, x_3, x_4, x_5, x_6); +x_9 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___spec__1(x_1, x_1, x_7, x_8, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_9) == 0) { uint8_t x_10; @@ -1973,26 +3099,183 @@ return x_28; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___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* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___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) { _start: { lean_object* x_10; -x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst___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* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst___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___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___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* l_Lean_Meta_apply_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_apply_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_apply_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_apply_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_apply_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_apply_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__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) { +_start: +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = 1; +x_10 = l_Array_empty___closed__1; +x_11 = lean_unsigned_to_nat(0u); +x_12 = l___private_Lean_Meta_Basic_24__forallMetaTelescopeReducingAux___main(x_9, x_2, x_3, x_10, x_10, x_11, x_1, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +} +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___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: +{ +uint8_t x_7; +x_7 = l_Lean_Expr_hasMVar(x_1); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_take(x_3, x_6); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +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_13 = lean_ctor_get(x_10, 0); +x_14 = l_Lean_MetavarContext_instantiateMVars(x_13, x_1); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_ctor_set(x_10, 0, x_16); +x_17 = lean_st_ref_set(x_3, x_10, x_11); +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_15); +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_15); +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; 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; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +x_24 = lean_ctor_get(x_10, 2); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_25 = l_Lean_MetavarContext_instantiateMVars(x_22, x_1); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_24); +x_29 = lean_st_ref_set(x_3, x_28, x_11); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_31 = x_29; +} else { + lean_dec_ref(x_29); + x_31 = lean_box(0); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +} +lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___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) { _start: { lean_object* x_9; uint8_t x_10; @@ -2016,7 +3299,7 @@ uint8_t x_13; lean_object* x_14; lean_object* x_29; lean_object* x_30; lean_obje x_29 = lean_array_fget(x_1, x_2); x_30 = l_Lean_Expr_mvarId_x21(x_29); lean_dec(x_29); -x_31 = l_Lean_Meta_isExprMVarAssigned___at___private_Lean_Meta_SynthInstance_11__synthPendingImp___spec__1(x_30, x_4, x_5, x_6, x_7, x_8); +x_31 = l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(x_30, x_4, x_5, x_6, x_7, x_8); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_unbox(x_32); @@ -2092,7 +3375,7 @@ goto _start; } } } -lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___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* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__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; @@ -2100,7 +3383,7 @@ x_7 = l_Lean_Meta_getMVarsNoDelayedImp(x_1, x_2, x_3, x_4, x_5, x_6); return x_7; } } -uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___main___at_Lean_Meta_apply___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2129,7 +3412,7 @@ return x_8; } } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -2148,7 +3431,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_2, x_3); -x_9 = l_List_elem___main___at_Lean_Meta_apply___spec__3(x_8, x_1); +x_9 = l_List_elem___main___at_Lean_Meta_apply___spec__5(x_8, x_1); lean_dec(x_8); if (x_9 == 0) { @@ -2193,71 +3476,297 @@ goto _start; } } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_apply___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, lean_object* x_11) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_2); -x_6 = lean_nat_dec_lt(x_3, x_5); -lean_dec(x_5); -if (x_6 == 0) +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_12 = l_Lean_Meta_postprocessAppMVars(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_7; -lean_dec(x_3); -x_7 = l_Array_shrink___main___rarg(x_2, x_4); -lean_dec(x_4); -return x_7; +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; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(x_5, x_7, x_8, x_9, x_10, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_unsigned_to_nat(0u); +lean_inc(x_15); +x_18 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_3, x_3, x_17, x_15); +x_19 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_2, x_18, x_7, x_8, x_9, x_10, x_16); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3(x_3, x_17, x_17, x_7, x_8, x_9, x_10, x_20); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_Meta_getMVarsNoDelayedImp(x_15, x_7, x_8, x_9, x_10, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderNonDependentFirst(x_22, x_7, x_8, x_9, x_10, x_26); +lean_dec(x_22); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_27, 0); +x_30 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__6(x_29, x_25, x_17, x_17); +x_31 = l_Array_toList___rarg(x_30); +lean_dec(x_30); +x_32 = l_List_append___rarg(x_29, x_31); +lean_ctor_set(x_27, 0, x_32); +return x_27; } else { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_fget(x_2, x_3); -x_9 = l_List_elem___main___at_Lean_Meta_apply___spec__3(x_8, x_1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_27, 0); +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_27); +x_35 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__6(x_33, x_25, x_17, x_17); +x_36 = l_Array_toList___rarg(x_35); +lean_dec(x_35); +x_37 = l_List_append___rarg(x_33, x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_34); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_25); +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) +{ +return x_27; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_27); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -if (x_9 == 0) -{ -uint8_t x_10; -x_10 = lean_nat_dec_lt(x_4, x_3); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); -x_13 = lean_nat_add(x_4, x_11); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_13; -goto _start; +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_12); +if (x_43 == 0) +{ +return x_12; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_array_fswap(x_2, x_3, x_4); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_12, 0); +x_45 = lean_ctor_get(x_12, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_12); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} +lean_object* l_Lean_Meta_apply___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) { +_start: +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_6); +x_14 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_15 = l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1(x_1, x_13, x_14, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_13); +if (lean_obj_tag(x_15) == 0) +{ +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; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_dec(x_17); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_2); +lean_inc(x_21); +x_22 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_synthAppInstances___spec__3(x_21, x_2, x_8, x_9, x_10, x_11, x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_unbox(x_23); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_5); lean_dec(x_3); -x_18 = lean_nat_add(x_4, x_16); -lean_dec(x_4); -x_2 = x_15; -x_3 = x_17; -x_4 = x_18; -goto _start; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg(x_4, x_21, x_2, x_8, x_9, x_10, x_11, x_25); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_add(x_3, x_20); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_21); +lean_dec(x_2); +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = lean_box(0); +x_33 = l_Lean_Meta_apply___lambda__1(x_3, x_4, x_19, x_20, x_5, x_32, x_8, x_9, x_10, x_11, x_31); +lean_dec(x_20); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -x_3 = x_21; -goto _start; +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_22); +if (x_34 == 0) +{ +return x_22; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_22); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_15); +if (x_38 == 0) +{ +return x_15; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_15, 0); +x_40 = lean_ctor_get(x_15, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_15); +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; } } } } -lean_object* l_Lean_Meta_apply___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* l_Lean_Meta_apply___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: { lean_object* x_10; @@ -2276,7 +3785,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); -x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_2, x_5, x_6, x_7, x_8, x_12); +x_13 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_2, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -2290,7 +3799,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_14); -x_16 = l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux(x_14, x_5, x_6, x_7, x_8, x_15); +x_16 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux(x_14, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; uint8_t x_19; @@ -2302,607 +3811,51 @@ x_19 = lean_unbox(x_18); lean_dec(x_18); if (x_19 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_ctor_get(x_16, 1); lean_inc(x_20); lean_dec(x_16); x_21 = lean_ctor_get(x_17, 0); lean_inc(x_21); lean_dec(x_17); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_24 = l_Lean_Meta_forallMetaTelescopeReducing___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__1(x_14, x_22, x_23, x_5, x_6, x_7, x_8, x_20); -lean_dec(x_22); -if (lean_obj_tag(x_24) == 0) -{ -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_68; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_ctor_get(x_25, 0); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_ctor_get(x_26, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_11); -lean_inc(x_30); -x_68 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_30, x_11, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_3); -lean_dec(x_2); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg(x_1, x_30, x_11, x_5, x_6, x_7, x_8, x_71); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -return x_72; +x_22 = lean_box(0); +x_23 = l_Lean_Meta_apply___lambda__2(x_14, x_11, x_3, x_1, x_2, x_21, x_22, x_5, x_6, x_7, x_8, x_20); +return x_23; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_72, 0); -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_72); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -else -{ -lean_object* x_77; -lean_dec(x_30); -lean_dec(x_11); -x_77 = lean_ctor_get(x_68, 1); -lean_inc(x_77); -lean_dec(x_68); -x_31 = x_77; -goto block_67; -} -} -else -{ -uint8_t x_78; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -lean_dec(x_11); -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_78 = !lean_is_exclusive(x_68); -if (x_78 == 0) -{ -return x_68; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_68, 0); -x_80 = lean_ctor_get(x_68, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_68); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -block_67: -{ -lean_object* x_32; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_1); -x_32 = l_Lean_Meta_postprocessAppMVars(x_3, x_1, x_28, x_29, x_5, x_6, x_7, x_8, x_31); -lean_dec(x_29); -if (lean_obj_tag(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; 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_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_2, x_5, x_6, x_7, x_8, x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_unsigned_to_nat(0u); -lean_inc(x_35); -x_38 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_28, x_28, x_37, x_35); -x_39 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_38, x_5, x_6, x_7, x_8, x_36); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_28, x_37, x_37, x_5, x_6, x_7, x_8, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_getMVarsNoDelayedImp(x_35, x_5, x_6, x_7, x_8, x_43); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst(x_42, x_5, x_6, x_7, x_8, x_46); -lean_dec(x_42); -if (lean_obj_tag(x_47) == 0) -{ -uint8_t x_48; -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_47, 0); -x_50 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__4(x_49, x_45, x_37, x_37); -x_51 = l_Array_toList___rarg(x_50); -lean_dec(x_50); -x_52 = l_List_append___rarg(x_49, x_51); -lean_ctor_set(x_47, 0, x_52); -return x_47; -} -else -{ -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_53 = lean_ctor_get(x_47, 0); -x_54 = lean_ctor_get(x_47, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_47); -x_55 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__4(x_53, x_45, x_37, x_37); -x_56 = l_Array_toList___rarg(x_55); -lean_dec(x_55); -x_57 = l_List_append___rarg(x_53, x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_54); -return x_58; -} -} -else -{ -uint8_t x_59; -lean_dec(x_45); -x_59 = !lean_is_exclusive(x_47); -if (x_59 == 0) -{ -return x_47; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_47, 0); -x_61 = lean_ctor_get(x_47, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_47); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -} -else -{ -uint8_t x_63; -lean_dec(x_28); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_63 = !lean_is_exclusive(x_32); -if (x_63 == 0) -{ -return x_32; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_32, 0); -x_65 = lean_ctor_get(x_32, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_32); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -} -else -{ -uint8_t x_82; -lean_dec(x_11); -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_82 = !lean_is_exclusive(x_24); -if (x_82 == 0) -{ -return x_24; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_24, 0); -x_84 = lean_ctor_get(x_24, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_24); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; -} -} -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_16, 1); -lean_inc(x_86); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); lean_dec(x_16); -x_87 = lean_ctor_get(x_17, 0); -lean_inc(x_87); +x_25 = lean_ctor_get(x_17, 0); +lean_inc(x_25); lean_dec(x_17); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_11); -x_88 = l___private_Lean_Meta_Tactic_Apply_2__getExpectedNumArgs(x_11, x_5, x_6, x_7, x_8, x_86); -if (lean_obj_tag(x_88) == 0) +x_26 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgs(x_11, x_5, x_6, x_7, x_8, x_24); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_91 = lean_nat_sub(x_87, x_89); -lean_dec(x_89); -lean_dec(x_87); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_91); -x_93 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_94 = l_Lean_Meta_forallMetaTelescopeReducing___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__1(x_14, x_92, x_93, x_5, x_6, x_7, x_8, x_90); -lean_dec(x_92); -if (lean_obj_tag(x_94) == 0) -{ -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_138; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_98 = lean_ctor_get(x_95, 0); -lean_inc(x_98); -lean_dec(x_95); -x_99 = lean_ctor_get(x_96, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_96, 1); -lean_inc(x_100); -lean_dec(x_96); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_11); -lean_inc(x_100); -x_138 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_100, x_11, x_5, x_6, x_7, x_8, x_97); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; uint8_t x_140; -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_unbox(x_139); -lean_dec(x_139); -if (x_140 == 0) -{ -lean_object* x_141; lean_object* x_142; uint8_t x_143; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_3); -lean_dec(x_2); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec(x_138); -x_142 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg(x_1, x_100, x_11, x_5, x_6, x_7, x_8, x_141); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 0) -{ -return x_142; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_nat_sub(x_25, x_27); +lean_dec(x_27); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = l_Lean_Meta_apply___lambda__2(x_14, x_11, x_3, x_1, x_2, x_29, x_30, x_5, x_6, x_7, x_8, x_28); +return x_31; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_142, 0); -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_142); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; -} -} -else -{ -lean_object* x_147; -lean_dec(x_100); -lean_dec(x_11); -x_147 = lean_ctor_get(x_138, 1); -lean_inc(x_147); -lean_dec(x_138); -x_101 = x_147; -goto block_137; -} -} -else -{ -uint8_t x_148; -lean_dec(x_100); -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_11); -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_148 = !lean_is_exclusive(x_138); -if (x_148 == 0) -{ -return x_138; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_138, 0); -x_150 = lean_ctor_get(x_138, 1); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_138); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; -} -} -block_137: -{ -lean_object* x_102; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_1); -x_102 = l_Lean_Meta_postprocessAppMVars(x_3, x_1, x_98, x_99, x_5, x_6, x_7, x_8, x_101); -lean_dec(x_99); -if (lean_obj_tag(x_102) == 0) -{ -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_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -lean_dec(x_102); -x_104 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_2, x_5, x_6, x_7, x_8, x_103); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_unsigned_to_nat(0u); -lean_inc(x_105); -x_108 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_98, x_98, x_107, x_105); -x_109 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_108, x_5, x_6, x_7, x_8, x_106); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec(x_109); -x_111 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_98, x_107, x_107, x_5, x_6, x_7, x_8, x_110); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = l_Lean_Meta_getMVarsNoDelayedImp(x_105, x_5, x_6, x_7, x_8, x_113); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -x_117 = l___private_Lean_Meta_Tactic_Apply_5__reorderNonDependentFirst(x_112, x_5, x_6, x_7, x_8, x_116); -lean_dec(x_112); -if (lean_obj_tag(x_117) == 0) -{ -uint8_t x_118; -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_119 = lean_ctor_get(x_117, 0); -x_120 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__5(x_119, x_115, x_107, x_107); -x_121 = l_Array_toList___rarg(x_120); -lean_dec(x_120); -x_122 = l_List_append___rarg(x_119, x_121); -lean_ctor_set(x_117, 0, x_122); -return x_117; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_123 = lean_ctor_get(x_117, 0); -x_124 = lean_ctor_get(x_117, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_117); -x_125 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__5(x_123, x_115, x_107, x_107); -x_126 = l_Array_toList___rarg(x_125); -lean_dec(x_125); -x_127 = l_List_append___rarg(x_123, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_124); -return x_128; -} -} -else -{ -uint8_t x_129; -lean_dec(x_115); -x_129 = !lean_is_exclusive(x_117); -if (x_129 == 0) -{ -return x_117; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_117, 0); -x_131 = lean_ctor_get(x_117, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_117); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; -} -} -} -else -{ -uint8_t x_133; -lean_dec(x_98); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_133 = !lean_is_exclusive(x_102); -if (x_133 == 0) -{ -return x_102; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_102, 0); -x_135 = lean_ctor_get(x_102, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_102); -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_152; -lean_dec(x_11); -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_152 = !lean_is_exclusive(x_94); -if (x_152 == 0) -{ -return x_94; -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_94, 0); -x_154 = lean_ctor_get(x_94, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_94); -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -return x_155; -} -} -} -else -{ -uint8_t x_156; -lean_dec(x_87); +uint8_t x_32; +lean_dec(x_25); lean_dec(x_14); lean_dec(x_11); lean_dec(x_8); @@ -2912,30 +3865,30 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_156 = !lean_is_exclusive(x_88); -if (x_156 == 0) +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) { -return x_88; +return x_26; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_88, 0); -x_158 = lean_ctor_get(x_88, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_88); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -return x_159; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_ctor_get(x_26, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_26); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } } else { -uint8_t x_160; +uint8_t x_36; lean_dec(x_14); lean_dec(x_11); lean_dec(x_8); @@ -2945,29 +3898,29 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_160 = !lean_is_exclusive(x_16); -if (x_160 == 0) +x_36 = !lean_is_exclusive(x_16); +if (x_36 == 0) { return x_16; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_16, 0); -x_162 = lean_ctor_get(x_16, 1); -lean_inc(x_162); -lean_inc(x_161); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_16, 0); +x_38 = lean_ctor_get(x_16, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_16); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; +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; } } } else { -uint8_t x_164; +uint8_t x_40; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -2976,29 +3929,29 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_164 = !lean_is_exclusive(x_13); -if (x_164 == 0) +x_40 = !lean_is_exclusive(x_13); +if (x_40 == 0) { return x_13; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_13, 0); -x_166 = lean_ctor_get(x_13, 1); -lean_inc(x_166); -lean_inc(x_165); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_13, 0); +x_42 = lean_ctor_get(x_13, 1); +lean_inc(x_42); +lean_inc(x_41); lean_dec(x_13); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -uint8_t x_168; +uint8_t x_44; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3006,23 +3959,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_168 = !lean_is_exclusive(x_10); -if (x_168 == 0) +x_44 = !lean_is_exclusive(x_10); +if (x_44 == 0) { return x_10; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_10, 0); -x_170 = lean_ctor_get(x_10, 1); -lean_inc(x_170); -lean_inc(x_169); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_10, 0); +x_46 = lean_ctor_get(x_10, 1); +lean_inc(x_46); +lean_inc(x_45); lean_dec(x_10); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); -return x_171; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } @@ -3031,40 +3984,39 @@ lean_object* l_Lean_Meta_apply(lean_object* x_1, lean_object* x_2, lean_object* _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2; +x_8 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2; lean_inc(x_1); x_9 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_8); lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_apply___lambda__1___boxed), 9, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_apply___lambda__3___boxed), 9, 3); lean_closure_set(x_10, 0, x_1); lean_closure_set(x_10, 1, x_2); lean_closure_set(x_10, 2, x_8); x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_11, 0, x_9); lean_closure_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); +x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); return x_12; } } -lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___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* l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___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: { -lean_object* x_9; -x_9 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__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); -return x_9; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_10; } } -lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___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* l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -3072,40 +4024,74 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3(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); +return x_9; +} +} +lean_object* l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getMVarsNoDelayed___at_Lean_Meta_apply___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_List_elem___main___at_Lean_Meta_apply___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Meta_apply___spec__3(x_1, x_2); +x_3 = l_List_elem___main___at_Lean_Meta_apply___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__6___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_Array_filterAux___main___at_Lean_Meta_apply___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__6(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_apply___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_apply___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_5; -x_5 = l_Array_filterAux___main___at_Lean_Meta_apply___spec__5(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; +lean_object* x_12; +x_12 = l_Lean_Meta_apply___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_6); +lean_dec(x_4); +return x_12; } } -lean_object* l_Lean_Meta_apply___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* l_Lean_Meta_apply___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, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_apply___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +return x_13; +} +} +lean_object* l_Lean_Meta_apply___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_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_apply___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_apply___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); return x_10; } @@ -3139,30 +4125,26 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1 = _init_l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_1__getExpectedNumArgsAux___closed__1); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__1); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__2); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__3); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__4); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__5); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__7 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__7); -l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8 = _init_l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__8); -l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__1); -l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__2); -l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__1___closed__3); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_getExpectedNumArgsAux___closed__1); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__1); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__2); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__3); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__4); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5); +l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6 = _init_l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__6); +l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3 = _init_l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_synthAppInstances___spec__4___closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assert.c b/stage0/stdlib/Lean/Meta/Tactic/Assert.c index b26a36b6d1..55af080f6e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assert.c @@ -13,120 +13,144 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4(lean_object*); lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_assertExt___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7(lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1; lean_object* l_Lean_Meta_assert___closed__2; -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9(lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); extern lean_object* l_Array_empty___closed__1; -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_define(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object*, lean_object*, 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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Meta_assertAfter___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_assert___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___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); -lean_object* l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assert___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter___closed__2; +lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter___closed__1; lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assertAfter_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_assertAfter_match__2___rarg(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_assertExt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___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_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assertAfter_match__2(lean_object*); +lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(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* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_assert___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_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_Lean_Meta_define___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Std_PersistentArray_getAux___main___rarg___closed__1; +lean_object* l_Lean_Meta_assertAfter_match__1(lean_object*); size_t l_USize_land(size_t, size_t); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12(lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_1__checkOutParam___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1; +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1; +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); -lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertExt___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*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); +lean_object* l_Lean_Meta_throwUnknownFVar___rarg(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*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_define___closed__2; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertExt___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_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_define___closed__1; -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(lean_object*); +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter___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_define___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_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assertAfter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; 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_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___boxed(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_mkBVar(lean_object*); -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4(lean_object*); -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8(lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -165,7 +189,7 @@ lean_inc(x_21); lean_dec(x_19); lean_inc(x_20); x_22 = l_Lean_mkApp(x_20, x_4); -x_23 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_22, x_6, x_7, x_8, x_9, x_21); +x_23 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_22, x_6, x_7, x_8, x_9, x_21); lean_dec(x_6); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -286,7 +310,7 @@ lean_closure_set(x_12, 3, x_4); x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9); return x_14; } } @@ -336,7 +360,7 @@ x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); lean_inc(x_20); -x_22 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_20, x_6, x_7, x_8, x_9, x_21); +x_22 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_20, x_6, x_7, x_8, x_9, x_21); lean_dec(x_6); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) @@ -457,7 +481,7 @@ lean_closure_set(x_12, 3, x_4); x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9); return x_14; } } @@ -473,6 +497,22 @@ lean_dec(x_5); return x_11; } } +lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_assertExt___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; +x_7 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_assertExt___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; +x_7 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} static lean_object* _init_l_Lean_Meta_assertExt___lambda__1___closed__1() { _start: { @@ -556,7 +596,7 @@ lean_inc(x_35); lean_dec(x_33); lean_inc(x_31); x_36 = l_Lean_mkAppB(x_31, x_3, x_34); -x_37 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_36, x_7, x_8, x_9, x_10, x_35); +x_37 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_36, x_7, x_8, x_9, x_10, x_35); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -735,7 +775,7 @@ lean_closure_set(x_13, 4, x_2); x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); return x_15; } } @@ -748,106 +788,88 @@ lean_dec(x_6); return x_12; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_assertAfter_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_3); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_dec(x_4); +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); return x_5; } -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_array_fget(x_3, x_4); -lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg(x_1, x_8, x_5); -lean_dec(x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_4, x_10); -lean_dec(x_4); -x_4 = x_11; -x_5 = x_9; -goto _start; } -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object* x_1) { +lean_object* l_Lean_Meta_assertAfter_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_assertAfter_match__1___rarg), 2, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_assertAfter_match__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_3); -x_7 = lean_nat_dec_lt(x_4, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_dec(x_4); +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); return x_5; } -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_array_fget(x_3, x_4); -lean_inc(x_1); -x_9 = lean_apply_2(x_1, x_5, x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_4, x_10); -lean_dec(x_4); -x_4 = x_11; -x_5 = x_9; -goto _start; } -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object* x_1) { +lean_object* l_Lean_Meta_assertAfter_match__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_assertAfter_match__2___rarg), 2, 0); return x_2; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___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: { -if (lean_obj_tag(x_2) == 0) +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_local_ctx_find(x_7, x_1); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_4, x_4, x_5, x_3); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_7, x_7, x_8, x_3); +lean_object* x_9; +x_9 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); return x_9; } +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_6); +return x_11; } } -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4(lean_object* x_1) { +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___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_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg___boxed), 3, 0); -return x_2; +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; } } lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -868,7 +890,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg(x_1, x_8, x_5); +x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); @@ -923,47 +945,32 @@ x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_asser return x_2; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) { -lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_6 = lean_ctor_get(x_2, 0); -x_7 = x_3 >> x_4; -x_8 = lean_usize_to_nat(x_7); -x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; -x_10 = lean_array_get(x_9, x_6, x_8); -x_11 = 1; -x_12 = x_11 << x_4; -x_13 = x_12 - x_11; -x_14 = x_3 & x_13; -x_15 = 5; -x_16 = x_4 - x_15; -lean_inc(x_1); -x_17 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg(x_1, x_10, x_14, x_16, x_5); -lean_dec(x_10); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_8, x_18); -lean_dec(x_8); -x_20 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg(x_1, x_6, x_6, x_19, x_17); -return x_20; +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg(x_1, x_4, x_4, x_5, x_3); +return x_6; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_2, 0); -x_22 = lean_usize_to_nat(x_3); -x_23 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8___rarg(x_1, x_21, x_21, x_22, x_5); -return x_23; +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__8___rarg(x_1, x_7, x_7, x_8, x_3); +return x_9; } } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed), 3, 0); return x_2; } } @@ -977,15 +984,16 @@ lean_dec(x_6); if (x_7 == 0) { lean_dec(x_4); -lean_dec(x_2); +lean_dec(x_1); return x_5; } else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_array_fget(x_3, x_4); -lean_inc(x_2); -x_9 = lean_apply_2(x_2, x_5, x_8); +lean_inc(x_1); +x_9 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_8, x_5); +lean_dec(x_8); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_4, x_10); lean_dec(x_4); @@ -1013,6 +1021,86 @@ lean_dec(x_6); if (x_7 == 0) { lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = lean_apply_2(x_1, x_5, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +x_5 = x_9; +goto _start; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_6 = lean_ctor_get(x_2, 0); +x_7 = x_3 >> x_4; +x_8 = lean_usize_to_nat(x_7); +x_9 = l_Std_PersistentArray_getAux___main___rarg___closed__1; +x_10 = lean_array_get(x_9, x_6, x_8); +x_11 = 1; +x_12 = x_11 << x_4; +x_13 = x_12 - x_11; +x_14 = x_3 & x_13; +x_15 = 5; +x_16 = x_4 - x_15; +lean_inc(x_1); +x_17 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_10, x_14, x_16, x_5); +lean_dec(x_10); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_8, x_18); +lean_dec(x_8); +x_20 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg(x_1, x_6, x_6, x_19, x_17); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_2, 0); +x_22 = lean_usize_to_nat(x_3); +x_23 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg(x_1, x_21, x_21, x_22, x_5); +return x_23; +} +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg(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; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); lean_dec(x_2); return x_5; } @@ -1031,15 +1119,51 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg(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; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_2); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_2); +x_9 = lean_apply_2(x_2, x_5, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +x_5 = x_9; +goto _start; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -1052,10 +1176,10 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_2, x_7, x_8, x_9, x_3); x_11 = lean_ctor_get(x_1, 1); x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg(x_1, x_2, x_11, x_12, x_10); +x_13 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg(x_1, x_2, x_11, x_12, x_10); return x_13; } else @@ -1063,20 +1187,20 @@ else lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_nat_sub(x_4, x_5); x_15 = lean_ctor_get(x_1, 1); -x_16 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg(x_1, x_2, x_15, x_14, x_3); +x_16 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg(x_1, x_2, x_15, x_14, x_3); return x_16; } } } -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2(lean_object* x_1) { +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1093,25 +1217,235 @@ return x_5; } } } -static lean_object* _init_l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1() { +static lean_object* _init_l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1___boxed), 2, 0); return x_1; } } -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 1); -x_5 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1; -x_6 = l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg(x_4, x_5, x_2, x_3); +x_5 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1; +x_6 = l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg(x_4, x_5, x_2, x_3); return x_6; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(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: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_1); +if (x_8 == 0) +{ +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; uint8_t x_20; lean_object* x_21; +x_9 = lean_st_ref_get(x_4, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_6, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = l_Std_HashMap_inhabited___closed__1; +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_16); +lean_ctor_set(x_19, 2, x_18); +x_20 = 0; +x_21 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_20, x_20, x_19); +if (lean_obj_tag(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; uint8_t x_29; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +x_26 = lean_st_ref_take(x_6, x_15); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_30 = lean_ctor_get(x_27, 2); +lean_dec(x_30); +lean_ctor_set(x_27, 2, x_25); +x_31 = lean_st_ref_set(x_6, x_27, x_28); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_ctor_get(x_23, 0); +lean_inc(x_33); +lean_dec(x_23); +x_34 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_33, x_3, x_4, x_5, x_6, x_32); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_24); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +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; lean_object* x_49; +x_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +x_41 = lean_ctor_get(x_27, 3); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_27); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_25); +lean_ctor_set(x_42, 3, x_41); +x_43 = lean_st_ref_set(x_6, x_42, x_28); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_ctor_get(x_23, 0); +lean_inc(x_45); +lean_dec(x_23); +x_46 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_45, x_3, x_4, x_5, x_6, x_44); +lean_dec(x_3); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_24); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +else +{ +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; +x_50 = lean_ctor_get(x_21, 1); +lean_inc(x_50); +lean_dec(x_21); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_51, x_3, x_4, x_5, x_6, x_15); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); +lean_dec(x_50); +x_55 = lean_st_ref_take(x_6, x_53); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_56, 2); +lean_dec(x_59); +lean_ctor_set(x_56, 2, x_54); +x_60 = lean_st_ref_set(x_6, x_56, x_57); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_63 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_62, x_3, x_4, x_5, x_6, x_61); +lean_dec(x_3); +return x_63; +} +else +{ +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_64 = lean_ctor_get(x_56, 0); +x_65 = lean_ctor_get(x_56, 1); +x_66 = lean_ctor_get(x_56, 3); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_56); +x_67 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +lean_ctor_set(x_67, 2, x_54); +lean_ctor_set(x_67, 3, x_66); +x_68 = lean_st_ref_set(x_6, x_67, x_57); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_71 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_70, x_3, x_4, x_5, x_6, x_69); +lean_dec(x_3); +return x_71; +} +} +} +else +{ +lean_object* x_72; +lean_dec(x_3); +lean_dec(x_1); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_2); +lean_ctor_set(x_72, 1, x_7); +return x_72; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14(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; uint8_t x_7; @@ -1137,7 +1471,7 @@ goto _start; } } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -1206,7 +1540,21 @@ goto _start; } } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_15; +} +} +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -1273,7 +1621,7 @@ goto _start; } } } -lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(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; uint8_t x_7; @@ -1328,7 +1676,7 @@ x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); lean_inc(x_7); -x_18 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_2, x_7, x_8, x_9, x_10, x_17); +x_18 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1(x_2, x_7, x_8, x_9, x_10, 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; 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; @@ -1339,7 +1687,7 @@ lean_inc(x_20); lean_dec(x_18); x_21 = lean_ctor_get(x_7, 1); lean_inc(x_21); -x_22 = l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(x_7, x_8, x_9, x_10, x_20); +x_22 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(x_7, x_8, x_9, x_10, x_20); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -1350,7 +1698,7 @@ x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_add(x_25, x_26); lean_dec(x_25); x_28 = l_Array_empty___closed__1; -x_29 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1(x_21, x_28, x_27); +x_29 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3(x_21, x_28, x_27); lean_dec(x_27); lean_inc(x_29); x_30 = x_29; @@ -1358,7 +1706,7 @@ x_31 = lean_unsigned_to_nat(0u); x_32 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_31, x_30); x_33 = x_32; lean_inc(x_7); -x_34 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_33, x_16, x_7, x_8, x_9, x_10, x_24); +x_34 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(x_33, x_16, x_7, x_8, x_9, x_10, x_24); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_object* x_36; uint8_t 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; 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; uint8_t x_56; lean_object* x_57; @@ -1370,18 +1718,18 @@ lean_dec(x_34); x_37 = 0; x_38 = l_Lean_mkForall(x_3, x_37, x_4, x_35); lean_inc(x_21); -x_39 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(x_7, x_19, x_29, x_31, x_21); +x_39 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14(x_7, x_19, x_29, x_31, x_21); lean_dec(x_19); -x_40 = l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12(x_29, x_23, x_31, x_31); +x_40 = l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15(x_29, x_23, x_31, x_31); x_41 = 2; -x_42 = l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(x_39, x_40, x_38, x_41, x_13, x_31, x_7, x_8, x_9, x_10, x_36); +x_42 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(x_39, x_40, x_38, x_41, x_13, x_31, x_7, x_8, x_9, x_10, x_36); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); lean_dec(x_42); lean_inc(x_29); -x_45 = l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__13(x_21, x_29, x_31, x_31); +x_45 = l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__17(x_21, x_29, x_31, x_31); x_46 = x_45; x_47 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_31, x_46); x_48 = x_47; @@ -1392,7 +1740,7 @@ lean_dec(x_48); lean_inc(x_43); x_52 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_51, x_51, x_31, x_43); lean_dec(x_51); -x_53 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_52, x_7, x_8, x_9, x_10, x_44); +x_53 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_52, x_7, x_8, x_9, x_10, x_44); x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); lean_dec(x_53); @@ -1436,7 +1784,7 @@ lean_inc(x_68); lean_dec(x_66); x_69 = lean_box(0); lean_inc(x_62); -x_70 = l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14(x_29, x_67, x_62, x_62, x_69); +x_70 = l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(x_29, x_67, x_62, x_62, x_69); lean_dec(x_62); lean_dec(x_67); lean_dec(x_29); @@ -1462,7 +1810,7 @@ lean_inc(x_75); lean_dec(x_72); x_76 = lean_box(0); lean_inc(x_62); -x_77 = l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14(x_29, x_74, x_62, x_62, x_76); +x_77 = l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(x_29, x_74, x_62, x_62, x_76); lean_dec(x_62); lean_dec(x_74); lean_dec(x_29); @@ -1702,39 +2050,33 @@ lean_closure_set(x_13, 4, x_5); x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); return x_15; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); return x_6; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__4___rarg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -1755,17 +2097,13 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -size_t x_6; size_t x_7; lean_object* x_8; -x_6 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__3___rarg(x_1, x_2, x_6, x_7, x_5); +lean_object* x_4; +x_4 = l_Std_PersistentArray_foldlMAux___main___at_Lean_Meta_assertAfter___spec__6___rarg(x_1, x_2, x_3); lean_dec(x_2); -return x_8; +return x_4; } } lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -1774,7 +2112,7 @@ _start: lean_object* x_6; x_6 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__9___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); -lean_dec(x_1); +lean_dec(x_2); return x_6; } } @@ -1784,64 +2122,122 @@ _start: lean_object* x_6; x_6 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__10___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Std_PersistentArray_foldlFromMAux___main___at_Lean_Meta_assertAfter___spec__5___rarg(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); lean_dec(x_1); return x_6; } } -lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__12___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___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_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__2___rarg(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_foldlFromM___at_Lean_Meta_assertAfter___spec__4___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___lambda__1(x_1, x_2); +x_3 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___lambda__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13___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: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14___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_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__11(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at_Lean_Meta_assertAfter___spec__14(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15___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_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__12(x_1, x_2, x_3, x_4); +x_5 = l_Array_filterAux___main___at_Lean_Meta_assertAfter___spec__15(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(x_1, x_2, x_3, x_12, 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); +lean_dec(x_7); +return x_13; +} +} +lean_object* l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18___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_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__14(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Nat_foldAux___main___at_Lean_Meta_assertAfter___spec__18(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -1892,8 +2288,8 @@ l_Lean_Meta_define___closed__2 = _init_l_Lean_Meta_define___closed__2(); lean_mark_persistent(l_Lean_Meta_define___closed__2); l_Lean_Meta_assertExt___lambda__1___closed__1 = _init_l_Lean_Meta_assertExt___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_assertExt___lambda__1___closed__1); -l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1 = _init_l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1(); -lean_mark_persistent(l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__1___closed__1); +l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1 = _init_l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1(); +lean_mark_persistent(l_Lean_LocalContext_foldlFromM___at_Lean_Meta_assertAfter___spec__3___closed__1); l_Lean_Meta_assertAfter___closed__1 = _init_l_Lean_Meta_assertAfter___closed__1(); lean_mark_persistent(l_Lean_Meta_assertAfter___closed__1); l_Lean_Meta_assertAfter___closed__2 = _init_l_Lean_Meta_assertAfter___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assumption.c b/stage0/stdlib/Lean/Meta/Tactic/Assumption.c index 19920faca3..d8882670f5 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assumption.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assumption.c @@ -13,42 +13,1032 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEqAux(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_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_assumption___closed__1; +lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assumptionAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___closed__2; +lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assumptionAux_match__1(lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); extern lean_object* l_Lean_Format_join___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_assumption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___closed__1; lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assumptionAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(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___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___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* l_Lean_Meta_assumptionAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_assumptionAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_assumptionAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___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; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +else +{ +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; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +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_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +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_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; + lean_ctor_set_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; + lean_ctor_set_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_126) == 0) +{ +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; 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; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +lean_inc(x_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +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; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__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_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -88,230 +1078,266 @@ uint8_t x_18; x_18 = !lean_is_exclusive(x_16); if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; +lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_ctor_get(x_16, 0); -x_20 = l_Lean_LocalDecl_isAuxDecl(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_LocalDecl_type(x_19); +x_20 = l_Lean_LocalDecl_type(x_19); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_22 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_1, x_21, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_22) == 0) +x_21 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___spec__1(x_1, x_20, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = l_Lean_LocalDecl_isAuxDecl(x_19); +if (x_25 == 0) +{ +uint8_t x_26; +x_26 = lean_unbox(x_23); lean_dec(x_23); -if (x_24 == 0) +if (x_26 == 0) { -lean_object* x_25; +lean_free_object(x_21); lean_free_object(x_16); lean_dec(x_19); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); x_3 = x_15; x_4 = lean_box(0); -x_9 = x_25; +x_9 = x_24; goto _start; } else { -uint8_t x_27; +lean_object* x_28; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_27 = !lean_is_exclusive(x_22); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_22, 0); -lean_dec(x_28); -x_29 = l_Lean_LocalDecl_toExpr(x_19); +x_28 = l_Lean_LocalDecl_toExpr(x_19); lean_dec(x_19); -lean_ctor_set(x_16, 0, x_29); -lean_ctor_set(x_22, 0, x_16); -return x_22; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_22, 1); -lean_inc(x_30); -lean_dec(x_22); -x_31 = l_Lean_LocalDecl_toExpr(x_19); -lean_dec(x_19); -lean_ctor_set(x_16, 0, x_31); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} +lean_ctor_set(x_16, 0, x_28); +lean_ctor_set(x_21, 0, x_16); +return x_21; } } else { -uint8_t x_33; +lean_free_object(x_21); +lean_dec(x_23); lean_free_object(x_16); lean_dec(x_19); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_24; +goto _start; +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_21, 0); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_21); +x_32 = l_Lean_LocalDecl_isAuxDecl(x_19); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_unbox(x_30); +lean_dec(x_30); +if (x_33 == 0) +{ +lean_free_object(x_16); +lean_dec(x_19); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_31; +goto _start; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_22); -if (x_33 == 0) -{ -return x_22; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_22, 0); -x_35 = lean_ctor_get(x_22, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_22); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); +x_35 = l_Lean_LocalDecl_toExpr(x_19); +lean_dec(x_19); +lean_ctor_set(x_16, 0, x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_16); +lean_ctor_set(x_36, 1, x_31); return x_36; } } -} else { +lean_dec(x_30); lean_free_object(x_16); lean_dec(x_19); x_3 = x_15; x_4 = lean_box(0); +x_9 = x_31; goto _start; } } +} else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_16, 0); -lean_inc(x_38); -lean_dec(x_16); -x_39 = l_Lean_LocalDecl_isAuxDecl(x_38); -if (x_39 == 0) +uint8_t x_38; +lean_free_object(x_16); +lean_dec(x_19); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_21); +if (x_38 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = l_Lean_LocalDecl_type(x_38); +return x_21; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_21, 0); +x_40 = lean_ctor_get(x_21, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_21); +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 +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_16, 0); +lean_inc(x_42); +lean_dec(x_16); +x_43 = l_Lean_LocalDecl_type(x_42); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_41 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_1, x_40, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_41) == 0) +x_44 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___spec__1(x_1, x_43, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_42; uint8_t x_43; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_unbox(x_42); -lean_dec(x_42); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_38); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_3 = x_15; -x_4 = lean_box(0); -x_9 = x_44; -goto _start; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_46 = lean_ctor_get(x_41, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_47 = x_41; +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_47 = x_44; } else { - lean_dec_ref(x_41); + lean_dec_ref(x_44); x_47 = lean_box(0); } -x_48 = l_Lean_LocalDecl_toExpr(x_38); -lean_dec(x_38); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -if (lean_is_scalar(x_47)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_47; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_46); -return x_50; -} +x_48 = l_Lean_LocalDecl_isAuxDecl(x_42); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = lean_unbox(x_45); +lean_dec(x_45); +if (x_49 == 0) +{ +lean_dec(x_47); +lean_dec(x_42); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_46; +goto _start; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_38); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_51 = lean_ctor_get(x_41, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_41, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_53 = x_41; +x_51 = l_Lean_LocalDecl_toExpr(x_42); +lean_dec(x_42); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +if (lean_is_scalar(x_47)) { + x_53 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_41); - x_53 = lean_box(0); + x_53 = x_47; } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_46); +return x_53; } } else { -lean_dec(x_38); +lean_dec(x_47); +lean_dec(x_45); +lean_dec(x_42); x_3 = x_15; x_4 = lean_box(0); +x_9 = x_46; goto _start; } } +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_42); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_55 = lean_ctor_get(x_44, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_57 = x_44; +} else { + lean_dec_ref(x_44); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } } } -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(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* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6(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; uint8_t x_11; @@ -344,7 +1370,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_17 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(x_1, x_16, x_5, x_6, x_7, x_8, x_9); +x_17 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_16, x_5, x_6, x_7, x_8, x_9); lean_dec(x_16); if (lean_obj_tag(x_17) == 0) { @@ -423,7 +1449,7 @@ return x_28; } } } -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6(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* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7(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; uint8_t x_11; @@ -463,230 +1489,266 @@ uint8_t x_18; x_18 = !lean_is_exclusive(x_16); if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; +lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_ctor_get(x_16, 0); -x_20 = l_Lean_LocalDecl_isAuxDecl(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = l_Lean_LocalDecl_type(x_19); +x_20 = l_Lean_LocalDecl_type(x_19); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_22 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_1, x_21, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_22) == 0) +x_21 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___spec__1(x_1, x_20, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = l_Lean_LocalDecl_isAuxDecl(x_19); +if (x_25 == 0) +{ +uint8_t x_26; +x_26 = lean_unbox(x_23); lean_dec(x_23); -if (x_24 == 0) +if (x_26 == 0) { -lean_object* x_25; +lean_free_object(x_21); lean_free_object(x_16); lean_dec(x_19); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); x_3 = x_15; x_4 = lean_box(0); -x_9 = x_25; +x_9 = x_24; goto _start; } else { -uint8_t x_27; +lean_object* x_28; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_27 = !lean_is_exclusive(x_22); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_22, 0); -lean_dec(x_28); -x_29 = l_Lean_LocalDecl_toExpr(x_19); +x_28 = l_Lean_LocalDecl_toExpr(x_19); lean_dec(x_19); -lean_ctor_set(x_16, 0, x_29); -lean_ctor_set(x_22, 0, x_16); -return x_22; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_22, 1); -lean_inc(x_30); -lean_dec(x_22); -x_31 = l_Lean_LocalDecl_toExpr(x_19); -lean_dec(x_19); -lean_ctor_set(x_16, 0, x_31); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} +lean_ctor_set(x_16, 0, x_28); +lean_ctor_set(x_21, 0, x_16); +return x_21; } } else { -uint8_t x_33; +lean_free_object(x_21); +lean_dec(x_23); lean_free_object(x_16); lean_dec(x_19); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_24; +goto _start; +} +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_21, 0); +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_21); +x_32 = l_Lean_LocalDecl_isAuxDecl(x_19); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_unbox(x_30); +lean_dec(x_30); +if (x_33 == 0) +{ +lean_free_object(x_16); +lean_dec(x_19); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_31; +goto _start; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_33 = !lean_is_exclusive(x_22); -if (x_33 == 0) -{ -return x_22; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_22, 0); -x_35 = lean_ctor_get(x_22, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_22); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); +x_35 = l_Lean_LocalDecl_toExpr(x_19); +lean_dec(x_19); +lean_ctor_set(x_16, 0, x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_16); +lean_ctor_set(x_36, 1, x_31); return x_36; } } -} else { +lean_dec(x_30); lean_free_object(x_16); lean_dec(x_19); x_3 = x_15; x_4 = lean_box(0); +x_9 = x_31; goto _start; } } +} else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_16, 0); -lean_inc(x_38); -lean_dec(x_16); -x_39 = l_Lean_LocalDecl_isAuxDecl(x_38); -if (x_39 == 0) +uint8_t x_38; +lean_free_object(x_16); +lean_dec(x_19); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_21); +if (x_38 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = l_Lean_LocalDecl_type(x_38); +return x_21; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_21, 0); +x_40 = lean_ctor_get(x_21, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_21); +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 +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_16, 0); +lean_inc(x_42); +lean_dec(x_16); +x_43 = l_Lean_LocalDecl_type(x_42); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_41 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_1, x_40, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_41) == 0) +x_44 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_assumptionAux___spec__1(x_1, x_43, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_42; uint8_t x_43; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_unbox(x_42); -lean_dec(x_42); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_38); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_3 = x_15; -x_4 = lean_box(0); -x_9 = x_44; -goto _start; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -x_46 = lean_ctor_get(x_41, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_47 = x_41; +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_47 = x_44; } else { - lean_dec_ref(x_41); + lean_dec_ref(x_44); x_47 = lean_box(0); } -x_48 = l_Lean_LocalDecl_toExpr(x_38); -lean_dec(x_38); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_48); -if (lean_is_scalar(x_47)) { - x_50 = lean_alloc_ctor(0, 2, 0); -} else { - x_50 = x_47; -} -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_46); -return x_50; -} +x_48 = l_Lean_LocalDecl_isAuxDecl(x_42); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = lean_unbox(x_45); +lean_dec(x_45); +if (x_49 == 0) +{ +lean_dec(x_47); +lean_dec(x_42); +x_3 = x_15; +x_4 = lean_box(0); +x_9 = x_46; +goto _start; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_38); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_51 = lean_ctor_get(x_41, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_41, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_53 = x_41; +x_51 = l_Lean_LocalDecl_toExpr(x_42); +lean_dec(x_42); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +if (lean_is_scalar(x_47)) { + x_53 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_41); - x_53 = lean_box(0); + x_53 = x_47; } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); -} else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_46); +return x_53; } } else { -lean_dec(x_38); +lean_dec(x_47); +lean_dec(x_45); +lean_dec(x_42); x_3 = x_15; x_4 = lean_box(0); +x_9 = x_46; goto _start; } } +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_42); +lean_dec(x_15); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_55 = lean_ctor_get(x_44, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_57 = x_44; +} else { + lean_dec_ref(x_44); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__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_object* x_7) { +} +} +lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(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: { if (lean_obj_tag(x_2) == 0) @@ -694,7 +1756,7 @@ if (lean_obj_tag(x_2) == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_2, 0); x_9 = lean_array_get_size(x_8); -x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_8, x_9, lean_box(0), x_3, x_4, x_5, x_6, x_7); +x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6(x_1, x_8, x_9, lean_box(0), x_3, x_4, x_5, x_6, x_7); return x_10; } else @@ -702,12 +1764,12 @@ else lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_ctor_get(x_2, 0); x_12 = lean_array_get_size(x_11); -x_13 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__6(x_1, x_11, x_12, lean_box(0), x_3, x_4, x_5, x_6, x_7); +x_13 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7(x_1, x_11, x_12, lean_box(0), x_3, x_4, x_5, x_6, x_7); return x_13; } } } -lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___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* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___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) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -718,7 +1780,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__3(x_1, x_8, x_9, lean_box(0), x_3, x_4, x_5, x_6, x_7); +x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(x_1, x_8, x_9, lean_box(0), x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; @@ -731,7 +1793,7 @@ x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); x_13 = lean_ctor_get(x_2, 0); -x_14 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(x_1, x_13, x_3, x_4, x_5, x_6, x_12); +x_14 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_13, x_3, x_4, x_5, x_6, x_12); return x_14; } else @@ -792,12 +1854,12 @@ return x_22; } } } -lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___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* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___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: { lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_2, 1); -x_9 = l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__3(x_1, x_8, x_3, x_4, x_5, x_6, x_7); return x_9; } } @@ -821,7 +1883,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_12 = l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__1(x_9, x_11, x_3, x_4, x_5, x_6, x_10); +x_12 = l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(x_9, x_11, x_3, x_4, x_5, x_6, x_10); lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { @@ -870,7 +1932,7 @@ lean_dec(x_12); x_23 = lean_ctor_get(x_13, 0); lean_inc(x_23); lean_dec(x_13); -x_24 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_23, x_3, x_4, x_5, x_6, x_22); +x_24 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_23, x_3, x_4, x_5, x_6, x_22); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -991,24 +2053,15 @@ lean_closure_set(x_9, 0, x_1); x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_10, x_2, x_3, x_4, x_5, x_6); +x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_10, x_2, x_3, x_4, x_5, x_6); return x_11; } } -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___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* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___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) { _start: { lean_object* x_10; -x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___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_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); return x_10; } @@ -1022,29 +2075,38 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___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* l_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7___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_Array_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5___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: { lean_object* x_8; -x_8 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_findSomeRevMAux___main___at_Lean_Meta_assumptionAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } } -lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___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* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___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) { _start: { lean_object* x_8; -x_8 = l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_assumptionAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } } -lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___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* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___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: { lean_object* x_8; -x_8 = l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_assumptionAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index bec7bfcb93..2b17115d9b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -13,353 +13,443 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___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 l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_2__mkEqAndProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2; lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3; -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__3(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__2___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6; -lean_object* l___private_Lean_Meta_Tactic_Cases_10__unifyEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7; +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_cases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___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_object*); +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5; +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__3; -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs(lean_object*); lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs(lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3; -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___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___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_6__mkHEqReflImp___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___boxed(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__5; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_casesOnSuffix; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___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*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Lean_Meta_substCore(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___spec__1(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_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4; -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__2___boxed(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_Cases_9__unifyEqsAux___main___lambda__1___closed__2; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2; +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_6__visit_x3f(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_cases_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop(lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___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* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getInductiveUniverseAndParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_repr(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1; +uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_5__mkFreshExprMVarWithIdCore___rarg___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___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*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__5; -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8; +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__2(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Cases___hyg_2407_(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___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___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1; -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1(lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2; -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__2; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_casesOnSuffix___closed__1; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___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* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_cases___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_Cases_Context_nminors___default___boxed(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___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___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5(lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_Context_nminors___default(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__4(lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__2___closed__2; +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases___lambda__1___closed__4; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44___boxed(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*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___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_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__2___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Cases_cases_match__1(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalizeIndices_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___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_generalizeIndices___lambda__1___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeIndices___lambda__1___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22(lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_erase___main___at_Lean_Meta_FVarSubst_erase___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_10__unifyEqs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1; +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfD___at___private_Lean_Meta_InferType_4__getLevelImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3; -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_12__regTraceClasses(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg(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_Expr_hasFVar(lean_object*); -uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19(lean_object*, lean_object*, lean_object*); -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Cases_cases___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_cases___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1() { +lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1() { _start: { lean_object* x_1; @@ -367,52 +457,45 @@ x_1 = lean_mk_string("failed to compile pattern matching, inductive type expecte return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3() { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___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) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_7 = l_Lean_indentExpr(x_1); -x_8 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3; +x_8 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_9, x_2, x_3, x_4, x_5, x_6); -return x_10; +x_10 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_11 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(x_11, x_2, x_3, x_4, x_5, x_6); +return x_12; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___boxed), 6, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___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* l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg___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___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_throwError___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -420,6 +503,245 @@ lean_dec(x_2); return x_7; } } +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___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___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___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: +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +uint8_t x_10; lean_object* x_11; +x_10 = 1; +lean_ctor_set_uint8(x_8, 5, x_10); +x_11 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +else +{ +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); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +else +{ +uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_20 = lean_ctor_get_uint8(x_8, 0); +x_21 = lean_ctor_get_uint8(x_8, 1); +x_22 = lean_ctor_get_uint8(x_8, 2); +x_23 = lean_ctor_get_uint8(x_8, 3); +x_24 = lean_ctor_get_uint8(x_8, 4); +x_25 = lean_ctor_get_uint8(x_8, 6); +x_26 = lean_ctor_get_uint8(x_8, 7); +lean_dec(x_8); +x_27 = 1; +x_28 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_28, 0, x_20); +lean_ctor_set_uint8(x_28, 1, x_21); +lean_ctor_set_uint8(x_28, 2, x_22); +lean_ctor_set_uint8(x_28, 3, x_23); +lean_ctor_set_uint8(x_28, 4, x_24); +lean_ctor_set_uint8(x_28, 5, x_27); +lean_ctor_set_uint8(x_28, 6, x_25); +lean_ctor_set_uint8(x_28, 7, x_26); +lean_ctor_set(x_2, 0, x_28); +x_29 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +if (lean_is_scalar(x_32)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_32; +} +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_36 = x_29; +} else { + lean_dec_ref(x_29); + x_36 = lean_box(0); +} +if (lean_is_scalar(x_36)) { + x_37 = lean_alloc_ctor(1, 2, 0); +} else { + x_37 = x_36; +} +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_38 = lean_ctor_get(x_2, 0); +x_39 = lean_ctor_get(x_2, 1); +x_40 = lean_ctor_get(x_2, 2); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_2); +x_41 = lean_ctor_get_uint8(x_38, 0); +x_42 = lean_ctor_get_uint8(x_38, 1); +x_43 = lean_ctor_get_uint8(x_38, 2); +x_44 = lean_ctor_get_uint8(x_38, 3); +x_45 = lean_ctor_get_uint8(x_38, 4); +x_46 = lean_ctor_get_uint8(x_38, 6); +x_47 = lean_ctor_get_uint8(x_38, 7); +if (lean_is_exclusive(x_38)) { + x_48 = x_38; +} else { + lean_dec_ref(x_38); + x_48 = lean_box(0); +} +x_49 = 1; +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 0, 8); +} else { + x_50 = x_48; +} +lean_ctor_set_uint8(x_50, 0, x_41); +lean_ctor_set_uint8(x_50, 1, x_42); +lean_ctor_set_uint8(x_50, 2, x_43); +lean_ctor_set_uint8(x_50, 3, x_44); +lean_ctor_set_uint8(x_50, 4, x_45); +lean_ctor_set_uint8(x_50, 5, x_49); +lean_ctor_set_uint8(x_50, 6, x_46); +lean_ctor_set_uint8(x_50, 7, x_47); +x_51 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_39); +lean_ctor_set(x_51, 2, x_40); +x_52 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_1, x_51, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; +} else { + lean_dec_ref(x_52); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_52, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_59 = x_52; +} else { + lean_dec_ref(x_52); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +} +} lean_object* l_Lean_Meta_getInductiveUniverseAndParams(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: { @@ -428,7 +750,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_7 = l_Lean_Meta_whnfD___at___private_Lean_Meta_InferType_4__getLevelImp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_whnfD___at_Lean_Meta_getInductiveUniverseAndParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -462,7 +784,7 @@ if (lean_obj_tag(x_18) == 0) lean_object* x_19; lean_free_object(x_13); lean_dec(x_12); -x_19 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_16); +x_19 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_16); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -510,7 +832,7 @@ lean_object* x_32; lean_dec(x_20); lean_free_object(x_13); lean_dec(x_12); -x_32 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_16); +x_32 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_16); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -535,7 +857,7 @@ if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_dec(x_12); -x_37 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_34); +x_37 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_34); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -584,7 +906,7 @@ else lean_object* x_51; lean_dec(x_38); lean_dec(x_12); -x_51 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_34); +x_51 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_34); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -598,7 +920,7 @@ else { lean_object* x_52; lean_dec(x_10); -x_52 = l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_9); +x_52 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg(x_8, x_2, x_3, x_4, x_5, x_9); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -634,7 +956,953 @@ return x_56; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_2__mkEqAndProof(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* l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___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; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +else +{ +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; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +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_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +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_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; + lean_ctor_set_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; + lean_ctor_set_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_126) == 0) +{ +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; 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; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +lean_inc(x_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +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; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof(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; @@ -643,7 +1911,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_8 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -657,7 +1925,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_11 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_2, x_3, x_4, x_5, x_6, x_10); +x_11 = l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(x_2, x_3, x_4, x_5, x_6, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -682,7 +1950,7 @@ lean_inc(x_16); lean_dec(x_14); lean_inc(x_12); lean_inc(x_9); -x_17 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_9, x_12, x_3, x_4, x_5, x_6, x_16); +x_17 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(x_9, x_12, x_3, x_4, x_5, x_6, x_16); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; uint8_t x_19; @@ -923,7 +2191,28 @@ return x_79; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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, 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_18; @@ -931,11 +2220,11 @@ x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_1, x_14); x_16 = lean_array_push(x_2, x_8); x_17 = lean_array_push(x_3, x_4); -x_18 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg(x_5, x_6, x_7, x_15, x_16, x_17, x_9, x_10, x_11, x_12, x_13); +x_18 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg(x_5, x_6, x_7, x_15, x_16, x_17, x_9, x_10, x_11, x_12, x_13); return x_18; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1() { _start: { lean_object* x_1; @@ -943,17 +2232,17 @@ x_1 = lean_mk_string("h"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -979,7 +2268,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_18 = l___private_Lean_Meta_Tactic_Cases_2__mkEqAndProof(x_16, x_17, x_7, x_8, x_9, x_10, x_11); +x_18 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof(x_16, x_17, x_7, x_8, x_9, x_10, x_11); 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; lean_object* x_24; uint8_t x_25; lean_object* x_26; @@ -993,7 +2282,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_19, 1); lean_inc(x_22); lean_dec(x_19); -x_23 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___lambda__1___boxed), 13, 7); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___lambda__1___boxed), 13, 7); lean_closure_set(x_23, 0, x_4); lean_closure_set(x_23, 1, x_5); lean_closure_set(x_23, 2, x_6); @@ -1001,9 +2290,9 @@ lean_closure_set(x_23, 3, x_22); lean_closure_set(x_23, 4, x_1); lean_closure_set(x_23, 5, x_2); lean_closure_set(x_23, 6, x_3); -x_24 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2; +x_24 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2; x_25 = 0; -x_26 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(x_24, x_25, x_21, x_23, x_7, x_8, x_9, x_10, x_20); +x_26 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_24, x_25, x_21, x_23, x_7, x_8, x_9, x_10, x_20); return x_26; } else @@ -1041,58 +2330,164 @@ return x_30; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___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, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___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, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___lambda__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, x_13); +x_14 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___lambda__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, x_13); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___rarg), 11, 0); -return x_2; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs___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) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___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; lean_object* x_10; lean_object* x_11; x_9 = lean_unsigned_to_nat(0u); x_10 = l_Array_empty___closed__1; -x_11 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg(x_1, x_2, x_3, x_9, x_10, x_10, x_4, x_5, x_6, x_7, x_8); +x_11 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg(x_1, x_2, x_3, x_9, x_10, x_10, x_4, x_5, x_6, x_7, x_8); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___rarg), 8, 0); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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* l_Lean_Meta_generalizeIndices_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_generalizeIndices_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeIndices_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_generalizeIndices_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_generalizeIndices_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeIndices_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_generalizeIndices_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_generalizeIndices_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_generalizeIndices_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___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) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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) { _start: { lean_object* x_16; lean_object* x_17; @@ -1119,7 +2514,7 @@ lean_inc(x_22); lean_dec(x_20); lean_inc(x_11); lean_inc(x_16); -x_23 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_16, x_18, x_11, x_12, x_13, x_14, x_22); +x_23 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(x_16, x_18, x_11, x_12, x_13, x_14, x_22); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -1131,7 +2526,7 @@ lean_dec(x_23); x_26 = l_Lean_mkOptionalNode___closed__2; x_27 = lean_array_push(x_26, x_3); lean_inc(x_11); -x_28 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_27, x_24, x_11, x_12, x_13, x_14, x_25); +x_28 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(x_27, x_24, x_11, x_12, x_13, x_14, x_25); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -1142,7 +2537,7 @@ lean_inc(x_30); lean_dec(x_28); lean_inc(x_11); lean_inc(x_4); -x_31 = l_Lean_Meta_mkForallFVars___at___private_Lean_Meta_InferType_6__inferLambdaType___spec__1(x_4, x_29, x_11, x_12, x_13, x_14, x_30); +x_31 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_assertAfter___spec__13(x_4, x_29, x_11, x_12, x_13, x_14, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; uint8_t 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; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; @@ -1153,7 +2548,7 @@ lean_inc(x_33); lean_dec(x_31); x_34 = 2; x_35 = lean_unsigned_to_nat(0u); -x_36 = l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(x_5, x_6, x_32, x_34, x_21, x_35, x_11, x_12, x_13, x_14, x_33); +x_36 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_assertAfter___spec__16(x_5, x_6, x_32, x_34, x_21, x_35, x_11, x_12, x_13, x_14, x_33); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -1163,7 +2558,7 @@ lean_inc(x_37); x_39 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_7, x_7, x_35, x_37); x_40 = l_Lean_mkApp(x_39, x_8); x_41 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_9, x_9, x_35, x_40); -x_42 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_2, x_41, x_11, x_12, x_13, x_14, x_38); +x_42 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_2, x_41, x_11, x_12, x_13, x_14, x_38); x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); lean_dec(x_42); @@ -1467,7 +2862,7 @@ return x_94; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, lean_object* x_14) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, lean_object* x_14) { _start: { lean_object* x_15; lean_object* x_16; @@ -1478,7 +2873,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_2); lean_inc(x_15); -x_16 = l___private_Lean_Meta_Tactic_Cases_2__mkEqAndProof(x_15, x_2, x_10, x_11, x_12, x_13, x_14); +x_16 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof(x_15, x_2, x_10, x_11, x_12, x_13, x_14); if (lean_obj_tag(x_16) == 0) { 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; uint8_t x_24; lean_object* x_25; @@ -1493,7 +2888,7 @@ x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); x_21 = lean_array_push(x_9, x_20); -x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__1___boxed), 15, 9); +x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__1___boxed), 15, 9); lean_closure_set(x_22, 0, x_8); lean_closure_set(x_22, 1, x_3); lean_closure_set(x_22, 2, x_2); @@ -1503,9 +2898,9 @@ lean_closure_set(x_22, 5, x_6); lean_closure_set(x_22, 6, x_7); lean_closure_set(x_22, 7, x_15); lean_closure_set(x_22, 8, x_21); -x_23 = l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2; +x_23 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2; x_24 = 0; -x_25 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(x_23, x_24, x_19, x_22, x_10, x_11, x_12, x_13, x_18); +x_25 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_23, x_24, x_19, x_22, x_10, x_11, x_12, x_13, x_18); return x_25; } else @@ -1545,13 +2940,13 @@ return x_29; } } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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; lean_object* x_14; lean_inc(x_6); lean_inc(x_3); -x_13 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__2___boxed), 14, 7); +x_13 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__2___boxed), 14, 7); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_7); lean_closure_set(x_13, 2, x_2); @@ -1559,18 +2954,18 @@ lean_closure_set(x_13, 3, x_3); lean_closure_set(x_13, 4, x_4); lean_closure_set(x_13, 5, x_5); lean_closure_set(x_13, 6, x_6); -x_14 = l___private_Lean_Meta_Tactic_Cases_4__withNewIndexEqs___rarg(x_6, x_3, x_13, x_8, x_9, x_10, x_11, x_12); +x_14 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs___rarg(x_6, x_3, x_13, x_8, x_9, x_10, x_11, x_12); return x_14; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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; uint8_t x_18; lean_object* x_19; x_14 = lean_unsigned_to_nat(0u); x_15 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_7, x_7, x_14, x_1); x_16 = l_Lean_LocalDecl_userName(x_2); -x_17 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__3), 12, 6); +x_17 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__3), 12, 6); lean_closure_set(x_17, 0, x_2); lean_closure_set(x_17, 1, x_3); lean_closure_set(x_17, 2, x_7); @@ -1578,39 +2973,87 @@ lean_closure_set(x_17, 3, x_4); lean_closure_set(x_17, 4, x_5); lean_closure_set(x_17, 5, x_6); x_18 = 0; -x_19 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(x_16, x_18, x_15, x_17, x_9, x_10, x_11, x_12, x_13); +x_19 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_16, x_18, x_15, x_17, x_9, x_10, x_11, x_12, x_13); return x_19; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1() { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5(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_1; -x_1 = lean_mk_string("indexed inductive type expected"); -return x_1; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2() { -_start: +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; +x_14 = lean_array_get_size(x_1); +x_15 = lean_ctor_get(x_2, 2); +lean_inc(x_15); +x_16 = lean_nat_sub(x_14, x_15); +lean_dec(x_15); +lean_inc(x_1); +x_17 = l_Array_extract___rarg(x_1, x_16, x_14); +x_18 = lean_ctor_get(x_2, 1); +lean_inc(x_18); +lean_dec(x_2); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Array_extract___rarg(x_1, x_19, x_18); +x_21 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_20, x_20, x_19, x_3); +lean_dec(x_20); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_21); +x_22 = l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(x_21, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__4___boxed), 13, 6); +lean_closure_set(x_25, 0, x_21); +lean_closure_set(x_25, 1, x_4); +lean_closure_set(x_25, 2, x_5); +lean_closure_set(x_25, 3, x_6); +lean_closure_set(x_25, 4, x_7); +lean_closure_set(x_25, 5, x_17); +x_26 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_generalizeIndices___spec__1___rarg(x_23, x_25, x_9, x_10, x_11, x_12, x_24); +return x_26; } -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3() { -_start: +else { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +uint8_t x_27; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_27 = !lean_is_exclusive(x_22); +if (x_27 == 0) +{ +return x_22; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_22); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4() { +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1() { _start: { lean_object* x_1; @@ -1618,27 +3061,115 @@ x_1 = lean_mk_string("ill-formed inductive datatype"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(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, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_array_get_size(x_1); +x_16 = lean_ctor_get(x_2, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_2, 1); +lean_inc(x_17); +x_18 = lean_nat_add(x_16, x_17); +lean_dec(x_17); +lean_dec(x_16); +x_19 = lean_nat_dec_eq(x_15, x_18); +lean_dec(x_18); +lean_dec(x_15); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3; +x_21 = lean_box(0); +x_22 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_5, x_20, x_21, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +return x_22; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_22); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_8); +x_27 = lean_box(0); +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_27, x_10, x_11, x_12, x_13, x_14); +return x_28; +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("indexed inductive type expected"); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, lean_object* x_12, lean_object* x_13) { _start: { switch (lean_obj_tag(x_6)) { @@ -1691,17 +3222,17 @@ x_25 = lean_ctor_get(x_24, 2); lean_inc(x_25); x_26 = lean_unsigned_to_nat(0u); x_27 = lean_nat_dec_lt(x_26, x_25); +lean_dec(x_25); if (x_27 == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_25); lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3; +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3; x_29 = lean_box(0); x_30 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_28, x_29, x_9, x_10, x_11, x_12, x_17); lean_dec(x_12); @@ -1729,180 +3260,66 @@ return x_34; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_52; uint8_t x_53; -x_35 = lean_array_get_size(x_7); -x_36 = lean_ctor_get(x_24, 1); -lean_inc(x_36); -lean_dec(x_24); -x_52 = lean_nat_add(x_25, x_36); -x_53 = lean_nat_dec_eq(x_35, x_52); -lean_dec(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_36); -lean_dec(x_35); -lean_dec(x_25); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_54 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6; -x_55 = lean_box(0); -x_56 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_54, x_55, x_9, x_10, x_11, x_12, x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -return x_56; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_35; lean_object* x_36; +x_35 = lean_box(0); +x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(x_7, x_24, x_6, x_5, x_1, x_2, x_3, x_4, x_35, x_9, x_10, x_11, x_12, x_17); +return x_36; } } else { -lean_dec(x_4); -x_37 = x_17; -goto block_51; -} -block_51: -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_nat_sub(x_35, x_25); -lean_dec(x_25); -lean_inc(x_7); -x_39 = l_Array_extract___rarg(x_7, x_38, x_35); -x_40 = l_Array_extract___rarg(x_7, x_26, x_36); -x_41 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_40, x_40, x_26, x_6); -lean_dec(x_40); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_41); -x_42 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_41, x_9, x_10, x_11, x_12, x_37); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__4___boxed), 13, 6); -lean_closure_set(x_45, 0, x_41); -lean_closure_set(x_45, 1, x_5); -lean_closure_set(x_45, 2, x_1); -lean_closure_set(x_45, 3, x_2); -lean_closure_set(x_45, 4, x_3); -lean_closure_set(x_45, 5, x_39); -x_46 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNamesImp___spec__3___rarg(x_43, x_45, x_9, x_10, x_11, x_12, x_44); -return x_46; -} -else -{ -uint8_t x_47; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_47 = !lean_is_exclusive(x_42); -if (x_47 == 0) -{ -return x_42; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_42, 0); -x_49 = lean_ctor_get(x_42, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_42); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_23); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_61 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; -x_62 = lean_box(0); -x_63 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_61, x_62, x_9, x_10, x_11, x_12, x_17); +x_37 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; +x_38 = lean_box(0); +x_39 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_37, x_38, x_9, x_10, x_11, x_12, x_17); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -return x_63; +return x_39; } } } case 5: { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_64 = lean_ctor_get(x_6, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_6, 1); -lean_inc(x_65); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_6, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_6, 1); +lean_inc(x_41); lean_dec(x_6); -x_66 = lean_array_set(x_7, x_8, x_65); -x_67 = lean_unsigned_to_nat(1u); -x_68 = lean_nat_sub(x_8, x_67); +x_42 = lean_array_set(x_7, x_8, x_41); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_sub(x_8, x_43); lean_dec(x_8); -x_6 = x_64; -x_7 = x_66; -x_8 = x_68; +x_6 = x_40; +x_7 = x_42; +x_8 = x_44; goto _start; } default: { -lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_70 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; -x_71 = lean_box(0); -x_72 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_70, x_71, x_9, x_10, x_11, x_12, x_13); +x_46 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__8; +x_47 = lean_box(0); +x_48 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_46, x_47, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -return x_72; +return x_48; } } } @@ -1929,7 +3346,7 @@ lean_object* l_Lean_Meta_generalizeIndices___lambda__1(lean_object* x_1, lean_ob _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_assertAfter___spec__2(x_4, x_5, x_6, x_7, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -1945,7 +3362,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); lean_inc(x_4); -x_15 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_2, x_4, x_5, x_6, x_7, x_14); +x_15 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_2, x_4, x_5, x_6, x_7, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -1959,7 +3376,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_19 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_18, x_4, x_5, x_6, x_7, x_17); +x_19 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_18, x_4, x_5, x_6, x_7, x_17); if (lean_obj_tag(x_19) == 0) { 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; @@ -1976,7 +3393,7 @@ x_25 = lean_mk_array(x_23, x_24); x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_sub(x_23, x_26); lean_dec(x_23); -x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1(x_1, x_3, x_10, x_12, x_16, x_20, x_25, x_27, x_4, x_5, x_6, x_7, x_21); +x_28 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2(x_1, x_3, x_10, x_12, x_16, x_20, x_25, x_27, x_4, x_5, x_6, x_7, x_21); return x_28; } else @@ -2084,763 +3501,633 @@ x_9 = l___private_Lean_Meta_Basic_5__mkFreshExprMVarWithIdCore___rarg___closed__ x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_10, 0, x_9); lean_closure_set(x_10, 1, x_8); -x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); return x_11; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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) { _start: { lean_object* x_16; -x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__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, x_13, x_14, x_15); +x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__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, x_13, x_14, x_15); lean_dec(x_9); lean_dec(x_7); return x_16; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_1); return x_15; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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_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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___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, 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; -x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_8); return x_14; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___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) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5___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, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +return x_14; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +return x_15; +} +} +lean_object* l_Lean_Meta_Cases_Context_nminors___default(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_ctor_get(x_1, 4); +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_List_lengthAux___main___rarg(x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Meta_Cases_Context_nminors___default___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Cases_Context_nminors___default(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_array_get_size(x_2); +x_4 = lean_ctor_get(x_1, 2); +x_5 = lean_nat_sub(x_3, x_4); +x_6 = l_Array_extract___rarg(x_2, x_5, x_3); +return x_6; +} +} +lean_object* l_Lean_Meta_Cases_Context_majorTypeIndices___default___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Cases_Context_majorTypeIndices___default(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_5); +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___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: { switch (lean_obj_tag(x_3)) { case 4: { -lean_object* x_11; lean_object* x_12; uint8_t x_13; +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_dec(x_5); x_11 = lean_ctor_get(x_3, 0); lean_inc(x_11); x_12 = lean_st_ref_get(x_9, x_10); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_15 = x_12; +} else { + lean_dec_ref(x_12); + x_15 = lean_box(0); +} +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_environment_find(x_16, x_11); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_environment_find(x_15, x_11); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; +lean_object* x_18; lean_object* x_19; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_17 = lean_box(0); -lean_ctor_set(x_12, 0, x_17); -return x_12; +x_18 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_15; +} +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_14); +return x_19; } else { -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -if (lean_obj_tag(x_18) == 5) +lean_object* x_20; +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +lean_dec(x_17); +if (lean_obj_tag(x_20) == 5) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_array_get_size(x_4); -x_21 = lean_ctor_get(x_19, 2); +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -x_23 = lean_nat_add(x_21, x_22); -lean_dec(x_22); -x_24 = lean_nat_dec_eq(x_20, x_23); -lean_dec(x_23); +lean_dec(x_20); +x_22 = lean_array_get_size(x_4); +x_23 = lean_ctor_get(x_21, 2); +lean_inc(x_23); +x_59 = lean_ctor_get(x_21, 1); +lean_inc(x_59); +x_60 = lean_nat_add(x_23, x_59); +lean_dec(x_59); +x_61 = lean_nat_dec_eq(x_22, x_60); +lean_dec(x_60); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = 1; +x_24 = x_62; +goto block_58; +} +else +{ +uint8_t x_63; +x_63 = 0; +x_24 = x_63; +goto block_58; +} +block_58: +{ if (x_24 == 0) { -lean_object* x_25; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_25 = lean_box(0); -lean_ctor_set(x_12, 0, x_25); -return x_12; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_19, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_dec(x_26); -x_28 = l_Lean_Meta_casesOnSuffix___closed__1; -x_29 = lean_name_mk_string(x_27, x_28); -x_30 = lean_environment_find(x_1, x_29); -if (lean_obj_tag(x_30) == 0) +lean_dec(x_25); +x_27 = l_Lean_Meta_casesOnSuffix___closed__1; +x_28 = lean_name_mk_string(x_26, x_27); +x_29 = lean_environment_find(x_1, x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_31; +lean_object* x_30; lean_object* x_31; +lean_dec(x_23); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_31 = lean_box(0); -lean_ctor_set(x_12, 0, x_31); -return x_12; +x_30 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_15; +} +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_14); +return x_31; } else { uint8_t x_32; -x_32 = !lean_is_exclusive(x_30); +x_32 = !lean_is_exclusive(x_29); if (x_32 == 0) { lean_object* x_33; -x_33 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_29, 0); if (lean_obj_tag(x_33) == 1) { -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_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; x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); lean_dec(x_33); -x_35 = lean_ctor_get(x_19, 4); +x_35 = lean_ctor_get(x_21, 4); lean_inc(x_35); x_36 = lean_unsigned_to_nat(0u); x_37 = l_List_lengthAux___main___rarg(x_35, x_36); lean_dec(x_35); -x_38 = lean_nat_sub(x_20, x_21); -lean_dec(x_21); +x_38 = lean_nat_sub(x_22, x_23); +lean_dec(x_23); lean_inc(x_4); -x_39 = l_Array_extract___rarg(x_4, x_38, x_20); +x_39 = l_Array_extract___rarg(x_4, x_38, x_22); x_40 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_40, 0, x_19); +lean_ctor_set(x_40, 0, x_21); lean_ctor_set(x_40, 1, x_34); lean_ctor_set(x_40, 2, x_37); lean_ctor_set(x_40, 3, x_2); lean_ctor_set(x_40, 4, x_3); lean_ctor_set(x_40, 5, x_4); lean_ctor_set(x_40, 6, x_39); -lean_ctor_set(x_30, 0, x_40); -lean_ctor_set(x_12, 0, x_30); -return x_12; +lean_ctor_set(x_29, 0, x_40); +if (lean_is_scalar(x_15)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_15; +} +lean_ctor_set(x_41, 0, x_29); +lean_ctor_set(x_41, 1, x_14); +return x_41; } else { -lean_object* x_41; -lean_free_object(x_30); +lean_object* x_42; lean_object* x_43; +lean_free_object(x_29); lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_41 = lean_box(0); -lean_ctor_set(x_12, 0, x_41); -return x_12; +x_42 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_15; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_14); +return x_43; } } else { -lean_object* x_42; -x_42 = lean_ctor_get(x_30, 0); -lean_inc(x_42); -lean_dec(x_30); -if (lean_obj_tag(x_42) == 1) -{ -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; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_ctor_get(x_19, 4); +lean_object* x_44; +x_44 = lean_ctor_get(x_29, 0); lean_inc(x_44); -x_45 = lean_unsigned_to_nat(0u); -x_46 = l_List_lengthAux___main___rarg(x_44, x_45); +lean_dec(x_29); +if (lean_obj_tag(x_44) == 1) +{ +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; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); lean_dec(x_44); -x_47 = lean_nat_sub(x_20, x_21); -lean_dec(x_21); +x_46 = lean_ctor_get(x_21, 4); +lean_inc(x_46); +x_47 = lean_unsigned_to_nat(0u); +x_48 = l_List_lengthAux___main___rarg(x_46, x_47); +lean_dec(x_46); +x_49 = lean_nat_sub(x_22, x_23); +lean_dec(x_23); lean_inc(x_4); -x_48 = l_Array_extract___rarg(x_4, x_47, x_20); -x_49 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_49, 0, x_19); -lean_ctor_set(x_49, 1, x_43); -lean_ctor_set(x_49, 2, x_46); -lean_ctor_set(x_49, 3, x_2); -lean_ctor_set(x_49, 4, x_3); -lean_ctor_set(x_49, 5, x_4); -lean_ctor_set(x_49, 6, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_12, 0, x_50); -return x_12; +x_50 = l_Array_extract___rarg(x_4, x_49, x_22); +x_51 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_51, 0, x_21); +lean_ctor_set(x_51, 1, x_45); +lean_ctor_set(x_51, 2, x_48); +lean_ctor_set(x_51, 3, x_2); +lean_ctor_set(x_51, 4, x_3); +lean_ctor_set(x_51, 5, x_4); +lean_ctor_set(x_51, 6, x_50); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +if (lean_is_scalar(x_15)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_15; +} +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_14); +return x_53; } else { -lean_object* x_51; -lean_dec(x_42); +lean_object* x_54; lean_object* x_55; +lean_dec(x_44); +lean_dec(x_23); +lean_dec(x_22); lean_dec(x_21); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_15; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_14); +return x_55; +} +} +} +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_56 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_15; +} +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_14); +return x_57; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_51 = lean_box(0); -lean_ctor_set(x_12, 0, x_51); -return x_12; -} -} -} -} -} -else -{ -lean_object* x_52; -lean_dec(x_18); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = lean_box(0); -lean_ctor_set(x_12, 0, x_52); -return x_12; -} -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_12, 0); -x_54 = lean_ctor_get(x_12, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_12); -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_environment_find(x_55, x_11); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_54); -return x_58; -} -else -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_56, 0); -lean_inc(x_59); -lean_dec(x_56); -if (lean_obj_tag(x_59) == 5) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_array_get_size(x_4); -x_62 = lean_ctor_get(x_60, 2); -lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -x_64 = lean_nat_add(x_62, x_63); -lean_dec(x_63); -x_65 = lean_nat_dec_eq(x_61, x_64); -lean_dec(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_62); -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_54); -return x_67; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_68 = lean_ctor_get(x_60, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -lean_dec(x_68); -x_70 = l_Lean_Meta_casesOnSuffix___closed__1; -x_71 = lean_name_mk_string(x_69, x_70); -x_72 = lean_environment_find(x_1, x_71); -if (lean_obj_tag(x_72) == 0) -{ -lean_object* x_73; lean_object* x_74; -lean_dec(x_62); -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_54); -return x_74; -} -else -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_72, 0); -lean_inc(x_75); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - x_76 = x_72; +x_64 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_72); - x_76 = lean_box(0); -} -if (lean_obj_tag(x_75) == 1) -{ -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; -x_77 = lean_ctor_get(x_75, 0); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_60, 4); -lean_inc(x_78); -x_79 = lean_unsigned_to_nat(0u); -x_80 = l_List_lengthAux___main___rarg(x_78, x_79); -lean_dec(x_78); -x_81 = lean_nat_sub(x_61, x_62); -lean_dec(x_62); -lean_inc(x_4); -x_82 = l_Array_extract___rarg(x_4, x_81, x_61); -x_83 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_83, 0, x_60); -lean_ctor_set(x_83, 1, x_77); -lean_ctor_set(x_83, 2, x_80); -lean_ctor_set(x_83, 3, x_2); -lean_ctor_set(x_83, 4, x_3); -lean_ctor_set(x_83, 5, x_4); -lean_ctor_set(x_83, 6, x_82); -if (lean_is_scalar(x_76)) { - x_84 = lean_alloc_ctor(1, 1, 0); -} else { - x_84 = x_76; -} -lean_ctor_set(x_84, 0, x_83); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_54); -return x_85; -} -else -{ -lean_object* x_86; lean_object* x_87; -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_62); -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_86 = lean_box(0); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_54); -return x_87; -} -} -} -} -else -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_59); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_88 = lean_box(0); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_54); -return x_89; + x_65 = x_15; } +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_14); +return x_65; } } } case 5: { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_90 = lean_ctor_get(x_3, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_3, 1); -lean_inc(x_91); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_66 = lean_ctor_get(x_3, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_3, 1); +lean_inc(x_67); lean_dec(x_3); -x_92 = lean_array_set(x_4, x_5, x_91); -x_93 = lean_unsigned_to_nat(1u); -x_94 = lean_nat_sub(x_5, x_93); +x_68 = lean_array_set(x_4, x_5, x_67); +x_69 = lean_unsigned_to_nat(1u); +x_70 = lean_nat_sub(x_5, x_69); lean_dec(x_5); -x_3 = x_90; -x_4 = x_92; -x_5 = x_94; +x_3 = x_66; +x_4 = x_68; +x_5 = x_70; goto _start; } default: { -lean_object* x_96; lean_object* x_97; +lean_object* x_72; lean_object* x_73; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_96 = lean_box(0); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_10); -return x_97; +x_72 = lean_box(0); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_10); +return x_73; } } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f(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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f(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; uint8_t x_8; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_38; uint8_t x_39; x_7 = lean_st_ref_get(x_5, x_6); -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -x_11 = lean_ctor_get(x_9, 0); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_10 = x_7; +} else { + lean_dec_ref(x_7); + x_10 = lean_box(0); +} +x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Expr_eq_x3f___closed__2; +lean_dec(x_8); +x_38 = l_Lean_Expr_eq_x3f___closed__2; lean_inc(x_11); -x_13 = l_Lean_Environment_contains(x_11, x_12); -if (x_13 == 0) +x_39 = l_Lean_Environment_contains(x_11, x_38); +if (x_39 == 0) { -lean_object* x_14; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_14 = lean_box(0); -lean_ctor_set(x_7, 0, x_14); -return x_7; +uint8_t x_40; +x_40 = 1; +x_12 = x_40; +goto block_37; } else { -lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Expr_heq_x3f___closed__2; +lean_object* x_41; uint8_t x_42; +x_41 = l_Lean_Expr_heq_x3f___closed__2; lean_inc(x_11); -x_16 = l_Lean_Environment_contains(x_11, x_15); -if (x_16 == 0) +x_42 = l_Lean_Environment_contains(x_11, x_41); +if (x_42 == 0) { -lean_object* x_17; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_17 = lean_box(0); -lean_ctor_set(x_7, 0, x_17); -return x_7; +uint8_t x_43; +x_43 = 1; +x_12 = x_43; +goto block_37; } else { -lean_object* x_18; -lean_free_object(x_7); +uint8_t x_44; +x_44 = 0; +x_12 = x_44; +goto block_37; +} +} +block_37: +{ +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); lean_inc(x_2); -x_18 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_2, x_3, x_4, x_5, x_10); -if (lean_obj_tag(x_18) == 0) +x_13 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_LocalDecl_type(x_14); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_16, x_2, x_3, x_4, x_5, x_15); +if (lean_obj_tag(x_17) == 0) +{ +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; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_LocalDecl_type(x_19); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_22 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_21, x_2, x_3, x_4, x_5, x_20); -if (lean_obj_tag(x_22) == 0) -{ -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; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Lean_Expr_getAppNumArgsAux___main(x_23, x_25); -x_27 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_26); -x_28 = lean_mk_array(x_26, x_27); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_sub(x_26, x_29); -lean_dec(x_26); -x_31 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___spec__1(x_11, x_19, x_23, x_28, x_30, x_2, x_3, x_4, x_5, x_24); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_Expr_getAppNumArgsAux___main(x_18, x_20); +x_22 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_21); +x_23 = lean_mk_array(x_21, x_22); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_sub(x_21, x_24); +lean_dec(x_21); +x_26 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___spec__1(x_11, x_14, x_18, x_23, x_25, x_2, x_3, x_4, x_5, x_19); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_31; +return x_26; } else { -uint8_t x_32; -lean_dec(x_19); +uint8_t x_27; +lean_dec(x_14); lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_32 = !lean_is_exclusive(x_22); -if (x_32 == 0) +x_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) { -return x_22; +return x_17; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_22, 0); -x_34 = lean_ctor_get(x_22, 1); -lean_inc(x_34); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_17, 0); +x_29 = lean_ctor_get(x_17, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_17); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_31 = !lean_is_exclusive(x_13); +if (x_31 == 0) +{ +return x_13; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_13, 0); +x_33 = lean_ctor_get(x_13, 1); lean_inc(x_33); -lean_dec(x_22); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_inc(x_32); +lean_dec(x_13); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -uint8_t x_36; +lean_object* x_35; lean_object* x_36; lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_36 = !lean_is_exclusive(x_18); -if (x_36 == 0) -{ -return x_18; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_18, 0); -x_38 = lean_ctor_get(x_18, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_18); -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; -} -} -} -} -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_7, 0); -x_41 = lean_ctor_get(x_7, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_7); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_Expr_eq_x3f___closed__2; -lean_inc(x_42); -x_44 = l_Lean_Environment_contains(x_42, x_43); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -lean_dec(x_42); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_41); -return x_46; -} -else -{ -lean_object* x_47; uint8_t x_48; -x_47 = l_Lean_Expr_heq_x3f___closed__2; -lean_inc(x_42); -x_48 = l_Lean_Environment_contains(x_42, x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_42); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_49 = lean_box(0); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_41); -return x_50; -} -else -{ -lean_object* x_51; -lean_inc(x_2); -x_51 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_2, x_3, x_4, x_5, x_41); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = l_Lean_LocalDecl_type(x_52); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_55 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_54, x_2, x_3, x_4, x_5, x_53); -if (lean_obj_tag(x_55) == 0) -{ -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_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_unsigned_to_nat(0u); -x_59 = l_Lean_Expr_getAppNumArgsAux___main(x_56, x_58); -x_60 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_59); -x_61 = lean_mk_array(x_59, x_60); -x_62 = lean_unsigned_to_nat(1u); -x_63 = lean_nat_sub(x_59, x_62); -lean_dec(x_59); -x_64 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___spec__1(x_42, x_52, x_56, x_61, x_63, x_2, x_3, x_4, x_5, x_57); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_64; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_52); -lean_dec(x_42); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_65 = lean_ctor_get(x_55, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_55, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_67 = x_55; +x_35 = lean_box(0); +if (lean_is_scalar(x_10)) { + x_36 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_55); - x_67 = lean_box(0); + x_36 = x_10; } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); -} else { - x_68 = x_67; -} -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; -} -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_42); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_69 = lean_ctor_get(x_51, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_51, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_71 = x_51; -} else { - lean_dec_ref(x_51); - x_71 = lean_box(0); -} -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); -} else { - x_72 = x_71; -} -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_9); +return x_36; } } } } -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___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) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___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: { lean_object* x_11; -x_11 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f___spec__1(x_1, x_2, x_3, 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); @@ -2848,7 +4135,7 @@ lean_dec(x_6); return x_11; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -2885,7 +4172,7 @@ goto _start; } } } -uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -2927,7 +4214,7 @@ return x_16; } } } -uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +uint8_t l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -2941,7 +4228,7 @@ x_7 = lean_nat_sub(x_3, x_6); x_8 = lean_nat_sub(x_2, x_3); lean_dec(x_3); lean_inc(x_8); -x_9 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2(x_1, x_8, x_8, x_8); +x_9 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2(x_1, x_8, x_8, x_8); lean_dec(x_8); if (x_9 == 0) { @@ -2965,7 +4252,7 @@ return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -3002,7 +4289,7 @@ return x_10; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -3041,7 +4328,7 @@ return x_14; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9(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: { uint8_t x_8; @@ -3057,7 +4344,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -3076,7 +4363,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10(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: { uint8_t x_8; @@ -3110,7 +4397,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -3132,7 +4419,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -3141,7 +4428,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -3151,13 +4438,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(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: { uint8_t x_8; @@ -3191,7 +4478,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -3213,19 +4500,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -3235,7 +4522,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(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: { switch (lean_obj_tag(x_5)) { @@ -3247,7 +4534,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -3290,7 +4577,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -3429,7 +4716,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -3590,7 +4877,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -3740,7 +5027,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -3856,7 +5143,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -3935,7 +5222,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -4140,7 +5427,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15(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: { uint8_t x_8; @@ -4156,7 +5443,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -4175,7 +5462,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(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: { uint8_t x_8; @@ -4209,7 +5496,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -4231,7 +5518,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -4240,7 +5527,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -4250,13 +5537,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17(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: { uint8_t x_8; @@ -4290,7 +5577,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -4312,19 +5599,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -4334,7 +5621,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(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: { switch (lean_obj_tag(x_5)) { @@ -4346,7 +5633,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -4389,7 +5676,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -4528,7 +5815,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -4689,7 +5976,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -4839,7 +6126,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -4955,7 +6242,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -5034,7 +6321,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -5239,7 +6526,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21(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: { uint8_t x_8; @@ -5255,7 +6542,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -5274,7 +6561,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22(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: { uint8_t x_8; @@ -5308,7 +6595,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -5330,7 +6617,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -5339,7 +6626,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -5349,13 +6636,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23(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: { uint8_t x_8; @@ -5389,7 +6676,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -5411,19 +6698,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -5433,7 +6720,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(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: { switch (lean_obj_tag(x_5)) { @@ -5445,7 +6732,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -5488,7 +6775,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -5627,7 +6914,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -5788,7 +7075,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -5938,7 +7225,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -6054,7 +7341,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -6133,7 +7420,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -6338,7 +7625,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27(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: { uint8_t x_8; @@ -6354,7 +7641,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -6373,7 +7660,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(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: { uint8_t x_8; @@ -6407,7 +7694,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -6429,7 +7716,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -6438,7 +7725,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -6448,13 +7735,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(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: { uint8_t x_8; @@ -6488,7 +7775,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -6510,19 +7797,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -6532,7 +7819,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(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: { switch (lean_obj_tag(x_5)) { @@ -6544,7 +7831,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -6587,7 +7874,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -6726,7 +8013,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -6887,7 +8174,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -7037,7 +8324,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -7153,7 +8440,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -7232,7 +8519,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -7437,7 +8724,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(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: { uint8_t x_8; @@ -7453,7 +8740,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -7472,7 +8759,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34(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: { uint8_t x_8; @@ -7506,7 +8793,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -7528,7 +8815,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -7537,7 +8824,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -7547,13 +8834,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35(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: { uint8_t x_8; @@ -7587,7 +8874,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -7609,19 +8896,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -7631,7 +8918,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(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: { switch (lean_obj_tag(x_5)) { @@ -7643,7 +8930,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -7686,7 +8973,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -7825,7 +9112,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -7986,7 +9273,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -8136,7 +9423,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -8252,7 +9539,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -8331,7 +9618,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -8536,7 +9823,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39(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: { uint8_t x_8; @@ -8552,7 +9839,7 @@ else { lean_object* x_10; uint8_t x_11; x_10 = lean_array_fget(x_5, x_7); -x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38(x_1, x_2, x_3, x_10); +x_11 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_10); lean_dec(x_10); if (x_11 == 0) { @@ -8571,7 +9858,7 @@ return x_11; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(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: { uint8_t x_8; @@ -8605,7 +9892,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -8627,7 +9914,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -8636,7 +9923,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = lean_ctor_get(x_4, 0); x_6 = lean_array_get_size(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39(x_1, x_2, x_3, x_5, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39(x_1, x_2, x_3, x_5, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -8646,13 +9933,13 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_ctor_get(x_4, 0); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40(x_1, x_2, x_3, x_9, x_9, x_10, x_11); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(x_1, x_2, x_3, x_9, x_9, x_10, x_11); lean_dec(x_10); return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41(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: { uint8_t x_8; @@ -8686,7 +9973,7 @@ lean_dec(x_10); x_15 = l_Lean_LocalDecl_fvarId(x_14); lean_dec(x_14); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); +x_17 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_15, x_2, x_3, x_16); lean_dec(x_15); if (x_17 == 0) { @@ -8708,19 +9995,19 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38(x_1, x_2, x_3, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_5); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_ctor_get(x_4, 1); x_8 = lean_array_get_size(x_7); x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41(x_1, x_2, x_3, x_4, x_7, x_8, x_9); +x_10 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41(x_1, x_2, x_3, x_4, x_7, x_8, x_9); lean_dec(x_8); return x_10; } @@ -8730,7 +10017,7 @@ return x_6; } } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(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: { switch (lean_obj_tag(x_5)) { @@ -8742,7 +10029,7 @@ x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_7, x_2, x_3, x_8); lean_dec(x_7); if (x_9 == 0) { @@ -8785,7 +10072,7 @@ lean_dec(x_18); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37(x_1, x_2, x_3, x_20); +x_21 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(x_1, x_2, x_3, x_20); lean_dec(x_20); x_22 = lean_box(x_21); x_23 = lean_alloc_ctor(0, 2, 0); @@ -8924,7 +10211,7 @@ x_51 = lean_ctor_get(x_36, 1); lean_inc(x_51); lean_dec(x_36); lean_inc(x_4); -x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_35, x_51); +x_52 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_35, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_unbox(x_53); @@ -9085,7 +10372,7 @@ x_86 = lean_ctor_get(x_73, 1); lean_inc(x_86); lean_dec(x_73); lean_inc(x_4); -x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_71, x_86); +x_87 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_71, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -9235,7 +10522,7 @@ x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); lean_inc(x_4); -x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_104, x_119); +x_120 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_104, x_119); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_unbox(x_121); @@ -9351,7 +10638,7 @@ x_181 = lean_ctor_get(x_176, 1); lean_inc(x_181); lean_dec(x_176); lean_inc(x_4); -x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_137, x_181); +x_182 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_137, x_181); x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); x_184 = lean_ctor_get(x_182, 1); @@ -9430,7 +10717,7 @@ x_155 = lean_ctor_get(x_142, 1); lean_inc(x_155); lean_dec(x_142); lean_inc(x_4); -x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_138, x_155); +x_156 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_138, x_155); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_unbox(x_157); @@ -9635,7 +10922,7 @@ return x_208; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44(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: { uint8_t x_9; @@ -9653,7 +10940,7 @@ else lean_object* x_11; uint8_t x_12; x_11 = lean_array_fget(x_6, x_8); lean_inc(x_4); -x_12 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_11); +x_12 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_11); lean_dec(x_11); if (x_12 == 0) { @@ -9673,7 +10960,7 @@ return x_12; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45(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: { uint8_t x_9; @@ -9714,7 +11001,7 @@ if (x_19 == 0) { lean_object* x_20; uint8_t x_21; x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4(x_1, x_16, x_2, x_3, x_20); +x_21 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(x_1, x_16, x_2, x_3, x_20); lean_dec(x_16); if (x_21 == 0) { @@ -9743,7 +11030,7 @@ else lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; x_26 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_27 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_22, x_26); +x_27 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_22, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); lean_dec(x_27); @@ -9773,7 +11060,7 @@ else lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_34 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_35 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_22, x_34); +x_35 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_22, x_34); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); lean_dec(x_35); @@ -9826,7 +11113,7 @@ else lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; x_71 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_72 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_42, x_71); +x_72 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_42, x_71); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); @@ -9844,7 +11131,7 @@ else lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; x_76 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_77 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_42, x_76); +x_77 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_42, x_76); x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); x_79 = lean_ctor_get(x_77, 1); @@ -9880,7 +11167,7 @@ else { lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_inc(x_4); -x_49 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_43, x_45); +x_49 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_43, x_45); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); lean_dec(x_49); @@ -9909,7 +11196,7 @@ else { lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_inc(x_4); -x_56 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_43, x_45); +x_56 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_43, x_45); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); lean_dec(x_56); @@ -9974,7 +11261,7 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_5) == 0) @@ -9983,7 +11270,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_6 = lean_ctor_get(x_5, 0); x_7 = lean_array_get_size(x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44(x_1, x_2, x_3, x_4, x_6, x_6, x_7, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44(x_1, x_2, x_3, x_4, x_6, x_6, x_7, x_8); lean_dec(x_7); return x_9; } @@ -9993,13 +11280,13 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_10 = lean_ctor_get(x_5, 0); x_11 = lean_array_get_size(x_10); x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45(x_1, x_2, x_3, x_4, x_10, x_10, x_11, x_12); +x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45(x_1, x_2, x_3, x_4, x_10, x_10, x_11, x_12); lean_dec(x_11); return x_13; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46(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) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46(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: { uint8_t x_9; @@ -10040,7 +11327,7 @@ if (x_19 == 0) { lean_object* x_20; uint8_t x_21; x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4(x_1, x_16, x_2, x_3, x_20); +x_21 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(x_1, x_16, x_2, x_3, x_20); lean_dec(x_16); if (x_21 == 0) { @@ -10069,7 +11356,7 @@ else lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; x_26 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_27 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_22, x_26); +x_27 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_22, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); lean_dec(x_27); @@ -10099,7 +11386,7 @@ else lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_34 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_35 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_22, x_34); +x_35 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_22, x_34); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); lean_dec(x_35); @@ -10152,7 +11439,7 @@ else lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; x_71 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_72 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_42, x_71); +x_72 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_42, x_71); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); @@ -10170,7 +11457,7 @@ else lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; x_76 = l_Std_HashSet_Inhabited___closed__1; lean_inc(x_4); -x_77 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_42, x_76); +x_77 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_42, x_76); x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); x_79 = lean_ctor_get(x_77, 1); @@ -10206,7 +11493,7 @@ else { lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_inc(x_4); -x_49 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_43, x_45); +x_49 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_43, x_45); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); lean_dec(x_49); @@ -10235,7 +11522,7 @@ else { lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_inc(x_4); -x_56 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_43, x_45); +x_56 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_43, x_45); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); lean_dec(x_56); @@ -10300,20 +11587,20 @@ goto _start; } } } -uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(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; uint8_t x_7; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_4); -x_7 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_6); +x_7 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_6); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_8 = lean_ctor_get(x_5, 1); x_9 = lean_array_get_size(x_8); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46(x_1, x_2, x_3, x_4, x_5, x_8, x_9, x_10); +x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46(x_1, x_2, x_3, x_4, x_5, x_8, x_9, x_10); lean_dec(x_9); return x_11; } @@ -10324,7 +11611,7 @@ return x_7; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices(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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices(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; uint8_t x_8; @@ -10335,12 +11622,12 @@ if (x_8 == 0) lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_array_get_size(x_7); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1(x_1, x_7, x_9, x_10); +x_11 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(x_1, x_7, x_9, x_10); if (x_11 == 0) { uint8_t x_12; lean_inc(x_9); -x_12 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3(x_7, x_9, x_9); +x_12 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3(x_7, x_9, x_9); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -10355,7 +11642,7 @@ x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); lean_dec(x_16); x_18 = lean_ctor_get(x_13, 1); -x_19 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42(x_1, x_7, x_9, x_17, x_18); +x_19 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(x_1, x_7, x_9, x_17, x_18); lean_dec(x_9); if (x_19 == 0) { @@ -10386,7 +11673,7 @@ x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); lean_dec(x_24); x_27 = lean_ctor_get(x_13, 1); -x_28 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42(x_1, x_7, x_9, x_26, x_27); +x_28 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(x_1, x_7, x_9, x_26, x_27); lean_dec(x_9); if (x_28 == 0) { @@ -10446,11 +11733,11 @@ return x_43; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1___boxed(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; -x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -10458,11 +11745,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2___boxed(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; -x_5 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -10470,22 +11757,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; -x_4 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__3(x_1, x_2, x_3); +x_4 = l_Nat_anyAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); x_5 = lean_box(x_4); return x_5; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__4(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__4(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10494,11 +11781,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__5(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__5(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10507,11 +11794,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10522,11 +11809,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10537,11 +11824,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__8(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__8(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10550,11 +11837,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10565,11 +11852,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__7(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10578,22 +11865,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__6(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10604,11 +11891,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10619,11 +11906,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__14(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__14(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10632,11 +11919,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__17(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__17(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10647,11 +11934,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__13(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__13(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10660,22 +11947,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__12(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10686,11 +11973,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__22(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__22(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10701,11 +11988,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__20(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10714,11 +12001,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__23(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__23(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10729,11 +12016,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__19(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__19(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10742,22 +12029,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__18(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__27(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__27(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10768,11 +12055,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__28(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__28(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10783,11 +12070,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__26(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__26(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10796,11 +12083,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__29(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__29(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10811,11 +12098,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__25(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__25(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10824,22 +12111,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__24(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__33(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__33(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10850,11 +12137,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__34(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__34(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10865,11 +12152,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__32(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__32(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10878,11 +12165,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__35(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__35(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10893,11 +12180,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__31(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__31(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10906,22 +12193,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__30(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__39(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__39(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10932,11 +12219,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__40(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__40(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10947,11 +12234,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38___boxed(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; -x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__38(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10960,11 +12247,11 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41___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: { uint8_t x_8; lean_object* x_9; -x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__41(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__41(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10975,11 +12262,11 @@ x_9 = lean_box(x_8); return x_9; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37___boxed(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; -x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__37(x_1, x_2, x_3, x_4); +x_5 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__37(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -10988,22 +12275,22 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36___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* l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36___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___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_MetavarContext_8__dep___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__36(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44___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: { uint8_t x_9; lean_object* x_10; -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__44(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__44(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); @@ -11014,11 +12301,11 @@ x_10 = lean_box(x_9); return x_10; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45___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: { uint8_t x_9; lean_object* x_10; -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__45(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45(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); @@ -11029,11 +12316,11 @@ x_10 = lean_box(x_9); return x_10; } } -lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Std_PersistentArray_anyMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__43(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); @@ -11042,11 +12329,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46___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* l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46___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: { uint8_t x_9; lean_object* x_10; -x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__46(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_anyRangeMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__46(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); @@ -11057,11 +12344,11 @@ x_10 = lean_box(x_9); return x_10; } } -lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___spec__42(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__42(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); @@ -11070,11 +12357,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___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___private_Lean_Meta_Tactic_Cases_6__hasIndepIndices(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -11083,7 +12370,39 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___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; uint8_t x_11; @@ -11352,7 +12671,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___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) { _start: { lean_object* x_10; uint8_t x_11; @@ -11384,7 +12703,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_18 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__1(x_1, x_2, x_15, x_17, x_5, x_6, x_7, x_8, x_9); +x_18 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__1(x_1, x_2, x_15, x_17, x_5, x_6, x_7, x_8, x_9); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -11402,7 +12721,7 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices(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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices(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; @@ -11410,7 +12729,7 @@ x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); x_9 = x_2; x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__2___boxed), 9, 4); +x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2___boxed), 9, 4); lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_8); lean_closure_set(x_11, 2, x_10); @@ -11420,27 +12739,27 @@ x_13 = lean_apply_5(x_12, x_3, x_4, x_5, x_6, x_7); return x_13; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___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* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___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) { _start: { lean_object* x_10; -x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); lean_dec(x_1); return x_10; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___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) { _start: { lean_object* x_10; -x_10 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); lean_dec(x_1); return x_10; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___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; uint8_t x_8; @@ -11523,949 +12842,1137 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(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; x_6 = x_1; x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___spec__1(x_2, x_3, x_4, x_5, x_7, x_6); +x_8 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___spec__1(x_2, x_3, x_4, x_5, x_7, x_6); x_9 = x_8; return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___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* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___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) { _start: { lean_object* x_7; -x_7 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals___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___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_2); return x_6; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; } } -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1(lean_object* x_1) { _start: { -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -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; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -x_14 = x_11; -x_15 = lean_array_fset(x_9, x_2, x_14); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_15; -goto _start; -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unifyEqs ["); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__1___rarg), 2, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3() { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__2___rarg), 3, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4() { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3___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) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("] "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5() { -_start: +if (lean_obj_tag(x_1) == 1) { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6() { -_start: +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_2) == 1) { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_7; uint64_t x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get_uint64(x_2, sizeof(void*)*1); +lean_dec(x_2); +x_11 = lean_box_uint64(x_8); +x_12 = lean_box_uint64(x_10); +x_13 = lean_apply_4(x_3, x_7, x_11, x_9, x_12); +return x_13; } -} -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +else { -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; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_4 = lean_unsigned_to_nat(1u); -x_5 = lean_nat_add(x_1, x_4); -x_6 = l_Nat_repr(x_5); -x_7 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_7, 0, x_6); -x_8 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6; -x_12 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_ctor_get(x_2, 0); -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_14; uint64_t x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_3); +x_14 = lean_ctor_get(x_1, 0); lean_inc(x_14); -x_15 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_15); -return x_16; +x_15 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_16 = lean_box_uint64(x_15); +x_17 = lean_apply_3(x_4, x_14, x_16, x_2); +return x_17; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1() { +else +{ +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 1) +{ +lean_object* x_18; uint64_t x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_6); +x_18 = lean_ctor_get(x_2, 0); +lean_inc(x_18); +x_19 = lean_ctor_get_uint64(x_2, sizeof(void*)*1); +lean_dec(x_2); +x_20 = lean_box_uint64(x_19); +x_21 = lean_apply_3(x_5, x_1, x_18, x_20); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_5); +x_22 = lean_apply_2(x_6, x_1, x_2); +return x_22; +} +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__3___rarg), 6, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +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_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_2, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +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_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +lean_dec(x_8); +x_13 = lean_apply_4(x_2, x_9, x_10, x_11, x_12); +return x_13; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__6___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_1, x_7); +x_9 = lean_apply_2(x_4, x_8, x_2); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_1(x_3, x_2); +return x_10; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___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___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux_match__7___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +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; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_9, x_2, x_14); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_15; +goto _start; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -12473,17 +13980,17 @@ x_1 = lean_mk_string("cases"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -12505,7 +14012,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_20 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2; +x_20 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2; x_21 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__5; x_22 = lean_box(0); x_23 = l_Lean_Meta_throwTacticEx___rarg(x_20, x_1, x_21, x_22, x_8, x_9, x_10, x_11, x_12); @@ -12529,13 +14036,14 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_26); lean_inc(x_25); -x_27 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_25, x_26, x_8, x_9, x_10, x_11, x_12); +x_27 = l_Lean_Meta_isExprDefEq___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_mkEqAndProof___spec__1(x_25, x_26, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; uint8_t x_29; x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_unbox(x_28); +lean_dec(x_28); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; @@ -12547,7 +14055,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_25); -x_31 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_25, x_8, x_9, x_10, x_11, x_30); +x_31 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_25, x_8, x_9, x_10, x_11, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -12561,422 +14069,135 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_26); -x_34 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_26, x_8, x_9, x_10, x_11, x_33); +x_34 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_26, x_8, x_9, x_10, x_11, x_33); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_751; x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -x_37 = lean_expr_eqv(x_32, x_25); +x_751 = lean_expr_eqv(x_32, x_25); +if (x_751 == 0) +{ +uint8_t x_752; +x_752 = 1; +x_37 = x_752; +goto block_750; +} +else +{ +uint8_t x_753; +x_753 = lean_expr_eqv(x_35, x_26); +if (x_753 == 0) +{ +uint8_t x_754; +x_754 = 1; +x_37 = x_754; +goto block_750; +} +else +{ +uint8_t x_755; +x_755 = 0; +x_37 = x_755; +goto block_750; +} +} +block_750: +{ if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_inc(x_2); -x_38 = l_Lean_mkFVar(x_2); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_39 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_32, x_35, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_LocalDecl_userName(x_7); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_43 = l_Lean_Meta_assert(x_1, x_42, x_40, x_38, x_8, x_9, x_10, x_11, x_41); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_46 = l_Lean_Meta_clear(x_44, x_2, x_8, x_9, x_10, x_11, x_45); -if (lean_obj_tag(x_46) == 0) -{ -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; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_add(x_3, x_49); -x_51 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_51, 0, x_47); -lean_ctor_set(x_51, 1, x_4); -lean_ctor_set(x_51, 2, x_5); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_6); -x_53 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_50, x_52, x_8, x_9, x_10, x_11, x_48); -lean_dec(x_50); -return x_53; -} -else -{ -uint8_t x_54; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_54 = !lean_is_exclusive(x_46); -if (x_54 == 0) -{ -return x_46; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_46, 0); -x_56 = lean_ctor_get(x_46, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_46); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -else -{ -uint8_t x_58; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_58 = !lean_is_exclusive(x_43); -if (x_58 == 0) -{ -return x_43; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_43, 0); -x_60 = lean_ctor_get(x_43, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_43); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -else -{ -uint8_t x_62; -lean_dec(x_38); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_62 = !lean_is_exclusive(x_39); -if (x_62 == 0) -{ -return x_39; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_39, 0); -x_64 = lean_ctor_get(x_39, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_39); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -else -{ -uint8_t x_66; -x_66 = lean_expr_eqv(x_35, x_26); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_inc(x_2); -x_67 = l_Lean_mkFVar(x_2); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_68 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_32, x_35, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_LocalDecl_userName(x_7); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_72 = l_Lean_Meta_assert(x_1, x_71, x_69, x_67, x_8, x_9, x_10, x_11, x_70); -if (lean_obj_tag(x_72) == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_75 = l_Lean_Meta_clear(x_73, x_2, x_8, x_9, x_10, x_11, x_74); -if (lean_obj_tag(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; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_3, x_78); -x_80 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_80, 0, x_76); -lean_ctor_set(x_80, 1, x_4); -lean_ctor_set(x_80, 2, x_5); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_6); -x_82 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_79, x_81, x_8, x_9, x_10, x_11, x_77); -lean_dec(x_79); -return x_82; -} -else -{ -uint8_t x_83; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_83 = !lean_is_exclusive(x_75); -if (x_83 == 0) -{ -return x_75; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_75, 0); -x_85 = lean_ctor_get(x_75, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_75); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -else -{ -uint8_t x_87; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_87 = !lean_is_exclusive(x_72); -if (x_87 == 0) -{ -return x_72; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_72, 0); -x_89 = lean_ctor_get(x_72, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_72); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; -} -} -} -else -{ -uint8_t x_91; -lean_dec(x_67); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_68); -if (x_91 == 0) -{ -return x_68; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_68, 0); -x_93 = lean_ctor_get(x_68, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_68); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; -} -} -} -else -{ lean_dec(x_35); lean_dec(x_32); switch (lean_obj_tag(x_25)) { case 0: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_95; lean_object* x_96; +uint8_t x_38; lean_object* x_39; lean_dec(x_26); -x_95 = 1; +x_38 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_96 = l_Lean_Meta_substCore(x_1, x_2, x_95, x_5, x_95, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_96) == 0) +x_39 = l_Lean_Meta_substCore(x_1, x_2, x_38, x_5, x_38, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_39) == 0) { -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; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_ctor_get(x_97, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -lean_dec(x_97); -x_101 = x_4; -x_102 = lean_unsigned_to_nat(0u); -x_103 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1(x_99, x_102, x_101); -x_104 = x_103; -x_105 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_105, 0, x_100); -lean_ctor_set(x_105, 1, x_104); -lean_ctor_set(x_105, 2, x_99); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_6); -x_107 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_106, x_8, x_9, x_10, x_11, x_98); -return x_107; +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; lean_object* x_49; lean_object* x_50; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = x_4; +x_45 = lean_unsigned_to_nat(0u); +x_46 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(x_42, x_45, x_44); +x_47 = x_46; +x_48 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_42); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_6); +x_50 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_49, x_8, x_9, x_10, x_11, x_41); +return x_50; } else { -uint8_t x_108; +uint8_t x_51; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_108 = !lean_is_exclusive(x_96); -if (x_108 == 0) +x_51 = !lean_is_exclusive(x_39); +if (x_51 == 0) { -return x_96; +return x_39; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_96, 0); -x_110 = lean_ctor_get(x_96, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_96); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 0); +x_53 = lean_ctor_get(x_39, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_39); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -lean_object* x_112; +lean_object* x_55; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_112 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_112) == 0) +x_55 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_113; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -if (lean_obj_tag(x_113) == 0) +lean_object* x_56; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +if (lean_obj_tag(x_56) == 0) { -uint8_t x_114; +uint8_t x_57; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -12984,57 +14205,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_114 = !lean_is_exclusive(x_112); -if (x_114 == 0) +x_57 = !lean_is_exclusive(x_55); +if (x_57 == 0) { -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_112, 0); -lean_dec(x_115); -x_116 = lean_box(0); -lean_ctor_set(x_112, 0, x_116); -return x_112; +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_55, 0); +lean_dec(x_58); +x_59 = lean_box(0); +lean_ctor_set(x_55, 0, x_59); +return x_55; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_112, 1); -lean_inc(x_117); -lean_dec(x_112); -x_118 = lean_box(0); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_55, 1); +lean_inc(x_60); +lean_dec(x_55); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } else { -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; -x_120 = lean_ctor_get(x_112, 1); -lean_inc(x_120); -lean_dec(x_112); -x_121 = lean_ctor_get(x_113, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_113, 1); -lean_inc(x_122); -lean_dec(x_113); -x_123 = lean_nat_add(x_3, x_122); -lean_dec(x_122); -x_124 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_4); -lean_ctor_set(x_124, 2, x_5); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_6); -x_126 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_123, x_125, x_8, x_9, x_10, x_11, x_120); -lean_dec(x_123); -return x_126; +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_63 = lean_ctor_get(x_55, 1); +lean_inc(x_63); +lean_dec(x_55); +x_64 = lean_ctor_get(x_56, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_56, 1); +lean_inc(x_65); +lean_dec(x_56); +x_66 = lean_nat_add(x_3, x_65); +lean_dec(x_65); +x_67 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_4); +lean_ctor_set(x_67, 2, x_5); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_6); +x_69 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_66, x_68, x_8, x_9, x_10, x_11, x_63); +lean_dec(x_66); +return x_69; } } else { -uint8_t x_127; +uint8_t x_70; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13042,23 +14263,23 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_127 = !lean_is_exclusive(x_112); -if (x_127 == 0) +x_70 = !lean_is_exclusive(x_55); +if (x_70 == 0) { -return x_112; +return x_55; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_112, 0); -x_129 = lean_ctor_get(x_112, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_112); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_55, 0); +x_72 = lean_ctor_get(x_55, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_55); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } @@ -13068,176 +14289,174 @@ case 1: switch (lean_obj_tag(x_26)) { case 0: { -uint8_t x_131; uint8_t x_132; lean_object* x_133; +uint8_t x_74; uint8_t x_75; lean_object* x_76; lean_dec(x_26); lean_dec(x_25); -x_131 = 1; -x_132 = lean_unbox(x_28); -lean_dec(x_28); +x_74 = 0; +x_75 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_133 = l_Lean_Meta_substCore(x_1, x_2, x_132, x_5, x_131, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_133) == 0) +x_76 = l_Lean_Meta_substCore(x_1, x_2, x_74, x_5, x_75, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_76) == 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; -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_136 = lean_ctor_get(x_134, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_134, 1); -lean_inc(x_137); -lean_dec(x_134); -x_138 = x_4; -x_139 = lean_unsigned_to_nat(0u); -x_140 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2(x_136, x_139, x_138); -x_141 = x_140; -x_142 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_142, 0, x_137); -lean_ctor_set(x_142, 1, x_141); -lean_ctor_set(x_142, 2, x_136); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_6); -x_144 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_143, x_8, x_9, x_10, x_11, x_135); -return x_144; +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; +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_79 = lean_ctor_get(x_77, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); +x_81 = x_4; +x_82 = lean_unsigned_to_nat(0u); +x_83 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2(x_79, x_82, x_81); +x_84 = x_83; +x_85 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_85, 0, x_80); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_79); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_6); +x_87 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_86, x_8, x_9, x_10, x_11, x_78); +return x_87; } else { -uint8_t x_145; +uint8_t x_88; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_145 = !lean_is_exclusive(x_133); -if (x_145 == 0) +x_88 = !lean_is_exclusive(x_76); +if (x_88 == 0) { -return x_133; +return x_76; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_133, 0); -x_147 = lean_ctor_get(x_133, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_133); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_76, 0); +x_90 = lean_ctor_get(x_76, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_76); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } case 1: { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_28); -x_149 = lean_ctor_get(x_25, 0); -lean_inc(x_149); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_25, 0); +lean_inc(x_92); lean_dec(x_25); -x_150 = lean_ctor_get(x_26, 0); -lean_inc(x_150); +x_93 = lean_ctor_get(x_26, 0); +lean_inc(x_93); lean_dec(x_26); lean_inc(x_8); -x_151 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_149, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_151) == 0) +x_94 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_92, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); lean_inc(x_8); -x_154 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_150, x_8, x_9, x_10, x_11, x_153); -if (lean_obj_tag(x_154) == 0) +x_97 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_93, x_8, x_9, x_10, x_11, x_96); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; uint8_t x_160; lean_object* x_161; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -lean_dec(x_154); -x_157 = l_Lean_LocalDecl_index(x_152); -lean_dec(x_152); -x_158 = l_Lean_LocalDecl_index(x_155); -lean_dec(x_155); -x_159 = lean_nat_dec_lt(x_157, x_158); -lean_dec(x_158); -lean_dec(x_157); -x_160 = 1; +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; uint8_t x_103; lean_object* x_104; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l_Lean_LocalDecl_index(x_95); +lean_dec(x_95); +x_101 = l_Lean_LocalDecl_index(x_98); +lean_dec(x_98); +x_102 = lean_nat_dec_lt(x_100, x_101); +lean_dec(x_101); +lean_dec(x_100); +x_103 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_161 = l_Lean_Meta_substCore(x_1, x_2, x_159, x_5, x_160, x_8, x_9, x_10, x_11, x_156); -if (lean_obj_tag(x_161) == 0) +x_104 = l_Lean_Meta_substCore(x_1, x_2, x_102, x_5, x_103, x_8, x_9, x_10, x_11, x_99); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_166 = x_4; -x_167 = lean_unsigned_to_nat(0u); -x_168 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3(x_164, x_167, x_166); -x_169 = x_168; -x_170 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_170, 0, x_165); -lean_ctor_set(x_170, 1, x_169); -lean_ctor_set(x_170, 2, x_164); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_6); -x_172 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_171, x_8, x_9, x_10, x_11, x_163); -return x_172; +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; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_ctor_get(x_105, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_105, 1); +lean_inc(x_108); +lean_dec(x_105); +x_109 = x_4; +x_110 = lean_unsigned_to_nat(0u); +x_111 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3(x_107, x_110, x_109); +x_112 = x_111; +x_113 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_112); +lean_ctor_set(x_113, 2, x_107); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_6); +x_115 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_114, x_8, x_9, x_10, x_11, x_106); +return x_115; } else { -uint8_t x_173; +uint8_t x_116; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_173 = !lean_is_exclusive(x_161); -if (x_173 == 0) +x_116 = !lean_is_exclusive(x_104); +if (x_116 == 0) { -return x_161; +return x_104; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_161, 0); -x_175 = lean_ctor_get(x_161, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_161); -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -return x_176; +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_104, 0); +x_118 = lean_ctor_get(x_104, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_104); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; } } } else { -uint8_t x_177; -lean_dec(x_152); +uint8_t x_120; +lean_dec(x_95); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13247,30 +14466,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_177 = !lean_is_exclusive(x_154); -if (x_177 == 0) +x_120 = !lean_is_exclusive(x_97); +if (x_120 == 0) { -return x_154; +return x_97; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_154, 0); -x_179 = lean_ctor_get(x_154, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_154); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -return x_180; +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_97, 0); +x_122 = lean_ctor_get(x_97, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_97); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } else { -uint8_t x_181; -lean_dec(x_150); +uint8_t x_124; +lean_dec(x_93); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13280,782 +14499,771 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_181 = !lean_is_exclusive(x_151); -if (x_181 == 0) +x_124 = !lean_is_exclusive(x_94); +if (x_124 == 0) { -return x_151; +return x_94; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_151, 0); -x_183 = lean_ctor_get(x_151, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_151); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_183); -return x_184; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_94, 0); +x_126 = lean_ctor_get(x_94, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_94); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } } case 2: { -uint8_t x_185; uint8_t x_186; lean_object* x_187; +uint8_t x_128; uint8_t x_129; lean_object* x_130; lean_dec(x_26); lean_dec(x_25); -x_185 = 1; -x_186 = lean_unbox(x_28); -lean_dec(x_28); +x_128 = 0; +x_129 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_187 = l_Lean_Meta_substCore(x_1, x_2, x_186, x_5, x_185, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_187) == 0) +x_130 = l_Lean_Meta_substCore(x_1, x_2, x_128, x_5, x_129, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_190 = lean_ctor_get(x_188, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_188, 1); -lean_inc(x_191); -lean_dec(x_188); -x_192 = x_4; -x_193 = lean_unsigned_to_nat(0u); -x_194 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4(x_190, x_193, x_192); -x_195 = x_194; -x_196 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_196, 0, x_191); -lean_ctor_set(x_196, 1, x_195); -lean_ctor_set(x_196, 2, x_190); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_6); -x_198 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_197, x_8, x_9, x_10, x_11, x_189); -return x_198; +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; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec(x_131); +x_135 = x_4; +x_136 = lean_unsigned_to_nat(0u); +x_137 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4(x_133, x_136, x_135); +x_138 = x_137; +x_139 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_139, 0, x_134); +lean_ctor_set(x_139, 1, x_138); +lean_ctor_set(x_139, 2, x_133); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_6); +x_141 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_140, x_8, x_9, x_10, x_11, x_132); +return x_141; } else { -uint8_t x_199; +uint8_t x_142; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_199 = !lean_is_exclusive(x_187); -if (x_199 == 0) +x_142 = !lean_is_exclusive(x_130); +if (x_142 == 0) { -return x_187; +return x_130; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_187, 0); -x_201 = lean_ctor_get(x_187, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_187); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_130, 0); +x_144 = lean_ctor_get(x_130, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_130); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } } case 3: { -uint8_t x_203; uint8_t x_204; lean_object* x_205; +uint8_t x_146; uint8_t x_147; lean_object* x_148; lean_dec(x_26); lean_dec(x_25); -x_203 = 1; -x_204 = lean_unbox(x_28); -lean_dec(x_28); +x_146 = 0; +x_147 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_205 = l_Lean_Meta_substCore(x_1, x_2, x_204, x_5, x_203, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_205) == 0) +x_148 = l_Lean_Meta_substCore(x_1, x_2, x_146, x_5, x_147, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_dec(x_205); -x_208 = lean_ctor_get(x_206, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_206, 1); -lean_inc(x_209); -lean_dec(x_206); -x_210 = x_4; -x_211 = lean_unsigned_to_nat(0u); -x_212 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5(x_208, x_211, x_210); -x_213 = x_212; -x_214 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_214, 0, x_209); -lean_ctor_set(x_214, 1, x_213); -lean_ctor_set(x_214, 2, x_208); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_6); -x_216 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_215, x_8, x_9, x_10, x_11, x_207); -return x_216; +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +lean_dec(x_148); +x_151 = lean_ctor_get(x_149, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_149, 1); +lean_inc(x_152); +lean_dec(x_149); +x_153 = x_4; +x_154 = lean_unsigned_to_nat(0u); +x_155 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5(x_151, x_154, x_153); +x_156 = x_155; +x_157 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_157, 0, x_152); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_151); +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_6); +x_159 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_158, x_8, x_9, x_10, x_11, x_150); +return x_159; } else { -uint8_t x_217; +uint8_t x_160; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_217 = !lean_is_exclusive(x_205); -if (x_217 == 0) +x_160 = !lean_is_exclusive(x_148); +if (x_160 == 0) { -return x_205; +return x_148; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_205, 0); -x_219 = lean_ctor_get(x_205, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_205); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_219); -return x_220; +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_148, 0); +x_162 = lean_ctor_get(x_148, 1); +lean_inc(x_162); +lean_inc(x_161); +lean_dec(x_148); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +return x_163; } } } case 4: { -uint8_t x_221; uint8_t x_222; lean_object* x_223; +uint8_t x_164; uint8_t x_165; lean_object* x_166; lean_dec(x_26); lean_dec(x_25); -x_221 = 1; -x_222 = lean_unbox(x_28); -lean_dec(x_28); +x_164 = 0; +x_165 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_223 = l_Lean_Meta_substCore(x_1, x_2, x_222, x_5, x_221, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_223) == 0) +x_166 = l_Lean_Meta_substCore(x_1, x_2, x_164, x_5, x_165, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_166) == 0) { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -lean_dec(x_224); -x_228 = x_4; -x_229 = lean_unsigned_to_nat(0u); -x_230 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6(x_226, x_229, x_228); -x_231 = x_230; -x_232 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_232, 0, x_227); -lean_ctor_set(x_232, 1, x_231); -lean_ctor_set(x_232, 2, x_226); -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_6); -x_234 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_233, x_8, x_9, x_10, x_11, x_225); -return x_234; +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = lean_ctor_get(x_167, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = x_4; +x_172 = lean_unsigned_to_nat(0u); +x_173 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(x_169, x_172, x_171); +x_174 = x_173; +x_175 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_175, 0, x_170); +lean_ctor_set(x_175, 1, x_174); +lean_ctor_set(x_175, 2, x_169); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_6); +x_177 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_176, x_8, x_9, x_10, x_11, x_168); +return x_177; } else { -uint8_t x_235; +uint8_t x_178; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_235 = !lean_is_exclusive(x_223); -if (x_235 == 0) +x_178 = !lean_is_exclusive(x_166); +if (x_178 == 0) { -return x_223; +return x_166; } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_236 = lean_ctor_get(x_223, 0); -x_237 = lean_ctor_get(x_223, 1); -lean_inc(x_237); -lean_inc(x_236); -lean_dec(x_223); -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_236); -lean_ctor_set(x_238, 1, x_237); -return x_238; +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_166, 0); +x_180 = lean_ctor_get(x_166, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_166); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +return x_181; } } } case 5: { -uint8_t x_239; uint8_t x_240; lean_object* x_241; +uint8_t x_182; uint8_t x_183; lean_object* x_184; lean_dec(x_26); lean_dec(x_25); -x_239 = 1; -x_240 = lean_unbox(x_28); -lean_dec(x_28); +x_182 = 0; +x_183 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_241 = l_Lean_Meta_substCore(x_1, x_2, x_240, x_5, x_239, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_241) == 0) +x_184 = l_Lean_Meta_substCore(x_1, x_2, x_182, x_5, x_183, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_184) == 0) { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -x_244 = lean_ctor_get(x_242, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_242, 1); -lean_inc(x_245); -lean_dec(x_242); -x_246 = x_4; -x_247 = lean_unsigned_to_nat(0u); -x_248 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7(x_244, x_247, x_246); -x_249 = x_248; -x_250 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_250, 0, x_245); -lean_ctor_set(x_250, 1, x_249); -lean_ctor_set(x_250, 2, x_244); -x_251 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_6); -x_252 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_251, x_8, x_9, x_10, x_11, x_243); -return x_252; +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +x_187 = lean_ctor_get(x_185, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_185, 1); +lean_inc(x_188); +lean_dec(x_185); +x_189 = x_4; +x_190 = lean_unsigned_to_nat(0u); +x_191 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(x_187, x_190, x_189); +x_192 = x_191; +x_193 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_193, 0, x_188); +lean_ctor_set(x_193, 1, x_192); +lean_ctor_set(x_193, 2, x_187); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_6); +x_195 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_194, x_8, x_9, x_10, x_11, x_186); +return x_195; } else { -uint8_t x_253; +uint8_t x_196; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_253 = !lean_is_exclusive(x_241); -if (x_253 == 0) +x_196 = !lean_is_exclusive(x_184); +if (x_196 == 0) { -return x_241; +return x_184; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_241, 0); -x_255 = lean_ctor_get(x_241, 1); -lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_241); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_184, 0); +x_198 = lean_ctor_get(x_184, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_184); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +return x_199; } } } case 6: { -uint8_t x_257; uint8_t x_258; lean_object* x_259; +uint8_t x_200; uint8_t x_201; lean_object* x_202; lean_dec(x_26); lean_dec(x_25); -x_257 = 1; -x_258 = lean_unbox(x_28); -lean_dec(x_28); +x_200 = 0; +x_201 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_259 = l_Lean_Meta_substCore(x_1, x_2, x_258, x_5, x_257, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_259) == 0) +x_202 = l_Lean_Meta_substCore(x_1, x_2, x_200, x_5, x_201, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_202) == 0) { -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -lean_dec(x_259); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_260, 1); -lean_inc(x_263); -lean_dec(x_260); -x_264 = x_4; -x_265 = lean_unsigned_to_nat(0u); -x_266 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8(x_262, x_265, x_264); -x_267 = x_266; -x_268 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_268, 0, x_263); -lean_ctor_set(x_268, 1, x_267); -lean_ctor_set(x_268, 2, x_262); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_6); -x_270 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_269, x_8, x_9, x_10, x_11, x_261); -return x_270; +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_202, 1); +lean_inc(x_204); +lean_dec(x_202); +x_205 = lean_ctor_get(x_203, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_203, 1); +lean_inc(x_206); +lean_dec(x_203); +x_207 = x_4; +x_208 = lean_unsigned_to_nat(0u); +x_209 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8(x_205, x_208, x_207); +x_210 = x_209; +x_211 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_211, 0, x_206); +lean_ctor_set(x_211, 1, x_210); +lean_ctor_set(x_211, 2, x_205); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_6); +x_213 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_212, x_8, x_9, x_10, x_11, x_204); +return x_213; } else { -uint8_t x_271; +uint8_t x_214; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_271 = !lean_is_exclusive(x_259); -if (x_271 == 0) +x_214 = !lean_is_exclusive(x_202); +if (x_214 == 0) { -return x_259; +return x_202; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_259, 0); -x_273 = lean_ctor_get(x_259, 1); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_259); -x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_272); -lean_ctor_set(x_274, 1, x_273); -return x_274; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_202, 0); +x_216 = lean_ctor_get(x_202, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_202); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; } } } case 7: { -uint8_t x_275; uint8_t x_276; lean_object* x_277; +uint8_t x_218; uint8_t x_219; lean_object* x_220; lean_dec(x_26); lean_dec(x_25); -x_275 = 1; -x_276 = lean_unbox(x_28); -lean_dec(x_28); +x_218 = 0; +x_219 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_277 = l_Lean_Meta_substCore(x_1, x_2, x_276, x_5, x_275, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_277) == 0) +x_220 = l_Lean_Meta_substCore(x_1, x_2, x_218, x_5, x_219, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -lean_dec(x_277); -x_280 = lean_ctor_get(x_278, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_278, 1); -lean_inc(x_281); -lean_dec(x_278); -x_282 = x_4; -x_283 = lean_unsigned_to_nat(0u); -x_284 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9(x_280, x_283, x_282); -x_285 = x_284; -x_286 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_286, 0, x_281); -lean_ctor_set(x_286, 1, x_285); -lean_ctor_set(x_286, 2, x_280); -x_287 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_6); -x_288 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_287, x_8, x_9, x_10, x_11, x_279); -return x_288; +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = lean_ctor_get(x_221, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_221, 1); +lean_inc(x_224); +lean_dec(x_221); +x_225 = x_4; +x_226 = lean_unsigned_to_nat(0u); +x_227 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9(x_223, x_226, x_225); +x_228 = x_227; +x_229 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_229, 0, x_224); +lean_ctor_set(x_229, 1, x_228); +lean_ctor_set(x_229, 2, x_223); +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_6); +x_231 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_230, x_8, x_9, x_10, x_11, x_222); +return x_231; } else { -uint8_t x_289; +uint8_t x_232; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_289 = !lean_is_exclusive(x_277); -if (x_289 == 0) +x_232 = !lean_is_exclusive(x_220); +if (x_232 == 0) { -return x_277; +return x_220; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_277, 0); -x_291 = lean_ctor_get(x_277, 1); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_277); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_220, 0); +x_234 = lean_ctor_get(x_220, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_220); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; } } } case 8: { -uint8_t x_293; uint8_t x_294; lean_object* x_295; +uint8_t x_236; uint8_t x_237; lean_object* x_238; lean_dec(x_26); lean_dec(x_25); -x_293 = 1; -x_294 = lean_unbox(x_28); -lean_dec(x_28); +x_236 = 0; +x_237 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_295 = l_Lean_Meta_substCore(x_1, x_2, x_294, x_5, x_293, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_295) == 0) +x_238 = l_Lean_Meta_substCore(x_1, x_2, x_236, x_5, x_237, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_238) == 0) { -lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -x_298 = lean_ctor_get(x_296, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_296, 1); -lean_inc(x_299); -lean_dec(x_296); -x_300 = x_4; -x_301 = lean_unsigned_to_nat(0u); -x_302 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10(x_298, x_301, x_300); -x_303 = x_302; -x_304 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_304, 0, x_299); -lean_ctor_set(x_304, 1, x_303); -lean_ctor_set(x_304, 2, x_298); -x_305 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_305, 0, x_304); -lean_ctor_set(x_305, 1, x_6); -x_306 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_305, x_8, x_9, x_10, x_11, x_297); -return x_306; +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +x_241 = lean_ctor_get(x_239, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_239, 1); +lean_inc(x_242); +lean_dec(x_239); +x_243 = x_4; +x_244 = lean_unsigned_to_nat(0u); +x_245 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(x_241, x_244, x_243); +x_246 = x_245; +x_247 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_247, 0, x_242); +lean_ctor_set(x_247, 1, x_246); +lean_ctor_set(x_247, 2, x_241); +x_248 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_6); +x_249 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_248, x_8, x_9, x_10, x_11, x_240); +return x_249; } else { -uint8_t x_307; +uint8_t x_250; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_307 = !lean_is_exclusive(x_295); -if (x_307 == 0) +x_250 = !lean_is_exclusive(x_238); +if (x_250 == 0) { -return x_295; +return x_238; } else { -lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_308 = lean_ctor_get(x_295, 0); -x_309 = lean_ctor_get(x_295, 1); -lean_inc(x_309); -lean_inc(x_308); -lean_dec(x_295); -x_310 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_310, 0, x_308); -lean_ctor_set(x_310, 1, x_309); -return x_310; +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_238, 0); +x_252 = lean_ctor_get(x_238, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_238); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; } } } case 9: { -uint8_t x_311; uint8_t x_312; lean_object* x_313; +uint8_t x_254; uint8_t x_255; lean_object* x_256; lean_dec(x_26); lean_dec(x_25); -x_311 = 1; -x_312 = lean_unbox(x_28); -lean_dec(x_28); +x_254 = 0; +x_255 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_313 = l_Lean_Meta_substCore(x_1, x_2, x_312, x_5, x_311, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_313) == 0) +x_256 = l_Lean_Meta_substCore(x_1, x_2, x_254, x_5, x_255, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_256) == 0) { -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_314 = lean_ctor_get(x_313, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_313, 1); -lean_inc(x_315); -lean_dec(x_313); -x_316 = lean_ctor_get(x_314, 0); -lean_inc(x_316); -x_317 = lean_ctor_get(x_314, 1); -lean_inc(x_317); -lean_dec(x_314); -x_318 = x_4; -x_319 = lean_unsigned_to_nat(0u); -x_320 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11(x_316, x_319, x_318); -x_321 = x_320; -x_322 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_322, 0, x_317); -lean_ctor_set(x_322, 1, x_321); -lean_ctor_set(x_322, 2, x_316); -x_323 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_6); -x_324 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_323, x_8, x_9, x_10, x_11, x_315); -return x_324; +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +x_259 = lean_ctor_get(x_257, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_257, 1); +lean_inc(x_260); +lean_dec(x_257); +x_261 = x_4; +x_262 = lean_unsigned_to_nat(0u); +x_263 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(x_259, x_262, x_261); +x_264 = x_263; +x_265 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_265, 0, x_260); +lean_ctor_set(x_265, 1, x_264); +lean_ctor_set(x_265, 2, x_259); +x_266 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_6); +x_267 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_266, x_8, x_9, x_10, x_11, x_258); +return x_267; } else { -uint8_t x_325; +uint8_t x_268; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_325 = !lean_is_exclusive(x_313); -if (x_325 == 0) +x_268 = !lean_is_exclusive(x_256); +if (x_268 == 0) { -return x_313; +return x_256; } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_326 = lean_ctor_get(x_313, 0); -x_327 = lean_ctor_get(x_313, 1); -lean_inc(x_327); -lean_inc(x_326); -lean_dec(x_313); -x_328 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_328, 0, x_326); -lean_ctor_set(x_328, 1, x_327); -return x_328; +lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_269 = lean_ctor_get(x_256, 0); +x_270 = lean_ctor_get(x_256, 1); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_256); +x_271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_271, 0, x_269); +lean_ctor_set(x_271, 1, x_270); +return x_271; } } } case 10: { -uint8_t x_329; uint8_t x_330; lean_object* x_331; +uint8_t x_272; uint8_t x_273; lean_object* x_274; lean_dec(x_26); lean_dec(x_25); -x_329 = 1; -x_330 = lean_unbox(x_28); -lean_dec(x_28); +x_272 = 0; +x_273 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_331 = l_Lean_Meta_substCore(x_1, x_2, x_330, x_5, x_329, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_331) == 0) +x_274 = l_Lean_Meta_substCore(x_1, x_2, x_272, x_5, x_273, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_274) == 0) { -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -x_332 = lean_ctor_get(x_331, 0); -lean_inc(x_332); -x_333 = lean_ctor_get(x_331, 1); -lean_inc(x_333); -lean_dec(x_331); -x_334 = lean_ctor_get(x_332, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_332, 1); -lean_inc(x_335); -lean_dec(x_332); -x_336 = x_4; -x_337 = lean_unsigned_to_nat(0u); -x_338 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12(x_334, x_337, x_336); -x_339 = x_338; -x_340 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_340, 0, x_335); -lean_ctor_set(x_340, 1, x_339); -lean_ctor_set(x_340, 2, x_334); -x_341 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_6); -x_342 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_341, x_8, x_9, x_10, x_11, x_333); -return x_342; +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +lean_dec(x_274); +x_277 = lean_ctor_get(x_275, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_275, 1); +lean_inc(x_278); +lean_dec(x_275); +x_279 = x_4; +x_280 = lean_unsigned_to_nat(0u); +x_281 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12(x_277, x_280, x_279); +x_282 = x_281; +x_283 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_283, 0, x_278); +lean_ctor_set(x_283, 1, x_282); +lean_ctor_set(x_283, 2, x_277); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_6); +x_285 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_284, x_8, x_9, x_10, x_11, x_276); +return x_285; } else { -uint8_t x_343; +uint8_t x_286; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_343 = !lean_is_exclusive(x_331); -if (x_343 == 0) +x_286 = !lean_is_exclusive(x_274); +if (x_286 == 0) { -return x_331; +return x_274; } else { -lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_344 = lean_ctor_get(x_331, 0); -x_345 = lean_ctor_get(x_331, 1); -lean_inc(x_345); -lean_inc(x_344); -lean_dec(x_331); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set(x_346, 1, x_345); -return x_346; +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_274, 0); +x_288 = lean_ctor_get(x_274, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_274); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +return x_289; } } } case 11: { -uint8_t x_347; uint8_t x_348; lean_object* x_349; +uint8_t x_290; uint8_t x_291; lean_object* x_292; lean_dec(x_26); lean_dec(x_25); -x_347 = 1; -x_348 = lean_unbox(x_28); -lean_dec(x_28); +x_290 = 0; +x_291 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_349 = l_Lean_Meta_substCore(x_1, x_2, x_348, x_5, x_347, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_349) == 0) +x_292 = l_Lean_Meta_substCore(x_1, x_2, x_290, x_5, x_291, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_292) == 0) { -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -x_352 = lean_ctor_get(x_350, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_350, 1); -lean_inc(x_353); -lean_dec(x_350); -x_354 = x_4; -x_355 = lean_unsigned_to_nat(0u); -x_356 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13(x_352, x_355, x_354); -x_357 = x_356; -x_358 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_358, 0, x_353); -lean_ctor_set(x_358, 1, x_357); -lean_ctor_set(x_358, 2, x_352); -x_359 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_6); -x_360 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_359, x_8, x_9, x_10, x_11, x_351); -return x_360; +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_293 = lean_ctor_get(x_292, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_292, 1); +lean_inc(x_294); +lean_dec(x_292); +x_295 = lean_ctor_get(x_293, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_293, 1); +lean_inc(x_296); +lean_dec(x_293); +x_297 = x_4; +x_298 = lean_unsigned_to_nat(0u); +x_299 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13(x_295, x_298, x_297); +x_300 = x_299; +x_301 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_301, 0, x_296); +lean_ctor_set(x_301, 1, x_300); +lean_ctor_set(x_301, 2, x_295); +x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_6); +x_303 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_302, x_8, x_9, x_10, x_11, x_294); +return x_303; } else { -uint8_t x_361; +uint8_t x_304; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_361 = !lean_is_exclusive(x_349); -if (x_361 == 0) +x_304 = !lean_is_exclusive(x_292); +if (x_304 == 0) { -return x_349; +return x_292; } else { -lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_362 = lean_ctor_get(x_349, 0); -x_363 = lean_ctor_get(x_349, 1); -lean_inc(x_363); -lean_inc(x_362); -lean_dec(x_349); -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_362); -lean_ctor_set(x_364, 1, x_363); -return x_364; +lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_305 = lean_ctor_get(x_292, 0); +x_306 = lean_ctor_get(x_292, 1); +lean_inc(x_306); +lean_inc(x_305); +lean_dec(x_292); +x_307 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_307, 0, x_305); +lean_ctor_set(x_307, 1, x_306); +return x_307; } } } default: { -uint8_t x_365; uint8_t x_366; lean_object* x_367; +uint8_t x_308; uint8_t x_309; lean_object* x_310; lean_dec(x_26); lean_dec(x_25); -x_365 = 1; -x_366 = lean_unbox(x_28); -lean_dec(x_28); +x_308 = 0; +x_309 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_367 = l_Lean_Meta_substCore(x_1, x_2, x_366, x_5, x_365, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_367) == 0) +x_310 = l_Lean_Meta_substCore(x_1, x_2, x_308, x_5, x_309, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_310) == 0) { -lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_368 = lean_ctor_get(x_367, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_367, 1); -lean_inc(x_369); -lean_dec(x_367); -x_370 = lean_ctor_get(x_368, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_368, 1); -lean_inc(x_371); -lean_dec(x_368); -x_372 = x_4; -x_373 = lean_unsigned_to_nat(0u); -x_374 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14(x_370, x_373, x_372); -x_375 = x_374; -x_376 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_376, 0, x_371); -lean_ctor_set(x_376, 1, x_375); -lean_ctor_set(x_376, 2, x_370); -x_377 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_6); -x_378 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_377, x_8, x_9, x_10, x_11, x_369); -return x_378; +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_310, 1); +lean_inc(x_312); +lean_dec(x_310); +x_313 = lean_ctor_get(x_311, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_311, 1); +lean_inc(x_314); +lean_dec(x_311); +x_315 = x_4; +x_316 = lean_unsigned_to_nat(0u); +x_317 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14(x_313, x_316, x_315); +x_318 = x_317; +x_319 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_319, 0, x_314); +lean_ctor_set(x_319, 1, x_318); +lean_ctor_set(x_319, 2, x_313); +x_320 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_6); +x_321 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_320, x_8, x_9, x_10, x_11, x_312); +return x_321; } else { -uint8_t x_379; +uint8_t x_322; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_379 = !lean_is_exclusive(x_367); -if (x_379 == 0) +x_322 = !lean_is_exclusive(x_310); +if (x_322 == 0) { -return x_367; +return x_310; } else { -lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_380 = lean_ctor_get(x_367, 0); -x_381 = lean_ctor_get(x_367, 1); -lean_inc(x_381); -lean_inc(x_380); -lean_dec(x_367); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -return x_382; +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_310, 0); +x_324 = lean_ctor_get(x_310, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_310); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +return x_325; } } } @@ -14063,91 +15271,90 @@ return x_382; } case 2: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_383; lean_object* x_384; +uint8_t x_326; lean_object* x_327; lean_dec(x_26); -x_383 = 1; +x_326 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_384 = l_Lean_Meta_substCore(x_1, x_2, x_383, x_5, x_383, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_384) == 0) +x_327 = l_Lean_Meta_substCore(x_1, x_2, x_326, x_5, x_326, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_327) == 0) { -lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; -x_385 = lean_ctor_get(x_384, 0); -lean_inc(x_385); -x_386 = lean_ctor_get(x_384, 1); -lean_inc(x_386); -lean_dec(x_384); -x_387 = lean_ctor_get(x_385, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_385, 1); -lean_inc(x_388); -lean_dec(x_385); -x_389 = x_4; -x_390 = lean_unsigned_to_nat(0u); -x_391 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15(x_387, x_390, x_389); -x_392 = x_391; -x_393 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_393, 0, x_388); -lean_ctor_set(x_393, 1, x_392); -lean_ctor_set(x_393, 2, x_387); -x_394 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_394, 0, x_393); -lean_ctor_set(x_394, 1, x_6); -x_395 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_394, x_8, x_9, x_10, x_11, x_386); -return x_395; +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_328 = lean_ctor_get(x_327, 0); +lean_inc(x_328); +x_329 = lean_ctor_get(x_327, 1); +lean_inc(x_329); +lean_dec(x_327); +x_330 = lean_ctor_get(x_328, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_328, 1); +lean_inc(x_331); +lean_dec(x_328); +x_332 = x_4; +x_333 = lean_unsigned_to_nat(0u); +x_334 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15(x_330, x_333, x_332); +x_335 = x_334; +x_336 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_336, 0, x_331); +lean_ctor_set(x_336, 1, x_335); +lean_ctor_set(x_336, 2, x_330); +x_337 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_337, 0, x_336); +lean_ctor_set(x_337, 1, x_6); +x_338 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_337, x_8, x_9, x_10, x_11, x_329); +return x_338; } else { -uint8_t x_396; +uint8_t x_339; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_396 = !lean_is_exclusive(x_384); -if (x_396 == 0) +x_339 = !lean_is_exclusive(x_327); +if (x_339 == 0) { -return x_384; +return x_327; } else { -lean_object* x_397; lean_object* x_398; lean_object* x_399; -x_397 = lean_ctor_get(x_384, 0); -x_398 = lean_ctor_get(x_384, 1); -lean_inc(x_398); -lean_inc(x_397); -lean_dec(x_384); -x_399 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_399, 0, x_397); -lean_ctor_set(x_399, 1, x_398); -return x_399; +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_327, 0); +x_341 = lean_ctor_get(x_327, 1); +lean_inc(x_341); +lean_inc(x_340); +lean_dec(x_327); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_340); +lean_ctor_set(x_342, 1, x_341); +return x_342; } } } else { -lean_object* x_400; +lean_object* x_343; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_400 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_400) == 0) +x_343 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_343) == 0) { -lean_object* x_401; -x_401 = lean_ctor_get(x_400, 0); -lean_inc(x_401); -if (lean_obj_tag(x_401) == 0) +lean_object* x_344; +x_344 = lean_ctor_get(x_343, 0); +lean_inc(x_344); +if (lean_obj_tag(x_344) == 0) { -uint8_t x_402; +uint8_t x_345; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14155,172 +15362,401 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_402 = !lean_is_exclusive(x_400); -if (x_402 == 0) +x_345 = !lean_is_exclusive(x_343); +if (x_345 == 0) { -lean_object* x_403; lean_object* x_404; -x_403 = lean_ctor_get(x_400, 0); -lean_dec(x_403); -x_404 = lean_box(0); -lean_ctor_set(x_400, 0, x_404); -return x_400; +lean_object* x_346; lean_object* x_347; +x_346 = lean_ctor_get(x_343, 0); +lean_dec(x_346); +x_347 = lean_box(0); +lean_ctor_set(x_343, 0, x_347); +return x_343; } else { -lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_405 = lean_ctor_get(x_400, 1); -lean_inc(x_405); -lean_dec(x_400); -x_406 = lean_box(0); -x_407 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_407, 0, x_406); -lean_ctor_set(x_407, 1, x_405); -return x_407; +lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_348 = lean_ctor_get(x_343, 1); +lean_inc(x_348); +lean_dec(x_343); +x_349 = lean_box(0); +x_350 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_350, 0, x_349); +lean_ctor_set(x_350, 1, x_348); +return x_350; } } else { -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_408 = lean_ctor_get(x_400, 1); -lean_inc(x_408); +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_351 = lean_ctor_get(x_343, 1); +lean_inc(x_351); +lean_dec(x_343); +x_352 = lean_ctor_get(x_344, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_344, 1); +lean_inc(x_353); +lean_dec(x_344); +x_354 = lean_nat_add(x_3, x_353); +lean_dec(x_353); +x_355 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_355, 0, x_352); +lean_ctor_set(x_355, 1, x_4); +lean_ctor_set(x_355, 2, x_5); +x_356 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_6); +x_357 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_354, x_356, x_8, x_9, x_10, x_11, x_351); +lean_dec(x_354); +return x_357; +} +} +else +{ +uint8_t x_358; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_358 = !lean_is_exclusive(x_343); +if (x_358 == 0) +{ +return x_343; +} +else +{ +lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_359 = lean_ctor_get(x_343, 0); +x_360 = lean_ctor_get(x_343, 1); +lean_inc(x_360); +lean_inc(x_359); +lean_dec(x_343); +x_361 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_361, 0, x_359); +lean_ctor_set(x_361, 1, x_360); +return x_361; +} +} +} +} +case 3: +{ +lean_dec(x_25); +if (lean_obj_tag(x_26) == 1) +{ +uint8_t x_362; lean_object* x_363; +lean_dec(x_26); +x_362 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_363 = l_Lean_Meta_substCore(x_1, x_2, x_362, x_5, x_362, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_363) == 0) +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_363, 1); +lean_inc(x_365); +lean_dec(x_363); +x_366 = lean_ctor_get(x_364, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_364, 1); +lean_inc(x_367); +lean_dec(x_364); +x_368 = x_4; +x_369 = lean_unsigned_to_nat(0u); +x_370 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16(x_366, x_369, x_368); +x_371 = x_370; +x_372 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_372, 0, x_367); +lean_ctor_set(x_372, 1, x_371); +lean_ctor_set(x_372, 2, x_366); +x_373 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_6); +x_374 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_373, x_8, x_9, x_10, x_11, x_365); +return x_374; +} +else +{ +uint8_t x_375; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_375 = !lean_is_exclusive(x_363); +if (x_375 == 0) +{ +return x_363; +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_376 = lean_ctor_get(x_363, 0); +x_377 = lean_ctor_get(x_363, 1); +lean_inc(x_377); +lean_inc(x_376); +lean_dec(x_363); +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_376); +lean_ctor_set(x_378, 1, x_377); +return x_378; +} +} +} +else +{ +lean_object* x_379; +lean_dec(x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_379 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_379) == 0) +{ +lean_object* x_380; +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +if (lean_obj_tag(x_380) == 0) +{ +uint8_t x_381; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_381 = !lean_is_exclusive(x_379); +if (x_381 == 0) +{ +lean_object* x_382; lean_object* x_383; +x_382 = lean_ctor_get(x_379, 0); +lean_dec(x_382); +x_383 = lean_box(0); +lean_ctor_set(x_379, 0, x_383); +return x_379; +} +else +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; +x_384 = lean_ctor_get(x_379, 1); +lean_inc(x_384); +lean_dec(x_379); +x_385 = lean_box(0); +x_386 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_386, 0, x_385); +lean_ctor_set(x_386, 1, x_384); +return x_386; +} +} +else +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_387 = lean_ctor_get(x_379, 1); +lean_inc(x_387); +lean_dec(x_379); +x_388 = lean_ctor_get(x_380, 0); +lean_inc(x_388); +x_389 = lean_ctor_get(x_380, 1); +lean_inc(x_389); +lean_dec(x_380); +x_390 = lean_nat_add(x_3, x_389); +lean_dec(x_389); +x_391 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_391, 0, x_388); +lean_ctor_set(x_391, 1, x_4); +lean_ctor_set(x_391, 2, x_5); +x_392 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_392, 0, x_391); +lean_ctor_set(x_392, 1, x_6); +x_393 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_390, x_392, x_8, x_9, x_10, x_11, x_387); +lean_dec(x_390); +return x_393; +} +} +else +{ +uint8_t x_394; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_394 = !lean_is_exclusive(x_379); +if (x_394 == 0) +{ +return x_379; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_395 = lean_ctor_get(x_379, 0); +x_396 = lean_ctor_get(x_379, 1); +lean_inc(x_396); +lean_inc(x_395); +lean_dec(x_379); +x_397 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_397, 0, x_395); +lean_ctor_set(x_397, 1, x_396); +return x_397; +} +} +} +} +case 4: +{ +lean_dec(x_25); +if (lean_obj_tag(x_26) == 1) +{ +uint8_t x_398; lean_object* x_399; +lean_dec(x_26); +x_398 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_399 = l_Lean_Meta_substCore(x_1, x_2, x_398, x_5, x_398, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_400 = lean_ctor_get(x_399, 0); +lean_inc(x_400); +x_401 = lean_ctor_get(x_399, 1); +lean_inc(x_401); +lean_dec(x_399); +x_402 = lean_ctor_get(x_400, 0); +lean_inc(x_402); +x_403 = lean_ctor_get(x_400, 1); +lean_inc(x_403); lean_dec(x_400); -x_409 = lean_ctor_get(x_401, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_401, 1); -lean_inc(x_410); -lean_dec(x_401); -x_411 = lean_nat_add(x_3, x_410); -lean_dec(x_410); -x_412 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_412, 0, x_409); -lean_ctor_set(x_412, 1, x_4); -lean_ctor_set(x_412, 2, x_5); -x_413 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_413, 0, x_412); -lean_ctor_set(x_413, 1, x_6); -x_414 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_411, x_413, x_8, x_9, x_10, x_11, x_408); -lean_dec(x_411); +x_404 = x_4; +x_405 = lean_unsigned_to_nat(0u); +x_406 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(x_402, x_405, x_404); +x_407 = x_406; +x_408 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_408, 0, x_403); +lean_ctor_set(x_408, 1, x_407); +lean_ctor_set(x_408, 2, x_402); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_6); +x_410 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_409, x_8, x_9, x_10, x_11, x_401); +return x_410; +} +else +{ +uint8_t x_411; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_411 = !lean_is_exclusive(x_399); +if (x_411 == 0) +{ +return x_399; +} +else +{ +lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_412 = lean_ctor_get(x_399, 0); +x_413 = lean_ctor_get(x_399, 1); +lean_inc(x_413); +lean_inc(x_412); +lean_dec(x_399); +x_414 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_412); +lean_ctor_set(x_414, 1, x_413); return x_414; } } -else -{ -uint8_t x_415; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_415 = !lean_is_exclusive(x_400); -if (x_415 == 0) -{ -return x_400; } else { -lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_416 = lean_ctor_get(x_400, 0); -x_417 = lean_ctor_get(x_400, 1); -lean_inc(x_417); +lean_object* x_415; +lean_dec(x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_415 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_415) == 0) +{ +lean_object* x_416; +x_416 = lean_ctor_get(x_415, 0); lean_inc(x_416); -lean_dec(x_400); -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_416); -lean_ctor_set(x_418, 1, x_417); -return x_418; -} -} -} -} -case 3: +if (lean_obj_tag(x_416) == 0) { -lean_dec(x_28); -lean_dec(x_25); -if (lean_obj_tag(x_26) == 1) +uint8_t x_417; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_417 = !lean_is_exclusive(x_415); +if (x_417 == 0) { -uint8_t x_419; lean_object* x_420; -lean_dec(x_26); -x_419 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_420 = l_Lean_Meta_substCore(x_1, x_2, x_419, x_5, x_419, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_420) == 0) +lean_object* x_418; lean_object* x_419; +x_418 = lean_ctor_get(x_415, 0); +lean_dec(x_418); +x_419 = lean_box(0); +lean_ctor_set(x_415, 0, x_419); +return x_415; +} +else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_421 = lean_ctor_get(x_420, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_420, 1); -lean_inc(x_422); -lean_dec(x_420); -x_423 = lean_ctor_get(x_421, 0); +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_415, 1); +lean_inc(x_420); +lean_dec(x_415); +x_421 = lean_box(0); +x_422 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_420); +return x_422; +} +} +else +{ +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +x_423 = lean_ctor_get(x_415, 1); lean_inc(x_423); -x_424 = lean_ctor_get(x_421, 1); +lean_dec(x_415); +x_424 = lean_ctor_get(x_416, 0); lean_inc(x_424); -lean_dec(x_421); -x_425 = x_4; -x_426 = lean_unsigned_to_nat(0u); -x_427 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16(x_423, x_426, x_425); -x_428 = x_427; -x_429 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_429, 0, x_424); -lean_ctor_set(x_429, 1, x_428); -lean_ctor_set(x_429, 2, x_423); -x_430 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_430, 0, x_429); -lean_ctor_set(x_430, 1, x_6); -x_431 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_430, x_8, x_9, x_10, x_11, x_422); -return x_431; -} -else -{ -uint8_t x_432; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -x_432 = !lean_is_exclusive(x_420); -if (x_432 == 0) -{ -return x_420; -} -else -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_433 = lean_ctor_get(x_420, 0); -x_434 = lean_ctor_get(x_420, 1); -lean_inc(x_434); -lean_inc(x_433); -lean_dec(x_420); -x_435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_435, 0, x_433); -lean_ctor_set(x_435, 1, x_434); -return x_435; -} +x_425 = lean_ctor_get(x_416, 1); +lean_inc(x_425); +lean_dec(x_416); +x_426 = lean_nat_add(x_3, x_425); +lean_dec(x_425); +x_427 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_427, 0, x_424); +lean_ctor_set(x_427, 1, x_4); +lean_ctor_set(x_427, 2, x_5); +x_428 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_6); +x_429 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_426, x_428, x_8, x_9, x_10, x_11, x_423); +lean_dec(x_426); +return x_429; } } else { -lean_object* x_436; -lean_dec(x_26); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_436 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_436) == 0) -{ -lean_object* x_437; -x_437 = lean_ctor_get(x_436, 0); -lean_inc(x_437); -if (lean_obj_tag(x_437) == 0) -{ -uint8_t x_438; +uint8_t x_430; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14328,345 +15764,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_438 = !lean_is_exclusive(x_436); -if (x_438 == 0) +x_430 = !lean_is_exclusive(x_415); +if (x_430 == 0) { -lean_object* x_439; lean_object* x_440; -x_439 = lean_ctor_get(x_436, 0); -lean_dec(x_439); -x_440 = lean_box(0); -lean_ctor_set(x_436, 0, x_440); -return x_436; +return x_415; } else { -lean_object* x_441; lean_object* x_442; lean_object* x_443; -x_441 = lean_ctor_get(x_436, 1); -lean_inc(x_441); -lean_dec(x_436); -x_442 = lean_box(0); -x_443 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_443, 0, x_442); -lean_ctor_set(x_443, 1, x_441); -return x_443; -} -} -else -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; -x_444 = lean_ctor_get(x_436, 1); -lean_inc(x_444); -lean_dec(x_436); -x_445 = lean_ctor_get(x_437, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_437, 1); -lean_inc(x_446); -lean_dec(x_437); -x_447 = lean_nat_add(x_3, x_446); -lean_dec(x_446); -x_448 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_448, 0, x_445); -lean_ctor_set(x_448, 1, x_4); -lean_ctor_set(x_448, 2, x_5); -x_449 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_449, 0, x_448); -lean_ctor_set(x_449, 1, x_6); -x_450 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_447, x_449, x_8, x_9, x_10, x_11, x_444); -lean_dec(x_447); -return x_450; -} -} -else -{ -uint8_t x_451; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_451 = !lean_is_exclusive(x_436); -if (x_451 == 0) -{ -return x_436; -} -else -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; -x_452 = lean_ctor_get(x_436, 0); -x_453 = lean_ctor_get(x_436, 1); -lean_inc(x_453); -lean_inc(x_452); -lean_dec(x_436); -x_454 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_454, 0, x_452); -lean_ctor_set(x_454, 1, x_453); -return x_454; -} -} -} -} -case 4: -{ -lean_dec(x_28); -lean_dec(x_25); -if (lean_obj_tag(x_26) == 1) -{ -uint8_t x_455; lean_object* x_456; -lean_dec(x_26); -x_455 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_456 = l_Lean_Meta_substCore(x_1, x_2, x_455, x_5, x_455, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_456) == 0) -{ -lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; -x_457 = lean_ctor_get(x_456, 0); -lean_inc(x_457); -x_458 = lean_ctor_get(x_456, 1); -lean_inc(x_458); -lean_dec(x_456); -x_459 = lean_ctor_get(x_457, 0); -lean_inc(x_459); -x_460 = lean_ctor_get(x_457, 1); -lean_inc(x_460); -lean_dec(x_457); -x_461 = x_4; -x_462 = lean_unsigned_to_nat(0u); -x_463 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17(x_459, x_462, x_461); -x_464 = x_463; -x_465 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_465, 0, x_460); -lean_ctor_set(x_465, 1, x_464); -lean_ctor_set(x_465, 2, x_459); -x_466 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_466, 0, x_465); -lean_ctor_set(x_466, 1, x_6); -x_467 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_466, x_8, x_9, x_10, x_11, x_458); -return x_467; -} -else -{ -uint8_t x_468; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -x_468 = !lean_is_exclusive(x_456); -if (x_468 == 0) -{ -return x_456; -} -else -{ -lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_469 = lean_ctor_get(x_456, 0); -x_470 = lean_ctor_get(x_456, 1); -lean_inc(x_470); -lean_inc(x_469); -lean_dec(x_456); -x_471 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_471, 0, x_469); -lean_ctor_set(x_471, 1, x_470); -return x_471; -} -} -} -else -{ -lean_object* x_472; -lean_dec(x_26); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_472 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_472) == 0) -{ -lean_object* x_473; -x_473 = lean_ctor_get(x_472, 0); -lean_inc(x_473); -if (lean_obj_tag(x_473) == 0) -{ -uint8_t x_474; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_474 = !lean_is_exclusive(x_472); -if (x_474 == 0) -{ -lean_object* x_475; lean_object* x_476; -x_475 = lean_ctor_get(x_472, 0); -lean_dec(x_475); -x_476 = lean_box(0); -lean_ctor_set(x_472, 0, x_476); -return x_472; -} -else -{ -lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_477 = lean_ctor_get(x_472, 1); -lean_inc(x_477); -lean_dec(x_472); -x_478 = lean_box(0); -x_479 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_479, 0, x_478); -lean_ctor_set(x_479, 1, x_477); -return x_479; -} -} -else -{ -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_480 = lean_ctor_get(x_472, 1); -lean_inc(x_480); -lean_dec(x_472); -x_481 = lean_ctor_get(x_473, 0); -lean_inc(x_481); -x_482 = lean_ctor_get(x_473, 1); -lean_inc(x_482); -lean_dec(x_473); -x_483 = lean_nat_add(x_3, x_482); -lean_dec(x_482); -x_484 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_484, 0, x_481); -lean_ctor_set(x_484, 1, x_4); -lean_ctor_set(x_484, 2, x_5); -x_485 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_485, 0, x_484); -lean_ctor_set(x_485, 1, x_6); -x_486 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_483, x_485, x_8, x_9, x_10, x_11, x_480); -lean_dec(x_483); -return x_486; -} -} -else -{ -uint8_t x_487; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_487 = !lean_is_exclusive(x_472); -if (x_487 == 0) -{ -return x_472; -} -else -{ -lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_488 = lean_ctor_get(x_472, 0); -x_489 = lean_ctor_get(x_472, 1); -lean_inc(x_489); -lean_inc(x_488); -lean_dec(x_472); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_488); -lean_ctor_set(x_490, 1, x_489); -return x_490; +lean_object* x_431; lean_object* x_432; lean_object* x_433; +x_431 = lean_ctor_get(x_415, 0); +x_432 = lean_ctor_get(x_415, 1); +lean_inc(x_432); +lean_inc(x_431); +lean_dec(x_415); +x_433 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_433, 0, x_431); +lean_ctor_set(x_433, 1, x_432); +return x_433; } } } } case 5: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_491; lean_object* x_492; +uint8_t x_434; lean_object* x_435; lean_dec(x_26); -x_491 = 1; +x_434 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_492 = l_Lean_Meta_substCore(x_1, x_2, x_491, x_5, x_491, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_492) == 0) +x_435 = l_Lean_Meta_substCore(x_1, x_2, x_434, x_5, x_434, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_435) == 0) { -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -x_493 = lean_ctor_get(x_492, 0); -lean_inc(x_493); -x_494 = lean_ctor_get(x_492, 1); -lean_inc(x_494); -lean_dec(x_492); -x_495 = lean_ctor_get(x_493, 0); -lean_inc(x_495); -x_496 = lean_ctor_get(x_493, 1); -lean_inc(x_496); -lean_dec(x_493); -x_497 = x_4; -x_498 = lean_unsigned_to_nat(0u); -x_499 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18(x_495, x_498, x_497); -x_500 = x_499; -x_501 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_501, 0, x_496); -lean_ctor_set(x_501, 1, x_500); -lean_ctor_set(x_501, 2, x_495); -x_502 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_502, 0, x_501); -lean_ctor_set(x_502, 1, x_6); -x_503 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_502, x_8, x_9, x_10, x_11, x_494); -return x_503; +lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_436 = lean_ctor_get(x_435, 0); +lean_inc(x_436); +x_437 = lean_ctor_get(x_435, 1); +lean_inc(x_437); +lean_dec(x_435); +x_438 = lean_ctor_get(x_436, 0); +lean_inc(x_438); +x_439 = lean_ctor_get(x_436, 1); +lean_inc(x_439); +lean_dec(x_436); +x_440 = x_4; +x_441 = lean_unsigned_to_nat(0u); +x_442 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(x_438, x_441, x_440); +x_443 = x_442; +x_444 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_444, 0, x_439); +lean_ctor_set(x_444, 1, x_443); +lean_ctor_set(x_444, 2, x_438); +x_445 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_445, 0, x_444); +lean_ctor_set(x_445, 1, x_6); +x_446 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_445, x_8, x_9, x_10, x_11, x_437); +return x_446; } else { -uint8_t x_504; +uint8_t x_447; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_504 = !lean_is_exclusive(x_492); -if (x_504 == 0) +x_447 = !lean_is_exclusive(x_435); +if (x_447 == 0) { -return x_492; +return x_435; } else { -lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_505 = lean_ctor_get(x_492, 0); -x_506 = lean_ctor_get(x_492, 1); -lean_inc(x_506); -lean_inc(x_505); -lean_dec(x_492); -x_507 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_507, 0, x_505); -lean_ctor_set(x_507, 1, x_506); -return x_507; +lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_448 = lean_ctor_get(x_435, 0); +x_449 = lean_ctor_get(x_435, 1); +lean_inc(x_449); +lean_inc(x_448); +lean_dec(x_435); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_449); +return x_450; } } } else { -lean_object* x_508; +lean_object* x_451; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_508 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_508) == 0) +x_451 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_451) == 0) { -lean_object* x_509; -x_509 = lean_ctor_get(x_508, 0); -lean_inc(x_509); -if (lean_obj_tag(x_509) == 0) +lean_object* x_452; +x_452 = lean_ctor_get(x_451, 0); +lean_inc(x_452); +if (lean_obj_tag(x_452) == 0) { -uint8_t x_510; +uint8_t x_453; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14674,57 +15878,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_510 = !lean_is_exclusive(x_508); -if (x_510 == 0) +x_453 = !lean_is_exclusive(x_451); +if (x_453 == 0) { -lean_object* x_511; lean_object* x_512; -x_511 = lean_ctor_get(x_508, 0); -lean_dec(x_511); -x_512 = lean_box(0); -lean_ctor_set(x_508, 0, x_512); -return x_508; +lean_object* x_454; lean_object* x_455; +x_454 = lean_ctor_get(x_451, 0); +lean_dec(x_454); +x_455 = lean_box(0); +lean_ctor_set(x_451, 0, x_455); +return x_451; } else { -lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_513 = lean_ctor_get(x_508, 1); -lean_inc(x_513); -lean_dec(x_508); -x_514 = lean_box(0); -x_515 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_515, 0, x_514); -lean_ctor_set(x_515, 1, x_513); -return x_515; +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_451, 1); +lean_inc(x_456); +lean_dec(x_451); +x_457 = lean_box(0); +x_458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_458, 0, x_457); +lean_ctor_set(x_458, 1, x_456); +return x_458; } } else { -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; -x_516 = lean_ctor_get(x_508, 1); -lean_inc(x_516); -lean_dec(x_508); -x_517 = lean_ctor_get(x_509, 0); -lean_inc(x_517); -x_518 = lean_ctor_get(x_509, 1); -lean_inc(x_518); -lean_dec(x_509); -x_519 = lean_nat_add(x_3, x_518); -lean_dec(x_518); -x_520 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_520, 0, x_517); -lean_ctor_set(x_520, 1, x_4); -lean_ctor_set(x_520, 2, x_5); -x_521 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_521, 0, x_520); -lean_ctor_set(x_521, 1, x_6); -x_522 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_519, x_521, x_8, x_9, x_10, x_11, x_516); -lean_dec(x_519); -return x_522; +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; +x_459 = lean_ctor_get(x_451, 1); +lean_inc(x_459); +lean_dec(x_451); +x_460 = lean_ctor_get(x_452, 0); +lean_inc(x_460); +x_461 = lean_ctor_get(x_452, 1); +lean_inc(x_461); +lean_dec(x_452); +x_462 = lean_nat_add(x_3, x_461); +lean_dec(x_461); +x_463 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_463, 0, x_460); +lean_ctor_set(x_463, 1, x_4); +lean_ctor_set(x_463, 2, x_5); +x_464 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_464, 0, x_463); +lean_ctor_set(x_464, 1, x_6); +x_465 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_462, x_464, x_8, x_9, x_10, x_11, x_459); +lean_dec(x_462); +return x_465; } } else { -uint8_t x_523; +uint8_t x_466; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14732,114 +15936,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_523 = !lean_is_exclusive(x_508); -if (x_523 == 0) +x_466 = !lean_is_exclusive(x_451); +if (x_466 == 0) { -return x_508; +return x_451; } else { -lean_object* x_524; lean_object* x_525; lean_object* x_526; -x_524 = lean_ctor_get(x_508, 0); -x_525 = lean_ctor_get(x_508, 1); -lean_inc(x_525); -lean_inc(x_524); -lean_dec(x_508); -x_526 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_526, 0, x_524); -lean_ctor_set(x_526, 1, x_525); -return x_526; +lean_object* x_467; lean_object* x_468; lean_object* x_469; +x_467 = lean_ctor_get(x_451, 0); +x_468 = lean_ctor_get(x_451, 1); +lean_inc(x_468); +lean_inc(x_467); +lean_dec(x_451); +x_469 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_469, 0, x_467); +lean_ctor_set(x_469, 1, x_468); +return x_469; } } } } case 6: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_527; lean_object* x_528; +uint8_t x_470; lean_object* x_471; lean_dec(x_26); -x_527 = 1; +x_470 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_528 = l_Lean_Meta_substCore(x_1, x_2, x_527, x_5, x_527, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_528) == 0) +x_471 = l_Lean_Meta_substCore(x_1, x_2, x_470, x_5, x_470, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_471) == 0) { -lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; -x_529 = lean_ctor_get(x_528, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_528, 1); -lean_inc(x_530); -lean_dec(x_528); -x_531 = lean_ctor_get(x_529, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_529, 1); -lean_inc(x_532); -lean_dec(x_529); -x_533 = x_4; -x_534 = lean_unsigned_to_nat(0u); -x_535 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19(x_531, x_534, x_533); -x_536 = x_535; -x_537 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_537, 0, x_532); -lean_ctor_set(x_537, 1, x_536); -lean_ctor_set(x_537, 2, x_531); -x_538 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_538, 0, x_537); -lean_ctor_set(x_538, 1, x_6); -x_539 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_538, x_8, x_9, x_10, x_11, x_530); -return x_539; +lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; +x_472 = lean_ctor_get(x_471, 0); +lean_inc(x_472); +x_473 = lean_ctor_get(x_471, 1); +lean_inc(x_473); +lean_dec(x_471); +x_474 = lean_ctor_get(x_472, 0); +lean_inc(x_474); +x_475 = lean_ctor_get(x_472, 1); +lean_inc(x_475); +lean_dec(x_472); +x_476 = x_4; +x_477 = lean_unsigned_to_nat(0u); +x_478 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19(x_474, x_477, x_476); +x_479 = x_478; +x_480 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_480, 0, x_475); +lean_ctor_set(x_480, 1, x_479); +lean_ctor_set(x_480, 2, x_474); +x_481 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_481, 0, x_480); +lean_ctor_set(x_481, 1, x_6); +x_482 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_481, x_8, x_9, x_10, x_11, x_473); +return x_482; } else { -uint8_t x_540; +uint8_t x_483; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_540 = !lean_is_exclusive(x_528); -if (x_540 == 0) +x_483 = !lean_is_exclusive(x_471); +if (x_483 == 0) { -return x_528; +return x_471; } else { -lean_object* x_541; lean_object* x_542; lean_object* x_543; -x_541 = lean_ctor_get(x_528, 0); -x_542 = lean_ctor_get(x_528, 1); -lean_inc(x_542); -lean_inc(x_541); -lean_dec(x_528); -x_543 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_543, 0, x_541); -lean_ctor_set(x_543, 1, x_542); -return x_543; +lean_object* x_484; lean_object* x_485; lean_object* x_486; +x_484 = lean_ctor_get(x_471, 0); +x_485 = lean_ctor_get(x_471, 1); +lean_inc(x_485); +lean_inc(x_484); +lean_dec(x_471); +x_486 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_486, 0, x_484); +lean_ctor_set(x_486, 1, x_485); +return x_486; } } } else { -lean_object* x_544; +lean_object* x_487; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_544 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_544) == 0) +x_487 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_487) == 0) { -lean_object* x_545; -x_545 = lean_ctor_get(x_544, 0); -lean_inc(x_545); -if (lean_obj_tag(x_545) == 0) +lean_object* x_488; +x_488 = lean_ctor_get(x_487, 0); +lean_inc(x_488); +if (lean_obj_tag(x_488) == 0) { -uint8_t x_546; +uint8_t x_489; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14847,57 +16050,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_546 = !lean_is_exclusive(x_544); -if (x_546 == 0) +x_489 = !lean_is_exclusive(x_487); +if (x_489 == 0) { -lean_object* x_547; lean_object* x_548; -x_547 = lean_ctor_get(x_544, 0); -lean_dec(x_547); -x_548 = lean_box(0); -lean_ctor_set(x_544, 0, x_548); -return x_544; +lean_object* x_490; lean_object* x_491; +x_490 = lean_ctor_get(x_487, 0); +lean_dec(x_490); +x_491 = lean_box(0); +lean_ctor_set(x_487, 0, x_491); +return x_487; } else { -lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_549 = lean_ctor_get(x_544, 1); -lean_inc(x_549); -lean_dec(x_544); -x_550 = lean_box(0); -x_551 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_551, 0, x_550); -lean_ctor_set(x_551, 1, x_549); -return x_551; +lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_492 = lean_ctor_get(x_487, 1); +lean_inc(x_492); +lean_dec(x_487); +x_493 = lean_box(0); +x_494 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_492); +return x_494; } } else { -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_552 = lean_ctor_get(x_544, 1); -lean_inc(x_552); -lean_dec(x_544); -x_553 = lean_ctor_get(x_545, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_545, 1); -lean_inc(x_554); -lean_dec(x_545); -x_555 = lean_nat_add(x_3, x_554); -lean_dec(x_554); -x_556 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_556, 0, x_553); -lean_ctor_set(x_556, 1, x_4); -lean_ctor_set(x_556, 2, x_5); -x_557 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_557, 0, x_556); -lean_ctor_set(x_557, 1, x_6); -x_558 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_555, x_557, x_8, x_9, x_10, x_11, x_552); -lean_dec(x_555); -return x_558; +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_495 = lean_ctor_get(x_487, 1); +lean_inc(x_495); +lean_dec(x_487); +x_496 = lean_ctor_get(x_488, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_488, 1); +lean_inc(x_497); +lean_dec(x_488); +x_498 = lean_nat_add(x_3, x_497); +lean_dec(x_497); +x_499 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_499, 0, x_496); +lean_ctor_set(x_499, 1, x_4); +lean_ctor_set(x_499, 2, x_5); +x_500 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_500, 0, x_499); +lean_ctor_set(x_500, 1, x_6); +x_501 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_498, x_500, x_8, x_9, x_10, x_11, x_495); +lean_dec(x_498); +return x_501; } } else { -uint8_t x_559; +uint8_t x_502; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14905,114 +16108,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_559 = !lean_is_exclusive(x_544); -if (x_559 == 0) +x_502 = !lean_is_exclusive(x_487); +if (x_502 == 0) { -return x_544; +return x_487; } else { -lean_object* x_560; lean_object* x_561; lean_object* x_562; -x_560 = lean_ctor_get(x_544, 0); -x_561 = lean_ctor_get(x_544, 1); -lean_inc(x_561); -lean_inc(x_560); -lean_dec(x_544); -x_562 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_562, 0, x_560); -lean_ctor_set(x_562, 1, x_561); -return x_562; +lean_object* x_503; lean_object* x_504; lean_object* x_505; +x_503 = lean_ctor_get(x_487, 0); +x_504 = lean_ctor_get(x_487, 1); +lean_inc(x_504); +lean_inc(x_503); +lean_dec(x_487); +x_505 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_505, 0, x_503); +lean_ctor_set(x_505, 1, x_504); +return x_505; } } } } case 7: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_563; lean_object* x_564; +uint8_t x_506; lean_object* x_507; lean_dec(x_26); -x_563 = 1; +x_506 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_564 = l_Lean_Meta_substCore(x_1, x_2, x_563, x_5, x_563, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_564) == 0) +x_507 = l_Lean_Meta_substCore(x_1, x_2, x_506, x_5, x_506, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_507) == 0) { -lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; -x_565 = lean_ctor_get(x_564, 0); -lean_inc(x_565); -x_566 = lean_ctor_get(x_564, 1); -lean_inc(x_566); -lean_dec(x_564); -x_567 = lean_ctor_get(x_565, 0); -lean_inc(x_567); -x_568 = lean_ctor_get(x_565, 1); -lean_inc(x_568); -lean_dec(x_565); -x_569 = x_4; -x_570 = lean_unsigned_to_nat(0u); -x_571 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20(x_567, x_570, x_569); -x_572 = x_571; -x_573 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_573, 0, x_568); -lean_ctor_set(x_573, 1, x_572); -lean_ctor_set(x_573, 2, x_567); -x_574 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_574, 0, x_573); -lean_ctor_set(x_574, 1, x_6); -x_575 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_574, x_8, x_9, x_10, x_11, x_566); -return x_575; +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; +x_508 = lean_ctor_get(x_507, 0); +lean_inc(x_508); +x_509 = lean_ctor_get(x_507, 1); +lean_inc(x_509); +lean_dec(x_507); +x_510 = lean_ctor_get(x_508, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_508, 1); +lean_inc(x_511); +lean_dec(x_508); +x_512 = x_4; +x_513 = lean_unsigned_to_nat(0u); +x_514 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20(x_510, x_513, x_512); +x_515 = x_514; +x_516 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_516, 0, x_511); +lean_ctor_set(x_516, 1, x_515); +lean_ctor_set(x_516, 2, x_510); +x_517 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_517, 0, x_516); +lean_ctor_set(x_517, 1, x_6); +x_518 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_517, x_8, x_9, x_10, x_11, x_509); +return x_518; } else { -uint8_t x_576; +uint8_t x_519; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_576 = !lean_is_exclusive(x_564); -if (x_576 == 0) +x_519 = !lean_is_exclusive(x_507); +if (x_519 == 0) { -return x_564; +return x_507; } else { -lean_object* x_577; lean_object* x_578; lean_object* x_579; -x_577 = lean_ctor_get(x_564, 0); -x_578 = lean_ctor_get(x_564, 1); -lean_inc(x_578); -lean_inc(x_577); -lean_dec(x_564); -x_579 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_579, 0, x_577); -lean_ctor_set(x_579, 1, x_578); -return x_579; +lean_object* x_520; lean_object* x_521; lean_object* x_522; +x_520 = lean_ctor_get(x_507, 0); +x_521 = lean_ctor_get(x_507, 1); +lean_inc(x_521); +lean_inc(x_520); +lean_dec(x_507); +x_522 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_522, 0, x_520); +lean_ctor_set(x_522, 1, x_521); +return x_522; } } } else { -lean_object* x_580; +lean_object* x_523; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_580 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_580) == 0) +x_523 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_523) == 0) { -lean_object* x_581; -x_581 = lean_ctor_get(x_580, 0); -lean_inc(x_581); -if (lean_obj_tag(x_581) == 0) +lean_object* x_524; +x_524 = lean_ctor_get(x_523, 0); +lean_inc(x_524); +if (lean_obj_tag(x_524) == 0) { -uint8_t x_582; +uint8_t x_525; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15020,57 +16222,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_582 = !lean_is_exclusive(x_580); -if (x_582 == 0) +x_525 = !lean_is_exclusive(x_523); +if (x_525 == 0) { -lean_object* x_583; lean_object* x_584; -x_583 = lean_ctor_get(x_580, 0); -lean_dec(x_583); -x_584 = lean_box(0); -lean_ctor_set(x_580, 0, x_584); -return x_580; +lean_object* x_526; lean_object* x_527; +x_526 = lean_ctor_get(x_523, 0); +lean_dec(x_526); +x_527 = lean_box(0); +lean_ctor_set(x_523, 0, x_527); +return x_523; } else { -lean_object* x_585; lean_object* x_586; lean_object* x_587; -x_585 = lean_ctor_get(x_580, 1); -lean_inc(x_585); -lean_dec(x_580); -x_586 = lean_box(0); -x_587 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_587, 0, x_586); -lean_ctor_set(x_587, 1, x_585); -return x_587; +lean_object* x_528; lean_object* x_529; lean_object* x_530; +x_528 = lean_ctor_get(x_523, 1); +lean_inc(x_528); +lean_dec(x_523); +x_529 = lean_box(0); +x_530 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_530, 0, x_529); +lean_ctor_set(x_530, 1, x_528); +return x_530; } } else { -lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; -x_588 = lean_ctor_get(x_580, 1); -lean_inc(x_588); -lean_dec(x_580); -x_589 = lean_ctor_get(x_581, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_581, 1); -lean_inc(x_590); -lean_dec(x_581); -x_591 = lean_nat_add(x_3, x_590); -lean_dec(x_590); -x_592 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_592, 0, x_589); -lean_ctor_set(x_592, 1, x_4); -lean_ctor_set(x_592, 2, x_5); -x_593 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_593, 0, x_592); -lean_ctor_set(x_593, 1, x_6); -x_594 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_591, x_593, x_8, x_9, x_10, x_11, x_588); -lean_dec(x_591); -return x_594; +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_531 = lean_ctor_get(x_523, 1); +lean_inc(x_531); +lean_dec(x_523); +x_532 = lean_ctor_get(x_524, 0); +lean_inc(x_532); +x_533 = lean_ctor_get(x_524, 1); +lean_inc(x_533); +lean_dec(x_524); +x_534 = lean_nat_add(x_3, x_533); +lean_dec(x_533); +x_535 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_535, 0, x_532); +lean_ctor_set(x_535, 1, x_4); +lean_ctor_set(x_535, 2, x_5); +x_536 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_536, 0, x_535); +lean_ctor_set(x_536, 1, x_6); +x_537 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_534, x_536, x_8, x_9, x_10, x_11, x_531); +lean_dec(x_534); +return x_537; } } else { -uint8_t x_595; +uint8_t x_538; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15078,114 +16280,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_595 = !lean_is_exclusive(x_580); -if (x_595 == 0) +x_538 = !lean_is_exclusive(x_523); +if (x_538 == 0) { -return x_580; +return x_523; } else { -lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_596 = lean_ctor_get(x_580, 0); -x_597 = lean_ctor_get(x_580, 1); -lean_inc(x_597); -lean_inc(x_596); -lean_dec(x_580); -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_596); -lean_ctor_set(x_598, 1, x_597); -return x_598; +lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_539 = lean_ctor_get(x_523, 0); +x_540 = lean_ctor_get(x_523, 1); +lean_inc(x_540); +lean_inc(x_539); +lean_dec(x_523); +x_541 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_541, 0, x_539); +lean_ctor_set(x_541, 1, x_540); +return x_541; } } } } case 8: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_599; lean_object* x_600; +uint8_t x_542; lean_object* x_543; lean_dec(x_26); -x_599 = 1; +x_542 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_600 = l_Lean_Meta_substCore(x_1, x_2, x_599, x_5, x_599, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_600) == 0) +x_543 = l_Lean_Meta_substCore(x_1, x_2, x_542, x_5, x_542, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_543) == 0) { -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; -x_601 = lean_ctor_get(x_600, 0); -lean_inc(x_601); -x_602 = lean_ctor_get(x_600, 1); -lean_inc(x_602); -lean_dec(x_600); -x_603 = lean_ctor_get(x_601, 0); -lean_inc(x_603); -x_604 = lean_ctor_get(x_601, 1); -lean_inc(x_604); -lean_dec(x_601); -x_605 = x_4; -x_606 = lean_unsigned_to_nat(0u); -x_607 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21(x_603, x_606, x_605); -x_608 = x_607; -x_609 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_609, 0, x_604); -lean_ctor_set(x_609, 1, x_608); -lean_ctor_set(x_609, 2, x_603); -x_610 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_610, 0, x_609); -lean_ctor_set(x_610, 1, x_6); -x_611 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_610, x_8, x_9, x_10, x_11, x_602); -return x_611; +lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +x_544 = lean_ctor_get(x_543, 0); +lean_inc(x_544); +x_545 = lean_ctor_get(x_543, 1); +lean_inc(x_545); +lean_dec(x_543); +x_546 = lean_ctor_get(x_544, 0); +lean_inc(x_546); +x_547 = lean_ctor_get(x_544, 1); +lean_inc(x_547); +lean_dec(x_544); +x_548 = x_4; +x_549 = lean_unsigned_to_nat(0u); +x_550 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21(x_546, x_549, x_548); +x_551 = x_550; +x_552 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_552, 0, x_547); +lean_ctor_set(x_552, 1, x_551); +lean_ctor_set(x_552, 2, x_546); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_6); +x_554 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_553, x_8, x_9, x_10, x_11, x_545); +return x_554; } else { -uint8_t x_612; +uint8_t x_555; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_612 = !lean_is_exclusive(x_600); -if (x_612 == 0) +x_555 = !lean_is_exclusive(x_543); +if (x_555 == 0) { -return x_600; +return x_543; } else { -lean_object* x_613; lean_object* x_614; lean_object* x_615; -x_613 = lean_ctor_get(x_600, 0); -x_614 = lean_ctor_get(x_600, 1); -lean_inc(x_614); -lean_inc(x_613); -lean_dec(x_600); -x_615 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_615, 0, x_613); -lean_ctor_set(x_615, 1, x_614); -return x_615; +lean_object* x_556; lean_object* x_557; lean_object* x_558; +x_556 = lean_ctor_get(x_543, 0); +x_557 = lean_ctor_get(x_543, 1); +lean_inc(x_557); +lean_inc(x_556); +lean_dec(x_543); +x_558 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_558, 0, x_556); +lean_ctor_set(x_558, 1, x_557); +return x_558; } } } else { -lean_object* x_616; +lean_object* x_559; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_616 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_616) == 0) +x_559 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_559) == 0) { -lean_object* x_617; -x_617 = lean_ctor_get(x_616, 0); -lean_inc(x_617); -if (lean_obj_tag(x_617) == 0) +lean_object* x_560; +x_560 = lean_ctor_get(x_559, 0); +lean_inc(x_560); +if (lean_obj_tag(x_560) == 0) { -uint8_t x_618; +uint8_t x_561; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15193,57 +16394,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_618 = !lean_is_exclusive(x_616); -if (x_618 == 0) +x_561 = !lean_is_exclusive(x_559); +if (x_561 == 0) { -lean_object* x_619; lean_object* x_620; -x_619 = lean_ctor_get(x_616, 0); -lean_dec(x_619); -x_620 = lean_box(0); -lean_ctor_set(x_616, 0, x_620); -return x_616; +lean_object* x_562; lean_object* x_563; +x_562 = lean_ctor_get(x_559, 0); +lean_dec(x_562); +x_563 = lean_box(0); +lean_ctor_set(x_559, 0, x_563); +return x_559; } else { -lean_object* x_621; lean_object* x_622; lean_object* x_623; -x_621 = lean_ctor_get(x_616, 1); -lean_inc(x_621); -lean_dec(x_616); -x_622 = lean_box(0); -x_623 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_623, 0, x_622); -lean_ctor_set(x_623, 1, x_621); -return x_623; +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_559, 1); +lean_inc(x_564); +lean_dec(x_559); +x_565 = lean_box(0); +x_566 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_566, 0, x_565); +lean_ctor_set(x_566, 1, x_564); +return x_566; } } else { -lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; -x_624 = lean_ctor_get(x_616, 1); -lean_inc(x_624); -lean_dec(x_616); -x_625 = lean_ctor_get(x_617, 0); -lean_inc(x_625); -x_626 = lean_ctor_get(x_617, 1); -lean_inc(x_626); -lean_dec(x_617); -x_627 = lean_nat_add(x_3, x_626); -lean_dec(x_626); -x_628 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_628, 0, x_625); -lean_ctor_set(x_628, 1, x_4); -lean_ctor_set(x_628, 2, x_5); -x_629 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_629, 0, x_628); -lean_ctor_set(x_629, 1, x_6); -x_630 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_627, x_629, x_8, x_9, x_10, x_11, x_624); -lean_dec(x_627); -return x_630; +lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; +x_567 = lean_ctor_get(x_559, 1); +lean_inc(x_567); +lean_dec(x_559); +x_568 = lean_ctor_get(x_560, 0); +lean_inc(x_568); +x_569 = lean_ctor_get(x_560, 1); +lean_inc(x_569); +lean_dec(x_560); +x_570 = lean_nat_add(x_3, x_569); +lean_dec(x_569); +x_571 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_571, 0, x_568); +lean_ctor_set(x_571, 1, x_4); +lean_ctor_set(x_571, 2, x_5); +x_572 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_572, 0, x_571); +lean_ctor_set(x_572, 1, x_6); +x_573 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_570, x_572, x_8, x_9, x_10, x_11, x_567); +lean_dec(x_570); +return x_573; } } else { -uint8_t x_631; +uint8_t x_574; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15251,114 +16452,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_631 = !lean_is_exclusive(x_616); -if (x_631 == 0) +x_574 = !lean_is_exclusive(x_559); +if (x_574 == 0) { -return x_616; +return x_559; } else { -lean_object* x_632; lean_object* x_633; lean_object* x_634; -x_632 = lean_ctor_get(x_616, 0); -x_633 = lean_ctor_get(x_616, 1); -lean_inc(x_633); -lean_inc(x_632); -lean_dec(x_616); -x_634 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_634, 0, x_632); -lean_ctor_set(x_634, 1, x_633); -return x_634; +lean_object* x_575; lean_object* x_576; lean_object* x_577; +x_575 = lean_ctor_get(x_559, 0); +x_576 = lean_ctor_get(x_559, 1); +lean_inc(x_576); +lean_inc(x_575); +lean_dec(x_559); +x_577 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_577, 0, x_575); +lean_ctor_set(x_577, 1, x_576); +return x_577; } } } } case 9: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_635; lean_object* x_636; +uint8_t x_578; lean_object* x_579; lean_dec(x_26); -x_635 = 1; +x_578 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_636 = l_Lean_Meta_substCore(x_1, x_2, x_635, x_5, x_635, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_636) == 0) +x_579 = l_Lean_Meta_substCore(x_1, x_2, x_578, x_5, x_578, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_579) == 0) { -lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; -x_637 = lean_ctor_get(x_636, 0); -lean_inc(x_637); -x_638 = lean_ctor_get(x_636, 1); -lean_inc(x_638); -lean_dec(x_636); -x_639 = lean_ctor_get(x_637, 0); -lean_inc(x_639); -x_640 = lean_ctor_get(x_637, 1); -lean_inc(x_640); -lean_dec(x_637); -x_641 = x_4; -x_642 = lean_unsigned_to_nat(0u); -x_643 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22(x_639, x_642, x_641); -x_644 = x_643; -x_645 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_645, 0, x_640); -lean_ctor_set(x_645, 1, x_644); -lean_ctor_set(x_645, 2, x_639); -x_646 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_646, 0, x_645); -lean_ctor_set(x_646, 1, x_6); -x_647 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_646, x_8, x_9, x_10, x_11, x_638); -return x_647; +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; +x_580 = lean_ctor_get(x_579, 0); +lean_inc(x_580); +x_581 = lean_ctor_get(x_579, 1); +lean_inc(x_581); +lean_dec(x_579); +x_582 = lean_ctor_get(x_580, 0); +lean_inc(x_582); +x_583 = lean_ctor_get(x_580, 1); +lean_inc(x_583); +lean_dec(x_580); +x_584 = x_4; +x_585 = lean_unsigned_to_nat(0u); +x_586 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22(x_582, x_585, x_584); +x_587 = x_586; +x_588 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_588, 0, x_583); +lean_ctor_set(x_588, 1, x_587); +lean_ctor_set(x_588, 2, x_582); +x_589 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_589, 0, x_588); +lean_ctor_set(x_589, 1, x_6); +x_590 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_589, x_8, x_9, x_10, x_11, x_581); +return x_590; } else { -uint8_t x_648; +uint8_t x_591; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_648 = !lean_is_exclusive(x_636); -if (x_648 == 0) +x_591 = !lean_is_exclusive(x_579); +if (x_591 == 0) { -return x_636; +return x_579; } else { -lean_object* x_649; lean_object* x_650; lean_object* x_651; -x_649 = lean_ctor_get(x_636, 0); -x_650 = lean_ctor_get(x_636, 1); -lean_inc(x_650); -lean_inc(x_649); -lean_dec(x_636); -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_649); -lean_ctor_set(x_651, 1, x_650); -return x_651; +lean_object* x_592; lean_object* x_593; lean_object* x_594; +x_592 = lean_ctor_get(x_579, 0); +x_593 = lean_ctor_get(x_579, 1); +lean_inc(x_593); +lean_inc(x_592); +lean_dec(x_579); +x_594 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_594, 0, x_592); +lean_ctor_set(x_594, 1, x_593); +return x_594; } } } else { -lean_object* x_652; +lean_object* x_595; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_652 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_652) == 0) +x_595 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_595) == 0) { -lean_object* x_653; -x_653 = lean_ctor_get(x_652, 0); -lean_inc(x_653); -if (lean_obj_tag(x_653) == 0) +lean_object* x_596; +x_596 = lean_ctor_get(x_595, 0); +lean_inc(x_596); +if (lean_obj_tag(x_596) == 0) { -uint8_t x_654; +uint8_t x_597; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15366,57 +16566,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_654 = !lean_is_exclusive(x_652); -if (x_654 == 0) +x_597 = !lean_is_exclusive(x_595); +if (x_597 == 0) { -lean_object* x_655; lean_object* x_656; -x_655 = lean_ctor_get(x_652, 0); -lean_dec(x_655); -x_656 = lean_box(0); -lean_ctor_set(x_652, 0, x_656); -return x_652; +lean_object* x_598; lean_object* x_599; +x_598 = lean_ctor_get(x_595, 0); +lean_dec(x_598); +x_599 = lean_box(0); +lean_ctor_set(x_595, 0, x_599); +return x_595; } else { -lean_object* x_657; lean_object* x_658; lean_object* x_659; -x_657 = lean_ctor_get(x_652, 1); -lean_inc(x_657); -lean_dec(x_652); -x_658 = lean_box(0); -x_659 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_659, 0, x_658); -lean_ctor_set(x_659, 1, x_657); -return x_659; +lean_object* x_600; lean_object* x_601; lean_object* x_602; +x_600 = lean_ctor_get(x_595, 1); +lean_inc(x_600); +lean_dec(x_595); +x_601 = lean_box(0); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_601); +lean_ctor_set(x_602, 1, x_600); +return x_602; } } else { -lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_660 = lean_ctor_get(x_652, 1); -lean_inc(x_660); -lean_dec(x_652); -x_661 = lean_ctor_get(x_653, 0); -lean_inc(x_661); -x_662 = lean_ctor_get(x_653, 1); -lean_inc(x_662); -lean_dec(x_653); -x_663 = lean_nat_add(x_3, x_662); -lean_dec(x_662); -x_664 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_664, 0, x_661); -lean_ctor_set(x_664, 1, x_4); -lean_ctor_set(x_664, 2, x_5); -x_665 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_665, 0, x_664); -lean_ctor_set(x_665, 1, x_6); -x_666 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_663, x_665, x_8, x_9, x_10, x_11, x_660); -lean_dec(x_663); -return x_666; +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; +x_603 = lean_ctor_get(x_595, 1); +lean_inc(x_603); +lean_dec(x_595); +x_604 = lean_ctor_get(x_596, 0); +lean_inc(x_604); +x_605 = lean_ctor_get(x_596, 1); +lean_inc(x_605); +lean_dec(x_596); +x_606 = lean_nat_add(x_3, x_605); +lean_dec(x_605); +x_607 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_607, 0, x_604); +lean_ctor_set(x_607, 1, x_4); +lean_ctor_set(x_607, 2, x_5); +x_608 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_608, 1, x_6); +x_609 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_606, x_608, x_8, x_9, x_10, x_11, x_603); +lean_dec(x_606); +return x_609; } } else { -uint8_t x_667; +uint8_t x_610; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15424,114 +16624,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_667 = !lean_is_exclusive(x_652); -if (x_667 == 0) +x_610 = !lean_is_exclusive(x_595); +if (x_610 == 0) { -return x_652; +return x_595; } else { -lean_object* x_668; lean_object* x_669; lean_object* x_670; -x_668 = lean_ctor_get(x_652, 0); -x_669 = lean_ctor_get(x_652, 1); -lean_inc(x_669); -lean_inc(x_668); -lean_dec(x_652); -x_670 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_670, 0, x_668); -lean_ctor_set(x_670, 1, x_669); -return x_670; +lean_object* x_611; lean_object* x_612; lean_object* x_613; +x_611 = lean_ctor_get(x_595, 0); +x_612 = lean_ctor_get(x_595, 1); +lean_inc(x_612); +lean_inc(x_611); +lean_dec(x_595); +x_613 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_613, 0, x_611); +lean_ctor_set(x_613, 1, x_612); +return x_613; } } } } case 10: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_671; lean_object* x_672; +uint8_t x_614; lean_object* x_615; lean_dec(x_26); -x_671 = 1; +x_614 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_672 = l_Lean_Meta_substCore(x_1, x_2, x_671, x_5, x_671, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_672) == 0) +x_615 = l_Lean_Meta_substCore(x_1, x_2, x_614, x_5, x_614, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_615) == 0) { -lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; -x_673 = lean_ctor_get(x_672, 0); -lean_inc(x_673); -x_674 = lean_ctor_get(x_672, 1); -lean_inc(x_674); -lean_dec(x_672); -x_675 = lean_ctor_get(x_673, 0); -lean_inc(x_675); -x_676 = lean_ctor_get(x_673, 1); -lean_inc(x_676); -lean_dec(x_673); -x_677 = x_4; -x_678 = lean_unsigned_to_nat(0u); -x_679 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23(x_675, x_678, x_677); -x_680 = x_679; -x_681 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_681, 0, x_676); -lean_ctor_set(x_681, 1, x_680); -lean_ctor_set(x_681, 2, x_675); -x_682 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_682, 0, x_681); -lean_ctor_set(x_682, 1, x_6); -x_683 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_682, x_8, x_9, x_10, x_11, x_674); -return x_683; +lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_616 = lean_ctor_get(x_615, 0); +lean_inc(x_616); +x_617 = lean_ctor_get(x_615, 1); +lean_inc(x_617); +lean_dec(x_615); +x_618 = lean_ctor_get(x_616, 0); +lean_inc(x_618); +x_619 = lean_ctor_get(x_616, 1); +lean_inc(x_619); +lean_dec(x_616); +x_620 = x_4; +x_621 = lean_unsigned_to_nat(0u); +x_622 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23(x_618, x_621, x_620); +x_623 = x_622; +x_624 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_624, 0, x_619); +lean_ctor_set(x_624, 1, x_623); +lean_ctor_set(x_624, 2, x_618); +x_625 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_625, 0, x_624); +lean_ctor_set(x_625, 1, x_6); +x_626 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_625, x_8, x_9, x_10, x_11, x_617); +return x_626; } else { -uint8_t x_684; +uint8_t x_627; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_684 = !lean_is_exclusive(x_672); -if (x_684 == 0) +x_627 = !lean_is_exclusive(x_615); +if (x_627 == 0) { -return x_672; +return x_615; } else { -lean_object* x_685; lean_object* x_686; lean_object* x_687; -x_685 = lean_ctor_get(x_672, 0); -x_686 = lean_ctor_get(x_672, 1); -lean_inc(x_686); -lean_inc(x_685); -lean_dec(x_672); -x_687 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_687, 0, x_685); -lean_ctor_set(x_687, 1, x_686); -return x_687; +lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_628 = lean_ctor_get(x_615, 0); +x_629 = lean_ctor_get(x_615, 1); +lean_inc(x_629); +lean_inc(x_628); +lean_dec(x_615); +x_630 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_630, 0, x_628); +lean_ctor_set(x_630, 1, x_629); +return x_630; } } } else { -lean_object* x_688; +lean_object* x_631; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_688 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_688) == 0) +x_631 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_631) == 0) { -lean_object* x_689; -x_689 = lean_ctor_get(x_688, 0); -lean_inc(x_689); -if (lean_obj_tag(x_689) == 0) +lean_object* x_632; +x_632 = lean_ctor_get(x_631, 0); +lean_inc(x_632); +if (lean_obj_tag(x_632) == 0) { -uint8_t x_690; +uint8_t x_633; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15539,57 +16738,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_690 = !lean_is_exclusive(x_688); -if (x_690 == 0) +x_633 = !lean_is_exclusive(x_631); +if (x_633 == 0) { -lean_object* x_691; lean_object* x_692; -x_691 = lean_ctor_get(x_688, 0); -lean_dec(x_691); -x_692 = lean_box(0); -lean_ctor_set(x_688, 0, x_692); -return x_688; +lean_object* x_634; lean_object* x_635; +x_634 = lean_ctor_get(x_631, 0); +lean_dec(x_634); +x_635 = lean_box(0); +lean_ctor_set(x_631, 0, x_635); +return x_631; } else { -lean_object* x_693; lean_object* x_694; lean_object* x_695; -x_693 = lean_ctor_get(x_688, 1); -lean_inc(x_693); -lean_dec(x_688); -x_694 = lean_box(0); -x_695 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_695, 0, x_694); -lean_ctor_set(x_695, 1, x_693); -return x_695; +lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_636 = lean_ctor_get(x_631, 1); +lean_inc(x_636); +lean_dec(x_631); +x_637 = lean_box(0); +x_638 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_638, 0, x_637); +lean_ctor_set(x_638, 1, x_636); +return x_638; } } else { -lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; -x_696 = lean_ctor_get(x_688, 1); -lean_inc(x_696); -lean_dec(x_688); -x_697 = lean_ctor_get(x_689, 0); -lean_inc(x_697); -x_698 = lean_ctor_get(x_689, 1); -lean_inc(x_698); -lean_dec(x_689); -x_699 = lean_nat_add(x_3, x_698); -lean_dec(x_698); -x_700 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_700, 0, x_697); -lean_ctor_set(x_700, 1, x_4); -lean_ctor_set(x_700, 2, x_5); -x_701 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_701, 0, x_700); -lean_ctor_set(x_701, 1, x_6); -x_702 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_699, x_701, x_8, x_9, x_10, x_11, x_696); -lean_dec(x_699); -return x_702; +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; +x_639 = lean_ctor_get(x_631, 1); +lean_inc(x_639); +lean_dec(x_631); +x_640 = lean_ctor_get(x_632, 0); +lean_inc(x_640); +x_641 = lean_ctor_get(x_632, 1); +lean_inc(x_641); +lean_dec(x_632); +x_642 = lean_nat_add(x_3, x_641); +lean_dec(x_641); +x_643 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_643, 0, x_640); +lean_ctor_set(x_643, 1, x_4); +lean_ctor_set(x_643, 2, x_5); +x_644 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_644, 0, x_643); +lean_ctor_set(x_644, 1, x_6); +x_645 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_642, x_644, x_8, x_9, x_10, x_11, x_639); +lean_dec(x_642); +return x_645; } } else { -uint8_t x_703; +uint8_t x_646; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15597,114 +16796,113 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_703 = !lean_is_exclusive(x_688); -if (x_703 == 0) +x_646 = !lean_is_exclusive(x_631); +if (x_646 == 0) { -return x_688; +return x_631; } else { -lean_object* x_704; lean_object* x_705; lean_object* x_706; -x_704 = lean_ctor_get(x_688, 0); -x_705 = lean_ctor_get(x_688, 1); -lean_inc(x_705); -lean_inc(x_704); -lean_dec(x_688); -x_706 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_706, 0, x_704); -lean_ctor_set(x_706, 1, x_705); -return x_706; +lean_object* x_647; lean_object* x_648; lean_object* x_649; +x_647 = lean_ctor_get(x_631, 0); +x_648 = lean_ctor_get(x_631, 1); +lean_inc(x_648); +lean_inc(x_647); +lean_dec(x_631); +x_649 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_649, 0, x_647); +lean_ctor_set(x_649, 1, x_648); +return x_649; } } } } case 11: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_707; lean_object* x_708; +uint8_t x_650; lean_object* x_651; lean_dec(x_26); -x_707 = 1; +x_650 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_708 = l_Lean_Meta_substCore(x_1, x_2, x_707, x_5, x_707, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_708) == 0) +x_651 = l_Lean_Meta_substCore(x_1, x_2, x_650, x_5, x_650, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_651) == 0) { -lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; -x_709 = lean_ctor_get(x_708, 0); -lean_inc(x_709); -x_710 = lean_ctor_get(x_708, 1); -lean_inc(x_710); -lean_dec(x_708); -x_711 = lean_ctor_get(x_709, 0); -lean_inc(x_711); -x_712 = lean_ctor_get(x_709, 1); -lean_inc(x_712); -lean_dec(x_709); -x_713 = x_4; -x_714 = lean_unsigned_to_nat(0u); -x_715 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24(x_711, x_714, x_713); -x_716 = x_715; -x_717 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_717, 0, x_712); -lean_ctor_set(x_717, 1, x_716); -lean_ctor_set(x_717, 2, x_711); -x_718 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_718, 0, x_717); -lean_ctor_set(x_718, 1, x_6); -x_719 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_718, x_8, x_9, x_10, x_11, x_710); -return x_719; +lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; +x_652 = lean_ctor_get(x_651, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_651, 1); +lean_inc(x_653); +lean_dec(x_651); +x_654 = lean_ctor_get(x_652, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_652, 1); +lean_inc(x_655); +lean_dec(x_652); +x_656 = x_4; +x_657 = lean_unsigned_to_nat(0u); +x_658 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24(x_654, x_657, x_656); +x_659 = x_658; +x_660 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_660, 0, x_655); +lean_ctor_set(x_660, 1, x_659); +lean_ctor_set(x_660, 2, x_654); +x_661 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_661, 0, x_660); +lean_ctor_set(x_661, 1, x_6); +x_662 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_661, x_8, x_9, x_10, x_11, x_653); +return x_662; } else { -uint8_t x_720; +uint8_t x_663; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -x_720 = !lean_is_exclusive(x_708); -if (x_720 == 0) +x_663 = !lean_is_exclusive(x_651); +if (x_663 == 0) { -return x_708; +return x_651; } else { -lean_object* x_721; lean_object* x_722; lean_object* x_723; -x_721 = lean_ctor_get(x_708, 0); -x_722 = lean_ctor_get(x_708, 1); -lean_inc(x_722); -lean_inc(x_721); -lean_dec(x_708); -x_723 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_723, 0, x_721); -lean_ctor_set(x_723, 1, x_722); -return x_723; +lean_object* x_664; lean_object* x_665; lean_object* x_666; +x_664 = lean_ctor_get(x_651, 0); +x_665 = lean_ctor_get(x_651, 1); +lean_inc(x_665); +lean_inc(x_664); +lean_dec(x_651); +x_666 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_666, 0, x_664); +lean_ctor_set(x_666, 1, x_665); +return x_666; } } } else { -lean_object* x_724; +lean_object* x_667; lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_724 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_724) == 0) +x_667 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_667) == 0) { -lean_object* x_725; -x_725 = lean_ctor_get(x_724, 0); -lean_inc(x_725); -if (lean_obj_tag(x_725) == 0) +lean_object* x_668; +x_668 = lean_ctor_get(x_667, 0); +lean_inc(x_668); +if (lean_obj_tag(x_668) == 0) { -uint8_t x_726; +uint8_t x_669; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15712,57 +16910,57 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_726 = !lean_is_exclusive(x_724); -if (x_726 == 0) +x_669 = !lean_is_exclusive(x_667); +if (x_669 == 0) { -lean_object* x_727; lean_object* x_728; -x_727 = lean_ctor_get(x_724, 0); -lean_dec(x_727); -x_728 = lean_box(0); -lean_ctor_set(x_724, 0, x_728); -return x_724; +lean_object* x_670; lean_object* x_671; +x_670 = lean_ctor_get(x_667, 0); +lean_dec(x_670); +x_671 = lean_box(0); +lean_ctor_set(x_667, 0, x_671); +return x_667; } else { -lean_object* x_729; lean_object* x_730; lean_object* x_731; -x_729 = lean_ctor_get(x_724, 1); -lean_inc(x_729); -lean_dec(x_724); -x_730 = lean_box(0); -x_731 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_731, 0, x_730); -lean_ctor_set(x_731, 1, x_729); -return x_731; +lean_object* x_672; lean_object* x_673; lean_object* x_674; +x_672 = lean_ctor_get(x_667, 1); +lean_inc(x_672); +lean_dec(x_667); +x_673 = lean_box(0); +x_674 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_674, 0, x_673); +lean_ctor_set(x_674, 1, x_672); +return x_674; } } else { -lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; -x_732 = lean_ctor_get(x_724, 1); -lean_inc(x_732); -lean_dec(x_724); -x_733 = lean_ctor_get(x_725, 0); -lean_inc(x_733); -x_734 = lean_ctor_get(x_725, 1); -lean_inc(x_734); -lean_dec(x_725); -x_735 = lean_nat_add(x_3, x_734); -lean_dec(x_734); -x_736 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_736, 0, x_733); -lean_ctor_set(x_736, 1, x_4); -lean_ctor_set(x_736, 2, x_5); -x_737 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_737, 0, x_736); -lean_ctor_set(x_737, 1, x_6); -x_738 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_735, x_737, x_8, x_9, x_10, x_11, x_732); -lean_dec(x_735); -return x_738; +lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; +x_675 = lean_ctor_get(x_667, 1); +lean_inc(x_675); +lean_dec(x_667); +x_676 = lean_ctor_get(x_668, 0); +lean_inc(x_676); +x_677 = lean_ctor_get(x_668, 1); +lean_inc(x_677); +lean_dec(x_668); +x_678 = lean_nat_add(x_3, x_677); +lean_dec(x_677); +x_679 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_679, 0, x_676); +lean_ctor_set(x_679, 1, x_4); +lean_ctor_set(x_679, 2, x_5); +x_680 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_680, 0, x_679); +lean_ctor_set(x_680, 1, x_6); +x_681 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_678, x_680, x_8, x_9, x_10, x_11, x_675); +lean_dec(x_678); +return x_681; } } else { -uint8_t x_739; +uint8_t x_682; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15770,90 +16968,385 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_739 = !lean_is_exclusive(x_724); -if (x_739 == 0) +x_682 = !lean_is_exclusive(x_667); +if (x_682 == 0) { -return x_724; +return x_667; } else { -lean_object* x_740; lean_object* x_741; lean_object* x_742; -x_740 = lean_ctor_get(x_724, 0); -x_741 = lean_ctor_get(x_724, 1); -lean_inc(x_741); -lean_inc(x_740); -lean_dec(x_724); -x_742 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_742, 0, x_740); -lean_ctor_set(x_742, 1, x_741); -return x_742; +lean_object* x_683; lean_object* x_684; lean_object* x_685; +x_683 = lean_ctor_get(x_667, 0); +x_684 = lean_ctor_get(x_667, 1); +lean_inc(x_684); +lean_inc(x_683); +lean_dec(x_667); +x_685 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_685, 0, x_683); +lean_ctor_set(x_685, 1, x_684); +return x_685; } } } } default: { -lean_dec(x_28); lean_dec(x_25); if (lean_obj_tag(x_26) == 1) { -uint8_t x_743; lean_object* x_744; +uint8_t x_686; lean_object* x_687; lean_dec(x_26); -x_743 = 1; +x_686 = 1; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_744 = l_Lean_Meta_substCore(x_1, x_2, x_743, x_5, x_743, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_744) == 0) +x_687 = l_Lean_Meta_substCore(x_1, x_2, x_686, x_5, x_686, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_687) == 0) { -lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; -x_745 = lean_ctor_get(x_744, 0); -lean_inc(x_745); -x_746 = lean_ctor_get(x_744, 1); -lean_inc(x_746); -lean_dec(x_744); -x_747 = lean_ctor_get(x_745, 0); -lean_inc(x_747); -x_748 = lean_ctor_get(x_745, 1); +lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_688 = lean_ctor_get(x_687, 0); +lean_inc(x_688); +x_689 = lean_ctor_get(x_687, 1); +lean_inc(x_689); +lean_dec(x_687); +x_690 = lean_ctor_get(x_688, 0); +lean_inc(x_690); +x_691 = lean_ctor_get(x_688, 1); +lean_inc(x_691); +lean_dec(x_688); +x_692 = x_4; +x_693 = lean_unsigned_to_nat(0u); +x_694 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(x_690, x_693, x_692); +x_695 = x_694; +x_696 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_696, 0, x_691); +lean_ctor_set(x_696, 1, x_695); +lean_ctor_set(x_696, 2, x_690); +x_697 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_697, 0, x_696); +lean_ctor_set(x_697, 1, x_6); +x_698 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_697, x_8, x_9, x_10, x_11, x_689); +return x_698; +} +else +{ +uint8_t x_699; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_699 = !lean_is_exclusive(x_687); +if (x_699 == 0) +{ +return x_687; +} +else +{ +lean_object* x_700; lean_object* x_701; lean_object* x_702; +x_700 = lean_ctor_get(x_687, 0); +x_701 = lean_ctor_get(x_687, 1); +lean_inc(x_701); +lean_inc(x_700); +lean_dec(x_687); +x_702 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_702, 0, x_700); +lean_ctor_set(x_702, 1, x_701); +return x_702; +} +} +} +else +{ +lean_object* x_703; +lean_dec(x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_703 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_703) == 0) +{ +lean_object* x_704; +x_704 = lean_ctor_get(x_703, 0); +lean_inc(x_704); +if (lean_obj_tag(x_704) == 0) +{ +uint8_t x_705; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_705 = !lean_is_exclusive(x_703); +if (x_705 == 0) +{ +lean_object* x_706; lean_object* x_707; +x_706 = lean_ctor_get(x_703, 0); +lean_dec(x_706); +x_707 = lean_box(0); +lean_ctor_set(x_703, 0, x_707); +return x_703; +} +else +{ +lean_object* x_708; lean_object* x_709; lean_object* x_710; +x_708 = lean_ctor_get(x_703, 1); +lean_inc(x_708); +lean_dec(x_703); +x_709 = lean_box(0); +x_710 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_710, 0, x_709); +lean_ctor_set(x_710, 1, x_708); +return x_710; +} +} +else +{ +lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; +x_711 = lean_ctor_get(x_703, 1); +lean_inc(x_711); +lean_dec(x_703); +x_712 = lean_ctor_get(x_704, 0); +lean_inc(x_712); +x_713 = lean_ctor_get(x_704, 1); +lean_inc(x_713); +lean_dec(x_704); +x_714 = lean_nat_add(x_3, x_713); +lean_dec(x_713); +x_715 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_715, 0, x_712); +lean_ctor_set(x_715, 1, x_4); +lean_ctor_set(x_715, 2, x_5); +x_716 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_716, 0, x_715); +lean_ctor_set(x_716, 1, x_6); +x_717 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_714, x_716, x_8, x_9, x_10, x_11, x_711); +lean_dec(x_714); +return x_717; +} +} +else +{ +uint8_t x_718; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_718 = !lean_is_exclusive(x_703); +if (x_718 == 0) +{ +return x_703; +} +else +{ +lean_object* x_719; lean_object* x_720; lean_object* x_721; +x_719 = lean_ctor_get(x_703, 0); +x_720 = lean_ctor_get(x_703, 1); +lean_inc(x_720); +lean_inc(x_719); +lean_dec(x_703); +x_721 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_721, 0, x_719); +lean_ctor_set(x_721, 1, x_720); +return x_721; +} +} +} +} +} +} +else +{ +lean_object* x_722; lean_object* x_723; +lean_dec(x_26); +lean_dec(x_25); +lean_inc(x_2); +x_722 = l_Lean_mkFVar(x_2); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_723 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_32, x_35, x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_723) == 0) +{ +lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; +x_724 = lean_ctor_get(x_723, 0); +lean_inc(x_724); +x_725 = lean_ctor_get(x_723, 1); +lean_inc(x_725); +lean_dec(x_723); +x_726 = l_Lean_LocalDecl_userName(x_7); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_727 = l_Lean_Meta_assert(x_1, x_726, x_724, x_722, x_8, x_9, x_10, x_11, x_725); +if (lean_obj_tag(x_727) == 0) +{ +lean_object* x_728; lean_object* x_729; lean_object* x_730; +x_728 = lean_ctor_get(x_727, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_727, 1); +lean_inc(x_729); +lean_dec(x_727); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_730 = l_Lean_Meta_clear(x_728, x_2, x_8, x_9, x_10, x_11, x_729); +if (lean_obj_tag(x_730) == 0) +{ +lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; +x_731 = lean_ctor_get(x_730, 0); +lean_inc(x_731); +x_732 = lean_ctor_get(x_730, 1); +lean_inc(x_732); +lean_dec(x_730); +x_733 = lean_unsigned_to_nat(1u); +x_734 = lean_nat_add(x_3, x_733); +x_735 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_735, 0, x_731); +lean_ctor_set(x_735, 1, x_4); +lean_ctor_set(x_735, 2, x_5); +x_736 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_736, 0, x_735); +lean_ctor_set(x_736, 1, x_6); +x_737 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_734, x_736, x_8, x_9, x_10, x_11, x_732); +lean_dec(x_734); +return x_737; +} +else +{ +uint8_t x_738; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_738 = !lean_is_exclusive(x_730); +if (x_738 == 0) +{ +return x_730; +} +else +{ +lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_739 = lean_ctor_get(x_730, 0); +x_740 = lean_ctor_get(x_730, 1); +lean_inc(x_740); +lean_inc(x_739); +lean_dec(x_730); +x_741 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_741, 0, x_739); +lean_ctor_set(x_741, 1, x_740); +return x_741; +} +} +} +else +{ +uint8_t x_742; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_742 = !lean_is_exclusive(x_727); +if (x_742 == 0) +{ +return x_727; +} +else +{ +lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_743 = lean_ctor_get(x_727, 0); +x_744 = lean_ctor_get(x_727, 1); +lean_inc(x_744); +lean_inc(x_743); +lean_dec(x_727); +x_745 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_745, 0, x_743); +lean_ctor_set(x_745, 1, x_744); +return x_745; +} +} +} +else +{ +uint8_t x_746; +lean_dec(x_722); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_746 = !lean_is_exclusive(x_723); +if (x_746 == 0) +{ +return x_723; +} +else +{ +lean_object* x_747; lean_object* x_748; lean_object* x_749; +x_747 = lean_ctor_get(x_723, 0); +x_748 = lean_ctor_get(x_723, 1); lean_inc(x_748); -lean_dec(x_745); -x_749 = x_4; -x_750 = lean_unsigned_to_nat(0u); -x_751 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25(x_747, x_750, x_749); -x_752 = x_751; -x_753 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_753, 0, x_748); -lean_ctor_set(x_753, 1, x_752); -lean_ctor_set(x_753, 2, x_747); -x_754 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_754, 0, x_753); -lean_ctor_set(x_754, 1, x_6); -x_755 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_754, x_8, x_9, x_10, x_11, x_746); -return x_755; +lean_inc(x_747); +lean_dec(x_723); +x_749 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_749, 0, x_747); +lean_ctor_set(x_749, 1, x_748); +return x_749; +} +} +} +} } else { uint8_t x_756; +lean_dec(x_32); +lean_dec(x_26); +lean_dec(x_25); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -x_756 = !lean_is_exclusive(x_744); +lean_dec(x_2); +lean_dec(x_1); +x_756 = !lean_is_exclusive(x_34); if (x_756 == 0) { -return x_744; +return x_34; } else { lean_object* x_757; lean_object* x_758; lean_object* x_759; -x_757 = lean_ctor_get(x_744, 0); -x_758 = lean_ctor_get(x_744, 1); +x_757 = lean_ctor_get(x_34, 0); +x_758 = lean_ctor_get(x_34, 1); lean_inc(x_758); lean_inc(x_757); -lean_dec(x_744); +lean_dec(x_34); x_759 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_759, 0, x_757); lean_ctor_set(x_759, 1, x_758); @@ -15863,21 +17356,9 @@ return x_759; } else { -lean_object* x_760; +uint8_t x_760; lean_dec(x_26); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_760 = l_Lean_Meta_injectionCore(x_1, x_2, x_8, x_9, x_10, x_11, x_36); -if (lean_obj_tag(x_760) == 0) -{ -lean_object* x_761; -x_761 = lean_ctor_get(x_760, 0); -lean_inc(x_761); -if (lean_obj_tag(x_761) == 0) -{ -uint8_t x_762; +lean_dec(x_25); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15885,57 +17366,95 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_762 = !lean_is_exclusive(x_760); -if (x_762 == 0) +lean_dec(x_2); +lean_dec(x_1); +x_760 = !lean_is_exclusive(x_31); +if (x_760 == 0) { -lean_object* x_763; lean_object* x_764; -x_763 = lean_ctor_get(x_760, 0); -lean_dec(x_763); -x_764 = lean_box(0); -lean_ctor_set(x_760, 0, x_764); -return x_760; +return x_31; } else { -lean_object* x_765; lean_object* x_766; lean_object* x_767; -x_765 = lean_ctor_get(x_760, 1); -lean_inc(x_765); -lean_dec(x_760); -x_766 = lean_box(0); -x_767 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_767, 0, x_766); -lean_ctor_set(x_767, 1, x_765); -return x_767; +lean_object* x_761; lean_object* x_762; lean_object* x_763; +x_761 = lean_ctor_get(x_31, 0); +x_762 = lean_ctor_get(x_31, 1); +lean_inc(x_762); +lean_inc(x_761); +lean_dec(x_31); +x_763 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_763, 0, x_761); +lean_ctor_set(x_763, 1, x_762); +return x_763; +} } } else { -lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; -x_768 = lean_ctor_get(x_760, 1); -lean_inc(x_768); -lean_dec(x_760); -x_769 = lean_ctor_get(x_761, 0); -lean_inc(x_769); -x_770 = lean_ctor_get(x_761, 1); -lean_inc(x_770); -lean_dec(x_761); -x_771 = lean_nat_add(x_3, x_770); -lean_dec(x_770); -x_772 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_772, 0, x_769); -lean_ctor_set(x_772, 1, x_4); -lean_ctor_set(x_772, 2, x_5); -x_773 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_773, 0, x_772); -lean_ctor_set(x_773, 1, x_6); -x_774 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_771, x_773, x_8, x_9, x_10, x_11, x_768); -lean_dec(x_771); +lean_object* x_764; lean_object* x_765; +lean_dec(x_26); +lean_dec(x_25); +x_764 = lean_ctor_get(x_27, 1); +lean_inc(x_764); +lean_dec(x_27); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_765 = l_Lean_Meta_clear(x_1, x_2, x_8, x_9, x_10, x_11, x_764); +if (lean_obj_tag(x_765) == 0) +{ +lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; +x_766 = lean_ctor_get(x_765, 0); +lean_inc(x_766); +x_767 = lean_ctor_get(x_765, 1); +lean_inc(x_767); +lean_dec(x_765); +x_768 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_768, 0, x_766); +lean_ctor_set(x_768, 1, x_4); +lean_ctor_set(x_768, 2, x_5); +x_769 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_769, 0, x_768); +lean_ctor_set(x_769, 1, x_6); +x_770 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_3, x_769, x_8, x_9, x_10, x_11, x_767); +return x_770; +} +else +{ +uint8_t x_771; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_771 = !lean_is_exclusive(x_765); +if (x_771 == 0) +{ +return x_765; +} +else +{ +lean_object* x_772; lean_object* x_773; lean_object* x_774; +x_772 = lean_ctor_get(x_765, 0); +x_773 = lean_ctor_get(x_765, 1); +lean_inc(x_773); +lean_inc(x_772); +lean_dec(x_765); +x_774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_774, 0, x_772); +lean_ctor_set(x_774, 1, x_773); return x_774; } } +} +} else { uint8_t x_775; +lean_dec(x_26); +lean_dec(x_25); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -15943,19 +17462,21 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_775 = !lean_is_exclusive(x_760); +lean_dec(x_2); +lean_dec(x_1); +x_775 = !lean_is_exclusive(x_27); if (x_775 == 0) { -return x_760; +return x_27; } else { lean_object* x_776; lean_object* x_777; lean_object* x_778; -x_776 = lean_ctor_get(x_760, 0); -x_777 = lean_ctor_get(x_760, 1); +x_776 = lean_ctor_get(x_27, 0); +x_777 = lean_ctor_get(x_27, 1); lean_inc(x_777); lean_inc(x_776); -lean_dec(x_760); +lean_dec(x_27); x_778 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_778, 0, x_776); lean_ctor_set(x_778, 1, x_777); @@ -15964,388 +17485,259 @@ return x_778; } } } -} -} -} -} else { -uint8_t x_779; -lean_dec(x_32); -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_779 = !lean_is_exclusive(x_34); -if (x_779 == 0) -{ -return x_34; -} -else -{ -lean_object* x_780; lean_object* x_781; lean_object* x_782; -x_780 = lean_ctor_get(x_34, 0); -x_781 = lean_ctor_get(x_34, 1); -lean_inc(x_781); -lean_inc(x_780); -lean_dec(x_34); -x_782 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_782, 0, x_780); -lean_ctor_set(x_782, 1, x_781); -return x_782; -} -} -} -else -{ -uint8_t x_783; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_783 = !lean_is_exclusive(x_31); -if (x_783 == 0) -{ -return x_31; -} -else -{ -lean_object* x_784; lean_object* x_785; lean_object* x_786; -x_784 = lean_ctor_get(x_31, 0); -x_785 = lean_ctor_get(x_31, 1); -lean_inc(x_785); -lean_inc(x_784); -lean_dec(x_31); -x_786 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_786, 0, x_784); -lean_ctor_set(x_786, 1, x_785); -return x_786; -} -} -} -else -{ -lean_object* x_787; lean_object* x_788; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -x_787 = lean_ctor_get(x_27, 1); -lean_inc(x_787); -lean_dec(x_27); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_788 = l_Lean_Meta_clear(x_1, x_2, x_8, x_9, x_10, x_11, x_787); -if (lean_obj_tag(x_788) == 0) -{ -lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; -x_789 = lean_ctor_get(x_788, 0); -lean_inc(x_789); -x_790 = lean_ctor_get(x_788, 1); -lean_inc(x_790); -lean_dec(x_788); -x_791 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_791, 0, x_789); -lean_ctor_set(x_791, 1, x_4); -lean_ctor_set(x_791, 2, x_5); -x_792 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_792, 0, x_791); -lean_ctor_set(x_792, 1, x_6); -x_793 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_3, x_792, x_8, x_9, x_10, x_11, x_790); -return x_793; -} -else -{ -uint8_t x_794; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_794 = !lean_is_exclusive(x_788); -if (x_794 == 0) -{ -return x_788; -} -else -{ -lean_object* x_795; lean_object* x_796; lean_object* x_797; -x_795 = lean_ctor_get(x_788, 0); -x_796 = lean_ctor_get(x_788, 1); -lean_inc(x_796); -lean_inc(x_795); -lean_dec(x_788); -x_797 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_797, 0, x_795); -lean_ctor_set(x_797, 1, x_796); -return x_797; -} -} -} -} -else -{ -uint8_t x_798; -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_798 = !lean_is_exclusive(x_27); -if (x_798 == 0) -{ -return x_27; -} -else -{ -lean_object* x_799; lean_object* x_800; lean_object* x_801; -x_799 = lean_ctor_get(x_27, 0); -x_800 = lean_ctor_get(x_27, 1); -lean_inc(x_800); -lean_inc(x_799); -lean_dec(x_27); -x_801 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_801, 0, x_799); -lean_ctor_set(x_801, 1, x_800); -return x_801; -} -} -} -} -else -{ -lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; -x_802 = l_Lean_Expr_appFn_x21(x_13); -x_803 = l_Lean_Expr_appFn_x21(x_802); -lean_dec(x_802); -x_804 = l_Lean_Expr_appArg_x21(x_803); -lean_dec(x_803); -x_805 = l_Lean_Expr_appArg_x21(x_13); +lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; +x_779 = l_Lean_Expr_appFn_x21(x_13); +x_780 = l_Lean_Expr_appFn_x21(x_779); +lean_dec(x_779); +x_781 = l_Lean_Expr_appArg_x21(x_780); +lean_dec(x_780); +x_782 = l_Lean_Expr_appArg_x21(x_13); lean_dec(x_13); lean_inc(x_2); -x_806 = l_Lean_mkFVar(x_2); +x_783 = l_Lean_mkFVar(x_2); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_807 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(x_806, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_807) == 0) +x_784 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(x_783, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_784) == 0) { -lean_object* x_808; lean_object* x_809; lean_object* x_810; -x_808 = lean_ctor_get(x_807, 0); +lean_object* x_785; lean_object* x_786; lean_object* x_787; +x_785 = lean_ctor_get(x_784, 0); +lean_inc(x_785); +x_786 = lean_ctor_get(x_784, 1); +lean_inc(x_786); +lean_dec(x_784); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_787 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_781, x_782, x_8, x_9, x_10, x_11, x_786); +if (lean_obj_tag(x_787) == 0) +{ +lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +x_788 = lean_ctor_get(x_787, 0); +lean_inc(x_788); +x_789 = lean_ctor_get(x_787, 1); +lean_inc(x_789); +lean_dec(x_787); +x_790 = l_Lean_LocalDecl_userName(x_7); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_791 = l_Lean_Meta_assert(x_1, x_790, x_788, x_785, x_8, x_9, x_10, x_11, x_789); +if (lean_obj_tag(x_791) == 0) +{ +lean_object* x_792; lean_object* x_793; lean_object* x_794; +x_792 = lean_ctor_get(x_791, 0); +lean_inc(x_792); +x_793 = lean_ctor_get(x_791, 1); +lean_inc(x_793); +lean_dec(x_791); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_794 = l_Lean_Meta_clear(x_792, x_2, x_8, x_9, x_10, x_11, x_793); +if (lean_obj_tag(x_794) == 0) +{ +lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; +x_795 = lean_ctor_get(x_794, 0); +lean_inc(x_795); +x_796 = lean_ctor_get(x_794, 1); +lean_inc(x_796); +lean_dec(x_794); +x_797 = lean_unsigned_to_nat(1u); +x_798 = lean_nat_add(x_3, x_797); +x_799 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_799, 0, x_795); +lean_ctor_set(x_799, 1, x_4); +lean_ctor_set(x_799, 2, x_5); +x_800 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_800, 0, x_799); +lean_ctor_set(x_800, 1, x_6); +x_801 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_798, x_800, x_8, x_9, x_10, x_11, x_796); +lean_dec(x_798); +return x_801; +} +else +{ +uint8_t x_802; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_802 = !lean_is_exclusive(x_794); +if (x_802 == 0) +{ +return x_794; +} +else +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; +x_803 = lean_ctor_get(x_794, 0); +x_804 = lean_ctor_get(x_794, 1); +lean_inc(x_804); +lean_inc(x_803); +lean_dec(x_794); +x_805 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_805, 0, x_803); +lean_ctor_set(x_805, 1, x_804); +return x_805; +} +} +} +else +{ +uint8_t x_806; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_806 = !lean_is_exclusive(x_791); +if (x_806 == 0) +{ +return x_791; +} +else +{ +lean_object* x_807; lean_object* x_808; lean_object* x_809; +x_807 = lean_ctor_get(x_791, 0); +x_808 = lean_ctor_get(x_791, 1); lean_inc(x_808); -x_809 = lean_ctor_get(x_807, 1); -lean_inc(x_809); -lean_dec(x_807); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_810 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_804, x_805, x_8, x_9, x_10, x_11, x_809); -if (lean_obj_tag(x_810) == 0) +lean_inc(x_807); +lean_dec(x_791); +x_809 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_809, 0, x_807); +lean_ctor_set(x_809, 1, x_808); +return x_809; +} +} +} +else { -lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; -x_811 = lean_ctor_get(x_810, 0); -lean_inc(x_811); -x_812 = lean_ctor_get(x_810, 1); +uint8_t x_810; +lean_dec(x_785); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_810 = !lean_is_exclusive(x_787); +if (x_810 == 0) +{ +return x_787; +} +else +{ +lean_object* x_811; lean_object* x_812; lean_object* x_813; +x_811 = lean_ctor_get(x_787, 0); +x_812 = lean_ctor_get(x_787, 1); lean_inc(x_812); -lean_dec(x_810); -x_813 = l_Lean_LocalDecl_userName(x_7); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_814 = l_Lean_Meta_assert(x_1, x_813, x_811, x_808, x_8, x_9, x_10, x_11, x_812); -if (lean_obj_tag(x_814) == 0) +lean_inc(x_811); +lean_dec(x_787); +x_813 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_813, 0, x_811); +lean_ctor_set(x_813, 1, x_812); +return x_813; +} +} +} +else +{ +uint8_t x_814; +lean_dec(x_782); +lean_dec(x_781); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_814 = !lean_is_exclusive(x_784); +if (x_814 == 0) +{ +return x_784; +} +else { lean_object* x_815; lean_object* x_816; lean_object* x_817; -x_815 = lean_ctor_get(x_814, 0); -lean_inc(x_815); -x_816 = lean_ctor_get(x_814, 1); +x_815 = lean_ctor_get(x_784, 0); +x_816 = lean_ctor_get(x_784, 1); lean_inc(x_816); -lean_dec(x_814); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_817 = l_Lean_Meta_clear(x_815, x_2, x_8, x_9, x_10, x_11, x_816); -if (lean_obj_tag(x_817) == 0) -{ -lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; -x_818 = lean_ctor_get(x_817, 0); -lean_inc(x_818); -x_819 = lean_ctor_get(x_817, 1); -lean_inc(x_819); -lean_dec(x_817); -x_820 = lean_unsigned_to_nat(1u); -x_821 = lean_nat_add(x_3, x_820); -x_822 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_822, 0, x_818); -lean_ctor_set(x_822, 1, x_4); -lean_ctor_set(x_822, 2, x_5); -x_823 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_823, 0, x_822); -lean_ctor_set(x_823, 1, x_6); -x_824 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_821, x_823, x_8, x_9, x_10, x_11, x_819); -lean_dec(x_821); -return x_824; -} -else -{ -uint8_t x_825; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_825 = !lean_is_exclusive(x_817); -if (x_825 == 0) -{ +lean_inc(x_815); +lean_dec(x_784); +x_817 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_817, 0, x_815); +lean_ctor_set(x_817, 1, x_816); return x_817; } -else +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1() { +_start: { -lean_object* x_826; lean_object* x_827; lean_object* x_828; -x_826 = lean_ctor_get(x_817, 0); -x_827 = lean_ctor_get(x_817, 1); -lean_inc(x_827); -lean_inc(x_826); -lean_dec(x_817); -x_828 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_828, 0, x_826); -lean_ctor_set(x_828, 1, x_827); -return x_828; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +x_2 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } -} -else +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2() { +_start: { -uint8_t x_829; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_829 = !lean_is_exclusive(x_814); -if (x_829 == 0) +lean_object* x_1; +x_1 = lean_mk_string("unifyEqs ["); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3() { +_start: { -return x_814; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } -else +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4() { +_start: { -lean_object* x_830; lean_object* x_831; lean_object* x_832; -x_830 = lean_ctor_get(x_814, 0); -x_831 = lean_ctor_get(x_814, 1); -lean_inc(x_831); -lean_inc(x_830); -lean_dec(x_814); -x_832 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_832, 0, x_830); -lean_ctor_set(x_832, 1, x_831); -return x_832; +lean_object* x_1; +x_1 = lean_mk_string("] "); +return x_1; } } -} -else +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5() { +_start: { -uint8_t x_833; -lean_dec(x_808); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_833 = !lean_is_exclusive(x_810); -if (x_833 == 0) -{ -return x_810; -} -else -{ -lean_object* x_834; lean_object* x_835; lean_object* x_836; -x_834 = lean_ctor_get(x_810, 0); -x_835 = lean_ctor_get(x_810, 1); -lean_inc(x_835); -lean_inc(x_834); -lean_dec(x_810); -x_836 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_836, 0, x_834); -lean_ctor_set(x_836, 1, x_835); -return x_836; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } -} -else -{ -uint8_t x_837; -lean_dec(x_805); -lean_dec(x_804); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_837 = !lean_is_exclusive(x_807); -if (x_837 == 0) -{ -return x_807; -} -else -{ -lean_object* x_838; lean_object* x_839; lean_object* x_840; -x_838 = lean_ctor_get(x_807, 0); -x_839 = lean_ctor_get(x_807, 1); -lean_inc(x_839); -lean_inc(x_838); -lean_dec(x_807); -x_840 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_840, 0, x_838); -lean_ctor_set(x_840, 1, x_839); -return x_840; -} -} -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6() { _start: { lean_object* x_1; @@ -16353,53 +17745,27 @@ x_1 = lean_mk_string("unifyEqs "); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1; +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2; +x_1 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3; -x_7 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -return x_7; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -x_2 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(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; uint8_t x_9; @@ -16407,420 +17773,557 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = lean_nat_dec_eq(x_1, x_8); if (x_9 == 0) { -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; uint8_t x_21; lean_object* x_22; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_33; lean_object* x_34; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_sub(x_1, x_10); -lean_inc(x_2); -lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___boxed), 3, 2); -lean_closure_set(x_12, 0, x_11); -lean_closure_set(x_12, 1, x_2); -x_13 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1; -x_14 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_13, x_12, x_3, x_4, x_5, x_6, x_7); -x_15 = lean_ctor_get(x_2, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_2, 1); -lean_inc(x_17); +x_52 = lean_st_ref_get(x_6, x_7); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_53, 3); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_ctor_get_uint8(x_54, sizeof(void*)*1); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec(x_52); +x_57 = 0; +x_33 = x_57; +x_34 = x_56; +goto block_51; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +lean_dec(x_52); +x_59 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_60 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_59, x_3, x_4, x_5, x_6, x_58); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_unbox(x_61); +lean_dec(x_61); +x_33 = x_63; +x_34 = x_62; +goto block_51; +} +block_32: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); lean_dec(x_2); -x_18 = lean_ctor_get(x_15, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -x_20 = lean_ctor_get(x_15, 2); -lean_inc(x_20); -lean_dec(x_15); -x_21 = 0; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_13, 2); +lean_inc(x_17); +lean_dec(x_13); +x_18 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_22 = l_Lean_Meta_intro1Core(x_18, x_21, x_3, x_4, x_5, x_6, x_16); -if (lean_obj_tag(x_22) == 0) +x_19 = l_Lean_Meta_intro1Core(x_15, x_18, x_3, x_4, x_5, x_6, x_12); +if (lean_obj_tag(x_19) == 0) { -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; -x_23 = lean_ctor_get(x_22, 0); +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; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -lean_inc(x_25); -x_27 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed), 6, 1); -lean_closure_set(x_27, 0, x_25); -lean_inc(x_26); -x_28 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___boxed), 12, 6); -lean_closure_set(x_28, 0, x_26); -lean_closure_set(x_28, 1, x_25); -lean_closure_set(x_28, 2, x_11); -lean_closure_set(x_28, 3, x_19); -lean_closure_set(x_28, 4, x_20); -lean_closure_set(x_28, 5, x_17); -x_29 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_29, 0, x_27); -lean_closure_set(x_29, 1, x_28); -x_30 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_26, x_29, x_3, x_4, x_5, x_6, x_24); -return x_30; +lean_dec(x_20); +lean_inc(x_22); +x_24 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed), 6, 1); +lean_closure_set(x_24, 0, x_22); +lean_inc(x_23); +x_25 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___boxed), 12, 6); +lean_closure_set(x_25, 0, x_23); +lean_closure_set(x_25, 1, x_22); +lean_closure_set(x_25, 2, x_11); +lean_closure_set(x_25, 3, x_16); +lean_closure_set(x_25, 4, x_17); +lean_closure_set(x_25, 5, x_14); +x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_26, 0, x_24); +lean_closure_set(x_26, 1, x_25); +x_27 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_23, x_26, x_3, x_4, x_5, x_6, x_21); +return x_27; } else { -uint8_t x_31; -lean_dec(x_20); -lean_dec(x_19); +uint8_t x_28; lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_31 = !lean_is_exclusive(x_22); -if (x_31 == 0) +x_28 = !lean_is_exclusive(x_19); +if (x_28 == 0) { -return x_22; +return x_19; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_22, 0); -x_33 = lean_ctor_get(x_22, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_22); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_19, 0); +x_30 = lean_ctor_get(x_19, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_19); +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; +} +} +} +block_51: +{ +if (x_33 == 0) +{ +x_12 = x_34; +goto block_32; +} +else +{ +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; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_35 = lean_nat_add(x_11, x_10); +x_36 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_35); +x_37 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_ctor_get(x_2, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_41); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_49 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_48, x_47, x_3, x_4, x_5, x_6, x_34); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_12 = x_50; +goto block_32; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_inc(x_2); -x_35 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___boxed), 2, 1); -lean_closure_set(x_35, 0, x_2); -x_36 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1; -x_37 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_36, x_35, x_3, x_4, x_5, x_6, x_7); +uint8_t x_64; lean_object* x_65; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_82 = lean_st_ref_get(x_6, x_7); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_83, 3); +lean_inc(x_84); +lean_dec(x_83); +x_85 = lean_ctor_get_uint8(x_84, sizeof(void*)*1); +lean_dec(x_84); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_82, 1); +lean_inc(x_86); +lean_dec(x_82); +x_87 = 0; +x_64 = x_87; +x_65 = x_86; +goto block_81; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_dec(x_82); +x_89 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_90 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_89, x_3, x_4, x_5, x_6, x_88); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = lean_unbox(x_91); +lean_dec(x_91); +x_64 = x_93; +x_65 = x_92; +goto block_81; +} +block_81: +{ +if (x_64 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_2); -lean_ctor_set(x_37, 0, x_40); -return x_37; +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_2); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); -lean_dec(x_37); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_2); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__1(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__2(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__3(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__4(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__5(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__6(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__7(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__8(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__9(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__10(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__11(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__12(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__13(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__14(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__15(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__16(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__17(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__18(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__19(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__20(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__21(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__22(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__23(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__24(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___spec__25(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1(x_1, x_2, x_3); +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; uint8_t x_75; +x_68 = lean_ctor_get(x_2, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +lean_dec(x_68); +x_70 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8; +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_74 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_73, x_72, x_3, x_4, x_5, x_6, x_65); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_2); +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); +lean_dec(x_74); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_2); +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; +} +} +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___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, lean_object* x_12) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__2(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__3(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__4(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__5(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__6(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__7(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__8(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__9(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__10(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__11(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__12(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__13(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__14(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__15(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__16(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__17(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__18(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__19(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__20(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__21(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__22(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__23(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__24(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___spec__25(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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: { lean_object* x_13; -x_13 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__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); lean_dec(x_7); lean_dec(x_3); return x_13; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___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: { -lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3(x_1, x_2); +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); lean_dec(x_1); -return x_3; +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1(lean_object* x_1) { _start: { -lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs_match__1___rarg), 3, 0); +return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux(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; -x_8 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} -lean_object* l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___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: -{ -lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___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) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___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; uint8_t x_12; @@ -16851,7 +18354,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_17 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main(x_1, x_14, x_6, x_7, x_8, x_9, x_10); +x_17 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux(x_1, x_14, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; @@ -16914,38 +18417,59 @@ return x_28; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_10__unifyEqs(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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(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; x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_empty___closed__1; -x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___spec__1(x_1, x_2, x_2, x_8, x_9, x_3, x_4, x_5, x_6, x_7); +x_10 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___spec__1(x_1, x_2, x_2, x_8, x_9, x_3, x_4, x_5, x_6, x_7); return x_10; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___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) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___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: { lean_object* x_11; -x_11 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_10__unifyEqs___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___spec__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; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_10__unifyEqs___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs___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: { lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Cases_10__unifyEqs(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___lambda__1(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -16994,7 +18518,7 @@ if (x_27 == 0) { lean_object* x_28; lean_object* x_29; x_28 = lean_ctor_get(x_26, 0); -x_29 = l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals(x_28, x_25, x_3, x_15, x_16); +x_29 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(x_28, x_25, x_3, x_15, x_16); lean_dec(x_16); lean_dec(x_25); lean_ctor_set(x_26, 0, x_29); @@ -17008,7 +18532,7 @@ x_31 = lean_ctor_get(x_26, 1); lean_inc(x_31); lean_inc(x_30); lean_dec(x_26); -x_32 = l___private_Lean_Meta_Tactic_Cases_8__toCasesSubgoals(x_30, x_25, x_3, x_15, x_16); +x_32 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_toCasesSubgoals(x_30, x_25, x_3, x_15, x_16); lean_dec(x_16); lean_dec(x_25); x_33 = lean_alloc_ctor(0, 2, 0); @@ -17076,17 +18600,17 @@ return x_41; } } } -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; lean_object* x_16; lean_inc(x_2); x_11 = l_Lean_mkFVar(x_2); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1), 6, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2), 6, 1); lean_closure_set(x_12, 0, x_11); x_13 = lean_box(x_4); lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___lambda__1___boxed), 11, 5); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1___boxed), 11, 5); lean_closure_set(x_14, 0, x_5); lean_closure_set(x_14, 1, x_1); lean_closure_set(x_14, 2, x_2); @@ -17095,35 +18619,66 @@ lean_closure_set(x_14, 4, x_13); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_15, 0, x_12); lean_closure_set(x_15, 1, x_14); -x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); return x_16; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___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: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_5); lean_dec(x_5); -x_13 = l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___lambda__1(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___lambda__1(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn___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* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn___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: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_4); lean_dec(x_4); -x_12 = l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } +lean_object* l_Lean_Meta_Cases_cases_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_Cases_cases_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Cases_cases_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("after generalizeIndices"); +x_1 = lean_mk_string("not applicable to the given hypothesis"); return x_1; } } @@ -17150,59 +18705,21 @@ return x_2; static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__1___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Cases_cases___lambda__1___closed__3; -x_2 = l_Lean_MessageData_ofList___closed__3; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Meta_Cases_cases___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_4, 0, x_3); -x_5 = l_Lean_Meta_Cases_cases___lambda__1___closed__4; -x_6 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -} -static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__2___closed__1() { -_start: -{ lean_object* x_1; -x_1 = lean_mk_string("not applicable to the given hypothesis"); +x_1 = lean_mk_string("after generalizeIndices\n"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Cases_cases___lambda__2___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_Cases_cases___lambda__1___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Cases_cases___lambda__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_Cases_cases___lambda__2(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_Cases_cases___lambda__1(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -17211,7 +18728,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_12 = l___private_Lean_Meta_Tactic_Cases_5__mkCasesContext_x3f(x_1, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_mkCasesContext_x3f(x_1, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; @@ -17225,7 +18742,7 @@ lean_dec(x_1); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Meta_Cases_cases___lambda__2___closed__3; +x_15 = l_Lean_Meta_Cases_cases___lambda__1___closed__3; x_16 = lean_box(0); x_17 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_15, x_16, x_7, x_8, x_9, x_10, x_14); lean_dec(x_10); @@ -17262,154 +18779,305 @@ lean_inc(x_7); x_24 = l_Lean_Meta_generalizeIndices(x_3, x_1, x_7, x_8, x_9, x_10, x_18); if (lean_obj_tag(x_24) == 0) { -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_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); -lean_inc(x_25); -x_27 = lean_alloc_closure((void*)(l_Lean_Meta_Cases_cases___lambda__1___boxed), 2, 1); -lean_closure_set(x_27, 0, x_25); -x_28 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1; -x_29 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_28, x_27, x_7, x_8, x_9, x_10, x_26); -x_30 = lean_ctor_get(x_29, 1); +x_74 = lean_st_ref_get(x_10, x_26); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_75, 3); +lean_inc(x_76); +lean_dec(x_75); +x_77 = lean_ctor_get_uint8(x_76, sizeof(void*)*1); +lean_dec(x_76); +if (x_77 == 0) +{ +lean_object* x_78; uint8_t x_79; +x_78 = lean_ctor_get(x_74, 1); +lean_inc(x_78); +lean_dec(x_74); +x_79 = 0; +x_27 = x_79; +x_28 = x_78; +goto block_73; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_80 = lean_ctor_get(x_74, 1); +lean_inc(x_80); +lean_dec(x_74); +x_81 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_82 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_81, x_7, x_8, x_9, x_10, x_80); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_unbox(x_83); +lean_dec(x_83); +x_27 = x_85; +x_28 = x_84; +goto block_73; +} +block_73: +{ +if (x_27 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_25, 2); lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_25, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_25, 2); -lean_inc(x_32); -x_33 = lean_ctor_get(x_25, 3); -lean_inc(x_33); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_34 = l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn(x_31, x_32, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_30); +x_31 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(x_29, x_30, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_25); +x_34 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices(x_25, x_32, x_7, x_8, x_9, x_10, x_33); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_37 = l___private_Lean_Meta_Tactic_Cases_7__elimAuxIndices(x_25, x_35, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); +x_37 = lean_ctor_get(x_25, 3); +lean_inc(x_37); +lean_dec(x_25); +x_38 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(x_37, x_35, x_7, x_8, x_9, x_10, x_36); +lean_dec(x_35); lean_dec(x_37); -x_40 = l___private_Lean_Meta_Tactic_Cases_10__unifyEqs(x_33, x_38, x_7, x_8, x_9, x_10, x_39); -lean_dec(x_38); -lean_dec(x_33); -return x_40; +return x_38; } else { -uint8_t x_41; -lean_dec(x_33); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_41 = !lean_is_exclusive(x_37); -if (x_41 == 0) -{ -return x_37; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_37, 0); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_37); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_33); +uint8_t x_39; lean_dec(x_25); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_45 = !lean_is_exclusive(x_34); -if (x_45 == 0) +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) { return x_34; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_34, 0); -x_47 = lean_ctor_get(x_34, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_34); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -uint8_t x_49; +uint8_t x_43; +lean_dec(x_25); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_43 = !lean_is_exclusive(x_31); +if (x_43 == 0) +{ +return x_31; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_31, 0); +x_45 = lean_ctor_get(x_31, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_31); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +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; +x_47 = lean_ctor_get(x_25, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_25, 2); +lean_inc(x_48); +x_49 = lean_ctor_get(x_25, 3); +lean_inc(x_49); +lean_inc(x_47); +x_50 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_50, 0, x_47); +x_51 = l_Lean_Meta_Cases_cases___lambda__1___closed__5; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; +x_56 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_55, x_54, x_7, x_8, x_9, x_10, x_28); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_58 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(x_47, x_48, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_57); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_61 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_elimAuxIndices(x_25, x_59, x_7, x_8, x_9, x_10, x_60); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqs(x_49, x_62, x_7, x_8, x_9, x_10, x_63); +lean_dec(x_62); +lean_dec(x_49); +return x_64; +} +else +{ +uint8_t x_65; +lean_dec(x_49); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) +{ +return x_61; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_61, 0); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_61); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_49); +lean_dec(x_25); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_69 = !lean_is_exclusive(x_58); +if (x_69 == 0) +{ +return x_58; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_58, 0); +x_71 = lean_ctor_get(x_58, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_58); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +} +else +{ +uint8_t x_86; lean_dec(x_19); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_4); -x_49 = !lean_is_exclusive(x_24); -if (x_49 == 0) +x_86 = !lean_is_exclusive(x_24); +if (x_86 == 0) { return x_24; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_24, 0); -x_51 = lean_ctor_get(x_24, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_24, 0); +x_88 = lean_ctor_get(x_24, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_24); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -lean_object* x_53; -x_53 = l___private_Lean_Meta_Tactic_Cases_11__inductionCasesOn(x_3, x_1, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_18); -return x_53; +lean_object* x_90; +x_90 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_inductionCasesOn(x_3, x_1, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_18); +return x_90; } } } else { -uint8_t x_54; +uint8_t x_91; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17418,23 +19086,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_12); -if (x_54 == 0) +x_91 = !lean_is_exclusive(x_12); +if (x_91 == 0) { return x_12; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_12, 0); -x_56 = lean_ctor_get(x_12, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_12, 0); +x_93 = lean_ctor_get(x_12, 1); +lean_inc(x_93); +lean_inc(x_92); lean_dec(x_12); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } @@ -17443,14 +19111,14 @@ lean_object* l_Lean_Meta_Cases_cases(lean_object* x_1, lean_object* x_2, lean_ob _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; -x_10 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2; +x_10 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2; lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_10); x_12 = lean_box(x_4); lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Cases_cases___lambda__2___boxed), 11, 5); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Cases_cases___lambda__1___boxed), 11, 5); lean_closure_set(x_13, 0, x_2); lean_closure_set(x_13, 1, x_10); lean_closure_set(x_13, 2, x_1); @@ -17459,27 +19127,17 @@ lean_closure_set(x_13, 4, x_12); x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_14, 0, x_11); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_14, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_14, x_5, x_6, x_7, x_8, x_9); return x_15; } } -lean_object* l_Lean_Meta_Cases_cases___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Meta_Cases_cases___lambda__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Meta_Cases_cases___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) { +lean_object* l_Lean_Meta_Cases_cases___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: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_5); lean_dec(x_5); -x_13 = l_Lean_Meta_Cases_cases___lambda__2(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_Cases_cases___lambda__1(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_13; } @@ -17512,11 +19170,11 @@ x_11 = l_Lean_Meta_cases(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Cases_12__regTraceClasses(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Cases___hyg_2407_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -17550,56 +19208,50 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Subst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__1); -l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__2); -l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3 = _init_l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_1__throwInductiveTypeExpected___rarg___closed__3); -l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__1); -l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_3__withNewIndexEqsAux___main___rarg___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__4); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__5); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__1___closed__6); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__1); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__1); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_withNewIndexEqs_loop___rarg___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___lambda__6___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_generalizeIndices___spec__2___closed__3); l_Lean_Meta_generalizeIndices___lambda__1___closed__1 = _init_l_Lean_Meta_generalizeIndices___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_generalizeIndices___lambda__1___closed__1); l_Lean_Meta_generalizeIndices___lambda__1___closed__2 = _init_l_Lean_Meta_generalizeIndices___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Meta_generalizeIndices___lambda__1___closed__2); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__1); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__2); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__3); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__4); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__5); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__1___closed__6); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__1); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__2___closed__2); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__1); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__2); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___lambda__3___closed__3); -l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_9__unifyEqsAux___main___closed__1); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__1); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__2); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__3); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__4); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__5); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__6); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__7); +l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8 = _init_l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_unifyEqsAux___closed__8); l_Lean_Meta_Cases_cases___lambda__1___closed__1 = _init_l_Lean_Meta_Cases_cases___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__1___closed__1); l_Lean_Meta_Cases_cases___lambda__1___closed__2 = _init_l_Lean_Meta_Cases_cases___lambda__1___closed__2(); @@ -17608,13 +19260,9 @@ l_Lean_Meta_Cases_cases___lambda__1___closed__3 = _init_l_Lean_Meta_Cases_cases_ lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__1___closed__3); l_Lean_Meta_Cases_cases___lambda__1___closed__4 = _init_l_Lean_Meta_Cases_cases___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__1___closed__4); -l_Lean_Meta_Cases_cases___lambda__2___closed__1 = _init_l_Lean_Meta_Cases_cases___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__2___closed__1); -l_Lean_Meta_Cases_cases___lambda__2___closed__2 = _init_l_Lean_Meta_Cases_cases___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__2___closed__2); -l_Lean_Meta_Cases_cases___lambda__2___closed__3 = _init_l_Lean_Meta_Cases_cases___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__2___closed__3); -res = l___private_Lean_Meta_Tactic_Cases_12__regTraceClasses(lean_io_mk_world()); +l_Lean_Meta_Cases_cases___lambda__1___closed__5 = _init_l_Lean_Meta_Cases_cases___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_Cases_cases___lambda__1___closed__5); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Cases___hyg_2407_(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)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Clear.c b/stage0/stdlib/Lean/Meta/Tactic/Clear.c index 32c5ed560a..0cb7136a82 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Clear.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Clear.c @@ -13,67 +13,106 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Meta_clear___lambda__1___closed__3; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_clear___lambda__1___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); -lean_object* l_Lean_Meta_clear___lambda__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_clear___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_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Meta_clear___lambda__1___closed__6; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___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* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6; lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___lambda__2___closed__2; uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___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_nat_add(lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___lambda__3___closed__1; +lean_object* l_Lean_Meta_clear___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___lambda__2___closed__1; +lean_object* l_Lean_Meta_clear___lambda__3___closed__2; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4; +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Lean_Meta_clear___lambda__1___closed__1; lean_object* l_Lean_Meta_clear___closed__1; +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear___closed__2; +lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(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* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___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* l_Lean_Meta_clear___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Char_HasRepr___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Lean_Meta_clear___lambda__1___closed__4; lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Std_PersistentArray_forMAux___main___at_Lean_Meta_clear___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__4___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_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__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* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forM___at_Lean_Meta_clear___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* l_Lean_LocalContext_forM___at_Lean_Meta_clear___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* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_forM___at_Lean_Meta_clear___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_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9___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_forMAux___main___at_Lean_Meta_clear___spec__5___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_clear___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forM___at_Lean_Meta_clear___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__2; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__1; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___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* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear_match__1(lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3; -lean_object* l_Lean_Meta_clear___lambda__1___closed__5; lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Meta_clear_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_clear_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_clear_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -161,46 +200,33 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("' depends on '"); return x_1; } } +static lean_object* _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} static lean_object* _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -274,11 +300,11 @@ x_28 = l_Lean_LocalDecl_toExpr(x_20); lean_dec(x_20); x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_28); -x_30 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3; +x_30 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6; +x_32 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -288,7 +314,7 @@ lean_ctor_set(x_35, 0, x_34); x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_33); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_37 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_38 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -419,11 +445,11 @@ x_28 = l_Lean_LocalDecl_toExpr(x_20); lean_dec(x_20); x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_28); -x_30 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__3; +x_30 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6; +x_32 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -433,7 +459,7 @@ lean_ctor_set(x_35, 0, x_34); x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_33); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_37 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; x_38 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -531,7 +557,19 @@ x_12 = l_Std_PersistentArray_forM___at_Lean_Meta_clear___spec__2(x_1, x_2, x_3, return x_12; } } -lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7(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; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -575,7 +613,123 @@ return x_14; } } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__1() { +lean_object* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_15; +} +} +lean_object* l_Lean_Meta_clear___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, lean_object* x_11) { +_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; +lean_inc(x_2); +x_12 = lean_local_ctx_erase(x_1, x_2); +x_13 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7(x_7, x_8, x_9, x_10, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8(x_2, x_14, x_16); +lean_dec(x_2); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_18 = lean_ctor_get(x_3, 2); +lean_inc(x_18); +lean_dec(x_3); +x_19 = 2; +x_20 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9(x_12, x_14, x_18, x_19, x_4, x_16, x_7, x_8, x_9, x_10, x_15); +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); +lean_inc(x_21); +x_23 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_5, x_21, x_7, x_8, x_9, x_10, x_22); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = l_Lean_Expr_mvarId_x21(x_21); +lean_dec(x_21); +lean_ctor_set(x_23, 0, x_26); +return x_23; +} +else +{ +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 = l_Lean_Expr_mvarId_x21(x_21); +lean_dec(x_21); +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_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_30 = lean_ctor_get(x_3, 2); +lean_inc(x_30); +lean_dec(x_3); +x_31 = lean_ctor_get(x_17, 0); +lean_inc(x_31); +lean_dec(x_17); +x_32 = l_Array_eraseIdx___rarg(x_14, x_31); +lean_dec(x_31); +x_33 = 2; +x_34 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9(x_12, x_32, x_30, x_33, x_4, x_16, x_7, x_8, x_9, x_10, x_15); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +lean_inc(x_35); +x_37 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_5, x_35, x_7, x_8, x_9, x_10, x_36); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +x_40 = l_Lean_Expr_mvarId_x21(x_35); +lean_dec(x_35); +lean_ctor_set(x_37, 0, x_40); +return x_37; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_37, 1); +lean_inc(x_41); +lean_dec(x_37); +x_42 = l_Lean_Expr_mvarId_x21(x_35); +lean_dec(x_35); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +} +} +static lean_object* _init_l_Lean_Meta_clear___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -583,27 +737,198 @@ x_1 = lean_mk_string("taget depends on '"); return x_1; } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_clear___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_clear___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_clear___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__3() { +lean_object* l_Lean_Meta_clear___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) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_clear___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_11; +lean_inc(x_1); +x_11 = l_Lean_Meta_getMVarTag(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(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_17; lean_object* x_18; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_7, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_17); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_18 = l_Lean_LocalContext_forM___at_Lean_Meta_clear___spec__1(x_1, x_2, x_3, x_17, x_4, x_6, x_7, x_8, x_9, x_16); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +lean_inc(x_1); +x_20 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(x_1, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +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); +x_23 = lean_ctor_get(x_21, 2); +lean_inc(x_23); +x_24 = l_Lean_MetavarContext_exprDependsOn(x_17, x_23, x_2); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_3); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_clear___lambda__1(x_4, x_2, x_21, x_12, x_1, x_26, x_6, x_7, x_8, x_9, x_22); +return x_27; +} +else +{ +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; uint8_t x_36; +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_4); +x_28 = l_Lean_mkFVar(x_2); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = l_Lean_Meta_clear___lambda__2___closed__2; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_box(0); +x_35 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_1, x_33, x_34, x_6, x_7, x_8, x_9, x_22); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +return x_35; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_35); +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; } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__4() { +} +else +{ +uint8_t x_40; +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_20); +if (x_40 == 0) +{ +return x_20; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_20, 0); +x_42 = lean_ctor_get(x_20, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_20); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_18); +if (x_44 == 0) +{ +return x_18; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_18, 0); +x_46 = lean_ctor_get(x_18, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_18); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_11); +if (x_48 == 0) +{ +return x_11; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_11, 0); +x_50 = lean_ctor_get(x_11, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_11); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +static lean_object* _init_l_Lean_Meta_clear___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -611,355 +936,67 @@ x_1 = lean_mk_string("unknown variable '"); return x_1; } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_clear___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_clear___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_clear___lambda__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_clear___lambda__1___closed__6() { +lean_object* l_Lean_Meta_clear___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: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_clear___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_clear___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; lean_object* x_11; uint8_t x_84; +lean_object* x_10; uint8_t x_11; x_10 = lean_ctor_get(x_5, 1); lean_inc(x_10); lean_inc(x_10); -x_84 = l_Lean_LocalContext_contains(x_10, x_2); -if (x_84 == 0) +x_11 = l_Lean_LocalContext_contains(x_10, x_2); +if (x_11 == 0) { -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; uint8_t x_93; +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; uint8_t x_20; lean_dec(x_10); -x_85 = l_Lean_mkFVar(x_2); -x_86 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l_Lean_Meta_clear___lambda__1___closed__6; -x_88 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_90 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_box(0); -x_92 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_1, x_90, x_91, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Lean_mkFVar(x_2); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l_Lean_Meta_clear___lambda__3___closed__2; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_box(0); +x_19 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_1, x_17, x_18, x_5, x_6, x_7, x_8, x_9); lean_dec(x_5); -x_93 = !lean_is_exclusive(x_92); -if (x_93 == 0) -{ -return x_92; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_92, 0); -x_95 = lean_ctor_get(x_92, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_92); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -else -{ -x_11 = x_9; -goto block_83; -} -block_83: -{ -lean_object* x_12; -lean_inc(x_1); -x_12 = l_Lean_Meta_getMVarTag(x_1, x_5, x_6, x_7, x_8, x_11); -if (lean_obj_tag(x_12) == 0) -{ -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; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_st_ref_get(x_6, x_14); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_18); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_19 = l_Lean_LocalContext_forM___at_Lean_Meta_clear___spec__1(x_1, x_2, x_3, x_18, x_10, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -lean_inc(x_1); -x_21 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_1, x_5, x_6, x_7, x_8, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_57; uint8_t x_58; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_22, 2); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_24); -x_57 = l_Lean_MetavarContext_exprDependsOn(x_18, x_24, x_2); -x_58 = lean_unbox(x_57); -lean_dec(x_57); -if (x_58 == 0) -{ -lean_dec(x_3); -x_25 = x_23; -goto block_56; -} -else -{ -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; uint8_t x_67; -lean_dec(x_24); -lean_dec(x_13); -lean_dec(x_10); -x_59 = l_Lean_mkFVar(x_2); -x_60 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_60, 0, x_59); -x_61 = l_Lean_Meta_clear___lambda__1___closed__3; -x_62 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_64 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_box(0); -x_66 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_1, x_64, x_65, x_5, x_6, x_7, x_8, x_23); -lean_dec(x_5); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -return x_66; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 0); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_66); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} -block_56: -{ -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_inc(x_2); -x_26 = lean_local_ctx_erase(x_10, x_2); -x_27 = l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(x_5, x_6, x_7, x_8, x_25); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7(x_2, x_28, x_30); -lean_dec(x_2); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_32 = 2; -x_33 = l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(x_26, x_28, x_24, x_32, x_13, x_30, x_5, x_6, x_7, x_8, x_29); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -lean_inc(x_34); -x_36 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_34, x_5, x_6, x_7, x_8, x_35); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = l_Lean_Expr_mvarId_x21(x_34); -lean_dec(x_34); -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = l_Lean_Expr_mvarId_x21(x_34); -lean_dec(x_34); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_43 = lean_ctor_get(x_31, 0); -lean_inc(x_43); -lean_dec(x_31); -x_44 = l_Array_eraseIdx___rarg(x_28, x_43); -lean_dec(x_43); -x_45 = 2; -x_46 = l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__2(x_26, x_44, x_24, x_45, x_13, x_30, x_5, x_6, x_7, x_8, x_29); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -lean_inc(x_47); -x_49 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_47, x_5, x_6, x_7, x_8, x_48); -lean_dec(x_5); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -x_52 = l_Lean_Expr_mvarId_x21(x_47); -lean_dec(x_47); -lean_ctor_set(x_49, 0, x_52); -return x_49; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_49, 1); -lean_inc(x_53); -lean_dec(x_49); -x_54 = l_Lean_Expr_mvarId_x21(x_47); -lean_dec(x_47); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -} -} -} -else -{ -uint8_t x_71; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_21); -if (x_71 == 0) -{ -return x_21; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_21, 0); -x_73 = lean_ctor_get(x_21, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_21); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -else -{ -uint8_t x_75; -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_75 = !lean_is_exclusive(x_19); -if (x_75 == 0) +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { return x_19; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_19, 0); -x_77 = lean_ctor_get(x_19, 1); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_19); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -uint8_t x_79; -lean_dec(x_10); +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = l_Lean_Meta_clear___lambda__2(x_1, x_2, x_3, x_10, x_24, x_5, x_6, x_7, x_8, x_9); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_79 = !lean_is_exclusive(x_12); -if (x_79 == 0) -{ -return x_12; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_12, 0); -x_81 = lean_ctor_get(x_12, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_12); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} +return x_25; } } } @@ -991,14 +1028,14 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_8); lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_clear___lambda__1___boxed), 9, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_clear___lambda__3___boxed), 9, 3); lean_closure_set(x_10, 0, x_1); lean_closure_set(x_10, 1, x_2); lean_closure_set(x_10, 2, x_8); x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_11, 0, x_9); lean_closure_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); +x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); return x_12; } } @@ -1080,21 +1117,73 @@ lean_dec(x_5); return x_11; } } -lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7___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_Meta_getLocalInstances___at_Lean_Meta_clear___spec__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__7(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at_Lean_Meta_clear___spec__8(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Meta_clear___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* l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l_Lean_Meta_mkFreshExprMVarAt___at_Lean_Meta_clear___spec__9(x_1, x_2, x_3, x_12, 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); +lean_dec(x_7); +return x_13; +} +} +lean_object* l_Lean_Meta_clear___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_Meta_clear___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_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_12; +} +} +lean_object* l_Lean_Meta_clear___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_clear___lambda__2(x_1, x_2, x_3, 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); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Lean_Meta_clear___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_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_clear___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_clear___lambda__3(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); @@ -1202,20 +1291,14 @@ l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4 = _init_l_Arra lean_mark_persistent(l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__4); l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5 = _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5(); lean_mark_persistent(l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5); -l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6 = _init_l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6(); -lean_mark_persistent(l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__6); -l_Lean_Meta_clear___lambda__1___closed__1 = _init_l_Lean_Meta_clear___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__1); -l_Lean_Meta_clear___lambda__1___closed__2 = _init_l_Lean_Meta_clear___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__2); -l_Lean_Meta_clear___lambda__1___closed__3 = _init_l_Lean_Meta_clear___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__3); -l_Lean_Meta_clear___lambda__1___closed__4 = _init_l_Lean_Meta_clear___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__4); -l_Lean_Meta_clear___lambda__1___closed__5 = _init_l_Lean_Meta_clear___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__5); -l_Lean_Meta_clear___lambda__1___closed__6 = _init_l_Lean_Meta_clear___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_clear___lambda__1___closed__6); +l_Lean_Meta_clear___lambda__2___closed__1 = _init_l_Lean_Meta_clear___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_clear___lambda__2___closed__1); +l_Lean_Meta_clear___lambda__2___closed__2 = _init_l_Lean_Meta_clear___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_clear___lambda__2___closed__2); +l_Lean_Meta_clear___lambda__3___closed__1 = _init_l_Lean_Meta_clear___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_clear___lambda__3___closed__1); +l_Lean_Meta_clear___lambda__3___closed__2 = _init_l_Lean_Meta_clear___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_clear___lambda__3___closed__2); l_Lean_Meta_clear___closed__1 = _init_l_Lean_Meta_clear___closed__1(); lean_mark_persistent(l_Lean_Meta_clear___closed__1); l_Lean_Meta_clear___closed__2 = _init_l_Lean_Meta_clear___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/FVarSubst.c b/stage0/stdlib/Lean/Meta/Tactic/FVarSubst.c index 6be6e2170f..8bd64c28c7 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/FVarSubst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/FVarSubst.c @@ -31,6 +31,8 @@ lean_object* l_Lean_Meta_FVarSubst_domain___boxed(lean_object*); lean_object* l_Lean_Meta_FVarSubst_isEmpty___boxed(lean_object*); lean_object* l_Std_AssocList_mapVal___main___rarg(lean_object*, lean_object*); uint8_t l_Lean_Meta_FVarSubst_any(lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_applyFVarSubst_match__1(lean_object*); +lean_object* l_Lean_Meta_FVarSubst_apply_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Meta_FVarSubst_find_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1(lean_object*, size_t, lean_object*, lean_object*); @@ -40,18 +42,22 @@ lean_object* l_Lean_Meta_FVarSubst_insert___lambda__1(lean_object*, lean_object* uint8_t l_Lean_Meta_FVarSubst_contains(lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l_Lean_Meta_FVarSubst_map___default; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_LocalDecl_applyFVarSubst___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_contains___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_Meta_FVarSubst_apply_match__2(lean_object*); uint8_t l_Std_AssocList_any___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_find_x3f(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); +lean_object* l_Lean_LocalDecl_applyFVarSubst_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_empty; +lean_object* l_Lean_Meta_FVarSubst_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_any___boxed(lean_object*, lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); @@ -64,11 +70,22 @@ lean_object* l_Std_AssocList_erase___main___at_Lean_Meta_FVarSubst_erase___spec_ lean_object* l_Std_AssocList_contains___main___at_Lean_Meta_FVarSubst_contains___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); +lean_object* l_Lean_Meta_FVarSubst_get_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_FVarSubst_get_match__1(lean_object*); +lean_object* l_Lean_Meta_FVarSubst_apply_match__1(lean_object*); uint8_t l_Lean_Meta_FVarSubst_isEmpty(lean_object*); lean_object* l_Lean_LocalDecl_applyFVarSubst(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; lean_object* l_Lean_Expr_applyFVarSubst(lean_object*, lean_object*); +static lean_object* _init_l_Lean_Meta_FVarSubst_map___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Meta_FVarSubst_empty() { _start: { @@ -350,6 +367,37 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Meta_FVarSubst_get_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_FVarSubst_get_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_FVarSubst_get_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_FVarSubst_get(lean_object* x_1, lean_object* x_2) { _start: { @@ -381,6 +429,69 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Meta_FVarSubst_apply_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_FVarSubst_apply_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_FVarSubst_apply_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_FVarSubst_apply_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l_Lean_Meta_FVarSubst_apply_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_FVarSubst_apply_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -868,27 +979,43 @@ return x_165; lean_object* l_Lean_Meta_FVarSubst_apply(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_3; -x_3 = l_Std_AssocList_isEmpty___rarg(x_1); +uint8_t x_3; uint8_t x_9; +x_9 = l_Std_AssocList_isEmpty___rarg(x_1); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = l_Lean_Expr_hasFVar(x_2); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 1; +x_3 = x_11; +goto block_8; +} +else +{ +uint8_t x_12; +x_12 = 0; +x_3 = x_12; +goto block_8; +} +} +else +{ +return x_2; +} +block_8: +{ if (x_3 == 0) { -uint8_t x_4; -x_4 = l_Lean_Expr_hasFVar(x_2); -if (x_4 == 0) -{ -return x_2; -} -else -{ -size_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = 8192; -x_6 = l_Lean_Expr_ReplaceImpl_initCache; -x_7 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1(x_1, x_5, x_2, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -return x_8; -} +size_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = 8192; +x_5 = l_Lean_Expr_ReplaceImpl_initCache; +x_6 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1(x_1, x_4, x_2, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec(x_6); +return x_7; } else { @@ -896,6 +1023,7 @@ return x_2; } } } +} lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Meta_FVarSubst_apply___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -982,6 +1110,57 @@ x_4 = lean_box(x_3); return x_4; } } +lean_object* l_Lean_LocalDecl_applyFVarSubst_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 3); +lean_inc(x_7); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +lean_dec(x_1); +x_9 = lean_box(x_8); +x_10 = lean_apply_5(x_2, x_4, x_5, x_6, x_7, x_9); +return x_10; +} +else +{ +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_18; +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 4); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +lean_dec(x_1); +x_17 = lean_box(x_16); +x_18 = lean_apply_6(x_3, x_11, x_12, x_13, x_14, x_15, x_17); +return x_18; +} +} +} +lean_object* l_Lean_LocalDecl_applyFVarSubst_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_LocalDecl_applyFVarSubst_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_LocalDecl_applyFVarSubst(lean_object* x_1, lean_object* x_2) { _start: { @@ -1115,6 +1294,8 @@ lean_dec_ref(res); res = initialize_Lean_Util_ReplaceExpr(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Meta_FVarSubst_map___default = _init_l_Lean_Meta_FVarSubst_map___default(); +lean_mark_persistent(l_Lean_Meta_FVarSubst_map___default); l_Lean_Meta_FVarSubst_empty = _init_l_Lean_Meta_FVarSubst_empty(); lean_mark_persistent(l_Lean_Meta_FVarSubst_empty); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Generalize.c b/stage0/stdlib/Lean/Meta/Tactic/Generalize.c index 2034ce0d1d..cc27b0717d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Generalize.c @@ -13,47 +13,162 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Lean_Meta_generalize___lambda__1___closed__5; +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalize___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___private_Lean_HeadIndex_1__headNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalize___lambda__3___closed__3; lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_32__withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_generalize___lambda__1___closed__6; +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalize___lambda__2___closed__3; +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generalize___lambda__3___closed__2; uint8_t l_Lean_Occurrences_beq(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_generalize___lambda__1___closed__3; -lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__1(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*); lean_object* l_Lean_Expr_toHeadIndex___main(lean_object*); +lean_object* l_Lean_Meta_generalize___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_generalize___lambda__3___closed__1; +lean_object* l_Lean_Meta_generalize___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_Lean_Meta_generalize___lambda__2___closed__2; +lean_object* l_Lean_Meta_generalize___lambda__2___closed__1; +extern lean_object* l_Lean_Meta_inferTypeRef; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_generalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4(lean_object*); lean_object* l___private_Lean_Meta_KAbstract_1__kabstractAux___main(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_generalize___closed__2; lean_object* l_Lean_mkApp(lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize___closed__1; -lean_object* l_Lean_Meta_generalize___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_generalize___lambda__1___closed__1; +lean_object* l_Lean_Meta_generalize___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_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; 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_generalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_generalize___lambda__1___closed__2; -lean_object* l_Lean_Meta_generalize___lambda__1___closed__4; -lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___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* l_Lean_Meta_generalize___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_Meta_generalize___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___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: +{ +uint8_t x_7; +x_7 = l_Lean_Expr_hasMVar(x_1); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_take(x_3, x_6); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +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_13 = lean_ctor_get(x_10, 0); +x_14 = l_Lean_MetavarContext_instantiateMVars(x_13, x_1); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_ctor_set(x_10, 0, x_16); +x_17 = lean_st_ref_set(x_3, x_10, x_11); +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_15); +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_15); +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; 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; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +x_24 = lean_ctor_get(x_10, 2); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_25 = l_Lean_MetavarContext_instantiateMVars(x_22, x_1); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_24); +x_29 = lean_st_ref_set(x_3, x_28, x_11); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_31 = x_29; +} else { + lean_dec_ref(x_29); + x_31 = lean_box(0); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +} +lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___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; uint8_t x_30; @@ -169,7 +284,207 @@ return x_28; } } } -static lean_object* _init_l_Lean_Meta_generalize___lambda__1___closed__1() { +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_generalize___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +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; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_inferTypeRef; +x_20 = lean_st_ref_get(x_19, x_6); +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); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_inferTypeRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4___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) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Basic_32__withMVarContextImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) +{ +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4___rarg), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_generalize___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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_6); +x_11 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_1, x_2, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_12); +x_14 = l_Lean_mkApp(x_12, x_3); +x_15 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_4, x_14, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_6); +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 = l_Lean_Expr_mvarId_x21(x_12); +lean_dec(x_12); +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 = l_Lean_Expr_mvarId_x21(x_12); +lean_dec(x_12); +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; +} +} +} +static lean_object* _init_l_Lean_Meta_generalize___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -177,27 +492,141 @@ x_1 = lean_mk_string("result is not type correct"); return x_1; } } -static lean_object* _init_l_Lean_Meta_generalize___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_generalize___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_generalize___lambda__1___closed__1; +x_1 = l_Lean_Meta_generalize___lambda__2___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_generalize___lambda__1___closed__3() { +static lean_object* _init_l_Lean_Meta_generalize___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_generalize___lambda__1___closed__2; +x_1 = l_Lean_Meta_generalize___lambda__2___closed__2; 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_generalize___lambda__1___closed__4() { +lean_object* l_Lean_Meta_generalize___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) { +_start: +{ +lean_object* x_13; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_13 = l_Lean_Meta_inferType___at_Lean_Meta_generalize___spec__3(x_1, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = 0; +x_17 = l_Lean_mkForall(x_2, x_16, x_14, x_3); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_18 = l_Lean_Meta_isTypeCorrect(x_17, x_8, x_9, x_10, x_11, x_15); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_1); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = l_Lean_Meta_generalize___lambda__2___closed__3; +x_23 = lean_box(0); +x_24 = l_Lean_Meta_throwTacticEx___rarg(x_6, x_5, x_22, x_23, x_8, x_9, x_10, x_11, x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +return x_24; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_24); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_6); +x_29 = lean_ctor_get(x_18, 1); +lean_inc(x_29); +lean_dec(x_18); +x_30 = lean_box(0); +x_31 = l_Lean_Meta_generalize___lambda__1(x_17, x_4, x_1, x_5, x_30, x_8, x_9, x_10, x_11, x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +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_32 = !lean_is_exclusive(x_13); +if (x_32 == 0) +{ +return x_13; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_13, 0); +x_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_13); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +static lean_object* _init_l_Lean_Meta_generalize___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -205,27 +634,27 @@ x_1 = lean_mk_string("failed to find expression in the target"); return x_1; } } -static lean_object* _init_l_Lean_Meta_generalize___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_generalize___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_generalize___lambda__1___closed__4; +x_1 = l_Lean_Meta_generalize___lambda__3___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_generalize___lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_generalize___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_generalize___lambda__1___closed__5; +x_1 = l_Lean_Meta_generalize___lambda__3___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Meta_generalize___lambda__1(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_generalize___lambda__3(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_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -249,7 +678,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_16, x_7, x_8, x_9, x_10, x_17); +x_18 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___spec__1(x_16, x_7, x_8, x_9, x_10, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -261,211 +690,75 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_22 = l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__1(x_19, x_2, x_21, x_7, x_8, x_9, x_10, x_20); +x_22 = l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__2(x_19, x_2, x_21, x_7, x_8, x_9, x_10, x_20); if (lean_obj_tag(x_22) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +if (x_5 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -if (x_5 == 0) -{ -x_25 = x_24; -goto block_58; -} -else -{ -uint8_t x_59; -x_59 = l_Lean_Expr_hasLooseBVars(x_23); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_23); -lean_dec(x_13); -lean_dec(x_3); -lean_dec(x_2); -x_60 = l_Lean_Meta_generalize___lambda__1___closed__6; -x_61 = lean_box(0); -x_62 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_60, x_61, x_7, x_8, x_9, x_10, x_24); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) -{ -return x_62; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_62, 0); -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_62); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -else -{ -x_25 = x_24; -goto block_58; -} -} -block_58: -{ -lean_object* x_26; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_26 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_2, x_7, x_8, x_9, x_10, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = 0; -x_30 = l_Lean_mkForall(x_3, x_29, x_27, x_23); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_30); -x_31 = l_Lean_Meta_isTypeCorrect(x_30, x_7, x_8, x_9, x_10, x_28); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_30); -lean_dec(x_13); -lean_dec(x_2); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l_Lean_Meta_generalize___lambda__1___closed__3; -x_36 = lean_box(0); -x_37 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_35, x_36, x_7, x_8, x_9, x_10, x_34); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -return x_37; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -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 -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_dec(x_4); -x_42 = lean_ctor_get(x_31, 1); -lean_inc(x_42); -lean_dec(x_31); -lean_inc(x_7); -x_43 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_30, x_13, x_7, x_8, x_9, x_10, x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_44); -x_46 = l_Lean_mkApp(x_44, x_2); -x_47 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_46, x_7, x_8, x_9, x_10, x_45); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -x_50 = l_Lean_Expr_mvarId_x21(x_44); -lean_dec(x_44); -lean_ctor_set(x_47, 0, x_50); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = l_Lean_Expr_mvarId_x21(x_44); -lean_dec(x_44); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; -} -} -} -else -{ -uint8_t x_54; -lean_dec(x_23); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_54 = !lean_is_exclusive(x_26); -if (x_54 == 0) -{ +x_25 = lean_box(0); +x_26 = l_Lean_Meta_generalize___lambda__2(x_2, x_3, x_23, x_13, x_1, x_4, x_25, x_7, x_8, x_9, x_10, x_24); return x_26; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_26, 0); -x_56 = lean_ctor_get(x_26, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_26); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_dec(x_22); +x_29 = l_Lean_Expr_hasLooseBVars(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_27); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +x_30 = l_Lean_Meta_generalize___lambda__3___closed__3; +x_31 = lean_box(0); +x_32 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_1, x_30, x_31, x_7, x_8, x_9, x_10, x_28); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +return x_32; } +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_box(0); +x_38 = l_Lean_Meta_generalize___lambda__2(x_2, x_3, x_27, x_13, x_1, x_4, x_37, x_7, x_8, x_9, x_10, x_28); +return x_38; } } } else { -uint8_t x_67; +uint8_t x_39; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -475,29 +768,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_22); -if (x_67 == 0) +x_39 = !lean_is_exclusive(x_22); +if (x_39 == 0) { return x_22; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_22, 0); -x_69 = lean_ctor_get(x_22, 1); -lean_inc(x_69); -lean_inc(x_68); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_22, 0); +x_41 = lean_ctor_get(x_22, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_22); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -uint8_t x_71; +uint8_t x_43; lean_dec(x_13); lean_dec(x_10); lean_dec(x_9); @@ -507,29 +800,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_15); -if (x_71 == 0) +x_43 = !lean_is_exclusive(x_15); +if (x_43 == 0) { return x_15; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_15, 0); -x_73 = lean_ctor_get(x_15, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_15, 0); +x_45 = lean_ctor_get(x_15, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_15); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } else { -uint8_t x_75; +uint8_t x_47; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -538,23 +831,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_75 = !lean_is_exclusive(x_12); -if (x_75 == 0) +x_47 = !lean_is_exclusive(x_12); +if (x_47 == 0) { return x_12; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_12, 0); -x_77 = lean_ctor_get(x_12, 1); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_12, 0); +x_49 = lean_ctor_get(x_12, 1); +lean_inc(x_49); +lean_inc(x_48); lean_dec(x_12); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } @@ -588,7 +881,7 @@ lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_10); x_12 = lean_box(x_4); lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___lambda__1___boxed), 11, 5); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___lambda__3___boxed), 11, 5); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_2); lean_closure_set(x_13, 2, x_3); @@ -597,26 +890,59 @@ lean_closure_set(x_13, 4, x_12); x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_14, 0, x_11); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_14, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_generalize___spec__4___rarg(x_1, x_14, x_5, x_6, x_7, x_8, x_9); return x_15; } } -lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___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* l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_generalize___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_generalize___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) { _start: { lean_object* x_9; -x_9 = l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_kabstract___at_Lean_Meta_generalize___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_generalize___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* l_Lean_Meta_generalize___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_Meta_generalize___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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Lean_Meta_generalize___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, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Meta_generalize___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +return x_13; +} +} +lean_object* l_Lean_Meta_generalize___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_5); lean_dec(x_5); -x_13 = l_Lean_Meta_generalize___lambda__1(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_generalize___lambda__3(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_13; } @@ -648,18 +974,18 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_generalize___lambda__1___closed__1 = _init_l_Lean_Meta_generalize___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__1); -l_Lean_Meta_generalize___lambda__1___closed__2 = _init_l_Lean_Meta_generalize___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__2); -l_Lean_Meta_generalize___lambda__1___closed__3 = _init_l_Lean_Meta_generalize___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__3); -l_Lean_Meta_generalize___lambda__1___closed__4 = _init_l_Lean_Meta_generalize___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__4); -l_Lean_Meta_generalize___lambda__1___closed__5 = _init_l_Lean_Meta_generalize___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__5); -l_Lean_Meta_generalize___lambda__1___closed__6 = _init_l_Lean_Meta_generalize___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_generalize___lambda__1___closed__6); +l_Lean_Meta_generalize___lambda__2___closed__1 = _init_l_Lean_Meta_generalize___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__2___closed__1); +l_Lean_Meta_generalize___lambda__2___closed__2 = _init_l_Lean_Meta_generalize___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__2___closed__2); +l_Lean_Meta_generalize___lambda__2___closed__3 = _init_l_Lean_Meta_generalize___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__2___closed__3); +l_Lean_Meta_generalize___lambda__3___closed__1 = _init_l_Lean_Meta_generalize___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__3___closed__1); +l_Lean_Meta_generalize___lambda__3___closed__2 = _init_l_Lean_Meta_generalize___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__3___closed__2); +l_Lean_Meta_generalize___lambda__3___closed__3 = _init_l_Lean_Meta_generalize___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_generalize___lambda__3___closed__3); l_Lean_Meta_generalize___closed__1 = _init_l_Lean_Meta_generalize___closed__1(); lean_mark_persistent(l_Lean_Meta_generalize___closed__1); l_Lean_Meta_generalize___closed__2 = _init_l_Lean_Meta_generalize___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 7da4e065ef..8bcdf345b2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -13,272 +13,565 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_normalize___main(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_1__getTargetArity(lean_object*); lean_object* l_Lean_Meta_induction___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___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7; +lean_object* l_Lean_Meta_induction_match__7___rarg(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_7__regTraceClasses(lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8; -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__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* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__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*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4; -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3; -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11(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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2; +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3(lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel___at_Lean_Meta_induction___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction___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___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3; -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_induction_match__10(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1; +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___boxed(lean_object**); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2; +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1; +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_InductionSubgoal_fields___default; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2; +lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8(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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3; extern lean_object* l_Lean_Name_inhabited; extern lean_object* l_Lean_Level_Inhabited; +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___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_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___boxed(lean_object**); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___boxed(lean_object**); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2___boxed(lean_object**); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(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_Induction_0__Lean_Meta_addRecParams___closed__8; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4; +lean_object* l_Lean_Meta_induction_match__8(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__6___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2; -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2(lean_object*, lean_object*, lean_object*, 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*); -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(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___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__1(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_Induction_0__Lean_Meta_getTypeBody___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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* l_Lean_Meta_synthInstance_x3f___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_induction_match__7(lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15___boxed(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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4; lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2; lean_object* l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4(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_induction_match__9___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4; +uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__6(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_5__finalize___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___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2(lean_object*); +lean_object* l_Lean_Meta_induction_match__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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* l_Lean_Meta_induction_match__8___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_Meta_InductionSubgoal_subst___default; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_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*, 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_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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*, lean_object*); uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1; -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___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*, lean_object*); -lean_object* l_Nat_repr(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1; -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__4___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_whnfUntil___at_Lean_Meta_induction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__10(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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9; +lean_object* l_Lean_Meta_induction_match__6(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2___boxed(lean_object**); +extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___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*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1; lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_Meta_induction_match__6___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Meta_normalizeLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3; -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams(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_Induction_3__getTypeBody___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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_List_foldlM___main___at_Lean_Meta_induction___spec__12___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_induction_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__4___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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8; -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___boxed(lean_object**); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed(lean_object**); lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3; lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at___private_Lean_Meta_WHNF_17__whnfCoreImp___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_5__finalize(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_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6; +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Meta_RecursorInfo_firstIndexPos(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___boxed(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_Induction_0__Lean_Meta_getTargetArity_match__1(lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_inhabited___closed__1; -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7; +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SynthInstance_10__synthInstanceImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__10___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_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2; +lean_object* l_Lean_Meta_induction_match__2(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7; lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4; -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4; -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3; -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___boxed(lean_object**); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(lean_object*); +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6; -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3(lean_object*, 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_Induction_0__Lean_Meta_addRecParams___closed__7; +lean_object* l_Lean_Meta_throwUnknownFVar___rarg(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*); -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1; +lean_object* l_Lean_Meta_induction_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___boxed(lean_object**); +lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Lean_Meta_induction_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2___boxed(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_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__4(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_induction_match__3___rarg(lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___boxed(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_Induction_4__finalizeAux(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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main(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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6; +lean_object* l_Lean_Meta_induction_match__5(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_isZero(lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize___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_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3___boxed(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_mkOptionalNode___closed__2; -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed(lean_object**); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13(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_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3; +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_synthInstance_x3f___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3; +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16(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_Meta_induction_match__10___rarg(lean_object*, lean_object*, lean_object*); +lean_object* lean_local_ctx_find(lean_object*, lean_object*); +lean_object* l_Lean_Meta_induction_match__4(lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_InductionSubgoal_inhabited; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2; +lean_object* l_Lean_Meta_induction_match__3(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; +lean_object* l_Lean_Meta_induction_match__9(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getConfig___at___private_Lean_Meta_WHNF_17__whnfCoreImp___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5; -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3; +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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_Meta_induction_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_induction(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(lean_object*, lean_object*); +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_2; switch (lean_obj_tag(x_1)) { case 7: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_1, 2); -lean_inc(x_8); +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); lean_dec(x_1); -x_9 = l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_9, x_10); -lean_dec(x_9); -return x_11; +x_9 = lean_box_uint64(x_8); +x_10 = lean_apply_4(x_3, x_5, x_6, x_7, x_9); +return x_10; } case 10: { -lean_object* x_12; +lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); x_12 = lean_ctor_get(x_1, 1); lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); lean_dec(x_1); -x_1 = x_12; +x_14 = lean_box_uint64(x_13); +x_15 = lean_apply_3(x_2, x_11, x_12, x_14); +return x_15; +} +default: +{ +lean_object* x_16; +lean_dec(x_3); +lean_dec(x_2); +x_16 = lean_apply_1(x_4, x_1); +return x_16; +} +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 7: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_ctor_get(x_1, 2); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(x_2); +x_4 = lean_unsigned_to_nat(1u); +x_5 = lean_nat_add(x_3, x_4); +lean_dec(x_3); +return x_5; +} +case 10: +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_1 = x_6; goto _start; } default: { -lean_object* x_14; -x_14 = lean_box(0); -x_2 = x_14; -goto block_7; -} -} -block_7: +uint8_t x_8; +x_8 = l_Lean_Expr_isHeadBetaTarget(x_1); +if (x_8 == 0) { -uint8_t x_3; -lean_dec(x_2); -x_3 = l_Lean_Expr_isHeadBetaTarget(x_1); -if (x_3 == 0) -{ -lean_object* x_4; +lean_object* x_9; lean_dec(x_1); -x_4 = lean_unsigned_to_nat(0u); -return x_4; +x_9 = lean_unsigned_to_nat(0u); +return x_9; } else { -lean_object* x_5; -x_5 = l_Lean_Expr_headBeta(x_1); -x_1 = x_5; +lean_object* x_10; +x_10 = l_Lean_Expr_headBeta(x_1); +x_1 = x_10; goto _start; } } } } -lean_object* l___private_Lean_Meta_Tactic_Induction_1__getTargetArity(lean_object* x_1) { +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(x_1); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__1___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; +lean_dec(x_5); +lean_dec(x_4); +x_6 = lean_apply_1(x_3, x_2); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_3); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_2(x_5, x_8, x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec(x_1); +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_apply_3(x_4, x_11, x_10, x_2); +return x_12; +} +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams_match__2___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +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; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_inferTypeRef; +x_20 = lean_st_ref_get(x_19, x_6); +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); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_inferTypeRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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_inc(x_1); -x_7 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -354,7 +647,24 @@ return x_19; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1() { +lean_object* l_Lean_Meta_synthInstance___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_SynthInstance_10__synthInstanceImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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; lean_object* x_12; +x_11 = l_Lean_mkApp(x_1, x_5); +x_12 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1() { _start: { lean_object* x_1; @@ -362,17 +672,17 @@ x_1 = lean_mk_string("induction"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3() { _start: { lean_object* x_1; @@ -380,27 +690,27 @@ x_1 = lean_mk_string("ill-formed recursor"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3; +x_1 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4; +x_1 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6() { _start: { lean_object* x_1; @@ -408,27 +718,27 @@ x_1 = lean_mk_string("failed to generate type class instance parameter"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6; +x_1 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7; +x_1 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main(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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(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: { if (lean_obj_tag(x_3) == 0) @@ -457,7 +767,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -470,7 +780,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___spec__1(x_14, x_5, x_6, x_7, x_8, x_15); +x_16 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_14, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -498,185 +808,190 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_Lean_mkApp(x_4, x_21); -x_3 = x_12; -x_4 = x_23; -x_9 = x_22; -goto _start; +x_23 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___lambda__1(x_4, x_1, x_2, x_12, x_21, x_5, x_6, x_7, x_8, x_22); +return x_23; } else { -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_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_dec(x_4); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); lean_dec(x_20); -x_26 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_27 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8; -x_28 = lean_box(0); -x_29 = l_Lean_Meta_throwTacticEx___rarg(x_26, x_1, x_27, x_28, x_5, x_6, x_7, x_8, x_25); +x_25 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_26 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8; +x_27 = lean_box(0); +x_28 = l_Lean_Meta_throwTacticEx___rarg(x_25, x_1, x_26, x_27, x_5, x_6, x_7, x_8, x_24); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -return x_29; +return x_28; } else { -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); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_28, 1); 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; +lean_inc(x_30); +lean_dec(x_28); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_dec(x_17); lean_dec(x_4); -x_34 = lean_ctor_get(x_16, 1); -lean_inc(x_34); +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); lean_dec(x_16); -x_35 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_36 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_37 = lean_box(0); -x_38 = l_Lean_Meta_throwTacticEx___rarg(x_35, x_1, x_36, x_37, x_5, x_6, x_7, x_8, x_34); +x_34 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_35 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; +x_36 = lean_box(0); +x_37 = l_Lean_Meta_throwTacticEx___rarg(x_34, x_1, x_35, x_36, x_5, x_6, x_7, x_8, x_33); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_38; +return x_37; } } else { -uint8_t x_39; +uint8_t x_38; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_16); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_16); +if (x_38 == 0) { return x_16; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_16, 0); -x_41 = lean_ctor_get(x_16, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_16, 0); +x_40 = lean_ctor_get(x_16, 1); lean_inc(x_40); +lean_inc(x_39); lean_dec(x_16); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +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_43; +uint8_t x_42; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_13); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_13); +if (x_42 == 0) { return x_13; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_13, 0); -x_45 = lean_ctor_get(x_13, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_13, 0); +x_44 = lean_ctor_get(x_13, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_13); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +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; } } } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_3, 1); -x_48 = lean_ctor_get(x_11, 0); -x_49 = lean_array_get_size(x_2); -x_50 = lean_nat_dec_lt(x_48, x_49); -lean_dec(x_49); -if (x_50 == 0) +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_46 = lean_ctor_get(x_3, 1); +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_array_get_size(x_2); +x_49 = lean_nat_dec_lt(x_47, x_48); +lean_dec(x_48); +if (x_49 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_4); -x_51 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_52 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_53 = lean_box(0); -x_54 = l_Lean_Meta_throwTacticEx___rarg(x_51, x_1, x_52, x_53, x_5, x_6, x_7, x_8, x_9); +x_50 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_51 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; +x_52 = lean_box(0); +x_53 = l_Lean_Meta_throwTacticEx___rarg(x_50, x_1, x_51, x_52, 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); -return x_54; +return x_53; } else { -lean_object* x_55; lean_object* x_56; -x_55 = lean_array_fget(x_2, x_48); -x_56 = l_Lean_mkApp(x_4, x_55); -x_3 = x_47; -x_4 = x_56; +lean_object* x_54; lean_object* x_55; +x_54 = lean_array_fget(x_2, x_47); +x_55 = l_Lean_mkApp(x_4, x_54); +x_3 = x_46; +x_4 = x_55; goto _start; } } } } } -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___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_Meta_Tactic_Induction_2__addRecParams___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams(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) { +static lean_object* _init_l_Lean_Meta_InductionSubgoal_fields___default() { _start: { -lean_object* x_10; -x_10 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___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) { +static lean_object* _init_l_Lean_Meta_InductionSubgoal_subst___default() { _start: { -lean_object* x_10; -x_10 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_3); -lean_dec(x_2); -return x_10; +lean_object* x_1; +x_1 = lean_box(0); +return x_1; } } static lean_object* _init_l_Lean_Meta_InductionSubgoal_inhabited___closed__1() { @@ -701,7 +1016,43 @@ x_1 = l_Lean_Meta_InductionSubgoal_inhabited___closed__1; return x_1; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(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; @@ -709,7 +1060,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_2, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -761,8 +1112,8 @@ lean_dec(x_10); x_19 = lean_ctor_get(x_9, 1); lean_inc(x_19); lean_dec(x_9); -x_20 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_21 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; +x_20 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_21 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; x_22 = lean_box(0); x_23 = l_Lean_Meta_throwTacticEx___rarg(x_20, x_1, x_21, x_22, x_4, x_5, x_6, x_7, x_19); lean_dec(x_7); @@ -801,16 +1152,167 @@ return x_27; } } } -lean_object* l___private_Lean_Meta_Tactic_Induction_3__getTypeBody___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody___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___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); return x_9; } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__5___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop_match__6___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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; uint8_t x_9; @@ -857,54 +1359,7 @@ return x_7; } } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_eq(x_6, x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_sub(x_6, x_10); -x_12 = lean_nat_sub(x_5, x_6); -lean_dec(x_6); -x_13 = lean_nat_add(x_3, x_10); -x_14 = lean_nat_dec_lt(x_12, x_13); -lean_dec(x_13); -if (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; lean_object* x_21; -x_15 = l_Lean_Name_inhabited; -x_16 = lean_array_get(x_15, x_1, x_12); -x_17 = lean_nat_sub(x_12, x_3); -lean_dec(x_12); -x_18 = lean_nat_sub(x_17, x_10); -lean_dec(x_17); -x_19 = lean_array_get(x_15, x_4, x_18); -lean_dec(x_18); -x_20 = l_Lean_mkFVar(x_19); -x_21 = l_Lean_Meta_FVarSubst_insert(x_7, x_16, x_20); -x_6 = x_11; -x_7 = x_21; -goto _start; -} -else -{ -lean_dec(x_12); -x_6 = x_11; -goto _start; -} -} -else -{ -lean_dec(x_6); -return x_7; -} -} -} -lean_object* l_Lean_Meta_synthInstance_x3f___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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* l_Lean_Meta_synthInstance_x3f___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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; @@ -912,7 +1367,7 @@ x_7 = l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(x_1, x_2, x_3, return x_7; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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) { _start: { lean_object* x_11; uint8_t x_12; @@ -953,7 +1408,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_21 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_19, x_14, x_6, x_7, x_8, x_9, x_10); +x_21 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_1, x_19, x_14, x_6, x_7, x_8, x_9, x_10); lean_dec(x_14); if (lean_obj_tag(x_21) == 0) { @@ -1015,7 +1470,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_1); -x_32 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_30, x_14, x_6, x_7, x_8, x_9, x_10); +x_32 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_1, x_30, x_14, x_6, x_7, x_8, x_9, x_10); lean_dec(x_14); if (lean_obj_tag(x_32) == 0) { @@ -1068,7 +1523,651 @@ return x_40; } } } -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main(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, uint8_t 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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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; uint8_t x_11; +x_10 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_2, x_5, x_6, x_7, x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +lean_ctor_set(x_10, 0, x_3); +return x_10; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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, lean_object* x_14, lean_object* x_15, uint8_t 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) { +_start: +{ +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_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; +x_26 = lean_nat_sub(x_1, x_2); +x_27 = lean_array_get_size(x_3); +x_28 = lean_array_get_size(x_4); +x_29 = lean_nat_sub(x_27, x_28); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_sub(x_29, x_30); +lean_dec(x_29); +x_84 = lean_array_get_size(x_13); +x_85 = lean_nat_dec_lt(x_11, x_84); +lean_dec(x_84); +x_86 = l_Lean_Name_append___main(x_17, x_18); +lean_inc(x_21); +x_87 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_19, x_86, x_21, x_22, x_23, x_24, x_25); +if (x_85 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +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_box(0); +x_32 = x_90; +x_33 = x_88; +x_34 = x_89; +goto block_83; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_87, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +lean_dec(x_87); +x_93 = lean_array_fget(x_13, x_11); +x_32 = x_93; +x_33 = x_91; +x_34 = x_92; +goto block_83; +} +block_83: +{ +lean_object* x_35; lean_object* x_36; +lean_inc(x_33); +x_35 = l_Lean_mkApp(x_5, x_33); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_6); +x_36 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_6, x_7, x_33, x_21, x_22, x_23, x_24, x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Expr_mvarId_x21(x_33); +lean_dec(x_33); +x_40 = l_Lean_Expr_fvarId_x21(x_8); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +x_41 = l_Lean_Meta_tryClear(x_39, x_40, x_21, x_22, x_23, x_24, x_38); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = 0; +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +x_45 = l_Lean_Meta_introNCore(x_42, x_26, x_32, x_44, x_21, x_22, x_23, x_24, x_43); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_ctor_get(x_46, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_dec(x_46); +x_50 = lean_box(0); +x_51 = 1; +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +x_52 = l_Lean_Meta_introNCore(x_49, x_31, x_50, x_51, x_21, x_22, x_23, x_24, x_47); +if (lean_obj_tag(x_52) == 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; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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_ctor_get(x_53, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +lean_inc(x_9); +lean_inc(x_27); +x_57 = l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1(x_3, x_4, x_28, x_55, x_27, x_27, x_9); +lean_dec(x_27); +lean_dec(x_55); +lean_dec(x_28); +x_58 = x_48; +x_59 = lean_unsigned_to_nat(0u); +x_60 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_59, x_58); +x_61 = x_60; +x_62 = lean_nat_add(x_10, x_30); +x_63 = lean_nat_add(x_11, x_30); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_56); +lean_ctor_set(x_64, 1, x_61); +lean_ctor_set(x_64, 2, x_57); +x_65 = lean_array_push(x_12, x_64); +x_66 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(x_6, x_13, x_14, x_3, x_8, x_4, x_9, x_2, x_15, x_62, x_63, x_35, x_37, x_16, x_65, x_21, x_22, x_23, x_24, x_54); +lean_dec(x_63); +return x_66; +} +else +{ +uint8_t x_67; +lean_dec(x_48); +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_67 = !lean_is_exclusive(x_52); +if (x_67 == 0) +{ +return x_52; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_52, 0); +x_69 = lean_ctor_get(x_52, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_52); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_71 = !lean_is_exclusive(x_45); +if (x_71 == 0) +{ +return x_45; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_45, 0); +x_73 = lean_ctor_get(x_45, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_45); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_75 = !lean_is_exclusive(x_41); +if (x_75 == 0) +{ +return x_41; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_41, 0); +x_77 = lean_ctor_get(x_41, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_41); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_79 = !lean_is_exclusive(x_36); +if (x_79 == 0) +{ +return x_36; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_36, 0); +x_81 = lean_ctor_get(x_36, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_36); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.Tactic.Induction"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Meta.Tactic.Induction.0.Lean.Meta.finalize.loop"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3() { +_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___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2; +x_3 = lean_unsigned_to_nat(113u); +x_4 = lean_unsigned_to_nat(13u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, uint8_t 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) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; uint8_t x_27; uint8_t x_83; uint8_t x_84; +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_1, 1); +lean_inc(x_24); +x_25 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_26 = l_Lean_Expr_headBeta(x_24); +x_83 = (uint8_t)((x_25 << 24) >> 61); +x_84 = l_Lean_BinderInfo_isInstImplicit(x_83); +if (x_84 == 0) +{ +uint8_t x_85; +x_85 = 0; +x_27 = x_85; +goto block_82; +} +else +{ +uint8_t x_86; +x_86 = l_Array_isEmpty___rarg(x_12); +x_27 = x_86; +goto block_82; +} +block_82: +{ +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +lean_inc(x_26); +x_28 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(x_26); +x_29 = lean_nat_dec_lt(x_28, x_2); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_box(0); +x_31 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2(x_28, x_2, x_3, x_4, x_5, x_6, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_23, x_26, x_30, x_18, x_19, x_20, x_21, x_22); +lean_dec(x_28); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +x_32 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_33 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; +x_34 = lean_box(0); +x_35 = l_Lean_Meta_throwTacticEx___rarg(x_32, x_6, x_33, x_34, x_18, x_19, x_20, x_21, x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +return x_35; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_35); +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; +} +} +} +else +{ +lean_object* x_40; +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_26); +x_40 = l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(x_26, x_18, x_19, x_20, x_21, x_22); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(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; lean_object* x_48; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_Lean_Name_append___main(x_16, x_23); +lean_inc(x_18); +x_44 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_26, x_43, x_18, x_19, x_20, x_21, x_42); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +lean_inc(x_45); +x_47 = l_Lean_mkApp(x_5, x_45); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_6); +x_48 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_6, x_1, x_45, x_18, x_19, x_20, x_21, x_46); +if (lean_obj_tag(x_48) == 0) +{ +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; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_9, x_51); +x_53 = lean_nat_add(x_10, x_51); +x_54 = l_Lean_Expr_mvarId_x21(x_45); +lean_dec(x_45); +x_55 = lean_box(0); +x_56 = l_Array_empty___closed__1; +x_57 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_55); +x_58 = lean_array_push(x_11, x_57); +x_59 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(x_6, x_12, x_13, x_3, x_7, x_4, x_8, x_2, x_14, x_52, x_53, x_47, x_49, x_15, x_58, x_18, x_19, x_20, x_21, x_50); +lean_dec(x_53); +return x_59; +} +else +{ +uint8_t x_60; +lean_dec(x_47); +lean_dec(x_45); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_60 = !lean_is_exclusive(x_48); +if (x_60 == 0) +{ +return x_48; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_48, 0); +x_62 = lean_ctor_get(x_48, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_48); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_26); +lean_dec(x_23); +x_64 = lean_ctor_get(x_40, 1); +lean_inc(x_64); +lean_dec(x_40); +x_65 = lean_ctor_get(x_41, 0); +lean_inc(x_65); +lean_dec(x_41); +lean_inc(x_65); +x_66 = l_Lean_mkApp(x_5, x_65); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_6); +x_67 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_6, x_1, x_65, x_18, x_19, x_20, x_21, x_64); +lean_dec(x_65); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_unsigned_to_nat(1u); +x_71 = lean_nat_add(x_9, x_70); +x_72 = lean_nat_add(x_10, x_70); +x_73 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(x_6, x_12, x_13, x_3, x_7, x_4, x_8, x_2, x_14, x_71, x_72, x_66, x_68, x_15, x_11, x_18, x_19, x_20, x_21, x_69); +lean_dec(x_72); +return x_73; +} +else +{ +uint8_t x_74; +lean_dec(x_66); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_74 = !lean_is_exclusive(x_67); +if (x_74 == 0) +{ +return x_67; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_67, 0); +x_76 = lean_ctor_get(x_67, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_67); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(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_1); +x_78 = !lean_is_exclusive(x_40); +if (x_78 == 0) +{ +return x_40; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_40, 0); +x_80 = lean_ctor_get(x_40, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_40); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_87 = l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; +x_88 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3; +x_89 = lean_panic_fn(x_87, x_88); +x_90 = lean_apply_5(x_89, x_18, x_19, x_20, x_21, x_22); +return x_90; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(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, uint8_t 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) { _start: { lean_object* x_21; @@ -1076,30 +2175,46 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_21 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___spec__1(x_13, x_16, x_17, x_18, x_19, x_20); +x_21 = l_Lean_Meta_whnfForall___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__2(x_13, x_16, x_17, x_18, x_19, x_20); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_81; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = l_Lean_Expr_isForall(x_22); +x_81 = l_Lean_Expr_isForall(x_22); +if (x_81 == 0) +{ +uint8_t x_82; +x_82 = 0; +x_24 = x_82; +goto block_80; +} +else +{ +lean_object* x_83; uint8_t x_84; +x_83 = lean_ctor_get(x_3, 3); +x_84 = lean_nat_dec_lt(x_10, x_83); +x_24 = x_84; +goto block_80; +} +block_80: +{ if (x_24 == 0) { lean_dec(x_22); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); +lean_dec(x_7); lean_dec(x_5); if (x_14 == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_dec(x_15); lean_dec(x_12); -x_25 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_26 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; +x_25 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_26 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; x_27 = lean_box(0); x_28 = l_Lean_Meta_throwTacticEx___rarg(x_25, x_1, x_26, x_27, x_16, x_17, x_18, x_19, x_23); lean_dec(x_19); @@ -1127,948 +2242,236 @@ return x_32; } else { -lean_object* x_33; uint8_t x_34; -x_33 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_12, x_16, x_17, x_18, x_19, x_23); +lean_object* x_33; lean_object* x_34; +x_33 = lean_box(0); +x_34 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__1(x_1, x_12, x_15, x_33, x_16, x_17, x_18, x_19, x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -lean_ctor_set(x_33, 0, x_15); -return x_33; +return x_34; +} } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_15); -lean_ctor_set(x_37, 1, x_36); +lean_object* x_35; uint8_t x_36; +x_35 = l_Lean_Meta_RecursorInfo_firstIndexPos(x_3); +x_36 = lean_nat_dec_eq(x_10, x_35); +lean_dec(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +lean_inc(x_1); +x_37 = l_Lean_Meta_getMVarTag(x_1, x_16, x_17, x_18, x_19, x_23); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_nat_dec_le(x_9, x_11); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_box(0); +x_42 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3(x_22, x_8, x_4, x_6, x_12, x_1, x_5, x_7, x_10, x_11, x_15, x_2, x_3, x_9, x_14, x_38, x_41, x_16, x_17, x_18, x_19, x_39); +lean_dec(x_38); +lean_dec(x_10); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_dec(x_38); +lean_dec(x_22); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +x_43 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_44 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; +x_45 = lean_box(0); +x_46 = l_Lean_Meta_throwTacticEx___rarg(x_43, x_1, x_44, x_45, x_16, x_17, x_18, x_19, x_39); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +return x_46; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_46); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_37); +if (x_51 == 0) +{ return x_37; } -} -} else { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_3, 3); -x_39 = lean_nat_dec_lt(x_10, x_38); -if (x_39 == 0) -{ -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -if (x_14 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -lean_dec(x_15); -lean_dec(x_12); -x_40 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_41 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_42 = lean_box(0); -x_43 = l_Lean_Meta_throwTacticEx___rarg(x_40, x_1, x_41, x_42, x_16, x_17, x_18, x_19, x_23); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -return x_43; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -else -{ -lean_object* x_48; uint8_t x_49; -x_48 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_12, x_16, x_17, x_18, x_19, x_23); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_48, 0); -lean_dec(x_50); -lean_ctor_set(x_48, 0, x_15); -return x_48; -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_dec(x_48); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_15); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_37, 0); +x_53 = lean_ctor_get(x_37, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_37); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -lean_object* x_53; uint8_t x_54; -x_53 = l_Lean_Meta_RecursorInfo_firstIndexPos(x_3); -x_54 = lean_nat_dec_eq(x_10, x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_12); +lean_ctor_set(x_55, 1, x_22); +x_56 = lean_unsigned_to_nat(0u); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_inc(x_1); -x_55 = l_Lean_Meta_getMVarTag(x_1, x_16, x_17, x_18, x_19, x_23); -if (lean_obj_tag(x_55) == 0) +x_57 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3(x_1, x_6, x_6, x_56, x_55, x_16, x_17, x_18, x_19, x_23); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_194; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_194 = lean_nat_dec_le(x_8, x_11); -if (x_194 == 0) -{ -x_58 = x_57; -goto block_193; -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; -lean_dec(x_56); -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -x_195 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_196 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_197 = lean_box(0); -x_198 = l_Lean_Meta_throwTacticEx___rarg(x_195, x_1, x_196, x_197, x_16, x_17, x_18, x_19, x_57); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_199 = !lean_is_exclusive(x_198); -if (x_199 == 0) -{ -return x_198; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_198, 0); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_198); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; -} -} -block_193: -{ -if (lean_obj_tag(x_22) == 7) -{ -lean_object* x_59; lean_object* x_60; uint64_t x_61; lean_object* x_62; lean_object* x_63; uint8_t x_143; uint8_t x_144; -x_59 = lean_ctor_get(x_22, 0); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_22, 1); +lean_dec(x_57); +x_60 = lean_ctor_get(x_58, 0); lean_inc(x_60); -x_61 = lean_ctor_get_uint64(x_22, sizeof(void*)*3); -x_62 = l_Lean_Expr_headBeta(x_60); -x_143 = (uint8_t)((x_61 << 24) >> 61); -x_144 = l_Lean_BinderInfo_isInstImplicit(x_143); -if (x_144 == 0) -{ -lean_object* x_145; -x_145 = lean_box(0); -x_63 = x_145; -goto block_142; -} -else -{ -uint8_t x_146; -x_146 = l_Array_isEmpty___rarg(x_2); -if (x_146 == 0) -{ -lean_object* x_147; -x_147 = lean_box(0); -x_63 = x_147; -goto block_142; -} -else -{ -lean_object* x_148; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_62); -x_148 = l___private_Lean_Meta_SynthInstance_8__synthInstanceImp_x3f(x_62, x_16, x_17, x_18, x_19, x_58); -if (lean_obj_tag(x_148) == 0) -{ -lean_object* x_149; -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); -x_151 = l_Lean_Name_append___main(x_56, x_59); -lean_dec(x_56); -lean_inc(x_16); -x_152 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_62, x_151, x_16, x_17, x_18, x_19, x_150); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -lean_inc(x_153); -x_155 = l_Lean_mkApp(x_12, x_153); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_1); -x_156 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_22, x_153, x_16, x_17, x_18, x_19, x_154); -if (lean_obj_tag(x_156) == 0) -{ -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; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -lean_dec(x_156); -x_159 = lean_unsigned_to_nat(1u); -x_160 = lean_nat_add(x_10, x_159); -lean_dec(x_10); -x_161 = lean_nat_add(x_11, x_159); -lean_dec(x_11); -x_162 = l_Lean_Expr_mvarId_x21(x_153); -lean_dec(x_153); -x_163 = lean_box(0); -x_164 = l_Array_empty___closed__1; -x_165 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_164); -lean_ctor_set(x_165, 2, x_163); -x_166 = lean_array_push(x_15, x_165); -x_10 = x_160; -x_11 = x_161; -x_12 = x_155; -x_13 = x_157; -x_15 = x_166; -x_20 = x_158; -goto _start; -} -else -{ -uint8_t x_168; -lean_dec(x_155); -lean_dec(x_153); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_168 = !lean_is_exclusive(x_156); -if (x_168 == 0) -{ -return x_156; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_156, 0); -x_170 = lean_ctor_get(x_156, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_156); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set(x_171, 1, x_170); -return x_171; -} -} -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_62); -lean_dec(x_59); -lean_dec(x_56); -x_172 = lean_ctor_get(x_148, 1); -lean_inc(x_172); -lean_dec(x_148); -x_173 = lean_ctor_get(x_149, 0); -lean_inc(x_173); -lean_dec(x_149); -lean_inc(x_173); -x_174 = l_Lean_mkApp(x_12, x_173); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_1); -x_175 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_22, x_173, x_16, x_17, x_18, x_19, x_172); -lean_dec(x_173); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec(x_175); -x_178 = lean_unsigned_to_nat(1u); -x_179 = lean_nat_add(x_10, x_178); -lean_dec(x_10); -x_180 = lean_nat_add(x_11, x_178); -lean_dec(x_11); -x_10 = x_179; -x_11 = x_180; -x_12 = x_174; -x_13 = x_176; -x_20 = x_177; -goto _start; -} -else -{ -uint8_t x_182; -lean_dec(x_174); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_182 = !lean_is_exclusive(x_175); -if (x_182 == 0) -{ -return x_175; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_175, 0); -x_184 = lean_ctor_get(x_175, 1); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_175); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; -} -} -} -} -else -{ -uint8_t x_186; -lean_dec(x_62); -lean_dec(x_59); -lean_dec(x_56); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_186 = !lean_is_exclusive(x_148); -if (x_186 == 0) -{ -return x_148; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_148, 0); -x_188 = lean_ctor_get(x_148, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_148); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} -} -} -} -block_142: -{ -lean_object* x_64; uint8_t x_65; -lean_dec(x_63); -lean_inc(x_62); -x_64 = l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(x_62); -x_65 = lean_nat_dec_lt(x_64, x_6); -if (x_65 == 0) -{ -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_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; -x_66 = lean_nat_sub(x_64, x_6); -lean_dec(x_64); -x_67 = lean_array_get_size(x_4); -x_68 = lean_array_get_size(x_7); -x_69 = lean_nat_sub(x_67, x_68); -x_70 = lean_unsigned_to_nat(1u); -x_71 = lean_nat_sub(x_69, x_70); -lean_dec(x_69); -x_124 = lean_array_get_size(x_2); -x_125 = lean_nat_dec_lt(x_11, x_124); -lean_dec(x_124); -x_126 = l_Lean_Name_append___main(x_56, x_59); -lean_dec(x_56); -lean_inc(x_16); -x_127 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_62, x_126, x_16, x_17, x_18, x_19, x_58); -if (x_125 == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec(x_127); -x_130 = lean_box(0); -x_72 = x_130; -x_73 = x_128; -x_74 = x_129; -goto block_123; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_127, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_127, 1); -lean_inc(x_132); -lean_dec(x_127); -x_133 = lean_array_fget(x_2, x_11); -x_72 = x_133; -x_73 = x_131; -x_74 = x_132; -goto block_123; -} -block_123: -{ -lean_object* x_75; lean_object* x_76; -lean_inc(x_73); -x_75 = l_Lean_mkApp(x_12, x_73); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_1); -x_76 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_22, x_73, x_16, x_17, x_18, x_19, x_74); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -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_79 = l_Lean_Expr_mvarId_x21(x_73); -lean_dec(x_73); -x_80 = l_Lean_Expr_fvarId_x21(x_5); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_81 = l_Lean_Meta_tryClear(x_79, x_80, x_16, x_17, x_18, x_19, x_78); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = 0; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_85 = l_Lean_Meta_introNCore(x_82, x_66, x_72, x_84, x_16, x_17, x_18, x_19, x_83); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_dec(x_86); -x_90 = lean_box(0); -x_91 = 1; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_92 = l_Lean_Meta_introNCore(x_89, x_71, x_90, x_91, x_16, x_17, x_18, x_19, x_87); -if (lean_obj_tag(x_92) == 0) -{ -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; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_ctor_get(x_93, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_93, 1); -lean_inc(x_96); -lean_dec(x_93); -lean_inc(x_9); -lean_inc(x_67); -x_97 = l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__1(x_4, x_7, x_68, x_95, x_67, x_67, x_9); -lean_dec(x_67); -lean_dec(x_95); -lean_dec(x_68); -x_98 = x_88; -x_99 = lean_unsigned_to_nat(0u); -x_100 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_99, x_98); -x_101 = x_100; -x_102 = lean_nat_add(x_10, x_70); -lean_dec(x_10); -x_103 = lean_nat_add(x_11, x_70); -lean_dec(x_11); -x_104 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_104, 0, x_96); -lean_ctor_set(x_104, 1, x_101); -lean_ctor_set(x_104, 2, x_97); -x_105 = lean_array_push(x_15, x_104); -x_10 = x_102; -x_11 = x_103; -x_12 = x_75; -x_13 = x_77; -x_15 = x_105; -x_20 = x_94; -goto _start; -} -else -{ -uint8_t x_107; -lean_dec(x_88); -lean_dec(x_77); -lean_dec(x_75); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_107 = !lean_is_exclusive(x_92); -if (x_107 == 0) -{ -return x_92; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_92, 0); -x_109 = lean_ctor_get(x_92, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_92); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; -} -} -} -else -{ -uint8_t x_111; -lean_dec(x_77); -lean_dec(x_75); -lean_dec(x_71); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_111 = !lean_is_exclusive(x_85); -if (x_111 == 0) -{ -return x_85; -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_85, 0); -x_113 = lean_ctor_get(x_85, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_85); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; -} -} -} -else -{ -uint8_t x_115; -lean_dec(x_77); -lean_dec(x_75); -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_66); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_115 = !lean_is_exclusive(x_81); -if (x_115 == 0) -{ -return x_81; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_81, 0); -x_117 = lean_ctor_get(x_81, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_81); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -return x_118; -} -} -} -else -{ -uint8_t x_119; -lean_dec(x_75); -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_66); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_119 = !lean_is_exclusive(x_76); -if (x_119 == 0) -{ -return x_76; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_76, 0); -x_121 = lean_ctor_get(x_76, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_76); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -lean_dec(x_64); -lean_dec(x_62); -lean_dec(x_59); -lean_dec(x_56); -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -x_134 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_135 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_136 = lean_box(0); -x_137 = l_Lean_Meta_throwTacticEx___rarg(x_134, x_1, x_135, x_136, x_16, x_17, x_18, x_19, x_58); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) -{ -return x_137; -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_137, 0); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_137); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -return x_141; -} -} -} -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_56); -lean_dec(x_22); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_190 = l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; -x_191 = l_unreachable_x21___rarg(x_190); -x_192 = lean_apply_5(x_191, x_16, x_17, x_18, x_19, x_58); -return x_192; -} -} -} -else -{ -uint8_t x_203; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_203 = !lean_is_exclusive(x_55); -if (x_203 == 0) -{ -return x_55; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_55, 0); -x_205 = lean_ctor_get(x_55, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_55); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; -} -} -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_12); -lean_ctor_set(x_207, 1, x_22); -x_208 = lean_unsigned_to_nat(0u); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_1); -x_209 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__4(x_1, x_7, x_7, x_208, x_207, x_16, x_17, x_18, x_19, x_23); -if (lean_obj_tag(x_209) == 0) -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_209, 1); -lean_inc(x_211); -lean_dec(x_209); -x_212 = lean_ctor_get(x_210, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_210, 1); -lean_inc(x_213); -lean_dec(x_210); +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); lean_inc(x_5); -x_214 = l_Lean_mkApp(x_212, x_5); +x_62 = l_Lean_mkApp(x_60, x_5); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); lean_inc(x_1); -x_215 = l___private_Lean_Meta_Tactic_Induction_3__getTypeBody(x_1, x_213, x_5, x_16, x_17, x_18, x_19, x_211); -if (lean_obj_tag(x_215) == 0) +x_63 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTypeBody(x_1, x_61, x_5, x_16, x_17, x_18, x_19, x_59); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); -x_218 = lean_unsigned_to_nat(1u); -x_219 = lean_nat_add(x_10, x_218); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_unsigned_to_nat(1u); +x_67 = lean_nat_add(x_10, x_66); lean_dec(x_10); -x_220 = lean_array_get_size(x_7); -x_221 = lean_nat_add(x_219, x_220); -lean_dec(x_220); -lean_dec(x_219); -x_222 = 1; -x_10 = x_221; -x_12 = x_214; -x_13 = x_216; -x_14 = x_222; -x_20 = x_217; +x_68 = lean_array_get_size(x_6); +x_69 = lean_nat_add(x_67, x_68); +lean_dec(x_68); +lean_dec(x_67); +x_70 = 1; +x_10 = x_69; +x_12 = x_62; +x_13 = x_64; +x_14 = x_70; +x_20 = x_65; goto _start; } else { -uint8_t x_224; -lean_dec(x_214); +uint8_t x_72; +lean_dec(x_62); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_224 = !lean_is_exclusive(x_215); -if (x_224 == 0) +x_72 = !lean_is_exclusive(x_63); +if (x_72 == 0) { -return x_215; +return x_63; } else { -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_215, 0); -x_226 = lean_ctor_get(x_215, 1); -lean_inc(x_226); -lean_inc(x_225); -lean_dec(x_215); -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_225); -lean_ctor_set(x_227, 1, x_226); -return x_227; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_63, 0); +x_74 = lean_ctor_get(x_63, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_63); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -uint8_t x_228; +uint8_t x_76; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_228 = !lean_is_exclusive(x_209); -if (x_228 == 0) +x_76 = !lean_is_exclusive(x_57); +if (x_76 == 0) { -return x_209; +return x_57; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_209, 0); -x_230 = lean_ctor_get(x_209, 1); -lean_inc(x_230); -lean_inc(x_229); -lean_dec(x_209); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -return x_231; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_57, 0); +x_78 = lean_ctor_get(x_57, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_57); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } @@ -2077,44 +2480,43 @@ return x_231; } else { -uint8_t x_232; +uint8_t x_85; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); lean_dec(x_12); -lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_232 = !lean_is_exclusive(x_21); -if (x_232 == 0) +x_85 = !lean_is_exclusive(x_21); +if (x_85 == 0) { return x_21; } else { -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_21, 0); -x_234 = lean_ctor_get(x_21, 1); -lean_inc(x_234); -lean_inc(x_233); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_21, 0); +x_87 = lean_ctor_get(x_21, 1); +lean_inc(x_87); +lean_inc(x_86); lean_dec(x_21); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -return x_235; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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) { _start: { lean_object* x_8; -x_8 = l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -2123,30 +2525,118 @@ lean_dec(x_1); return x_8; } } -lean_object* l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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: -{ -lean_object* x_8; -x_8 = l_Nat_foldAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___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_object* l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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: { lean_object* x_11; -x_11 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___spec__3(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); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main___boxed(lean_object** _args) { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___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); +return x_10; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +lean_object* x_23 = _args[22]; +lean_object* x_24 = _args[23]; +lean_object* x_25 = _args[24]; +_start: +{ +uint8_t x_26; lean_object* x_27; +x_26 = lean_unbox(x_16); +lean_dec(x_16); +x_27 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_26, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_27; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +lean_object* x_22 = _args[21]; +_start: +{ +uint8_t x_23; lean_object* x_24; +x_23 = lean_unbox(x_15); +lean_dec(x_15); +x_24 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__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, x_13, x_14, x_23, x_16, x_17, x_18, x_19, x_20, x_21, x_22); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_24; +} +} +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -2172,9 +2662,10 @@ _start: uint8_t x_21; lean_object* x_22; x_21 = lean_unbox(x_14); lean_dec(x_14); -x_22 = l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21, x_15, x_16, x_17, x_18, x_19, x_20); +x_22 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21, x_15, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); @@ -2182,51 +2673,7 @@ lean_dec(x_2); return x_22; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux(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, uint8_t 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) { -_start: -{ -lean_object* x_21; -x_21 = l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); -return x_21; -} -} -lean_object* l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___boxed(lean_object** _args) { -lean_object* x_1 = _args[0]; -lean_object* x_2 = _args[1]; -lean_object* x_3 = _args[2]; -lean_object* x_4 = _args[3]; -lean_object* x_5 = _args[4]; -lean_object* x_6 = _args[5]; -lean_object* x_7 = _args[6]; -lean_object* x_8 = _args[7]; -lean_object* x_9 = _args[8]; -lean_object* x_10 = _args[9]; -lean_object* x_11 = _args[10]; -lean_object* x_12 = _args[11]; -lean_object* x_13 = _args[12]; -lean_object* x_14 = _args[13]; -lean_object* x_15 = _args[14]; -lean_object* x_16 = _args[15]; -lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; -lean_object* x_20 = _args[19]; -_start: -{ -uint8_t x_21; lean_object* x_22; -x_21 = lean_unbox(x_14); -lean_dec(x_14); -x_22 = l___private_Lean_Meta_Tactic_Induction_4__finalizeAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21, x_15, x_16, x_17, x_18, x_19, x_20); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_22; -} -} -lean_object* l___private_Lean_Meta_Tactic_Induction_5__finalize(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) { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(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; @@ -2240,13 +2687,13 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l___private_Lean_Meta_Tactic_Induction_1__getTargetArity___main(x_15); +x_17 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_getTargetArity(x_15); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_18 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_8, x_9, x_10, x_11, x_12, x_16); +x_18 = l_Lean_Meta_inferType___at___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___spec__1(x_8, x_9, x_10, x_11, x_12, x_16); 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; @@ -2265,7 +2712,7 @@ x_27 = lean_nat_add(x_25, x_26); lean_dec(x_25); x_28 = 0; x_29 = l_Array_empty___closed__1; -x_30 = l___private_Lean_Meta_Tactic_Induction_4__finalizeAux___main(x_1, x_2, x_3, x_4, x_5, x_17, x_6, x_23, x_7, x_27, x_22, x_8, x_19, x_28, x_29, x_9, x_10, x_11, x_12, x_20); +x_30 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_17, x_23, x_27, x_22, x_8, x_19, x_28, x_29, x_9, x_10, x_11, x_12, x_20); lean_dec(x_23); lean_dec(x_17); return x_30; @@ -2334,11 +2781,11 @@ return x_38; } } } -lean_object* l___private_Lean_Meta_Tactic_Induction_5__finalize___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, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize___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, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Meta_Tactic_Induction_5__finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); @@ -2346,62 +2793,55 @@ lean_dec(x_2); return x_14; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("unexpected major premise type "); +x_1 = lean_mk_string("unexpected major premise type"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3() { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___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) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___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) { -_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; +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; x_8 = l_Lean_indentExpr(x_2); -x_9 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3; +x_9 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2; x_10 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); -x_11 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; -x_12 = lean_box(0); -x_13 = l_Lean_Meta_throwTacticEx___rarg(x_11, x_1, x_10, x_12, x_3, x_4, x_5, x_6, x_7); -return x_13; +x_11 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_12 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_throwTacticEx___rarg(x_13, x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7); +return x_15; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___boxed), 7, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___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* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___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: { lean_object* x_8; -x_8 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -2409,7 +2849,298 @@ lean_dec(x_3); return x_8; } } -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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* l_Lean_Meta_induction_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_induction_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_induction_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_induction_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_induction_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_7 = lean_box_uint64(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_Meta_induction_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Meta_induction_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__6___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__7___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_induction_match__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__7___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__8___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_induction_match__8(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__8___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__9___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_induction_match__9(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__9___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_induction_match__10___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Meta_induction_match__10(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_induction_match__10___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___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; +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_local_ctx_find(x_7, x_1); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_6); +return x_11; +} +} +} +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__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_object* x_7) { _start: { switch (lean_obj_tag(x_2)) { @@ -3790,19 +4521,19 @@ return x_245; } } } -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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: { lean_object* x_8; -x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_2, x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) { uint8_t x_9; @@ -3884,7 +4615,7 @@ return x_24; } } } -static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1() { +static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1() { _start: { lean_object* x_1; @@ -3892,27 +4623,16 @@ x_1 = lean_mk_string("major premise type is ill-formed"); return x_1; } } -static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2() { +static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_forM___main___at_Lean_Meta_induction___spec__5(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: { if (lean_obj_tag(x_5) == 0) @@ -3953,38 +4673,42 @@ goto _start; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +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_21 = l_Lean_indentExpr(x_3); -x_22 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3; +x_22 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = lean_box(0); -x_25 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_23, x_24, x_6, x_7, x_8, x_9, x_10); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_24 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_25, x_26, x_6, x_7, x_8, x_9, x_10); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -return x_25; +return x_27; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_25); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +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; } } } } } } -uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__5(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___main___at_Lean_Meta_induction___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4013,7 +4737,7 @@ return x_8; } } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -4021,27 +4745,215 @@ x_1 = lean_mk_string("' is an index in major premise, but it depends on index oc return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3() { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +uint8_t x_15; uint8_t x_67; +x_67 = lean_nat_dec_lt(x_7, x_4); +if (x_67 == 0) +{ +uint8_t x_68; +x_68 = 0; +x_15 = x_68; +goto block_66; +} +else +{ +uint8_t x_69; +x_69 = l_List_elem___main___at_Lean_Meta_induction___spec__6(x_4, x_8); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = 0; +x_15 = x_70; +goto block_66; +} +else +{ +uint8_t x_71; +x_71 = l_Lean_Expr_isFVar(x_2); +x_15 = x_71; +goto block_66; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4() { +block_66: +{ +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_14); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = l_Lean_Expr_fvarId_x21(x_1); +lean_inc(x_10); +x_19 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_18, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +x_23 = l_Lean_Expr_fvarId_x21(x_2); +x_24 = l_Lean_MetavarContext_localDeclDependsOn(x_3, x_21, x_23); +lean_dec(x_23); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_26 = lean_box(0); +lean_ctor_set(x_19, 0, x_26); +return x_19; +} +else +{ +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_free_object(x_19); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_1); +x_28 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_4, x_32); +x_34 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_33); +x_35 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_31); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_box(0); +x_40 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_6, x_38, x_39, x_10, x_11, x_12, x_13, x_22); +lean_dec(x_10); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_41 = lean_ctor_get(x_19, 0); +x_42 = lean_ctor_get(x_19, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_19); +x_43 = l_Lean_Expr_fvarId_x21(x_2); +x_44 = l_Lean_MetavarContext_localDeclDependsOn(x_3, x_41, x_43); +lean_dec(x_43); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_42); +return x_47; +} +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; 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; +x_48 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_48, 0, x_1); +x_49 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_unsigned_to_nat(1u); +x_54 = lean_nat_add(x_4, x_53); +x_55 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_54); +x_56 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_52); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_59 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_box(0); +x_61 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_6, x_59, x_60, x_10, x_11, x_12, x_13, x_42); +lean_dec(x_10); +return x_61; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_19); +if (x_62 == 0) +{ +return x_19; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_19, 0); +x_64 = lean_ctor_get(x_19, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_19); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +} +} +} +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4049,27 +4961,97 @@ x_1 = lean_mk_string("' is an index in major premise, but it occurs in previous return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6() { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +uint8_t x_16; +x_16 = lean_nat_dec_lt(x_4, x_7); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_9); +x_17 = lean_box(0); +x_18 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_2); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Lean_Expr_fvarId_x21(x_1); +lean_inc(x_2); +lean_inc(x_3); +x_20 = l_Lean_MetavarContext_exprDependsOn(x_3, x_2, x_19); +lean_dec(x_19); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_9); +x_22 = lean_box(0); +x_23 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_2); +return x_23; +} +else +{ +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; uint8_t x_35; +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_1); +x_25 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2; +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_indentExpr(x_9); +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_Meta_throwTacticEx___rarg___closed__6; +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_box(0); +x_34 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_6, x_32, x_33, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_11); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +return x_34; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7() { +} +} +} +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1() { _start: { lean_object* x_1; @@ -4077,339 +5059,267 @@ x_1 = lean_mk_string("' is an index in major premise, but it occurs more than on return x_1; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8() { +static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9() { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(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, lean_object* x_14, lean_object* x_15) { -_start: +lean_object* x_17; uint8_t x_18; +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_eq(x_11, x_17); +if (x_18 == 0) { -lean_object* x_16; uint8_t x_17; -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_nat_dec_eq(x_10, x_16); -if (x_17 == 0) -{ -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_60; uint8_t x_79; -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_sub(x_10, x_18); -lean_dec(x_10); -x_20 = lean_nat_sub(x_9, x_19); -x_21 = lean_nat_sub(x_20, x_18); -lean_dec(x_20); -x_22 = l_Lean_Expr_Inhabited; -x_23 = lean_array_get(x_22, x_4, x_21); -x_79 = lean_nat_dec_eq(x_21, x_7); -if (x_79 == 0) -{ -uint8_t x_80; -x_80 = lean_expr_eqv(x_23, x_8); -if (x_80 == 0) -{ -x_60 = x_15; -goto block_78; -} -else -{ -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; uint8_t x_90; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_5); -x_81 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_81, 0, x_8); -x_82 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9; -x_85 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_indentExpr(x_3); -x_87 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_box(0); -x_89 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_87, x_88, x_11, x_12, x_13, x_14, x_15); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_11, x_19); lean_dec(x_11); -x_90 = !lean_is_exclusive(x_89); -if (x_90 == 0) -{ -return x_89; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_89, 0); -x_92 = lean_ctor_get(x_89, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_89); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -else -{ -x_60 = x_15; -goto block_78; -} -block_59: -{ -uint8_t x_25; -x_25 = lean_nat_dec_lt(x_7, x_21); +x_21 = lean_nat_sub(x_10, x_20); +x_22 = lean_nat_sub(x_21, x_19); +lean_dec(x_21); +x_23 = l_Lean_Expr_Inhabited; +x_24 = lean_array_get(x_23, x_5, x_22); +x_25 = lean_nat_dec_eq(x_22, x_8); if (x_25 == 0) { -lean_dec(x_23); -lean_dec(x_21); -x_10 = x_19; -x_15 = x_24; +uint8_t x_26; +x_26 = lean_expr_eqv(x_24, x_9); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_box(0); +lean_inc(x_12); +lean_inc(x_4); +lean_inc(x_1); +lean_inc(x_2); +lean_inc(x_6); +lean_inc(x_9); +x_28 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_27, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_22); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_11 = x_20; +x_16 = x_29; goto _start; } else { -uint8_t x_27; -x_27 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_21, x_6); -if (x_27 == 0) +uint8_t x_31; +lean_dec(x_20); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -lean_dec(x_23); -lean_dec(x_21); -x_10 = x_19; -x_15 = x_24; -goto _start; +return x_28; } else { -uint8_t x_29; -x_29 = l_Lean_Expr_isFVar(x_23); -if (x_29 == 0) -{ -lean_dec(x_23); -lean_dec(x_21); -x_10 = x_19; -x_15 = x_24; -goto _start; -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_Expr_fvarId_x21(x_8); -lean_inc(x_11); -x_32 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_31, x_11, x_12, x_13, x_14, x_24); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_32, 0); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Expr_fvarId_x21(x_23); -lean_dec(x_23); -lean_inc(x_5); -x_36 = l_Lean_MetavarContext_localDeclDependsOn(x_5, x_33, x_35); -lean_dec(x_35); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) -{ -lean_dec(x_21); -x_10 = x_19; -x_15 = x_34; -goto _start; +lean_inc(x_32); +lean_dec(x_28); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} } else { -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; lean_object* x_49; lean_object* x_50; uint8_t x_51; -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_3); -x_39 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_39, 0, x_8); -x_40 = l_Lean_throwUnknownConstant___rarg___closed__5; +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; lean_object* x_45; uint8_t x_46; +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_20); +lean_dec(x_6); +x_35 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_35, 0, x_9); +x_36 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2; +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_indentExpr(x_4); x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3; +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); -x_44 = lean_nat_add(x_21, x_18); -lean_dec(x_21); -x_45 = l_Nat_repr(x_44); -x_46 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_47); -x_49 = lean_box(0); -x_50 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_48, x_49, x_11, x_12, x_13, x_14, x_34); -lean_dec(x_11); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) +x_44 = lean_box(0); +x_45 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_43, x_44, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_12); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -return x_50; +return x_45; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_50, 0); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_45); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_box(0); +lean_inc(x_12); +lean_inc(x_4); +lean_inc(x_1); +lean_inc(x_2); +lean_inc(x_6); +lean_inc(x_9); +x_51 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_9, x_24, x_6, x_22, x_2, x_1, x_8, x_7, x_4, x_50, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_22); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_51, 1); lean_inc(x_52); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} +lean_dec(x_51); +x_11 = x_20; +x_16 = x_52; +goto _start; } else { -uint8_t x_55; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_54; +lean_dec(x_20); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_32); -if (x_55 == 0) +x_54 = !lean_is_exclusive(x_51); +if (x_54 == 0) { -return x_32; +return x_51; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_32, 0); -x_57 = lean_ctor_get(x_32, 1); -lean_inc(x_57); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_51, 0); +x_56 = lean_ctor_get(x_51, 1); lean_inc(x_56); -lean_dec(x_32); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_inc(x_55); +lean_dec(x_51); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } } -} -} -block_78: -{ -uint8_t x_61; -x_61 = lean_nat_dec_lt(x_21, x_7); -if (x_61 == 0) -{ -x_24 = x_60; -goto block_59; -} else { -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = l_Lean_Expr_fvarId_x21(x_8); -lean_inc(x_23); -lean_inc(x_5); -x_63 = l_Lean_MetavarContext_exprDependsOn(x_5, x_23, x_62); -lean_dec(x_62); -x_64 = lean_unbox(x_63); -lean_dec(x_63); -if (x_64 == 0) -{ -x_24 = x_60; -goto block_59; -} -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; uint8_t x_74; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_5); -x_65 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_65, 0, x_8); -x_66 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6; -x_69 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_indentExpr(x_3); -x_71 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_box(0); -x_73 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_71, x_72, x_11, x_12, x_13, x_14, x_60); +lean_object* x_58; lean_object* x_59; +lean_dec(x_12); lean_dec(x_11); -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) -{ -return x_73; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_73, 0); -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_73); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -} -} -else -{ -lean_object* x_94; lean_object* x_95; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_94 = lean_box(0); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_15); -return x_95; +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_16); +return x_59; } } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1() { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_array_get_size(x_1); +lean_inc(x_16); +lean_inc(x_9); +x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_16, x_16, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_16); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +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_9); +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_9); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_9); +x_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) +{ +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_17); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4417,233 +5327,176 @@ x_1 = lean_mk_string("major premise type index "); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string(" is not variable "); +x_1 = lean_mk_string(" is not variable"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5() { +static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6() { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_14) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7(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_15; lean_object* x_16; uint8_t x_17; +x_15 = l_Lean_Expr_Inhabited; +x_16 = lean_array_get(x_15, x_1, x_2); +x_17 = l_Lean_Expr_isFVar(x_16); +if (x_17 == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = lean_array_get_size(x_8); -x_15 = lean_nat_dec_lt(x_7, x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_9); +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; uint8_t x_29; lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_16); +x_19 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4; +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_indentExpr(x_6); +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +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 = lean_box(0); +x_28 = l_Lean_Meta_throwTacticEx___rarg(x_4, x_3, x_26, x_27, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_10); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +return x_28; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_28); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_box(0); +x_34 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_2, x_16, x_33, x_10, x_11, x_12, x_13, x_14); +return x_34; +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8(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, lean_object* x_14) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_array_get_size(x_9); +x_16 = lean_nat_dec_lt(x_8, x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_16 = x_8; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_13); -return x_17; +x_17 = x_9; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_54; -x_18 = lean_array_fget(x_8, x_7); -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_array_fset(x_8, x_7, x_19); -x_21 = x_18; -x_22 = lean_array_get_size(x_4); -x_54 = lean_nat_dec_le(x_22, x_21); -if (x_54 == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_array_fget(x_9, x_8); +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_array_fset(x_9, x_8, x_20); +x_22 = x_19; +x_23 = lean_array_get_size(x_5); +x_24 = lean_nat_dec_le(x_23, x_22); +lean_dec(x_23); +if (x_24 == 0) { -x_23 = x_13; -goto block_53; -} -else -{ -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_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_5); -x_55 = l_Lean_indentExpr(x_3); -x_56 = l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = lean_box(0); -x_59 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_57, x_58, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_9); -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) -{ -return x_59; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_59, 0); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_59); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -block_53: -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_39; -x_24 = l_Lean_Expr_Inhabited; -x_25 = lean_array_get(x_24, x_4, x_21); -x_39 = l_Lean_Expr_isFVar(x_25); -if (x_39 == 0) -{ -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_dec(x_22); -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_7); -lean_dec(x_5); -x_40 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_40, 0, x_25); -x_41 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_indentExpr(x_3); -x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_box(0); -x_48 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_46, x_47, x_9, x_10, x_11, x_12, x_23); -lean_dec(x_9); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -return x_48; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_48); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -else -{ -x_26 = x_23; -goto block_38; -} -block_38: -{ -lean_object* x_27; -lean_inc(x_9); -lean_inc(x_22); -lean_inc(x_25); -lean_inc(x_5); -lean_inc(x_3); +lean_object* x_25; lean_object* x_26; +x_25 = lean_box(0); +lean_inc(x_10); +lean_inc(x_6); +lean_inc(x_4); lean_inc(x_2); lean_inc(x_1); -x_27 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_21, x_25, x_22, x_22, x_9, x_10, x_11, x_12, x_26); +x_26 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2(x_5, x_22, x_1, x_2, x_3, x_4, x_6, x_7, x_25, x_10, x_11, x_12, x_13, x_14); lean_dec(x_22); -lean_dec(x_21); -if (lean_obj_tag(x_27) == 0) +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_27, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -lean_dec(x_27); +lean_dec(x_26); x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_7, x_29); -x_31 = x_25; -x_32 = lean_array_fset(x_20, x_7, x_31); -lean_dec(x_7); -x_7 = x_30; -x_8 = x_32; -x_13 = x_28; +x_30 = lean_nat_add(x_8, x_29); +x_31 = x_27; +x_32 = lean_array_fset(x_21, x_8, x_31); +lean_dec(x_8); +x_8 = x_30; +x_9 = x_32; +x_14 = x_28; goto _start; } else { uint8_t x_34; -lean_dec(x_25); -lean_dec(x_20); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_21); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_27); +x_34 = !lean_is_exclusive(x_26); if (x_34 == 0) { -return x_27; +return x_26; } else { lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_27, 0); -x_36 = lean_ctor_get(x_27, 1); +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); lean_inc(x_36); lean_inc(x_35); -lean_dec(x_27); +lean_dec(x_26); x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -4651,11 +5504,48 @@ return x_37; } } } +else +{ +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; uint8_t x_45; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_8); +lean_dec(x_6); +x_38 = l_Lean_indentExpr(x_4); +x_39 = l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_1, x_42, x_43, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_10); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +return x_44; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(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; uint8_t x_7; @@ -4686,7 +5576,15 @@ goto _start; } } } -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9(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* l_Lean_Meta_getLevel___at_Lean_Meta_induction___spec__10(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___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(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; uint8_t x_8; @@ -4718,7 +5616,24 @@ return x_14; } } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__10(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* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; lean_object* x_16; +x_11 = l_Lean_Level_Inhabited; +x_12 = lean_array_get(x_11, x_1, x_2); +x_13 = lean_array_push(x_3, x_12); +x_14 = lean_box(x_4); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, 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_10); +return x_16; +} +} +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12(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_6) == 0) @@ -4777,120 +5692,237 @@ goto _start; } else { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_5); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_5, 0); -x_32 = lean_ctor_get(x_5, 1); -x_33 = lean_ctor_get(x_13, 0); -x_34 = lean_array_get_size(x_4); -x_35 = lean_nat_dec_le(x_34, x_33); -lean_dec(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = l_Lean_Level_Inhabited; -x_37 = lean_array_get(x_36, x_4, x_33); -x_38 = lean_array_push(x_31, x_37); -lean_ctor_set(x_5, 0, x_38); -x_6 = x_30; -goto _start; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -lean_free_object(x_5); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_3); -x_40 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_41 = lean_box(0); -x_42 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_40, x_41, x_7, x_8, x_9, x_10, x_11); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -return x_42; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_42); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_47 = lean_ctor_get(x_6, 1); -x_48 = lean_ctor_get(x_5, 0); -x_49 = lean_ctor_get(x_5, 1); -lean_inc(x_49); -lean_inc(x_48); +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_29 = lean_ctor_get(x_6, 1); +x_30 = lean_ctor_get(x_5, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_5, 1); +lean_inc(x_31); lean_dec(x_5); -x_50 = lean_ctor_get(x_13, 0); -x_51 = lean_array_get_size(x_4); -x_52 = lean_nat_dec_le(x_51, x_50); -lean_dec(x_51); -if (x_52 == 0) +x_32 = lean_ctor_get(x_13, 0); +x_33 = lean_array_get_size(x_4); +x_34 = lean_nat_dec_le(x_33, x_32); +lean_dec(x_33); +if (x_34 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = l_Lean_Level_Inhabited; -x_54 = lean_array_get(x_53, x_4, x_50); -x_55 = lean_array_push(x_48, x_54); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_49); -x_5 = x_56; -x_6 = x_47; +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_box(0); +x_36 = lean_unbox(x_31); +lean_dec(x_31); +x_37 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(x_4, x_32, x_30, x_36, x_35, x_7, x_8, x_9, x_10, x_11); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_5 = x_38; +x_6 = x_29; +x_11 = x_39; goto _start; } else { -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_dec(x_49); -lean_dec(x_48); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +lean_dec(x_31); +lean_dec(x_30); lean_dec(x_3); -x_58 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5; -x_59 = lean_box(0); -x_60 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_58, x_59, x_7, x_8, x_9, x_10, x_11); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_63 = x_60; -} else { - lean_dec_ref(x_60); - x_63 = lean_box(0); +x_41 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5; +x_42 = lean_box(0); +x_43 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_2, x_41, x_42, x_7, x_8, x_9, x_10, x_11); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +return x_43; } -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_63; -} -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1() { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +lean_inc(x_10); +lean_inc(x_1); +x_15 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_1, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_mkApp(x_2, x_16); +x_19 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize(x_3, x_4, x_5, x_6, x_7, x_1, x_8, x_18, x_10, x_11, x_12, x_13, x_17); +lean_dec(x_1); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = l_Array_toList___rarg(x_1); +x_20 = l_Lean_mkConst(x_2, x_19); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_3); +x_21 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams(x_3, x_4, x_5, x_20, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*8); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__1(x_6, x_23, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_14, x_15, x_16, x_17, x_24); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_dec(x_21); +x_28 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_10); +x_29 = lean_array_push(x_28, x_10); +lean_inc(x_14); +x_30 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_29, x_12, x_14, x_15, x_16, x_17, x_27); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__1(x_6, x_26, x_3, x_7, x_8, x_9, x_10, x_11, x_31, x_14, x_15, x_16, x_17, x_32); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_3); +x_34 = !lean_is_exclusive(x_30); +if (x_34 == 0) +{ +return x_30; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_30, 0); +x_36 = lean_ctor_get(x_30, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_30); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_3); +x_38 = !lean_is_exclusive(x_21); +if (x_38 == 0) +{ +return x_21; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_21, 0); +x_40 = lean_ctor_get(x_21, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_21); +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; +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1() { _start: { lean_object* x_1; @@ -4898,27 +5930,27 @@ x_1 = lean_mk_string("major premise is not of the form (C ...)"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2; 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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4() { _start: { lean_object* x_1; @@ -4926,27 +5958,16 @@ x_1 = lean_mk_string("recursor '"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5; -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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6() { _start: { lean_object* x_1; @@ -4954,93 +5975,117 @@ x_1 = lean_mk_string("' can only eliminate into Prop"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9() { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13(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, 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) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { -_start: -{ -switch (lean_obj_tag(x_14)) { +switch (lean_obj_tag(x_13)) { case 4: { -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_dec(x_16); -x_22 = lean_ctor_get(x_14, 1); -lean_inc(x_22); -lean_dec(x_14); -x_23 = l_List_redLength___main___rarg(x_22); -x_24 = lean_mk_empty_array_with_capacity(x_23); -lean_dec(x_23); -x_25 = l_List_toArrayAux___main___rarg(x_22, x_24); -x_26 = lean_ctor_get(x_4, 2); -x_27 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; -lean_inc(x_13); -lean_inc(x_8); -lean_inc(x_3); -x_28 = l_List_foldlM___main___at_Lean_Meta_induction___spec__10(x_3, x_8, x_13, x_25, x_27, x_26, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_25); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_28, 1); -lean_inc(x_32); -lean_dec(x_28); -x_33 = lean_ctor_get(x_29, 0); -lean_inc(x_33); -lean_dec(x_29); -x_34 = l_Lean_Level_isZero(x_13); +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_dec(x_15); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); lean_dec(x_13); -if (x_34 == 0) +x_22 = l_List_redLength___main___rarg(x_21); +x_23 = lean_mk_empty_array_with_capacity(x_22); +lean_dec(x_22); +x_24 = l_List_toArrayAux___main___rarg(x_21, x_23); +x_25 = lean_ctor_get(x_4, 2); +x_26 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_3); +x_27 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12(x_3, x_7, x_12, x_24, x_26, x_25, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_47; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_47 = lean_unbox(x_31); +lean_dec(x_31); +if (x_47 == 0) +{ +uint8_t x_48; +x_48 = l_Lean_Level_isZero(x_12); +lean_dec(x_12); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = 1; +x_32 = x_49; +goto block_46; +} +else +{ +uint8_t x_50; +x_50 = 0; +x_32 = x_50; +goto block_46; +} +} +else +{ +uint8_t x_51; +lean_dec(x_12); +x_51 = 0; +x_32 = x_51; +goto block_46; +} +block_46: +{ +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_3); +x_33 = lean_box(0); +x_34 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2(x_30, x_1, x_7, x_14, x_5, x_9, x_2, x_4, x_6, x_10, x_8, x_11, x_33, x_16, x_17, x_18, x_19, x_29); +lean_dec(x_14); +lean_dec(x_30); +return x_34; +} +else { 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; -lean_dec(x_33); -lean_dec(x_15); -lean_dec(x_12); +lean_dec(x_30); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); +lean_dec(x_8); x_35 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_35, 0, x_1); -x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; +x_36 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9; +x_38 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7; 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 = lean_box(0); -x_41 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_8, x_39, x_40, x_17, x_18, x_19, x_20, x_32); -lean_dec(x_20); +x_41 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_7, x_39, x_40, x_16, x_17, x_18, x_19, x_29); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); x_42 = !lean_is_exclusive(x_41); if (x_42 == 0) { @@ -5060,71 +6105,926 @@ lean_ctor_set(x_45, 1, x_44); return x_45; } } -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_3); -x_46 = l_Array_toList___rarg(x_33); -lean_dec(x_33); -x_47 = l_Lean_mkConst(x_1, x_46); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_8); -x_48 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main(x_8, x_15, x_5, x_47, x_17, x_18, x_19, x_20, x_32); -lean_dec(x_15); -if (lean_obj_tag(x_48) == 0) -{ -if (x_6 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -lean_inc(x_17); -lean_inc(x_10); -x_51 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_10, x_12, x_17, x_18, x_19, x_20, x_50); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = l_Lean_mkApp(x_49, x_52); -x_55 = l___private_Lean_Meta_Tactic_Induction_5__finalize(x_8, x_2, x_4, x_7, x_11, x_10, x_9, x_54, x_17, x_18, x_19, x_20, x_53); -lean_dec(x_10); -return x_55; +} } else { -uint8_t x_56; -lean_dec(x_49); -lean_dec(x_20); +uint8_t x_52; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_56 = !lean_is_exclusive(x_51); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_27); +if (x_52 == 0) +{ +return x_27; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_27, 0); +x_54 = lean_ctor_get(x_27, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_27); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +case 5: +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_56 = lean_ctor_get(x_13, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_13, 1); +lean_inc(x_57); +lean_dec(x_13); +x_58 = lean_array_set(x_14, x_15, x_57); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_sub(x_15, x_59); +lean_dec(x_15); +x_13 = x_56; +x_14 = x_58; +x_15 = x_60; +goto _start; +} +default: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3; +x_63 = lean_box(0); +x_64 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_7, x_62, x_63, x_16, x_17, x_18, x_19, x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +return x_64; +} +} +} +} +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14(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; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_8 = lean_ctor_get(x_5, 3); +x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_st_ref_take(x_6, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 3); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_10); +lean_inc(x_8); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Std_PersistentArray_push___rarg(x_19, x_21); +lean_ctor_set(x_14, 0, x_22); +x_23 = lean_st_ref_set(x_6, x_13, x_15); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +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_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 +{ +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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_30 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +x_31 = lean_ctor_get(x_14, 0); +lean_inc(x_31); +lean_dec(x_14); +x_32 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_32, 0, x_1); +lean_ctor_set(x_32, 1, x_10); +lean_inc(x_8); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_8); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Std_PersistentArray_push___rarg(x_31, x_33); +x_35 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_30); +lean_ctor_set(x_13, 3, x_35); +x_36 = lean_st_ref_set(x_6, x_13, x_15); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +x_39 = lean_box(0); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t 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; +x_41 = lean_ctor_get(x_13, 0); +x_42 = lean_ctor_get(x_13, 1); +x_43 = lean_ctor_get(x_13, 2); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_13); +x_44 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +x_45 = lean_ctor_get(x_14, 0); +lean_inc(x_45); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_46 = x_14; +} else { + lean_dec_ref(x_14); + x_46 = lean_box(0); +} +x_47 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_10); +lean_inc(x_8); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_8); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Std_PersistentArray_push___rarg(x_45, x_48); +if (lean_is_scalar(x_46)) { + x_50 = lean_alloc_ctor(0, 1, 1); +} else { + x_50 = x_46; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set_uint8(x_50, sizeof(void*)*1, x_44); +x_51 = lean_alloc_ctor(0, 4, 0); +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); +x_52 = lean_st_ref_set(x_6, x_51, x_15); +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_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(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; uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_4, 0); +x_8 = l_Lean_checkTraceOption(x_7, x_1); +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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, 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) { +_start: +{ +lean_object* x_19; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_19 = l___private_Lean_Meta_InferType_4__getLevelImp(x_13, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(x_20, x_14, x_15, x_16, x_17, 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); +lean_dec(x_22); +lean_inc(x_14); +x_25 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_1, x_14, x_15, x_16, x_17, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_LocalDecl_type(x_26); +lean_dec(x_26); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_28); +x_29 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_28, x_2, x_14, x_15, x_16, x_17, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(x_3, x_28, x_14, x_15, x_16, x_17, x_31); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +return x_32; +} +else +{ +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_dec(x_28); +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_Expr_getAppNumArgsAux___main(x_34, x_35); +x_37 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_36); +x_38 = lean_mk_array(x_36, x_37); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_sub(x_36, x_39); +lean_dec(x_36); +x_41 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13(x_4, x_5, x_6, x_7, x_8, x_9, x_3, x_10, x_11, x_12, x_13, x_23, x_34, x_38, x_40, x_14, x_15, x_16, x_17, x_33); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_28); +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_42 = !lean_is_exclusive(x_29); +if (x_42 == 0) +{ +return x_29; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_29, 0); +x_44 = lean_ctor_get(x_29, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_29); +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; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_46 = !lean_is_exclusive(x_25); +if (x_46 == 0) +{ +return x_25; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_25, 0); +x_48 = lean_ctor_get(x_25, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_25); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_50 = !lean_is_exclusive(x_19); +if (x_50 == 0) +{ +return x_19; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_19, 0); +x_52 = lean_ctor_get(x_19, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_19); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +x_2 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("after revert&intro\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +lean_inc(x_1); +x_16 = x_1; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_17, x_16); +x_19 = x_18; +x_20 = lean_array_push(x_19, x_2); +x_21 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_22 = l_Lean_Meta_revert(x_3, x_20, x_21, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_22) == 0) +{ +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; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_array_get_size(x_1); +x_28 = lean_box(0); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_29 = l_Lean_Meta_introNCore(x_26, x_27, x_28, x_21, x_11, x_12, x_13, x_14, x_24); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +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_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_34 = l_Lean_Meta_intro1Core(x_33, x_21, x_11, x_12, x_13, x_14, x_31); +if (lean_obj_tag(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; uint8_t x_51; lean_object* x_52; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_box(0); +x_40 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(x_1, x_32, x_1, x_17, x_39); +lean_dec(x_1); +x_62 = lean_st_ref_get(x_14, x_36); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_63, 3); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_ctor_get_uint8(x_64, sizeof(void*)*1); +lean_dec(x_64); +if (x_65 == 0) +{ +lean_object* x_66; uint8_t x_67; +x_66 = lean_ctor_get(x_62, 1); +lean_inc(x_66); +lean_dec(x_62); +x_67 = 0; +x_51 = x_67; +x_52 = x_66; +goto block_61; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_68 = lean_ctor_get(x_62, 1); +lean_inc(x_68); +lean_dec(x_62); +x_69 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; +x_70 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(x_69, x_11, x_12, x_13, x_14, x_68); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_unbox(x_71); +lean_dec(x_71); +x_51 = x_73; +x_52 = x_72; +goto block_61; +} +block_50: +{ +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; +x_42 = x_32; +x_43 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_17, x_42); +x_44 = x_43; +lean_inc(x_37); +x_45 = l_Lean_mkFVar(x_37); +lean_inc(x_38); +x_46 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); +lean_closure_set(x_46, 0, x_38); +lean_inc(x_38); +x_47 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed), 18, 12); +lean_closure_set(x_47, 0, x_37); +lean_closure_set(x_47, 1, x_4); +lean_closure_set(x_47, 2, x_38); +lean_closure_set(x_47, 3, x_5); +lean_closure_set(x_47, 4, x_6); +lean_closure_set(x_47, 5, x_7); +lean_closure_set(x_47, 6, x_8); +lean_closure_set(x_47, 7, x_9); +lean_closure_set(x_47, 8, x_25); +lean_closure_set(x_47, 9, x_40); +lean_closure_set(x_47, 10, x_44); +lean_closure_set(x_47, 11, x_45); +x_48 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_48, 0, x_46); +lean_closure_set(x_48, 1, x_47); +x_49 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_38, x_48, x_11, x_12, x_13, x_14, x_41); +return x_49; +} +block_61: +{ +if (x_51 == 0) +{ +x_41 = x_52; +goto block_50; +} +else +{ +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_inc(x_38); +x_53 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_53, 0, x_38); +x_54 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3; +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 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; +x_59 = l_Lean_addTrace___at_Lean_Meta_induction___spec__14(x_58, x_57, x_11, x_12, x_13, x_14, x_52); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_41 = x_60; +goto block_50; +} +} +} +else +{ +uint8_t x_74; +lean_dec(x_32); +lean_dec(x_25); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(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_1); +x_74 = !lean_is_exclusive(x_34); +if (x_74 == 0) +{ +return x_34; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_34, 0); +x_76 = lean_ctor_get(x_34, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_34); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_25); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(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_1); +x_78 = !lean_is_exclusive(x_29); +if (x_78 == 0) +{ +return x_29; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_29, 0); +x_80 = lean_ctor_get(x_29, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_29); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(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_1); +x_82 = !lean_is_exclusive(x_22); +if (x_82 == 0) +{ +return x_22; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_22, 0); +x_84 = lean_ctor_get(x_22, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_22); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' does not support dependent elimination, but conclusion depends on major premise"); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16(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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +if (lean_obj_tag(x_9) == 5) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_9, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_dec(x_9); +x_19 = lean_array_set(x_10, x_11, x_18); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_11, x_20); +lean_dec(x_11); +x_9 = x_17; +x_10 = x_19; +x_11 = x_21; +goto _start; +} +else +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_11); +lean_dec(x_9); +x_23 = lean_ctor_get(x_6, 5); +lean_inc(x_23); +lean_inc(x_8); +lean_inc(x_5); +lean_inc(x_1); +x_24 = l_List_forM___main___at_Lean_Meta_induction___spec__5(x_1, x_5, x_8, x_10, x_23, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_24) == 0) +{ +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; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_get(x_13, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_ctor_get(x_6, 6); +lean_inc(x_30); +x_31 = l_List_redLength___main___rarg(x_30); +x_32 = lean_mk_empty_array_with_capacity(x_31); +lean_dec(x_31); +lean_inc(x_30); +x_33 = l_List_toArrayAux___main___rarg(x_30, x_32); +x_34 = x_33; +x_35 = lean_unsigned_to_nat(0u); +lean_inc(x_29); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_36 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___boxed), 14, 9); +lean_closure_set(x_36, 0, x_1); +lean_closure_set(x_36, 1, x_5); +lean_closure_set(x_36, 2, x_6); +lean_closure_set(x_36, 3, x_8); +lean_closure_set(x_36, 4, x_10); +lean_closure_set(x_36, 5, x_29); +lean_closure_set(x_36, 6, x_30); +lean_closure_set(x_36, 7, x_35); +lean_closure_set(x_36, 8, x_34); +x_37 = x_36; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_38 = lean_apply_5(x_37, x_12, x_13, x_14, x_15, x_28); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +lean_inc(x_1); +x_41 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_40); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +x_42 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = l_Lean_MetavarContext_exprDependsOn(x_29, x_43, x_2); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +x_48 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_47, x_12, x_13, x_14, x_15, x_44); +return x_48; +} +else +{ +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; uint8_t x_56; +lean_dec(x_39); +lean_dec(x_23); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_49 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_49, 0, x_3); +x_50 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5; +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 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_box(0); +x_55 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_53, x_54, x_12, x_13, x_14, x_15, x_44); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_56 = !lean_is_exclusive(x_55); if (x_56 == 0) { -return x_51; +return x_55; } else { lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_51, 0); -x_58 = lean_ctor_get(x_51, 1); +x_57 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_55, 1); lean_inc(x_58); lean_inc(x_57); -lean_dec(x_51); +lean_dec(x_55); x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_57); lean_ctor_set(x_59, 1, x_58); @@ -5134,6220 +7034,123 @@ return x_59; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_60 = lean_ctor_get(x_48, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_29); +x_60 = lean_ctor_get(x_41, 1); lean_inc(x_60); -x_61 = lean_ctor_get(x_48, 1); -lean_inc(x_61); -lean_dec(x_48); -x_62 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_11); -x_63 = lean_array_push(x_62, x_11); -lean_inc(x_17); -x_64 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_63, x_12, x_17, x_18, x_19, x_20, x_61); -if (lean_obj_tag(x_64) == 0) +lean_dec(x_41); +x_61 = lean_box(0); +x_62 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(x_39, x_2, x_1, x_7, x_3, x_4, x_5, x_6, x_23, x_61, x_12, x_13, x_14, x_15, x_60); +return x_62; +} +} +else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_64, 0); +uint8_t x_63; +lean_dec(x_39); +lean_dec(x_29); +lean_dec(x_23); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +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_63 = !lean_is_exclusive(x_41); +if (x_63 == 0) +{ +return x_41; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_41, 0); +x_65 = lean_ctor_get(x_41, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -lean_inc(x_17); -lean_inc(x_10); -x_67 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_10, x_65, x_17, x_18, x_19, x_20, x_66); -if (lean_obj_tag(x_67) == 0) +lean_inc(x_64); +lean_dec(x_41); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +uint8_t x_67; +lean_dec(x_29); +lean_dec(x_23); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +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_67 = !lean_is_exclusive(x_38); +if (x_67 == 0) +{ +return x_38; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_38, 0); +x_69 = lean_ctor_get(x_38, 1); lean_inc(x_69); -lean_dec(x_67); -x_70 = l_Lean_mkApp(x_60, x_68); -x_71 = l___private_Lean_Meta_Tactic_Induction_5__finalize(x_8, x_2, x_4, x_7, x_11, x_10, x_9, x_70, x_17, x_18, x_19, x_20, x_69); -lean_dec(x_10); -return x_71; +lean_inc(x_68); +lean_dec(x_38); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} } else { -uint8_t x_72; -lean_dec(x_60); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_11); +uint8_t x_71; +lean_dec(x_23); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_8); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) +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_71 = !lean_is_exclusive(x_24); +if (x_71 == 0) { -return x_67; +return x_24; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_67, 0); -x_74 = lean_ctor_get(x_67, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_24, 0); +x_73 = lean_ctor_get(x_24, 1); lean_inc(x_73); -lean_dec(x_67); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_60); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_76 = !lean_is_exclusive(x_64); -if (x_76 == 0) -{ -return x_64; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_64, 0); -x_78 = lean_ctor_get(x_64, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_64); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; -} -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_80 = !lean_is_exclusive(x_48); -if (x_80 == 0) -{ -return x_48; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_48, 0); -x_82 = lean_ctor_get(x_48, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_48); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; -} -} -} -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_13); -lean_dec(x_3); -x_84 = lean_ctor_get(x_28, 1); -lean_inc(x_84); -lean_dec(x_28); -x_85 = lean_ctor_get(x_29, 0); -lean_inc(x_85); -lean_dec(x_29); -x_86 = l_Array_toList___rarg(x_85); -lean_dec(x_85); -x_87 = l_Lean_mkConst(x_1, x_86); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_8); -x_88 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main(x_8, x_15, x_5, x_87, x_17, x_18, x_19, x_20, x_84); -lean_dec(x_15); -if (lean_obj_tag(x_88) == 0) -{ -if (x_6 == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -lean_inc(x_17); -lean_inc(x_10); -x_91 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_10, x_12, x_17, x_18, x_19, x_20, x_90); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_94 = l_Lean_mkApp(x_89, x_92); -x_95 = l___private_Lean_Meta_Tactic_Induction_5__finalize(x_8, x_2, x_4, x_7, x_11, x_10, x_9, x_94, x_17, x_18, x_19, x_20, x_93); -lean_dec(x_10); -return x_95; -} -else -{ -uint8_t x_96; -lean_dec(x_89); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_96 = !lean_is_exclusive(x_91); -if (x_96 == 0) -{ -return x_91; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_91, 0); -x_98 = lean_ctor_get(x_91, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_91); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; -} -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_100 = lean_ctor_get(x_88, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_88, 1); -lean_inc(x_101); -lean_dec(x_88); -x_102 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_11); -x_103 = lean_array_push(x_102, x_11); -lean_inc(x_17); -x_104 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_103, x_12, x_17, x_18, x_19, x_20, x_101); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -lean_inc(x_17); -lean_inc(x_10); -x_107 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_10, x_105, x_17, x_18, x_19, x_20, x_106); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = l_Lean_mkApp(x_100, x_108); -x_111 = l___private_Lean_Meta_Tactic_Induction_5__finalize(x_8, x_2, x_4, x_7, x_11, x_10, x_9, x_110, x_17, x_18, x_19, x_20, x_109); -lean_dec(x_10); -return x_111; -} -else -{ -uint8_t x_112; -lean_dec(x_100); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_112 = !lean_is_exclusive(x_107); -if (x_112 == 0) -{ -return x_107; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_107, 0); -x_114 = lean_ctor_get(x_107, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_107); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -else -{ -uint8_t x_116; -lean_dec(x_100); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_116 = !lean_is_exclusive(x_104); -if (x_116 == 0) -{ -return x_104; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_104, 0); -x_118 = lean_ctor_get(x_104, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_104); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -} -} -else -{ -uint8_t x_120; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_120 = !lean_is_exclusive(x_88); -if (x_120 == 0) -{ -return x_88; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_88, 0); -x_122 = lean_ctor_get(x_88, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_88); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; -} -} -} -} -else -{ -uint8_t x_124; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); -x_124 = !lean_is_exclusive(x_28); -if (x_124 == 0) -{ -return x_28; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_28, 0); -x_126 = lean_ctor_get(x_28, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_28); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; -} -} -} -case 5: -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_128 = lean_ctor_get(x_14, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_14, 1); -lean_inc(x_129); -lean_dec(x_14); -x_130 = lean_array_set(x_15, x_16, x_129); -x_131 = lean_unsigned_to_nat(1u); -x_132 = lean_nat_sub(x_16, x_131); -lean_dec(x_16); -x_14 = x_128; -x_15 = x_130; -x_16 = x_132; -goto _start; -} -default: -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_1); -x_134 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3; -x_135 = lean_box(0); -x_136 = l_Lean_Meta_throwTacticEx___rarg(x_3, x_8, x_134, x_135, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -return x_136; -} -} -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("after revert&intro"); -return x_1; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2; -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_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3; -x_2 = l_Lean_MessageData_ofList___closed__3; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_3, 0, x_1); -x_4 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4; -x_5 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -return x_5; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___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, uint8_t 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) { -_start: -{ -lean_object* x_20; -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -x_20 = l___private_Lean_Meta_InferType_4__getLevelImp(x_14, x_15, x_16, x_17, x_18, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -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); -x_23 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9(x_21, x_15, x_16, x_17, x_18, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -lean_inc(x_15); -x_26 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_15, x_16, x_17, x_18, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_Lean_LocalDecl_type(x_27); -lean_dec(x_27); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_29); -x_30 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_29, x_2, x_15, x_16, x_17, x_18, x_28); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; +lean_inc(x_72); lean_dec(x_24); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_4); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg(x_3, x_29, x_15, x_16, x_17, x_18, x_32); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -return x_33; -} -else -{ -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_dec(x_29); -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -x_35 = lean_ctor_get(x_31, 0); -lean_inc(x_35); -lean_dec(x_31); -x_36 = lean_unsigned_to_nat(0u); -x_37 = l_Lean_Expr_getAppNumArgsAux___main(x_35, x_36); -x_38 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_37); -x_39 = lean_mk_array(x_37, x_38); -x_40 = lean_unsigned_to_nat(1u); -x_41 = lean_nat_sub(x_37, x_40); -lean_dec(x_37); -x_42 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_3, x_11, x_12, x_13, x_14, x_24, x_35, x_39, x_41, x_15, x_16, x_17, x_18, x_34); -return x_42; -} -} -else -{ -uint8_t x_43; -lean_dec(x_29); -lean_dec(x_24); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) -{ -return x_30; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_30); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -uint8_t x_47; -lean_dec(x_24); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_47 = !lean_is_exclusive(x_26); -if (x_47 == 0) -{ -return x_26; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_26, 0); -x_49 = lean_ctor_get(x_26, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_26); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_51 = !lean_is_exclusive(x_20); -if (x_51 == 0) -{ -return x_20; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_20, 0); -x_53 = lean_ctor_get(x_20, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_20); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -x_2 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' does not support dependent elimination, but conclusion depends on major premise"); -return x_1; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12(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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { -_start: -{ -switch (lean_obj_tag(x_9)) { -case 0: -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_11); -lean_dec(x_9); -x_17 = lean_ctor_get(x_6, 5); -lean_inc(x_17); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_18 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_17, x_12, x_13, x_14, x_15, x_16); -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; 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; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_st_ref_get(x_13, 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); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_6, 6); -lean_inc(x_24); -x_25 = l_List_redLength___main___rarg(x_24); -x_26 = lean_mk_empty_array_with_capacity(x_25); -lean_dec(x_25); -lean_inc(x_24); -x_27 = l_List_toArrayAux___main___rarg(x_24, x_26); -x_28 = x_27; -x_29 = lean_unsigned_to_nat(0u); -lean_inc(x_23); -lean_inc(x_5); -lean_inc(x_1); -x_30 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_30, 0, x_1); -lean_closure_set(x_30, 1, x_5); -lean_closure_set(x_30, 2, x_8); -lean_closure_set(x_30, 3, x_10); -lean_closure_set(x_30, 4, x_23); -lean_closure_set(x_30, 5, x_24); -lean_closure_set(x_30, 6, x_29); -lean_closure_set(x_30, 7, x_28); -x_31 = x_30; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_32 = lean_apply_5(x_31, x_12, x_13, x_14, x_15, x_22); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -lean_inc(x_1); -x_35 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_38 == 0) -{ -lean_object* x_90; uint8_t x_91; -x_90 = l_Lean_MetavarContext_exprDependsOn(x_23, x_36, x_2); -x_91 = lean_unbox(x_90); -lean_dec(x_90); -if (x_91 == 0) -{ -x_39 = x_37; -goto block_89; -} -else -{ -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; uint8_t x_99; -lean_dec(x_33); -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_92 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_92, 0, x_3); -x_93 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_94 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -x_95 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_96 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_box(0); -x_98 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_96, x_97, x_12, x_13, x_14, x_15, x_37); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -return x_98; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_98); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; -} -} -} -else -{ -lean_dec(x_36); -lean_dec(x_23); -x_39 = x_37; -goto block_89; -} -block_89: -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; -lean_inc(x_33); -x_40 = x_33; -x_41 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_29, x_40); -x_42 = x_41; -x_43 = lean_array_push(x_42, x_2); -x_44 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_45 = l_Lean_Meta_revert(x_1, x_43, x_44, x_12, x_13, x_14, x_15, x_39); -if (lean_obj_tag(x_45) == 0) -{ -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_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_ctor_get(x_46, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = lean_array_get_size(x_33); -x_51 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_52 = l_Lean_Meta_introNCore(x_49, x_50, x_51, x_44, x_12, x_13, x_14, x_15, x_47); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -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_ctor_get(x_53, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_dec(x_53); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_57 = l_Lean_Meta_intro1Core(x_56, x_44, x_12, x_13, x_14, x_15, x_54); -if (lean_obj_tag(x_57) == 0) -{ -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; lean_object* x_76; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_box(0); -x_63 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_33, x_55, x_33, x_29, x_62); -lean_dec(x_33); -lean_inc(x_61); -x_64 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_64, 0, x_61); -x_65 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_66 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_65, x_64, x_12, x_13, x_14, x_15, x_59); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = x_55; -x_69 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_29, x_68); -x_70 = x_69; -lean_inc(x_60); -x_71 = l_Lean_mkFVar(x_60); -lean_inc(x_61); -x_72 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_72, 0, x_61); -x_73 = lean_box(x_38); -lean_inc(x_61); -x_74 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_74, 0, x_60); -lean_closure_set(x_74, 1, x_7); -lean_closure_set(x_74, 2, x_61); -lean_closure_set(x_74, 3, x_3); -lean_closure_set(x_74, 4, x_4); -lean_closure_set(x_74, 5, x_5); -lean_closure_set(x_74, 6, x_6); -lean_closure_set(x_74, 7, x_17); -lean_closure_set(x_74, 8, x_73); -lean_closure_set(x_74, 9, x_48); -lean_closure_set(x_74, 10, x_63); -lean_closure_set(x_74, 11, x_70); -lean_closure_set(x_74, 12, x_71); -x_75 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_75, 0, x_72); -lean_closure_set(x_75, 1, x_74); -x_76 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_61, x_75, x_12, x_13, x_14, x_15, x_67); -return x_76; -} -else -{ -uint8_t x_77; -lean_dec(x_55); -lean_dec(x_48); -lean_dec(x_33); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_77 = !lean_is_exclusive(x_57); -if (x_77 == 0) -{ -return x_57; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_57, 0); -x_79 = lean_ctor_get(x_57, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_57); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_48); -lean_dec(x_33); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_81 = !lean_is_exclusive(x_52); -if (x_81 == 0) -{ -return x_52; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_52, 0); -x_83 = lean_ctor_get(x_52, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_52); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; -} -} -} -else -{ -uint8_t x_85; -lean_dec(x_33); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_85 = !lean_is_exclusive(x_45); -if (x_85 == 0) -{ -return x_45; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_45, 0); -x_87 = lean_ctor_get(x_45, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_45); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -} -else -{ -uint8_t x_103; -lean_dec(x_33); -lean_dec(x_23); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_is_exclusive(x_35); -if (x_103 == 0) -{ -return x_35; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_35, 0); -x_105 = lean_ctor_get(x_35, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_35); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; -} -} -} -else -{ -uint8_t x_107; -lean_dec(x_23); -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_107 = !lean_is_exclusive(x_32); -if (x_107 == 0) -{ -return x_32; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_32, 0); -x_109 = lean_ctor_get(x_32, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_32); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; -} -} -} -else -{ -uint8_t x_111; -lean_dec(x_17); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_111 = !lean_is_exclusive(x_18); -if (x_111 == 0) -{ -return x_18; -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_18, 0); -x_113 = lean_ctor_get(x_18, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_18); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; -} -} -} -case 1: -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_11); -lean_dec(x_9); -x_115 = lean_ctor_get(x_6, 5); -lean_inc(x_115); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_116 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_115, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; lean_object* x_118; 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; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = lean_st_ref_get(x_13, x_117); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = lean_ctor_get(x_119, 0); -lean_inc(x_121); -lean_dec(x_119); -x_122 = lean_ctor_get(x_6, 6); -lean_inc(x_122); -x_123 = l_List_redLength___main___rarg(x_122); -x_124 = lean_mk_empty_array_with_capacity(x_123); -lean_dec(x_123); -lean_inc(x_122); -x_125 = l_List_toArrayAux___main___rarg(x_122, x_124); -x_126 = x_125; -x_127 = lean_unsigned_to_nat(0u); -lean_inc(x_121); -lean_inc(x_5); -lean_inc(x_1); -x_128 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_128, 0, x_1); -lean_closure_set(x_128, 1, x_5); -lean_closure_set(x_128, 2, x_8); -lean_closure_set(x_128, 3, x_10); -lean_closure_set(x_128, 4, x_121); -lean_closure_set(x_128, 5, x_122); -lean_closure_set(x_128, 6, x_127); -lean_closure_set(x_128, 7, x_126); -x_129 = x_128; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_130 = lean_apply_5(x_129, x_12, x_13, x_14, x_15, x_120); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -lean_inc(x_1); -x_133 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_132); -if (lean_obj_tag(x_133) == 0) -{ -lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_136 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_136 == 0) -{ -lean_object* x_188; uint8_t x_189; -x_188 = l_Lean_MetavarContext_exprDependsOn(x_121, x_134, x_2); -x_189 = lean_unbox(x_188); -lean_dec(x_188); -if (x_189 == 0) -{ -x_137 = x_135; -goto block_187; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; -lean_dec(x_131); -lean_dec(x_115); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_190 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_190, 0, x_3); -x_191 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_192 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_190); -x_193 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_194 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -x_195 = lean_box(0); -x_196 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_194, x_195, x_12, x_13, x_14, x_15, x_135); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_197 = !lean_is_exclusive(x_196); -if (x_197 == 0) -{ -return x_196; -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_196, 0); -x_199 = lean_ctor_get(x_196, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_196); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; -} -} -} -else -{ -lean_dec(x_134); -lean_dec(x_121); -x_137 = x_135; -goto block_187; -} -block_187: -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; -lean_inc(x_131); -x_138 = x_131; -x_139 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_127, x_138); -x_140 = x_139; -x_141 = lean_array_push(x_140, x_2); -x_142 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_143 = l_Lean_Meta_revert(x_1, x_141, x_142, x_12, x_13, x_14, x_15, x_137); -if (lean_obj_tag(x_143) == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_144, 1); -lean_inc(x_147); -lean_dec(x_144); -x_148 = lean_array_get_size(x_131); -x_149 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_150 = l_Lean_Meta_introNCore(x_147, x_148, x_149, x_142, x_12, x_13, x_14, x_15, x_145); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -x_153 = lean_ctor_get(x_151, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_154); -lean_dec(x_151); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_155 = l_Lean_Meta_intro1Core(x_154, x_142, x_12, x_13, x_14, x_15, x_152); -if (lean_obj_tag(x_155) == 0) -{ -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; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = lean_ctor_get(x_156, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_dec(x_156); -x_160 = lean_box(0); -x_161 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_131, x_153, x_131, x_127, x_160); -lean_dec(x_131); -lean_inc(x_159); -x_162 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_162, 0, x_159); -x_163 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_164 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_163, x_162, x_12, x_13, x_14, x_15, x_157); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec(x_164); -x_166 = x_153; -x_167 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_127, x_166); -x_168 = x_167; -lean_inc(x_158); -x_169 = l_Lean_mkFVar(x_158); -lean_inc(x_159); -x_170 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_170, 0, x_159); -x_171 = lean_box(x_136); -lean_inc(x_159); -x_172 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_172, 0, x_158); -lean_closure_set(x_172, 1, x_7); -lean_closure_set(x_172, 2, x_159); -lean_closure_set(x_172, 3, x_3); -lean_closure_set(x_172, 4, x_4); -lean_closure_set(x_172, 5, x_5); -lean_closure_set(x_172, 6, x_6); -lean_closure_set(x_172, 7, x_115); -lean_closure_set(x_172, 8, x_171); -lean_closure_set(x_172, 9, x_146); -lean_closure_set(x_172, 10, x_161); -lean_closure_set(x_172, 11, x_168); -lean_closure_set(x_172, 12, x_169); -x_173 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_173, 0, x_170); -lean_closure_set(x_173, 1, x_172); -x_174 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_159, x_173, x_12, x_13, x_14, x_15, x_165); -return x_174; -} -else -{ -uint8_t x_175; -lean_dec(x_153); -lean_dec(x_146); -lean_dec(x_131); -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_175 = !lean_is_exclusive(x_155); -if (x_175 == 0) -{ -return x_155; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_176 = lean_ctor_get(x_155, 0); -x_177 = lean_ctor_get(x_155, 1); -lean_inc(x_177); -lean_inc(x_176); -lean_dec(x_155); -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -return x_178; -} -} -} -else -{ -uint8_t x_179; -lean_dec(x_146); -lean_dec(x_131); -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_179 = !lean_is_exclusive(x_150); -if (x_179 == 0) -{ -return x_150; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_150, 0); -x_181 = lean_ctor_get(x_150, 1); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_150); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -return x_182; -} -} -} -else -{ -uint8_t x_183; -lean_dec(x_131); -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_183 = !lean_is_exclusive(x_143); -if (x_183 == 0) -{ -return x_143; -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_143, 0); -x_185 = lean_ctor_get(x_143, 1); -lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_143); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -} -} -else -{ -uint8_t x_201; -lean_dec(x_131); -lean_dec(x_121); -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_201 = !lean_is_exclusive(x_133); -if (x_201 == 0) -{ -return x_133; -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_133, 0); -x_203 = lean_ctor_get(x_133, 1); -lean_inc(x_203); -lean_inc(x_202); -lean_dec(x_133); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -return x_204; -} -} -} -else -{ -uint8_t x_205; -lean_dec(x_121); -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_205 = !lean_is_exclusive(x_130); -if (x_205 == 0) -{ -return x_130; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_130, 0); -x_207 = lean_ctor_get(x_130, 1); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_130); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -return x_208; -} -} -} -else -{ -uint8_t x_209; -lean_dec(x_115); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_209 = !lean_is_exclusive(x_116); -if (x_209 == 0) -{ -return x_116; -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_116, 0); -x_211 = lean_ctor_get(x_116, 1); -lean_inc(x_211); -lean_inc(x_210); -lean_dec(x_116); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; -} -} -} -case 2: -{ -lean_object* x_213; lean_object* x_214; -lean_dec(x_11); -lean_dec(x_9); -x_213 = lean_ctor_get(x_6, 5); -lean_inc(x_213); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_214 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_213, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_214) == 0) -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -lean_dec(x_214); -x_216 = lean_st_ref_get(x_13, x_215); -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_219 = lean_ctor_get(x_217, 0); -lean_inc(x_219); -lean_dec(x_217); -x_220 = lean_ctor_get(x_6, 6); -lean_inc(x_220); -x_221 = l_List_redLength___main___rarg(x_220); -x_222 = lean_mk_empty_array_with_capacity(x_221); -lean_dec(x_221); -lean_inc(x_220); -x_223 = l_List_toArrayAux___main___rarg(x_220, x_222); -x_224 = x_223; -x_225 = lean_unsigned_to_nat(0u); -lean_inc(x_219); -lean_inc(x_5); -lean_inc(x_1); -x_226 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_226, 0, x_1); -lean_closure_set(x_226, 1, x_5); -lean_closure_set(x_226, 2, x_8); -lean_closure_set(x_226, 3, x_10); -lean_closure_set(x_226, 4, x_219); -lean_closure_set(x_226, 5, x_220); -lean_closure_set(x_226, 6, x_225); -lean_closure_set(x_226, 7, x_224); -x_227 = x_226; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_228 = lean_apply_5(x_227, x_12, x_13, x_14, x_15, x_218); -if (lean_obj_tag(x_228) == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -lean_inc(x_1); -x_231 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_230); -if (lean_obj_tag(x_231) == 0) -{ -lean_object* x_232; lean_object* x_233; uint8_t x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec(x_231); -x_234 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_234 == 0) -{ -lean_object* x_286; uint8_t x_287; -x_286 = l_Lean_MetavarContext_exprDependsOn(x_219, x_232, x_2); -x_287 = lean_unbox(x_286); -lean_dec(x_286); -if (x_287 == 0) -{ -x_235 = x_233; -goto block_285; -} -else -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; -lean_dec(x_229); -lean_dec(x_213); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_288 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_288, 0, x_3); -x_289 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_290 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_288); -x_291 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_292 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -x_293 = lean_box(0); -x_294 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_292, x_293, x_12, x_13, x_14, x_15, x_233); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_295 = !lean_is_exclusive(x_294); -if (x_295 == 0) -{ -return x_294; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_294, 0); -x_297 = lean_ctor_get(x_294, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_294); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); -return x_298; -} -} -} -else -{ -lean_dec(x_232); -lean_dec(x_219); -x_235 = x_233; -goto block_285; -} -block_285: -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; -lean_inc(x_229); -x_236 = x_229; -x_237 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_225, x_236); -x_238 = x_237; -x_239 = lean_array_push(x_238, x_2); -x_240 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_241 = l_Lean_Meta_revert(x_1, x_239, x_240, x_12, x_13, x_14, x_15, x_235); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -x_244 = lean_ctor_get(x_242, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_242, 1); -lean_inc(x_245); -lean_dec(x_242); -x_246 = lean_array_get_size(x_229); -x_247 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_248 = l_Lean_Meta_introNCore(x_245, x_246, x_247, x_240, x_12, x_13, x_14, x_15, x_243); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -lean_dec(x_248); -x_251 = lean_ctor_get(x_249, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_249, 1); -lean_inc(x_252); -lean_dec(x_249); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_253 = l_Lean_Meta_intro1Core(x_252, x_240, x_12, x_13, x_14, x_15, x_250); -if (lean_obj_tag(x_253) == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_253, 1); -lean_inc(x_255); -lean_dec(x_253); -x_256 = lean_ctor_get(x_254, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_254, 1); -lean_inc(x_257); -lean_dec(x_254); -x_258 = lean_box(0); -x_259 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_229, x_251, x_229, x_225, x_258); -lean_dec(x_229); -lean_inc(x_257); -x_260 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_260, 0, x_257); -x_261 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_262 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_261, x_260, x_12, x_13, x_14, x_15, x_255); -x_263 = lean_ctor_get(x_262, 1); -lean_inc(x_263); -lean_dec(x_262); -x_264 = x_251; -x_265 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_225, x_264); -x_266 = x_265; -lean_inc(x_256); -x_267 = l_Lean_mkFVar(x_256); -lean_inc(x_257); -x_268 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_268, 0, x_257); -x_269 = lean_box(x_234); -lean_inc(x_257); -x_270 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_270, 0, x_256); -lean_closure_set(x_270, 1, x_7); -lean_closure_set(x_270, 2, x_257); -lean_closure_set(x_270, 3, x_3); -lean_closure_set(x_270, 4, x_4); -lean_closure_set(x_270, 5, x_5); -lean_closure_set(x_270, 6, x_6); -lean_closure_set(x_270, 7, x_213); -lean_closure_set(x_270, 8, x_269); -lean_closure_set(x_270, 9, x_244); -lean_closure_set(x_270, 10, x_259); -lean_closure_set(x_270, 11, x_266); -lean_closure_set(x_270, 12, x_267); -x_271 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_271, 0, x_268); -lean_closure_set(x_271, 1, x_270); -x_272 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_257, x_271, x_12, x_13, x_14, x_15, x_263); -return x_272; -} -else -{ -uint8_t x_273; -lean_dec(x_251); -lean_dec(x_244); -lean_dec(x_229); -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_273 = !lean_is_exclusive(x_253); -if (x_273 == 0) -{ -return x_253; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; -x_274 = lean_ctor_get(x_253, 0); -x_275 = lean_ctor_get(x_253, 1); -lean_inc(x_275); -lean_inc(x_274); -lean_dec(x_253); -x_276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_276, 0, x_274); -lean_ctor_set(x_276, 1, x_275); -return x_276; -} -} -} -else -{ -uint8_t x_277; -lean_dec(x_244); -lean_dec(x_229); -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_277 = !lean_is_exclusive(x_248); -if (x_277 == 0) -{ -return x_248; -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_248, 0); -x_279 = lean_ctor_get(x_248, 1); -lean_inc(x_279); -lean_inc(x_278); -lean_dec(x_248); -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -return x_280; -} -} -} -else -{ -uint8_t x_281; -lean_dec(x_229); -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_281 = !lean_is_exclusive(x_241); -if (x_281 == 0) -{ -return x_241; -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_282 = lean_ctor_get(x_241, 0); -x_283 = lean_ctor_get(x_241, 1); -lean_inc(x_283); -lean_inc(x_282); -lean_dec(x_241); -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_282); -lean_ctor_set(x_284, 1, x_283); -return x_284; -} -} -} -} -else -{ -uint8_t x_299; -lean_dec(x_229); -lean_dec(x_219); -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_299 = !lean_is_exclusive(x_231); -if (x_299 == 0) -{ -return x_231; -} -else -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_231, 0); -x_301 = lean_ctor_get(x_231, 1); -lean_inc(x_301); -lean_inc(x_300); -lean_dec(x_231); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_300); -lean_ctor_set(x_302, 1, x_301); -return x_302; -} -} -} -else -{ -uint8_t x_303; -lean_dec(x_219); -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_303 = !lean_is_exclusive(x_228); -if (x_303 == 0) -{ -return x_228; -} -else -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_228, 0); -x_305 = lean_ctor_get(x_228, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_228); -x_306 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_306, 0, x_304); -lean_ctor_set(x_306, 1, x_305); -return x_306; -} -} -} -else -{ -uint8_t x_307; -lean_dec(x_213); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_307 = !lean_is_exclusive(x_214); -if (x_307 == 0) -{ -return x_214; -} -else -{ -lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_308 = lean_ctor_get(x_214, 0); -x_309 = lean_ctor_get(x_214, 1); -lean_inc(x_309); -lean_inc(x_308); -lean_dec(x_214); -x_310 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_310, 0, x_308); -lean_ctor_set(x_310, 1, x_309); -return x_310; -} -} -} -case 3: -{ -lean_object* x_311; lean_object* x_312; -lean_dec(x_11); -lean_dec(x_9); -x_311 = lean_ctor_get(x_6, 5); -lean_inc(x_311); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_312 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_311, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_313 = lean_ctor_get(x_312, 1); -lean_inc(x_313); -lean_dec(x_312); -x_314 = lean_st_ref_get(x_13, x_313); -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_317 = lean_ctor_get(x_315, 0); -lean_inc(x_317); -lean_dec(x_315); -x_318 = lean_ctor_get(x_6, 6); -lean_inc(x_318); -x_319 = l_List_redLength___main___rarg(x_318); -x_320 = lean_mk_empty_array_with_capacity(x_319); -lean_dec(x_319); -lean_inc(x_318); -x_321 = l_List_toArrayAux___main___rarg(x_318, x_320); -x_322 = x_321; -x_323 = lean_unsigned_to_nat(0u); -lean_inc(x_317); -lean_inc(x_5); -lean_inc(x_1); -x_324 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_324, 0, x_1); -lean_closure_set(x_324, 1, x_5); -lean_closure_set(x_324, 2, x_8); -lean_closure_set(x_324, 3, x_10); -lean_closure_set(x_324, 4, x_317); -lean_closure_set(x_324, 5, x_318); -lean_closure_set(x_324, 6, x_323); -lean_closure_set(x_324, 7, x_322); -x_325 = x_324; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_326 = lean_apply_5(x_325, x_12, x_13, x_14, x_15, x_316); -if (lean_obj_tag(x_326) == 0) -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; -x_327 = lean_ctor_get(x_326, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 1); -lean_inc(x_328); -lean_dec(x_326); -lean_inc(x_1); -x_329 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_328); -if (lean_obj_tag(x_329) == 0) -{ -lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; -x_330 = lean_ctor_get(x_329, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_329, 1); -lean_inc(x_331); -lean_dec(x_329); -x_332 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_332 == 0) -{ -lean_object* x_384; uint8_t x_385; -x_384 = l_Lean_MetavarContext_exprDependsOn(x_317, x_330, x_2); -x_385 = lean_unbox(x_384); -lean_dec(x_384); -if (x_385 == 0) -{ -x_333 = x_331; -goto block_383; -} -else -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; -lean_dec(x_327); -lean_dec(x_311); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_386 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_386, 0, x_3); -x_387 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_388 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_388, 0, x_387); -lean_ctor_set(x_388, 1, x_386); -x_389 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_390 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_390, 0, x_388); -lean_ctor_set(x_390, 1, x_389); -x_391 = lean_box(0); -x_392 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_390, x_391, x_12, x_13, x_14, x_15, x_331); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_393 = !lean_is_exclusive(x_392); -if (x_393 == 0) -{ -return x_392; -} -else -{ -lean_object* x_394; lean_object* x_395; lean_object* x_396; -x_394 = lean_ctor_get(x_392, 0); -x_395 = lean_ctor_get(x_392, 1); -lean_inc(x_395); -lean_inc(x_394); -lean_dec(x_392); -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_394); -lean_ctor_set(x_396, 1, x_395); -return x_396; -} -} -} -else -{ -lean_dec(x_330); -lean_dec(x_317); -x_333 = x_331; -goto block_383; -} -block_383: -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; uint8_t x_338; lean_object* x_339; -lean_inc(x_327); -x_334 = x_327; -x_335 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_323, x_334); -x_336 = x_335; -x_337 = lean_array_push(x_336, x_2); -x_338 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_339 = l_Lean_Meta_revert(x_1, x_337, x_338, x_12, x_13, x_14, x_15, x_333); -if (lean_obj_tag(x_339) == 0) -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -lean_dec(x_339); -x_342 = lean_ctor_get(x_340, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_340, 1); -lean_inc(x_343); -lean_dec(x_340); -x_344 = lean_array_get_size(x_327); -x_345 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_346 = l_Lean_Meta_introNCore(x_343, x_344, x_345, x_338, x_12, x_13, x_14, x_15, x_341); -if (lean_obj_tag(x_346) == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_346, 1); -lean_inc(x_348); -lean_dec(x_346); -x_349 = lean_ctor_get(x_347, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_347, 1); -lean_inc(x_350); -lean_dec(x_347); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_351 = l_Lean_Meta_intro1Core(x_350, x_338, x_12, x_13, x_14, x_15, x_348); -if (lean_obj_tag(x_351) == 0) -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; -x_352 = lean_ctor_get(x_351, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_351, 1); -lean_inc(x_353); -lean_dec(x_351); -x_354 = lean_ctor_get(x_352, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_352, 1); -lean_inc(x_355); -lean_dec(x_352); -x_356 = lean_box(0); -x_357 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_327, x_349, x_327, x_323, x_356); -lean_dec(x_327); -lean_inc(x_355); -x_358 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_358, 0, x_355); -x_359 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_360 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_359, x_358, x_12, x_13, x_14, x_15, x_353); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -lean_dec(x_360); -x_362 = x_349; -x_363 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_323, x_362); -x_364 = x_363; -lean_inc(x_354); -x_365 = l_Lean_mkFVar(x_354); -lean_inc(x_355); -x_366 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_366, 0, x_355); -x_367 = lean_box(x_332); -lean_inc(x_355); -x_368 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_368, 0, x_354); -lean_closure_set(x_368, 1, x_7); -lean_closure_set(x_368, 2, x_355); -lean_closure_set(x_368, 3, x_3); -lean_closure_set(x_368, 4, x_4); -lean_closure_set(x_368, 5, x_5); -lean_closure_set(x_368, 6, x_6); -lean_closure_set(x_368, 7, x_311); -lean_closure_set(x_368, 8, x_367); -lean_closure_set(x_368, 9, x_342); -lean_closure_set(x_368, 10, x_357); -lean_closure_set(x_368, 11, x_364); -lean_closure_set(x_368, 12, x_365); -x_369 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_369, 0, x_366); -lean_closure_set(x_369, 1, x_368); -x_370 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_355, x_369, x_12, x_13, x_14, x_15, x_361); -return x_370; -} -else -{ -uint8_t x_371; -lean_dec(x_349); -lean_dec(x_342); -lean_dec(x_327); -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_371 = !lean_is_exclusive(x_351); -if (x_371 == 0) -{ -return x_351; -} -else -{ -lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_372 = lean_ctor_get(x_351, 0); -x_373 = lean_ctor_get(x_351, 1); -lean_inc(x_373); -lean_inc(x_372); -lean_dec(x_351); -x_374 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_374, 0, x_372); -lean_ctor_set(x_374, 1, x_373); -return x_374; -} -} -} -else -{ -uint8_t x_375; -lean_dec(x_342); -lean_dec(x_327); -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_375 = !lean_is_exclusive(x_346); -if (x_375 == 0) -{ -return x_346; -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_376 = lean_ctor_get(x_346, 0); -x_377 = lean_ctor_get(x_346, 1); -lean_inc(x_377); -lean_inc(x_376); -lean_dec(x_346); -x_378 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_378, 0, x_376); -lean_ctor_set(x_378, 1, x_377); -return x_378; -} -} -} -else -{ -uint8_t x_379; -lean_dec(x_327); -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_379 = !lean_is_exclusive(x_339); -if (x_379 == 0) -{ -return x_339; -} -else -{ -lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_380 = lean_ctor_get(x_339, 0); -x_381 = lean_ctor_get(x_339, 1); -lean_inc(x_381); -lean_inc(x_380); -lean_dec(x_339); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -return x_382; -} -} -} -} -else -{ -uint8_t x_397; -lean_dec(x_327); -lean_dec(x_317); -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_397 = !lean_is_exclusive(x_329); -if (x_397 == 0) -{ -return x_329; -} -else -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_398 = lean_ctor_get(x_329, 0); -x_399 = lean_ctor_get(x_329, 1); -lean_inc(x_399); -lean_inc(x_398); -lean_dec(x_329); -x_400 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_400, 0, x_398); -lean_ctor_set(x_400, 1, x_399); -return x_400; -} -} -} -else -{ -uint8_t x_401; -lean_dec(x_317); -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_401 = !lean_is_exclusive(x_326); -if (x_401 == 0) -{ -return x_326; -} -else -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_402 = lean_ctor_get(x_326, 0); -x_403 = lean_ctor_get(x_326, 1); -lean_inc(x_403); -lean_inc(x_402); -lean_dec(x_326); -x_404 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_404, 0, x_402); -lean_ctor_set(x_404, 1, x_403); -return x_404; -} -} -} -else -{ -uint8_t x_405; -lean_dec(x_311); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_405 = !lean_is_exclusive(x_312); -if (x_405 == 0) -{ -return x_312; -} -else -{ -lean_object* x_406; lean_object* x_407; lean_object* x_408; -x_406 = lean_ctor_get(x_312, 0); -x_407 = lean_ctor_get(x_312, 1); -lean_inc(x_407); -lean_inc(x_406); -lean_dec(x_312); -x_408 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_408, 0, x_406); -lean_ctor_set(x_408, 1, x_407); -return x_408; -} -} -} -case 4: -{ -lean_object* x_409; lean_object* x_410; -lean_dec(x_11); -lean_dec(x_9); -x_409 = lean_ctor_get(x_6, 5); -lean_inc(x_409); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_410 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_409, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_410) == 0) -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_411 = lean_ctor_get(x_410, 1); -lean_inc(x_411); -lean_dec(x_410); -x_412 = lean_st_ref_get(x_13, x_411); -x_413 = lean_ctor_get(x_412, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_412, 1); -lean_inc(x_414); -lean_dec(x_412); -x_415 = lean_ctor_get(x_413, 0); -lean_inc(x_415); -lean_dec(x_413); -x_416 = lean_ctor_get(x_6, 6); -lean_inc(x_416); -x_417 = l_List_redLength___main___rarg(x_416); -x_418 = lean_mk_empty_array_with_capacity(x_417); -lean_dec(x_417); -lean_inc(x_416); -x_419 = l_List_toArrayAux___main___rarg(x_416, x_418); -x_420 = x_419; -x_421 = lean_unsigned_to_nat(0u); -lean_inc(x_415); -lean_inc(x_5); -lean_inc(x_1); -x_422 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_422, 0, x_1); -lean_closure_set(x_422, 1, x_5); -lean_closure_set(x_422, 2, x_8); -lean_closure_set(x_422, 3, x_10); -lean_closure_set(x_422, 4, x_415); -lean_closure_set(x_422, 5, x_416); -lean_closure_set(x_422, 6, x_421); -lean_closure_set(x_422, 7, x_420); -x_423 = x_422; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_424 = lean_apply_5(x_423, x_12, x_13, x_14, x_15, x_414); -if (lean_obj_tag(x_424) == 0) -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; -x_425 = lean_ctor_get(x_424, 0); -lean_inc(x_425); -x_426 = lean_ctor_get(x_424, 1); -lean_inc(x_426); -lean_dec(x_424); -lean_inc(x_1); -x_427 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_426); -if (lean_obj_tag(x_427) == 0) -{ -lean_object* x_428; lean_object* x_429; uint8_t x_430; lean_object* x_431; -x_428 = lean_ctor_get(x_427, 0); -lean_inc(x_428); -x_429 = lean_ctor_get(x_427, 1); -lean_inc(x_429); -lean_dec(x_427); -x_430 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_430 == 0) -{ -lean_object* x_482; uint8_t x_483; -x_482 = l_Lean_MetavarContext_exprDependsOn(x_415, x_428, x_2); -x_483 = lean_unbox(x_482); -lean_dec(x_482); -if (x_483 == 0) -{ -x_431 = x_429; -goto block_481; -} -else -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; uint8_t x_491; -lean_dec(x_425); -lean_dec(x_409); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_484 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_484, 0, x_3); -x_485 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_486 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_486, 0, x_485); -lean_ctor_set(x_486, 1, x_484); -x_487 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_488 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_488, 0, x_486); -lean_ctor_set(x_488, 1, x_487); -x_489 = lean_box(0); -x_490 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_488, x_489, x_12, x_13, x_14, x_15, x_429); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_491 = !lean_is_exclusive(x_490); -if (x_491 == 0) -{ -return x_490; -} -else -{ -lean_object* x_492; lean_object* x_493; lean_object* x_494; -x_492 = lean_ctor_get(x_490, 0); -x_493 = lean_ctor_get(x_490, 1); -lean_inc(x_493); -lean_inc(x_492); -lean_dec(x_490); -x_494 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_494, 0, x_492); -lean_ctor_set(x_494, 1, x_493); -return x_494; -} -} -} -else -{ -lean_dec(x_428); -lean_dec(x_415); -x_431 = x_429; -goto block_481; -} -block_481: -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; uint8_t x_436; lean_object* x_437; -lean_inc(x_425); -x_432 = x_425; -x_433 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_421, x_432); -x_434 = x_433; -x_435 = lean_array_push(x_434, x_2); -x_436 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_437 = l_Lean_Meta_revert(x_1, x_435, x_436, x_12, x_13, x_14, x_15, x_431); -if (lean_obj_tag(x_437) == 0) -{ -lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; -x_438 = lean_ctor_get(x_437, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_437, 1); -lean_inc(x_439); -lean_dec(x_437); -x_440 = lean_ctor_get(x_438, 0); -lean_inc(x_440); -x_441 = lean_ctor_get(x_438, 1); -lean_inc(x_441); -lean_dec(x_438); -x_442 = lean_array_get_size(x_425); -x_443 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_444 = l_Lean_Meta_introNCore(x_441, x_442, x_443, x_436, x_12, x_13, x_14, x_15, x_439); -if (lean_obj_tag(x_444) == 0) -{ -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_445 = lean_ctor_get(x_444, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_444, 1); -lean_inc(x_446); -lean_dec(x_444); -x_447 = lean_ctor_get(x_445, 0); -lean_inc(x_447); -x_448 = lean_ctor_get(x_445, 1); -lean_inc(x_448); -lean_dec(x_445); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_449 = l_Lean_Meta_intro1Core(x_448, x_436, x_12, x_13, x_14, x_15, x_446); -if (lean_obj_tag(x_449) == 0) -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_450 = lean_ctor_get(x_449, 0); -lean_inc(x_450); -x_451 = lean_ctor_get(x_449, 1); -lean_inc(x_451); -lean_dec(x_449); -x_452 = lean_ctor_get(x_450, 0); -lean_inc(x_452); -x_453 = lean_ctor_get(x_450, 1); -lean_inc(x_453); -lean_dec(x_450); -x_454 = lean_box(0); -x_455 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_425, x_447, x_425, x_421, x_454); -lean_dec(x_425); -lean_inc(x_453); -x_456 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_456, 0, x_453); -x_457 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_458 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_457, x_456, x_12, x_13, x_14, x_15, x_451); -x_459 = lean_ctor_get(x_458, 1); -lean_inc(x_459); -lean_dec(x_458); -x_460 = x_447; -x_461 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_421, x_460); -x_462 = x_461; -lean_inc(x_452); -x_463 = l_Lean_mkFVar(x_452); -lean_inc(x_453); -x_464 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_464, 0, x_453); -x_465 = lean_box(x_430); -lean_inc(x_453); -x_466 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_466, 0, x_452); -lean_closure_set(x_466, 1, x_7); -lean_closure_set(x_466, 2, x_453); -lean_closure_set(x_466, 3, x_3); -lean_closure_set(x_466, 4, x_4); -lean_closure_set(x_466, 5, x_5); -lean_closure_set(x_466, 6, x_6); -lean_closure_set(x_466, 7, x_409); -lean_closure_set(x_466, 8, x_465); -lean_closure_set(x_466, 9, x_440); -lean_closure_set(x_466, 10, x_455); -lean_closure_set(x_466, 11, x_462); -lean_closure_set(x_466, 12, x_463); -x_467 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_467, 0, x_464); -lean_closure_set(x_467, 1, x_466); -x_468 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_453, x_467, x_12, x_13, x_14, x_15, x_459); -return x_468; -} -else -{ -uint8_t x_469; -lean_dec(x_447); -lean_dec(x_440); -lean_dec(x_425); -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_469 = !lean_is_exclusive(x_449); -if (x_469 == 0) -{ -return x_449; -} -else -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; -x_470 = lean_ctor_get(x_449, 0); -x_471 = lean_ctor_get(x_449, 1); -lean_inc(x_471); -lean_inc(x_470); -lean_dec(x_449); -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_470); -lean_ctor_set(x_472, 1, x_471); -return x_472; -} -} -} -else -{ -uint8_t x_473; -lean_dec(x_440); -lean_dec(x_425); -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_473 = !lean_is_exclusive(x_444); -if (x_473 == 0) -{ -return x_444; -} -else -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; -x_474 = lean_ctor_get(x_444, 0); -x_475 = lean_ctor_get(x_444, 1); -lean_inc(x_475); -lean_inc(x_474); -lean_dec(x_444); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_475); -return x_476; -} -} -} -else -{ -uint8_t x_477; -lean_dec(x_425); -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_477 = !lean_is_exclusive(x_437); -if (x_477 == 0) -{ -return x_437; -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_478 = lean_ctor_get(x_437, 0); -x_479 = lean_ctor_get(x_437, 1); -lean_inc(x_479); -lean_inc(x_478); -lean_dec(x_437); -x_480 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_480, 0, x_478); -lean_ctor_set(x_480, 1, x_479); -return x_480; -} -} -} -} -else -{ -uint8_t x_495; -lean_dec(x_425); -lean_dec(x_415); -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_495 = !lean_is_exclusive(x_427); -if (x_495 == 0) -{ -return x_427; -} -else -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_496 = lean_ctor_get(x_427, 0); -x_497 = lean_ctor_get(x_427, 1); -lean_inc(x_497); -lean_inc(x_496); -lean_dec(x_427); -x_498 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_498, 0, x_496); -lean_ctor_set(x_498, 1, x_497); -return x_498; -} -} -} -else -{ -uint8_t x_499; -lean_dec(x_415); -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_499 = !lean_is_exclusive(x_424); -if (x_499 == 0) -{ -return x_424; -} -else -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; -x_500 = lean_ctor_get(x_424, 0); -x_501 = lean_ctor_get(x_424, 1); -lean_inc(x_501); -lean_inc(x_500); -lean_dec(x_424); -x_502 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_502, 0, x_500); -lean_ctor_set(x_502, 1, x_501); -return x_502; -} -} -} -else -{ -uint8_t x_503; -lean_dec(x_409); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_503 = !lean_is_exclusive(x_410); -if (x_503 == 0) -{ -return x_410; -} -else -{ -lean_object* x_504; lean_object* x_505; lean_object* x_506; -x_504 = lean_ctor_get(x_410, 0); -x_505 = lean_ctor_get(x_410, 1); -lean_inc(x_505); -lean_inc(x_504); -lean_dec(x_410); -x_506 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_506, 0, x_504); -lean_ctor_set(x_506, 1, x_505); -return x_506; -} -} -} -case 5: -{ -lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_507 = lean_ctor_get(x_9, 0); -lean_inc(x_507); -x_508 = lean_ctor_get(x_9, 1); -lean_inc(x_508); -lean_dec(x_9); -x_509 = lean_array_set(x_10, x_11, x_508); -x_510 = lean_unsigned_to_nat(1u); -x_511 = lean_nat_sub(x_11, x_510); -lean_dec(x_11); -x_9 = x_507; -x_10 = x_509; -x_11 = x_511; -goto _start; -} -case 6: -{ -lean_object* x_513; lean_object* x_514; -lean_dec(x_11); -lean_dec(x_9); -x_513 = lean_ctor_get(x_6, 5); -lean_inc(x_513); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_514 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_513, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_514) == 0) -{ -lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; -x_515 = lean_ctor_get(x_514, 1); -lean_inc(x_515); -lean_dec(x_514); -x_516 = lean_st_ref_get(x_13, x_515); -x_517 = lean_ctor_get(x_516, 0); -lean_inc(x_517); -x_518 = lean_ctor_get(x_516, 1); -lean_inc(x_518); -lean_dec(x_516); -x_519 = lean_ctor_get(x_517, 0); -lean_inc(x_519); -lean_dec(x_517); -x_520 = lean_ctor_get(x_6, 6); -lean_inc(x_520); -x_521 = l_List_redLength___main___rarg(x_520); -x_522 = lean_mk_empty_array_with_capacity(x_521); -lean_dec(x_521); -lean_inc(x_520); -x_523 = l_List_toArrayAux___main___rarg(x_520, x_522); -x_524 = x_523; -x_525 = lean_unsigned_to_nat(0u); -lean_inc(x_519); -lean_inc(x_5); -lean_inc(x_1); -x_526 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_526, 0, x_1); -lean_closure_set(x_526, 1, x_5); -lean_closure_set(x_526, 2, x_8); -lean_closure_set(x_526, 3, x_10); -lean_closure_set(x_526, 4, x_519); -lean_closure_set(x_526, 5, x_520); -lean_closure_set(x_526, 6, x_525); -lean_closure_set(x_526, 7, x_524); -x_527 = x_526; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_528 = lean_apply_5(x_527, x_12, x_13, x_14, x_15, x_518); -if (lean_obj_tag(x_528) == 0) -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_528, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_528, 1); -lean_inc(x_530); -lean_dec(x_528); -lean_inc(x_1); -x_531 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_530); -if (lean_obj_tag(x_531) == 0) -{ -lean_object* x_532; lean_object* x_533; uint8_t x_534; lean_object* x_535; -x_532 = lean_ctor_get(x_531, 0); -lean_inc(x_532); -x_533 = lean_ctor_get(x_531, 1); -lean_inc(x_533); -lean_dec(x_531); -x_534 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_534 == 0) -{ -lean_object* x_586; uint8_t x_587; -x_586 = l_Lean_MetavarContext_exprDependsOn(x_519, x_532, x_2); -x_587 = lean_unbox(x_586); -lean_dec(x_586); -if (x_587 == 0) -{ -x_535 = x_533; -goto block_585; -} -else -{ -lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; uint8_t x_595; -lean_dec(x_529); -lean_dec(x_513); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_588 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_588, 0, x_3); -x_589 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_590 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_590, 0, x_589); -lean_ctor_set(x_590, 1, x_588); -x_591 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_592 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_592, 0, x_590); -lean_ctor_set(x_592, 1, x_591); -x_593 = lean_box(0); -x_594 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_592, x_593, x_12, x_13, x_14, x_15, x_533); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_595 = !lean_is_exclusive(x_594); -if (x_595 == 0) -{ -return x_594; -} -else -{ -lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_596 = lean_ctor_get(x_594, 0); -x_597 = lean_ctor_get(x_594, 1); -lean_inc(x_597); -lean_inc(x_596); -lean_dec(x_594); -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_596); -lean_ctor_set(x_598, 1, x_597); -return x_598; -} -} -} -else -{ -lean_dec(x_532); -lean_dec(x_519); -x_535 = x_533; -goto block_585; -} -block_585: -{ -lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; uint8_t x_540; lean_object* x_541; -lean_inc(x_529); -x_536 = x_529; -x_537 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_525, x_536); -x_538 = x_537; -x_539 = lean_array_push(x_538, x_2); -x_540 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_541 = l_Lean_Meta_revert(x_1, x_539, x_540, x_12, x_13, x_14, x_15, x_535); -if (lean_obj_tag(x_541) == 0) -{ -lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_541, 1); -lean_inc(x_543); -lean_dec(x_541); -x_544 = lean_ctor_get(x_542, 0); -lean_inc(x_544); -x_545 = lean_ctor_get(x_542, 1); -lean_inc(x_545); -lean_dec(x_542); -x_546 = lean_array_get_size(x_529); -x_547 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_548 = l_Lean_Meta_introNCore(x_545, x_546, x_547, x_540, x_12, x_13, x_14, x_15, x_543); -if (lean_obj_tag(x_548) == 0) -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; -x_549 = lean_ctor_get(x_548, 0); -lean_inc(x_549); -x_550 = lean_ctor_get(x_548, 1); -lean_inc(x_550); -lean_dec(x_548); -x_551 = lean_ctor_get(x_549, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_549, 1); -lean_inc(x_552); -lean_dec(x_549); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_553 = l_Lean_Meta_intro1Core(x_552, x_540, x_12, x_13, x_14, x_15, x_550); -if (lean_obj_tag(x_553) == 0) -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_554 = lean_ctor_get(x_553, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_553, 1); -lean_inc(x_555); -lean_dec(x_553); -x_556 = lean_ctor_get(x_554, 0); -lean_inc(x_556); -x_557 = lean_ctor_get(x_554, 1); -lean_inc(x_557); -lean_dec(x_554); -x_558 = lean_box(0); -x_559 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_529, x_551, x_529, x_525, x_558); -lean_dec(x_529); -lean_inc(x_557); -x_560 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_560, 0, x_557); -x_561 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_562 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_561, x_560, x_12, x_13, x_14, x_15, x_555); -x_563 = lean_ctor_get(x_562, 1); -lean_inc(x_563); -lean_dec(x_562); -x_564 = x_551; -x_565 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_525, x_564); -x_566 = x_565; -lean_inc(x_556); -x_567 = l_Lean_mkFVar(x_556); -lean_inc(x_557); -x_568 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_568, 0, x_557); -x_569 = lean_box(x_534); -lean_inc(x_557); -x_570 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_570, 0, x_556); -lean_closure_set(x_570, 1, x_7); -lean_closure_set(x_570, 2, x_557); -lean_closure_set(x_570, 3, x_3); -lean_closure_set(x_570, 4, x_4); -lean_closure_set(x_570, 5, x_5); -lean_closure_set(x_570, 6, x_6); -lean_closure_set(x_570, 7, x_513); -lean_closure_set(x_570, 8, x_569); -lean_closure_set(x_570, 9, x_544); -lean_closure_set(x_570, 10, x_559); -lean_closure_set(x_570, 11, x_566); -lean_closure_set(x_570, 12, x_567); -x_571 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_571, 0, x_568); -lean_closure_set(x_571, 1, x_570); -x_572 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_557, x_571, x_12, x_13, x_14, x_15, x_563); -return x_572; -} -else -{ -uint8_t x_573; -lean_dec(x_551); -lean_dec(x_544); -lean_dec(x_529); -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_573 = !lean_is_exclusive(x_553); -if (x_573 == 0) -{ -return x_553; -} -else -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_574 = lean_ctor_get(x_553, 0); -x_575 = lean_ctor_get(x_553, 1); -lean_inc(x_575); -lean_inc(x_574); -lean_dec(x_553); -x_576 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_576, 0, x_574); -lean_ctor_set(x_576, 1, x_575); -return x_576; -} -} -} -else -{ -uint8_t x_577; -lean_dec(x_544); -lean_dec(x_529); -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_577 = !lean_is_exclusive(x_548); -if (x_577 == 0) -{ -return x_548; -} -else -{ -lean_object* x_578; lean_object* x_579; lean_object* x_580; -x_578 = lean_ctor_get(x_548, 0); -x_579 = lean_ctor_get(x_548, 1); -lean_inc(x_579); -lean_inc(x_578); -lean_dec(x_548); -x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_578); -lean_ctor_set(x_580, 1, x_579); -return x_580; -} -} -} -else -{ -uint8_t x_581; -lean_dec(x_529); -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_581 = !lean_is_exclusive(x_541); -if (x_581 == 0) -{ -return x_541; -} -else -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; -x_582 = lean_ctor_get(x_541, 0); -x_583 = lean_ctor_get(x_541, 1); -lean_inc(x_583); -lean_inc(x_582); -lean_dec(x_541); -x_584 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_584, 0, x_582); -lean_ctor_set(x_584, 1, x_583); -return x_584; -} -} -} -} -else -{ -uint8_t x_599; -lean_dec(x_529); -lean_dec(x_519); -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_599 = !lean_is_exclusive(x_531); -if (x_599 == 0) -{ -return x_531; -} -else -{ -lean_object* x_600; lean_object* x_601; lean_object* x_602; -x_600 = lean_ctor_get(x_531, 0); -x_601 = lean_ctor_get(x_531, 1); -lean_inc(x_601); -lean_inc(x_600); -lean_dec(x_531); -x_602 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_602, 0, x_600); -lean_ctor_set(x_602, 1, x_601); -return x_602; -} -} -} -else -{ -uint8_t x_603; -lean_dec(x_519); -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_603 = !lean_is_exclusive(x_528); -if (x_603 == 0) -{ -return x_528; -} -else -{ -lean_object* x_604; lean_object* x_605; lean_object* x_606; -x_604 = lean_ctor_get(x_528, 0); -x_605 = lean_ctor_get(x_528, 1); -lean_inc(x_605); -lean_inc(x_604); -lean_dec(x_528); -x_606 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_606, 0, x_604); -lean_ctor_set(x_606, 1, x_605); -return x_606; -} -} -} -else -{ -uint8_t x_607; -lean_dec(x_513); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_607 = !lean_is_exclusive(x_514); -if (x_607 == 0) -{ -return x_514; -} -else -{ -lean_object* x_608; lean_object* x_609; lean_object* x_610; -x_608 = lean_ctor_get(x_514, 0); -x_609 = lean_ctor_get(x_514, 1); -lean_inc(x_609); -lean_inc(x_608); -lean_dec(x_514); -x_610 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_610, 0, x_608); -lean_ctor_set(x_610, 1, x_609); -return x_610; -} -} -} -case 7: -{ -lean_object* x_611; lean_object* x_612; -lean_dec(x_11); -lean_dec(x_9); -x_611 = lean_ctor_get(x_6, 5); -lean_inc(x_611); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_612 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_611, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_612) == 0) -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; -x_613 = lean_ctor_get(x_612, 1); -lean_inc(x_613); -lean_dec(x_612); -x_614 = lean_st_ref_get(x_13, x_613); -x_615 = lean_ctor_get(x_614, 0); -lean_inc(x_615); -x_616 = lean_ctor_get(x_614, 1); -lean_inc(x_616); -lean_dec(x_614); -x_617 = lean_ctor_get(x_615, 0); -lean_inc(x_617); -lean_dec(x_615); -x_618 = lean_ctor_get(x_6, 6); -lean_inc(x_618); -x_619 = l_List_redLength___main___rarg(x_618); -x_620 = lean_mk_empty_array_with_capacity(x_619); -lean_dec(x_619); -lean_inc(x_618); -x_621 = l_List_toArrayAux___main___rarg(x_618, x_620); -x_622 = x_621; -x_623 = lean_unsigned_to_nat(0u); -lean_inc(x_617); -lean_inc(x_5); -lean_inc(x_1); -x_624 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_624, 0, x_1); -lean_closure_set(x_624, 1, x_5); -lean_closure_set(x_624, 2, x_8); -lean_closure_set(x_624, 3, x_10); -lean_closure_set(x_624, 4, x_617); -lean_closure_set(x_624, 5, x_618); -lean_closure_set(x_624, 6, x_623); -lean_closure_set(x_624, 7, x_622); -x_625 = x_624; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_626 = lean_apply_5(x_625, x_12, x_13, x_14, x_15, x_616); -if (lean_obj_tag(x_626) == 0) -{ -lean_object* x_627; lean_object* x_628; lean_object* x_629; -x_627 = lean_ctor_get(x_626, 0); -lean_inc(x_627); -x_628 = lean_ctor_get(x_626, 1); -lean_inc(x_628); -lean_dec(x_626); -lean_inc(x_1); -x_629 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_628); -if (lean_obj_tag(x_629) == 0) -{ -lean_object* x_630; lean_object* x_631; uint8_t x_632; lean_object* x_633; -x_630 = lean_ctor_get(x_629, 0); -lean_inc(x_630); -x_631 = lean_ctor_get(x_629, 1); -lean_inc(x_631); -lean_dec(x_629); -x_632 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_632 == 0) -{ -lean_object* x_684; uint8_t x_685; -x_684 = l_Lean_MetavarContext_exprDependsOn(x_617, x_630, x_2); -x_685 = lean_unbox(x_684); -lean_dec(x_684); -if (x_685 == 0) -{ -x_633 = x_631; -goto block_683; -} -else -{ -lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; uint8_t x_693; -lean_dec(x_627); -lean_dec(x_611); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_686 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_686, 0, x_3); -x_687 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_688 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_688, 0, x_687); -lean_ctor_set(x_688, 1, x_686); -x_689 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_690 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_690, 0, x_688); -lean_ctor_set(x_690, 1, x_689); -x_691 = lean_box(0); -x_692 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_690, x_691, x_12, x_13, x_14, x_15, x_631); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_693 = !lean_is_exclusive(x_692); -if (x_693 == 0) -{ -return x_692; -} -else -{ -lean_object* x_694; lean_object* x_695; lean_object* x_696; -x_694 = lean_ctor_get(x_692, 0); -x_695 = lean_ctor_get(x_692, 1); -lean_inc(x_695); -lean_inc(x_694); -lean_dec(x_692); -x_696 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_696, 0, x_694); -lean_ctor_set(x_696, 1, x_695); -return x_696; -} -} -} -else -{ -lean_dec(x_630); -lean_dec(x_617); -x_633 = x_631; -goto block_683; -} -block_683: -{ -lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; uint8_t x_638; lean_object* x_639; -lean_inc(x_627); -x_634 = x_627; -x_635 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_623, x_634); -x_636 = x_635; -x_637 = lean_array_push(x_636, x_2); -x_638 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_639 = l_Lean_Meta_revert(x_1, x_637, x_638, x_12, x_13, x_14, x_15, x_633); -if (lean_obj_tag(x_639) == 0) -{ -lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; -x_640 = lean_ctor_get(x_639, 0); -lean_inc(x_640); -x_641 = lean_ctor_get(x_639, 1); -lean_inc(x_641); -lean_dec(x_639); -x_642 = lean_ctor_get(x_640, 0); -lean_inc(x_642); -x_643 = lean_ctor_get(x_640, 1); -lean_inc(x_643); -lean_dec(x_640); -x_644 = lean_array_get_size(x_627); -x_645 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_646 = l_Lean_Meta_introNCore(x_643, x_644, x_645, x_638, x_12, x_13, x_14, x_15, x_641); -if (lean_obj_tag(x_646) == 0) -{ -lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; -x_647 = lean_ctor_get(x_646, 0); -lean_inc(x_647); -x_648 = lean_ctor_get(x_646, 1); -lean_inc(x_648); -lean_dec(x_646); -x_649 = lean_ctor_get(x_647, 0); -lean_inc(x_649); -x_650 = lean_ctor_get(x_647, 1); -lean_inc(x_650); -lean_dec(x_647); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_651 = l_Lean_Meta_intro1Core(x_650, x_638, x_12, x_13, x_14, x_15, x_648); -if (lean_obj_tag(x_651) == 0) -{ -lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; -x_652 = lean_ctor_get(x_651, 0); -lean_inc(x_652); -x_653 = lean_ctor_get(x_651, 1); -lean_inc(x_653); -lean_dec(x_651); -x_654 = lean_ctor_get(x_652, 0); -lean_inc(x_654); -x_655 = lean_ctor_get(x_652, 1); -lean_inc(x_655); -lean_dec(x_652); -x_656 = lean_box(0); -x_657 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_627, x_649, x_627, x_623, x_656); -lean_dec(x_627); -lean_inc(x_655); -x_658 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_658, 0, x_655); -x_659 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_660 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_659, x_658, x_12, x_13, x_14, x_15, x_653); -x_661 = lean_ctor_get(x_660, 1); -lean_inc(x_661); -lean_dec(x_660); -x_662 = x_649; -x_663 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_623, x_662); -x_664 = x_663; -lean_inc(x_654); -x_665 = l_Lean_mkFVar(x_654); -lean_inc(x_655); -x_666 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_666, 0, x_655); -x_667 = lean_box(x_632); -lean_inc(x_655); -x_668 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_668, 0, x_654); -lean_closure_set(x_668, 1, x_7); -lean_closure_set(x_668, 2, x_655); -lean_closure_set(x_668, 3, x_3); -lean_closure_set(x_668, 4, x_4); -lean_closure_set(x_668, 5, x_5); -lean_closure_set(x_668, 6, x_6); -lean_closure_set(x_668, 7, x_611); -lean_closure_set(x_668, 8, x_667); -lean_closure_set(x_668, 9, x_642); -lean_closure_set(x_668, 10, x_657); -lean_closure_set(x_668, 11, x_664); -lean_closure_set(x_668, 12, x_665); -x_669 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_669, 0, x_666); -lean_closure_set(x_669, 1, x_668); -x_670 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_655, x_669, x_12, x_13, x_14, x_15, x_661); -return x_670; -} -else -{ -uint8_t x_671; -lean_dec(x_649); -lean_dec(x_642); -lean_dec(x_627); -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_671 = !lean_is_exclusive(x_651); -if (x_671 == 0) -{ -return x_651; -} -else -{ -lean_object* x_672; lean_object* x_673; lean_object* x_674; -x_672 = lean_ctor_get(x_651, 0); -x_673 = lean_ctor_get(x_651, 1); -lean_inc(x_673); -lean_inc(x_672); -lean_dec(x_651); -x_674 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_674, 0, x_672); -lean_ctor_set(x_674, 1, x_673); -return x_674; -} -} -} -else -{ -uint8_t x_675; -lean_dec(x_642); -lean_dec(x_627); -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_675 = !lean_is_exclusive(x_646); -if (x_675 == 0) -{ -return x_646; -} -else -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_676 = lean_ctor_get(x_646, 0); -x_677 = lean_ctor_get(x_646, 1); -lean_inc(x_677); -lean_inc(x_676); -lean_dec(x_646); -x_678 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_678, 0, x_676); -lean_ctor_set(x_678, 1, x_677); -return x_678; -} -} -} -else -{ -uint8_t x_679; -lean_dec(x_627); -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_679 = !lean_is_exclusive(x_639); -if (x_679 == 0) -{ -return x_639; -} -else -{ -lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_680 = lean_ctor_get(x_639, 0); -x_681 = lean_ctor_get(x_639, 1); -lean_inc(x_681); -lean_inc(x_680); -lean_dec(x_639); -x_682 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_682, 0, x_680); -lean_ctor_set(x_682, 1, x_681); -return x_682; -} -} -} -} -else -{ -uint8_t x_697; -lean_dec(x_627); -lean_dec(x_617); -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_697 = !lean_is_exclusive(x_629); -if (x_697 == 0) -{ -return x_629; -} -else -{ -lean_object* x_698; lean_object* x_699; lean_object* x_700; -x_698 = lean_ctor_get(x_629, 0); -x_699 = lean_ctor_get(x_629, 1); -lean_inc(x_699); -lean_inc(x_698); -lean_dec(x_629); -x_700 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_700, 0, x_698); -lean_ctor_set(x_700, 1, x_699); -return x_700; -} -} -} -else -{ -uint8_t x_701; -lean_dec(x_617); -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_701 = !lean_is_exclusive(x_626); -if (x_701 == 0) -{ -return x_626; -} -else -{ -lean_object* x_702; lean_object* x_703; lean_object* x_704; -x_702 = lean_ctor_get(x_626, 0); -x_703 = lean_ctor_get(x_626, 1); -lean_inc(x_703); -lean_inc(x_702); -lean_dec(x_626); -x_704 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_704, 0, x_702); -lean_ctor_set(x_704, 1, x_703); -return x_704; -} -} -} -else -{ -uint8_t x_705; -lean_dec(x_611); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_705 = !lean_is_exclusive(x_612); -if (x_705 == 0) -{ -return x_612; -} -else -{ -lean_object* x_706; lean_object* x_707; lean_object* x_708; -x_706 = lean_ctor_get(x_612, 0); -x_707 = lean_ctor_get(x_612, 1); -lean_inc(x_707); -lean_inc(x_706); -lean_dec(x_612); -x_708 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_708, 0, x_706); -lean_ctor_set(x_708, 1, x_707); -return x_708; -} -} -} -case 8: -{ -lean_object* x_709; lean_object* x_710; -lean_dec(x_11); -lean_dec(x_9); -x_709 = lean_ctor_get(x_6, 5); -lean_inc(x_709); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_710 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_709, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_710) == 0) -{ -lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; -x_711 = lean_ctor_get(x_710, 1); -lean_inc(x_711); -lean_dec(x_710); -x_712 = lean_st_ref_get(x_13, x_711); -x_713 = lean_ctor_get(x_712, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_712, 1); -lean_inc(x_714); -lean_dec(x_712); -x_715 = lean_ctor_get(x_713, 0); -lean_inc(x_715); -lean_dec(x_713); -x_716 = lean_ctor_get(x_6, 6); -lean_inc(x_716); -x_717 = l_List_redLength___main___rarg(x_716); -x_718 = lean_mk_empty_array_with_capacity(x_717); -lean_dec(x_717); -lean_inc(x_716); -x_719 = l_List_toArrayAux___main___rarg(x_716, x_718); -x_720 = x_719; -x_721 = lean_unsigned_to_nat(0u); -lean_inc(x_715); -lean_inc(x_5); -lean_inc(x_1); -x_722 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_722, 0, x_1); -lean_closure_set(x_722, 1, x_5); -lean_closure_set(x_722, 2, x_8); -lean_closure_set(x_722, 3, x_10); -lean_closure_set(x_722, 4, x_715); -lean_closure_set(x_722, 5, x_716); -lean_closure_set(x_722, 6, x_721); -lean_closure_set(x_722, 7, x_720); -x_723 = x_722; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_724 = lean_apply_5(x_723, x_12, x_13, x_14, x_15, x_714); -if (lean_obj_tag(x_724) == 0) -{ -lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_725 = lean_ctor_get(x_724, 0); -lean_inc(x_725); -x_726 = lean_ctor_get(x_724, 1); -lean_inc(x_726); -lean_dec(x_724); -lean_inc(x_1); -x_727 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_726); -if (lean_obj_tag(x_727) == 0) -{ -lean_object* x_728; lean_object* x_729; uint8_t x_730; lean_object* x_731; -x_728 = lean_ctor_get(x_727, 0); -lean_inc(x_728); -x_729 = lean_ctor_get(x_727, 1); -lean_inc(x_729); -lean_dec(x_727); -x_730 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_730 == 0) -{ -lean_object* x_782; uint8_t x_783; -x_782 = l_Lean_MetavarContext_exprDependsOn(x_715, x_728, x_2); -x_783 = lean_unbox(x_782); -lean_dec(x_782); -if (x_783 == 0) -{ -x_731 = x_729; -goto block_781; -} -else -{ -lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; uint8_t x_791; -lean_dec(x_725); -lean_dec(x_709); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_784 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_784, 0, x_3); -x_785 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_786 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_784); -x_787 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_788 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_788, 0, x_786); -lean_ctor_set(x_788, 1, x_787); -x_789 = lean_box(0); -x_790 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_788, x_789, x_12, x_13, x_14, x_15, x_729); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_791 = !lean_is_exclusive(x_790); -if (x_791 == 0) -{ -return x_790; -} -else -{ -lean_object* x_792; lean_object* x_793; lean_object* x_794; -x_792 = lean_ctor_get(x_790, 0); -x_793 = lean_ctor_get(x_790, 1); -lean_inc(x_793); -lean_inc(x_792); -lean_dec(x_790); -x_794 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_794, 0, x_792); -lean_ctor_set(x_794, 1, x_793); -return x_794; -} -} -} -else -{ -lean_dec(x_728); -lean_dec(x_715); -x_731 = x_729; -goto block_781; -} -block_781: -{ -lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; uint8_t x_736; lean_object* x_737; -lean_inc(x_725); -x_732 = x_725; -x_733 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_721, x_732); -x_734 = x_733; -x_735 = lean_array_push(x_734, x_2); -x_736 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_737 = l_Lean_Meta_revert(x_1, x_735, x_736, x_12, x_13, x_14, x_15, x_731); -if (lean_obj_tag(x_737) == 0) -{ -lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; -x_738 = lean_ctor_get(x_737, 0); -lean_inc(x_738); -x_739 = lean_ctor_get(x_737, 1); -lean_inc(x_739); -lean_dec(x_737); -x_740 = lean_ctor_get(x_738, 0); -lean_inc(x_740); -x_741 = lean_ctor_get(x_738, 1); -lean_inc(x_741); -lean_dec(x_738); -x_742 = lean_array_get_size(x_725); -x_743 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_744 = l_Lean_Meta_introNCore(x_741, x_742, x_743, x_736, x_12, x_13, x_14, x_15, x_739); -if (lean_obj_tag(x_744) == 0) -{ -lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; -x_745 = lean_ctor_get(x_744, 0); -lean_inc(x_745); -x_746 = lean_ctor_get(x_744, 1); -lean_inc(x_746); -lean_dec(x_744); -x_747 = lean_ctor_get(x_745, 0); -lean_inc(x_747); -x_748 = lean_ctor_get(x_745, 1); -lean_inc(x_748); -lean_dec(x_745); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_749 = l_Lean_Meta_intro1Core(x_748, x_736, x_12, x_13, x_14, x_15, x_746); -if (lean_obj_tag(x_749) == 0) -{ -lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; -x_750 = lean_ctor_get(x_749, 0); -lean_inc(x_750); -x_751 = lean_ctor_get(x_749, 1); -lean_inc(x_751); -lean_dec(x_749); -x_752 = lean_ctor_get(x_750, 0); -lean_inc(x_752); -x_753 = lean_ctor_get(x_750, 1); -lean_inc(x_753); -lean_dec(x_750); -x_754 = lean_box(0); -x_755 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_725, x_747, x_725, x_721, x_754); -lean_dec(x_725); -lean_inc(x_753); -x_756 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_756, 0, x_753); -x_757 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_758 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_757, x_756, x_12, x_13, x_14, x_15, x_751); -x_759 = lean_ctor_get(x_758, 1); -lean_inc(x_759); -lean_dec(x_758); -x_760 = x_747; -x_761 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_721, x_760); -x_762 = x_761; -lean_inc(x_752); -x_763 = l_Lean_mkFVar(x_752); -lean_inc(x_753); -x_764 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_764, 0, x_753); -x_765 = lean_box(x_730); -lean_inc(x_753); -x_766 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_766, 0, x_752); -lean_closure_set(x_766, 1, x_7); -lean_closure_set(x_766, 2, x_753); -lean_closure_set(x_766, 3, x_3); -lean_closure_set(x_766, 4, x_4); -lean_closure_set(x_766, 5, x_5); -lean_closure_set(x_766, 6, x_6); -lean_closure_set(x_766, 7, x_709); -lean_closure_set(x_766, 8, x_765); -lean_closure_set(x_766, 9, x_740); -lean_closure_set(x_766, 10, x_755); -lean_closure_set(x_766, 11, x_762); -lean_closure_set(x_766, 12, x_763); -x_767 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_767, 0, x_764); -lean_closure_set(x_767, 1, x_766); -x_768 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_753, x_767, x_12, x_13, x_14, x_15, x_759); -return x_768; -} -else -{ -uint8_t x_769; -lean_dec(x_747); -lean_dec(x_740); -lean_dec(x_725); -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_769 = !lean_is_exclusive(x_749); -if (x_769 == 0) -{ -return x_749; -} -else -{ -lean_object* x_770; lean_object* x_771; lean_object* x_772; -x_770 = lean_ctor_get(x_749, 0); -x_771 = lean_ctor_get(x_749, 1); -lean_inc(x_771); -lean_inc(x_770); -lean_dec(x_749); -x_772 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_772, 0, x_770); -lean_ctor_set(x_772, 1, x_771); -return x_772; -} -} -} -else -{ -uint8_t x_773; -lean_dec(x_740); -lean_dec(x_725); -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_773 = !lean_is_exclusive(x_744); -if (x_773 == 0) -{ -return x_744; -} -else -{ -lean_object* x_774; lean_object* x_775; lean_object* x_776; -x_774 = lean_ctor_get(x_744, 0); -x_775 = lean_ctor_get(x_744, 1); -lean_inc(x_775); -lean_inc(x_774); -lean_dec(x_744); -x_776 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_776, 0, x_774); -lean_ctor_set(x_776, 1, x_775); -return x_776; -} -} -} -else -{ -uint8_t x_777; -lean_dec(x_725); -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_777 = !lean_is_exclusive(x_737); -if (x_777 == 0) -{ -return x_737; -} -else -{ -lean_object* x_778; lean_object* x_779; lean_object* x_780; -x_778 = lean_ctor_get(x_737, 0); -x_779 = lean_ctor_get(x_737, 1); -lean_inc(x_779); -lean_inc(x_778); -lean_dec(x_737); -x_780 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_780, 0, x_778); -lean_ctor_set(x_780, 1, x_779); -return x_780; -} -} -} -} -else -{ -uint8_t x_795; -lean_dec(x_725); -lean_dec(x_715); -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_795 = !lean_is_exclusive(x_727); -if (x_795 == 0) -{ -return x_727; -} -else -{ -lean_object* x_796; lean_object* x_797; lean_object* x_798; -x_796 = lean_ctor_get(x_727, 0); -x_797 = lean_ctor_get(x_727, 1); -lean_inc(x_797); -lean_inc(x_796); -lean_dec(x_727); -x_798 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_798, 0, x_796); -lean_ctor_set(x_798, 1, x_797); -return x_798; -} -} -} -else -{ -uint8_t x_799; -lean_dec(x_715); -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_799 = !lean_is_exclusive(x_724); -if (x_799 == 0) -{ -return x_724; -} -else -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; -x_800 = lean_ctor_get(x_724, 0); -x_801 = lean_ctor_get(x_724, 1); -lean_inc(x_801); -lean_inc(x_800); -lean_dec(x_724); -x_802 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_802, 0, x_800); -lean_ctor_set(x_802, 1, x_801); -return x_802; -} -} -} -else -{ -uint8_t x_803; -lean_dec(x_709); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_803 = !lean_is_exclusive(x_710); -if (x_803 == 0) -{ -return x_710; -} -else -{ -lean_object* x_804; lean_object* x_805; lean_object* x_806; -x_804 = lean_ctor_get(x_710, 0); -x_805 = lean_ctor_get(x_710, 1); -lean_inc(x_805); -lean_inc(x_804); -lean_dec(x_710); -x_806 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_806, 0, x_804); -lean_ctor_set(x_806, 1, x_805); -return x_806; -} -} -} -case 9: -{ -lean_object* x_807; lean_object* x_808; -lean_dec(x_11); -lean_dec(x_9); -x_807 = lean_ctor_get(x_6, 5); -lean_inc(x_807); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_808 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_807, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_808) == 0) -{ -lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; -x_809 = lean_ctor_get(x_808, 1); -lean_inc(x_809); -lean_dec(x_808); -x_810 = lean_st_ref_get(x_13, x_809); -x_811 = lean_ctor_get(x_810, 0); -lean_inc(x_811); -x_812 = lean_ctor_get(x_810, 1); -lean_inc(x_812); -lean_dec(x_810); -x_813 = lean_ctor_get(x_811, 0); -lean_inc(x_813); -lean_dec(x_811); -x_814 = lean_ctor_get(x_6, 6); -lean_inc(x_814); -x_815 = l_List_redLength___main___rarg(x_814); -x_816 = lean_mk_empty_array_with_capacity(x_815); -lean_dec(x_815); -lean_inc(x_814); -x_817 = l_List_toArrayAux___main___rarg(x_814, x_816); -x_818 = x_817; -x_819 = lean_unsigned_to_nat(0u); -lean_inc(x_813); -lean_inc(x_5); -lean_inc(x_1); -x_820 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_820, 0, x_1); -lean_closure_set(x_820, 1, x_5); -lean_closure_set(x_820, 2, x_8); -lean_closure_set(x_820, 3, x_10); -lean_closure_set(x_820, 4, x_813); -lean_closure_set(x_820, 5, x_814); -lean_closure_set(x_820, 6, x_819); -lean_closure_set(x_820, 7, x_818); -x_821 = x_820; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_822 = lean_apply_5(x_821, x_12, x_13, x_14, x_15, x_812); -if (lean_obj_tag(x_822) == 0) -{ -lean_object* x_823; lean_object* x_824; lean_object* x_825; -x_823 = lean_ctor_get(x_822, 0); -lean_inc(x_823); -x_824 = lean_ctor_get(x_822, 1); -lean_inc(x_824); -lean_dec(x_822); -lean_inc(x_1); -x_825 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_824); -if (lean_obj_tag(x_825) == 0) -{ -lean_object* x_826; lean_object* x_827; uint8_t x_828; lean_object* x_829; -x_826 = lean_ctor_get(x_825, 0); -lean_inc(x_826); -x_827 = lean_ctor_get(x_825, 1); -lean_inc(x_827); -lean_dec(x_825); -x_828 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_828 == 0) -{ -lean_object* x_880; uint8_t x_881; -x_880 = l_Lean_MetavarContext_exprDependsOn(x_813, x_826, x_2); -x_881 = lean_unbox(x_880); -lean_dec(x_880); -if (x_881 == 0) -{ -x_829 = x_827; -goto block_879; -} -else -{ -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; uint8_t x_889; -lean_dec(x_823); -lean_dec(x_807); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_882 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_882, 0, x_3); -x_883 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_884 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_884, 0, x_883); -lean_ctor_set(x_884, 1, x_882); -x_885 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_886 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_886, 0, x_884); -lean_ctor_set(x_886, 1, x_885); -x_887 = lean_box(0); -x_888 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_886, x_887, x_12, x_13, x_14, x_15, x_827); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_889 = !lean_is_exclusive(x_888); -if (x_889 == 0) -{ -return x_888; -} -else -{ -lean_object* x_890; lean_object* x_891; lean_object* x_892; -x_890 = lean_ctor_get(x_888, 0); -x_891 = lean_ctor_get(x_888, 1); -lean_inc(x_891); -lean_inc(x_890); -lean_dec(x_888); -x_892 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_892, 0, x_890); -lean_ctor_set(x_892, 1, x_891); -return x_892; -} -} -} -else -{ -lean_dec(x_826); -lean_dec(x_813); -x_829 = x_827; -goto block_879; -} -block_879: -{ -lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; uint8_t x_834; lean_object* x_835; -lean_inc(x_823); -x_830 = x_823; -x_831 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_819, x_830); -x_832 = x_831; -x_833 = lean_array_push(x_832, x_2); -x_834 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_835 = l_Lean_Meta_revert(x_1, x_833, x_834, x_12, x_13, x_14, x_15, x_829); -if (lean_obj_tag(x_835) == 0) -{ -lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; -x_836 = lean_ctor_get(x_835, 0); -lean_inc(x_836); -x_837 = lean_ctor_get(x_835, 1); -lean_inc(x_837); -lean_dec(x_835); -x_838 = lean_ctor_get(x_836, 0); -lean_inc(x_838); -x_839 = lean_ctor_get(x_836, 1); -lean_inc(x_839); -lean_dec(x_836); -x_840 = lean_array_get_size(x_823); -x_841 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_842 = l_Lean_Meta_introNCore(x_839, x_840, x_841, x_834, x_12, x_13, x_14, x_15, x_837); -if (lean_obj_tag(x_842) == 0) -{ -lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; -x_843 = lean_ctor_get(x_842, 0); -lean_inc(x_843); -x_844 = lean_ctor_get(x_842, 1); -lean_inc(x_844); -lean_dec(x_842); -x_845 = lean_ctor_get(x_843, 0); -lean_inc(x_845); -x_846 = lean_ctor_get(x_843, 1); -lean_inc(x_846); -lean_dec(x_843); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_847 = l_Lean_Meta_intro1Core(x_846, x_834, x_12, x_13, x_14, x_15, x_844); -if (lean_obj_tag(x_847) == 0) -{ -lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; -x_848 = lean_ctor_get(x_847, 0); -lean_inc(x_848); -x_849 = lean_ctor_get(x_847, 1); -lean_inc(x_849); -lean_dec(x_847); -x_850 = lean_ctor_get(x_848, 0); -lean_inc(x_850); -x_851 = lean_ctor_get(x_848, 1); -lean_inc(x_851); -lean_dec(x_848); -x_852 = lean_box(0); -x_853 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_823, x_845, x_823, x_819, x_852); -lean_dec(x_823); -lean_inc(x_851); -x_854 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_854, 0, x_851); -x_855 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_856 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_855, x_854, x_12, x_13, x_14, x_15, x_849); -x_857 = lean_ctor_get(x_856, 1); -lean_inc(x_857); -lean_dec(x_856); -x_858 = x_845; -x_859 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_819, x_858); -x_860 = x_859; -lean_inc(x_850); -x_861 = l_Lean_mkFVar(x_850); -lean_inc(x_851); -x_862 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_862, 0, x_851); -x_863 = lean_box(x_828); -lean_inc(x_851); -x_864 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_864, 0, x_850); -lean_closure_set(x_864, 1, x_7); -lean_closure_set(x_864, 2, x_851); -lean_closure_set(x_864, 3, x_3); -lean_closure_set(x_864, 4, x_4); -lean_closure_set(x_864, 5, x_5); -lean_closure_set(x_864, 6, x_6); -lean_closure_set(x_864, 7, x_807); -lean_closure_set(x_864, 8, x_863); -lean_closure_set(x_864, 9, x_838); -lean_closure_set(x_864, 10, x_853); -lean_closure_set(x_864, 11, x_860); -lean_closure_set(x_864, 12, x_861); -x_865 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_865, 0, x_862); -lean_closure_set(x_865, 1, x_864); -x_866 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_851, x_865, x_12, x_13, x_14, x_15, x_857); -return x_866; -} -else -{ -uint8_t x_867; -lean_dec(x_845); -lean_dec(x_838); -lean_dec(x_823); -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_867 = !lean_is_exclusive(x_847); -if (x_867 == 0) -{ -return x_847; -} -else -{ -lean_object* x_868; lean_object* x_869; lean_object* x_870; -x_868 = lean_ctor_get(x_847, 0); -x_869 = lean_ctor_get(x_847, 1); -lean_inc(x_869); -lean_inc(x_868); -lean_dec(x_847); -x_870 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_870, 0, x_868); -lean_ctor_set(x_870, 1, x_869); -return x_870; -} -} -} -else -{ -uint8_t x_871; -lean_dec(x_838); -lean_dec(x_823); -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_871 = !lean_is_exclusive(x_842); -if (x_871 == 0) -{ -return x_842; -} -else -{ -lean_object* x_872; lean_object* x_873; lean_object* x_874; -x_872 = lean_ctor_get(x_842, 0); -x_873 = lean_ctor_get(x_842, 1); -lean_inc(x_873); -lean_inc(x_872); -lean_dec(x_842); -x_874 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_874, 0, x_872); -lean_ctor_set(x_874, 1, x_873); -return x_874; -} -} -} -else -{ -uint8_t x_875; -lean_dec(x_823); -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_875 = !lean_is_exclusive(x_835); -if (x_875 == 0) -{ -return x_835; -} -else -{ -lean_object* x_876; lean_object* x_877; lean_object* x_878; -x_876 = lean_ctor_get(x_835, 0); -x_877 = lean_ctor_get(x_835, 1); -lean_inc(x_877); -lean_inc(x_876); -lean_dec(x_835); -x_878 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_878, 0, x_876); -lean_ctor_set(x_878, 1, x_877); -return x_878; -} -} -} -} -else -{ -uint8_t x_893; -lean_dec(x_823); -lean_dec(x_813); -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_893 = !lean_is_exclusive(x_825); -if (x_893 == 0) -{ -return x_825; -} -else -{ -lean_object* x_894; lean_object* x_895; lean_object* x_896; -x_894 = lean_ctor_get(x_825, 0); -x_895 = lean_ctor_get(x_825, 1); -lean_inc(x_895); -lean_inc(x_894); -lean_dec(x_825); -x_896 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_896, 0, x_894); -lean_ctor_set(x_896, 1, x_895); -return x_896; -} -} -} -else -{ -uint8_t x_897; -lean_dec(x_813); -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_897 = !lean_is_exclusive(x_822); -if (x_897 == 0) -{ -return x_822; -} -else -{ -lean_object* x_898; lean_object* x_899; lean_object* x_900; -x_898 = lean_ctor_get(x_822, 0); -x_899 = lean_ctor_get(x_822, 1); -lean_inc(x_899); -lean_inc(x_898); -lean_dec(x_822); -x_900 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_900, 0, x_898); -lean_ctor_set(x_900, 1, x_899); -return x_900; -} -} -} -else -{ -uint8_t x_901; -lean_dec(x_807); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_901 = !lean_is_exclusive(x_808); -if (x_901 == 0) -{ -return x_808; -} -else -{ -lean_object* x_902; lean_object* x_903; lean_object* x_904; -x_902 = lean_ctor_get(x_808, 0); -x_903 = lean_ctor_get(x_808, 1); -lean_inc(x_903); -lean_inc(x_902); -lean_dec(x_808); -x_904 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_904, 0, x_902); -lean_ctor_set(x_904, 1, x_903); -return x_904; -} -} -} -case 10: -{ -lean_object* x_905; lean_object* x_906; -lean_dec(x_11); -lean_dec(x_9); -x_905 = lean_ctor_get(x_6, 5); -lean_inc(x_905); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_906 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_905, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_906) == 0) -{ -lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; -x_907 = lean_ctor_get(x_906, 1); -lean_inc(x_907); -lean_dec(x_906); -x_908 = lean_st_ref_get(x_13, x_907); -x_909 = lean_ctor_get(x_908, 0); -lean_inc(x_909); -x_910 = lean_ctor_get(x_908, 1); -lean_inc(x_910); -lean_dec(x_908); -x_911 = lean_ctor_get(x_909, 0); -lean_inc(x_911); -lean_dec(x_909); -x_912 = lean_ctor_get(x_6, 6); -lean_inc(x_912); -x_913 = l_List_redLength___main___rarg(x_912); -x_914 = lean_mk_empty_array_with_capacity(x_913); -lean_dec(x_913); -lean_inc(x_912); -x_915 = l_List_toArrayAux___main___rarg(x_912, x_914); -x_916 = x_915; -x_917 = lean_unsigned_to_nat(0u); -lean_inc(x_911); -lean_inc(x_5); -lean_inc(x_1); -x_918 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_918, 0, x_1); -lean_closure_set(x_918, 1, x_5); -lean_closure_set(x_918, 2, x_8); -lean_closure_set(x_918, 3, x_10); -lean_closure_set(x_918, 4, x_911); -lean_closure_set(x_918, 5, x_912); -lean_closure_set(x_918, 6, x_917); -lean_closure_set(x_918, 7, x_916); -x_919 = x_918; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_920 = lean_apply_5(x_919, x_12, x_13, x_14, x_15, x_910); -if (lean_obj_tag(x_920) == 0) -{ -lean_object* x_921; lean_object* x_922; lean_object* x_923; -x_921 = lean_ctor_get(x_920, 0); -lean_inc(x_921); -x_922 = lean_ctor_get(x_920, 1); -lean_inc(x_922); -lean_dec(x_920); -lean_inc(x_1); -x_923 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_922); -if (lean_obj_tag(x_923) == 0) -{ -lean_object* x_924; lean_object* x_925; uint8_t x_926; lean_object* x_927; -x_924 = lean_ctor_get(x_923, 0); -lean_inc(x_924); -x_925 = lean_ctor_get(x_923, 1); -lean_inc(x_925); -lean_dec(x_923); -x_926 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_926 == 0) -{ -lean_object* x_978; uint8_t x_979; -x_978 = l_Lean_MetavarContext_exprDependsOn(x_911, x_924, x_2); -x_979 = lean_unbox(x_978); -lean_dec(x_978); -if (x_979 == 0) -{ -x_927 = x_925; -goto block_977; -} -else -{ -lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; uint8_t x_987; -lean_dec(x_921); -lean_dec(x_905); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_980 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_980, 0, x_3); -x_981 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_982 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_982, 0, x_981); -lean_ctor_set(x_982, 1, x_980); -x_983 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_984 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_984, 0, x_982); -lean_ctor_set(x_984, 1, x_983); -x_985 = lean_box(0); -x_986 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_984, x_985, x_12, x_13, x_14, x_15, x_925); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_987 = !lean_is_exclusive(x_986); -if (x_987 == 0) -{ -return x_986; -} -else -{ -lean_object* x_988; lean_object* x_989; lean_object* x_990; -x_988 = lean_ctor_get(x_986, 0); -x_989 = lean_ctor_get(x_986, 1); -lean_inc(x_989); -lean_inc(x_988); -lean_dec(x_986); -x_990 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_990, 0, x_988); -lean_ctor_set(x_990, 1, x_989); -return x_990; -} -} -} -else -{ -lean_dec(x_924); -lean_dec(x_911); -x_927 = x_925; -goto block_977; -} -block_977: -{ -lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; uint8_t x_932; lean_object* x_933; -lean_inc(x_921); -x_928 = x_921; -x_929 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_917, x_928); -x_930 = x_929; -x_931 = lean_array_push(x_930, x_2); -x_932 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_933 = l_Lean_Meta_revert(x_1, x_931, x_932, x_12, x_13, x_14, x_15, x_927); -if (lean_obj_tag(x_933) == 0) -{ -lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; -x_934 = lean_ctor_get(x_933, 0); -lean_inc(x_934); -x_935 = lean_ctor_get(x_933, 1); -lean_inc(x_935); -lean_dec(x_933); -x_936 = lean_ctor_get(x_934, 0); -lean_inc(x_936); -x_937 = lean_ctor_get(x_934, 1); -lean_inc(x_937); -lean_dec(x_934); -x_938 = lean_array_get_size(x_921); -x_939 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_940 = l_Lean_Meta_introNCore(x_937, x_938, x_939, x_932, x_12, x_13, x_14, x_15, x_935); -if (lean_obj_tag(x_940) == 0) -{ -lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; -x_941 = lean_ctor_get(x_940, 0); -lean_inc(x_941); -x_942 = lean_ctor_get(x_940, 1); -lean_inc(x_942); -lean_dec(x_940); -x_943 = lean_ctor_get(x_941, 0); -lean_inc(x_943); -x_944 = lean_ctor_get(x_941, 1); -lean_inc(x_944); -lean_dec(x_941); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_945 = l_Lean_Meta_intro1Core(x_944, x_932, x_12, x_13, x_14, x_15, x_942); -if (lean_obj_tag(x_945) == 0) -{ -lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; -x_946 = lean_ctor_get(x_945, 0); -lean_inc(x_946); -x_947 = lean_ctor_get(x_945, 1); -lean_inc(x_947); -lean_dec(x_945); -x_948 = lean_ctor_get(x_946, 0); -lean_inc(x_948); -x_949 = lean_ctor_get(x_946, 1); -lean_inc(x_949); -lean_dec(x_946); -x_950 = lean_box(0); -x_951 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_921, x_943, x_921, x_917, x_950); -lean_dec(x_921); -lean_inc(x_949); -x_952 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_952, 0, x_949); -x_953 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_954 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_953, x_952, x_12, x_13, x_14, x_15, x_947); -x_955 = lean_ctor_get(x_954, 1); -lean_inc(x_955); -lean_dec(x_954); -x_956 = x_943; -x_957 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_917, x_956); -x_958 = x_957; -lean_inc(x_948); -x_959 = l_Lean_mkFVar(x_948); -lean_inc(x_949); -x_960 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_960, 0, x_949); -x_961 = lean_box(x_926); -lean_inc(x_949); -x_962 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_962, 0, x_948); -lean_closure_set(x_962, 1, x_7); -lean_closure_set(x_962, 2, x_949); -lean_closure_set(x_962, 3, x_3); -lean_closure_set(x_962, 4, x_4); -lean_closure_set(x_962, 5, x_5); -lean_closure_set(x_962, 6, x_6); -lean_closure_set(x_962, 7, x_905); -lean_closure_set(x_962, 8, x_961); -lean_closure_set(x_962, 9, x_936); -lean_closure_set(x_962, 10, x_951); -lean_closure_set(x_962, 11, x_958); -lean_closure_set(x_962, 12, x_959); -x_963 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_963, 0, x_960); -lean_closure_set(x_963, 1, x_962); -x_964 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_949, x_963, x_12, x_13, x_14, x_15, x_955); -return x_964; -} -else -{ -uint8_t x_965; -lean_dec(x_943); -lean_dec(x_936); -lean_dec(x_921); -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_965 = !lean_is_exclusive(x_945); -if (x_965 == 0) -{ -return x_945; -} -else -{ -lean_object* x_966; lean_object* x_967; lean_object* x_968; -x_966 = lean_ctor_get(x_945, 0); -x_967 = lean_ctor_get(x_945, 1); -lean_inc(x_967); -lean_inc(x_966); -lean_dec(x_945); -x_968 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_968, 0, x_966); -lean_ctor_set(x_968, 1, x_967); -return x_968; -} -} -} -else -{ -uint8_t x_969; -lean_dec(x_936); -lean_dec(x_921); -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_969 = !lean_is_exclusive(x_940); -if (x_969 == 0) -{ -return x_940; -} -else -{ -lean_object* x_970; lean_object* x_971; lean_object* x_972; -x_970 = lean_ctor_get(x_940, 0); -x_971 = lean_ctor_get(x_940, 1); -lean_inc(x_971); -lean_inc(x_970); -lean_dec(x_940); -x_972 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_972, 0, x_970); -lean_ctor_set(x_972, 1, x_971); -return x_972; -} -} -} -else -{ -uint8_t x_973; -lean_dec(x_921); -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_973 = !lean_is_exclusive(x_933); -if (x_973 == 0) -{ -return x_933; -} -else -{ -lean_object* x_974; lean_object* x_975; lean_object* x_976; -x_974 = lean_ctor_get(x_933, 0); -x_975 = lean_ctor_get(x_933, 1); -lean_inc(x_975); -lean_inc(x_974); -lean_dec(x_933); -x_976 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_976, 0, x_974); -lean_ctor_set(x_976, 1, x_975); -return x_976; -} -} -} -} -else -{ -uint8_t x_991; -lean_dec(x_921); -lean_dec(x_911); -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_991 = !lean_is_exclusive(x_923); -if (x_991 == 0) -{ -return x_923; -} -else -{ -lean_object* x_992; lean_object* x_993; lean_object* x_994; -x_992 = lean_ctor_get(x_923, 0); -x_993 = lean_ctor_get(x_923, 1); -lean_inc(x_993); -lean_inc(x_992); -lean_dec(x_923); -x_994 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_994, 0, x_992); -lean_ctor_set(x_994, 1, x_993); -return x_994; -} -} -} -else -{ -uint8_t x_995; -lean_dec(x_911); -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_995 = !lean_is_exclusive(x_920); -if (x_995 == 0) -{ -return x_920; -} -else -{ -lean_object* x_996; lean_object* x_997; lean_object* x_998; -x_996 = lean_ctor_get(x_920, 0); -x_997 = lean_ctor_get(x_920, 1); -lean_inc(x_997); -lean_inc(x_996); -lean_dec(x_920); -x_998 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_998, 0, x_996); -lean_ctor_set(x_998, 1, x_997); -return x_998; -} -} -} -else -{ -uint8_t x_999; -lean_dec(x_905); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_999 = !lean_is_exclusive(x_906); -if (x_999 == 0) -{ -return x_906; -} -else -{ -lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; -x_1000 = lean_ctor_get(x_906, 0); -x_1001 = lean_ctor_get(x_906, 1); -lean_inc(x_1001); -lean_inc(x_1000); -lean_dec(x_906); -x_1002 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1002, 0, x_1000); -lean_ctor_set(x_1002, 1, x_1001); -return x_1002; -} -} -} -case 11: -{ -lean_object* x_1003; lean_object* x_1004; -lean_dec(x_11); -lean_dec(x_9); -x_1003 = lean_ctor_get(x_6, 5); -lean_inc(x_1003); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_1004 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_1003, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_1004) == 0) -{ -lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; -x_1005 = lean_ctor_get(x_1004, 1); -lean_inc(x_1005); -lean_dec(x_1004); -x_1006 = lean_st_ref_get(x_13, x_1005); -x_1007 = lean_ctor_get(x_1006, 0); -lean_inc(x_1007); -x_1008 = lean_ctor_get(x_1006, 1); -lean_inc(x_1008); -lean_dec(x_1006); -x_1009 = lean_ctor_get(x_1007, 0); -lean_inc(x_1009); -lean_dec(x_1007); -x_1010 = lean_ctor_get(x_6, 6); -lean_inc(x_1010); -x_1011 = l_List_redLength___main___rarg(x_1010); -x_1012 = lean_mk_empty_array_with_capacity(x_1011); -lean_dec(x_1011); -lean_inc(x_1010); -x_1013 = l_List_toArrayAux___main___rarg(x_1010, x_1012); -x_1014 = x_1013; -x_1015 = lean_unsigned_to_nat(0u); -lean_inc(x_1009); -lean_inc(x_5); -lean_inc(x_1); -x_1016 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_1016, 0, x_1); -lean_closure_set(x_1016, 1, x_5); -lean_closure_set(x_1016, 2, x_8); -lean_closure_set(x_1016, 3, x_10); -lean_closure_set(x_1016, 4, x_1009); -lean_closure_set(x_1016, 5, x_1010); -lean_closure_set(x_1016, 6, x_1015); -lean_closure_set(x_1016, 7, x_1014); -x_1017 = x_1016; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1018 = lean_apply_5(x_1017, x_12, x_13, x_14, x_15, x_1008); -if (lean_obj_tag(x_1018) == 0) -{ -lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; -x_1019 = lean_ctor_get(x_1018, 0); -lean_inc(x_1019); -x_1020 = lean_ctor_get(x_1018, 1); -lean_inc(x_1020); -lean_dec(x_1018); -lean_inc(x_1); -x_1021 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_1020); -if (lean_obj_tag(x_1021) == 0) -{ -lean_object* x_1022; lean_object* x_1023; uint8_t x_1024; lean_object* x_1025; -x_1022 = lean_ctor_get(x_1021, 0); -lean_inc(x_1022); -x_1023 = lean_ctor_get(x_1021, 1); -lean_inc(x_1023); -lean_dec(x_1021); -x_1024 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_1024 == 0) -{ -lean_object* x_1076; uint8_t x_1077; -x_1076 = l_Lean_MetavarContext_exprDependsOn(x_1009, x_1022, x_2); -x_1077 = lean_unbox(x_1076); -lean_dec(x_1076); -if (x_1077 == 0) -{ -x_1025 = x_1023; -goto block_1075; -} -else -{ -lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; uint8_t x_1085; -lean_dec(x_1019); -lean_dec(x_1003); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1078 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1078, 0, x_3); -x_1079 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_1080 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1080, 0, x_1079); -lean_ctor_set(x_1080, 1, x_1078); -x_1081 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_1082 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1082, 0, x_1080); -lean_ctor_set(x_1082, 1, x_1081); -x_1083 = lean_box(0); -x_1084 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_1082, x_1083, x_12, x_13, x_14, x_15, x_1023); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_1085 = !lean_is_exclusive(x_1084); -if (x_1085 == 0) -{ -return x_1084; -} -else -{ -lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; -x_1086 = lean_ctor_get(x_1084, 0); -x_1087 = lean_ctor_get(x_1084, 1); -lean_inc(x_1087); -lean_inc(x_1086); -lean_dec(x_1084); -x_1088 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1088, 0, x_1086); -lean_ctor_set(x_1088, 1, x_1087); -return x_1088; -} -} -} -else -{ -lean_dec(x_1022); -lean_dec(x_1009); -x_1025 = x_1023; -goto block_1075; -} -block_1075: -{ -lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; uint8_t x_1030; lean_object* x_1031; -lean_inc(x_1019); -x_1026 = x_1019; -x_1027 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_1015, x_1026); -x_1028 = x_1027; -x_1029 = lean_array_push(x_1028, x_2); -x_1030 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1031 = l_Lean_Meta_revert(x_1, x_1029, x_1030, x_12, x_13, x_14, x_15, x_1025); -if (lean_obj_tag(x_1031) == 0) -{ -lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; -x_1032 = lean_ctor_get(x_1031, 0); -lean_inc(x_1032); -x_1033 = lean_ctor_get(x_1031, 1); -lean_inc(x_1033); -lean_dec(x_1031); -x_1034 = lean_ctor_get(x_1032, 0); -lean_inc(x_1034); -x_1035 = lean_ctor_get(x_1032, 1); -lean_inc(x_1035); -lean_dec(x_1032); -x_1036 = lean_array_get_size(x_1019); -x_1037 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1038 = l_Lean_Meta_introNCore(x_1035, x_1036, x_1037, x_1030, x_12, x_13, x_14, x_15, x_1033); -if (lean_obj_tag(x_1038) == 0) -{ -lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; -x_1039 = lean_ctor_get(x_1038, 0); -lean_inc(x_1039); -x_1040 = lean_ctor_get(x_1038, 1); -lean_inc(x_1040); -lean_dec(x_1038); -x_1041 = lean_ctor_get(x_1039, 0); -lean_inc(x_1041); -x_1042 = lean_ctor_get(x_1039, 1); -lean_inc(x_1042); -lean_dec(x_1039); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1043 = l_Lean_Meta_intro1Core(x_1042, x_1030, x_12, x_13, x_14, x_15, x_1040); -if (lean_obj_tag(x_1043) == 0) -{ -lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; -x_1044 = lean_ctor_get(x_1043, 0); -lean_inc(x_1044); -x_1045 = lean_ctor_get(x_1043, 1); -lean_inc(x_1045); -lean_dec(x_1043); -x_1046 = lean_ctor_get(x_1044, 0); -lean_inc(x_1046); -x_1047 = lean_ctor_get(x_1044, 1); -lean_inc(x_1047); -lean_dec(x_1044); -x_1048 = lean_box(0); -x_1049 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_1019, x_1041, x_1019, x_1015, x_1048); -lean_dec(x_1019); -lean_inc(x_1047); -x_1050 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_1050, 0, x_1047); -x_1051 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_1052 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_1051, x_1050, x_12, x_13, x_14, x_15, x_1045); -x_1053 = lean_ctor_get(x_1052, 1); -lean_inc(x_1053); -lean_dec(x_1052); -x_1054 = x_1041; -x_1055 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_1015, x_1054); -x_1056 = x_1055; -lean_inc(x_1046); -x_1057 = l_Lean_mkFVar(x_1046); -lean_inc(x_1047); -x_1058 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_1058, 0, x_1047); -x_1059 = lean_box(x_1024); -lean_inc(x_1047); -x_1060 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_1060, 0, x_1046); -lean_closure_set(x_1060, 1, x_7); -lean_closure_set(x_1060, 2, x_1047); -lean_closure_set(x_1060, 3, x_3); -lean_closure_set(x_1060, 4, x_4); -lean_closure_set(x_1060, 5, x_5); -lean_closure_set(x_1060, 6, x_6); -lean_closure_set(x_1060, 7, x_1003); -lean_closure_set(x_1060, 8, x_1059); -lean_closure_set(x_1060, 9, x_1034); -lean_closure_set(x_1060, 10, x_1049); -lean_closure_set(x_1060, 11, x_1056); -lean_closure_set(x_1060, 12, x_1057); -x_1061 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_1061, 0, x_1058); -lean_closure_set(x_1061, 1, x_1060); -x_1062 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1047, x_1061, x_12, x_13, x_14, x_15, x_1053); -return x_1062; -} -else -{ -uint8_t x_1063; -lean_dec(x_1041); -lean_dec(x_1034); -lean_dec(x_1019); -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1063 = !lean_is_exclusive(x_1043); -if (x_1063 == 0) -{ -return x_1043; -} -else -{ -lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; -x_1064 = lean_ctor_get(x_1043, 0); -x_1065 = lean_ctor_get(x_1043, 1); -lean_inc(x_1065); -lean_inc(x_1064); -lean_dec(x_1043); -x_1066 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1066, 0, x_1064); -lean_ctor_set(x_1066, 1, x_1065); -return x_1066; -} -} -} -else -{ -uint8_t x_1067; -lean_dec(x_1034); -lean_dec(x_1019); -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1067 = !lean_is_exclusive(x_1038); -if (x_1067 == 0) -{ -return x_1038; -} -else -{ -lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; -x_1068 = lean_ctor_get(x_1038, 0); -x_1069 = lean_ctor_get(x_1038, 1); -lean_inc(x_1069); -lean_inc(x_1068); -lean_dec(x_1038); -x_1070 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1070, 0, x_1068); -lean_ctor_set(x_1070, 1, x_1069); -return x_1070; -} -} -} -else -{ -uint8_t x_1071; -lean_dec(x_1019); -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1071 = !lean_is_exclusive(x_1031); -if (x_1071 == 0) -{ -return x_1031; -} -else -{ -lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; -x_1072 = lean_ctor_get(x_1031, 0); -x_1073 = lean_ctor_get(x_1031, 1); -lean_inc(x_1073); -lean_inc(x_1072); -lean_dec(x_1031); -x_1074 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1074, 0, x_1072); -lean_ctor_set(x_1074, 1, x_1073); -return x_1074; -} -} -} -} -else -{ -uint8_t x_1089; -lean_dec(x_1019); -lean_dec(x_1009); -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_1089 = !lean_is_exclusive(x_1021); -if (x_1089 == 0) -{ -return x_1021; -} -else -{ -lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; -x_1090 = lean_ctor_get(x_1021, 0); -x_1091 = lean_ctor_get(x_1021, 1); -lean_inc(x_1091); -lean_inc(x_1090); -lean_dec(x_1021); -x_1092 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1092, 0, x_1090); -lean_ctor_set(x_1092, 1, x_1091); -return x_1092; -} -} -} -else -{ -uint8_t x_1093; -lean_dec(x_1009); -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_1093 = !lean_is_exclusive(x_1018); -if (x_1093 == 0) -{ -return x_1018; -} -else -{ -lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; -x_1094 = lean_ctor_get(x_1018, 0); -x_1095 = lean_ctor_get(x_1018, 1); -lean_inc(x_1095); -lean_inc(x_1094); -lean_dec(x_1018); -x_1096 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1096, 0, x_1094); -lean_ctor_set(x_1096, 1, x_1095); -return x_1096; -} -} -} -else -{ -uint8_t x_1097; -lean_dec(x_1003); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_1097 = !lean_is_exclusive(x_1004); -if (x_1097 == 0) -{ -return x_1004; -} -else -{ -lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; -x_1098 = lean_ctor_get(x_1004, 0); -x_1099 = lean_ctor_get(x_1004, 1); -lean_inc(x_1099); -lean_inc(x_1098); -lean_dec(x_1004); -x_1100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1100, 0, x_1098); -lean_ctor_set(x_1100, 1, x_1099); -return x_1100; -} -} -} -default: -{ -lean_object* x_1101; lean_object* x_1102; -lean_dec(x_11); -lean_dec(x_9); -x_1101 = lean_ctor_get(x_6, 5); -lean_inc(x_1101); -lean_inc(x_8); -lean_inc(x_5); -lean_inc(x_1); -x_1102 = l_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_5, x_8, x_10, x_1101, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_1102) == 0) -{ -lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; -x_1103 = lean_ctor_get(x_1102, 1); -lean_inc(x_1103); -lean_dec(x_1102); -x_1104 = lean_st_ref_get(x_13, x_1103); -x_1105 = lean_ctor_get(x_1104, 0); -lean_inc(x_1105); -x_1106 = lean_ctor_get(x_1104, 1); -lean_inc(x_1106); -lean_dec(x_1104); -x_1107 = lean_ctor_get(x_1105, 0); -lean_inc(x_1107); -lean_dec(x_1105); -x_1108 = lean_ctor_get(x_6, 6); -lean_inc(x_1108); -x_1109 = l_List_redLength___main___rarg(x_1108); -x_1110 = lean_mk_empty_array_with_capacity(x_1109); -lean_dec(x_1109); -lean_inc(x_1108); -x_1111 = l_List_toArrayAux___main___rarg(x_1108, x_1110); -x_1112 = x_1111; -x_1113 = lean_unsigned_to_nat(0u); -lean_inc(x_1107); -lean_inc(x_5); -lean_inc(x_1); -x_1114 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___boxed), 13, 8); -lean_closure_set(x_1114, 0, x_1); -lean_closure_set(x_1114, 1, x_5); -lean_closure_set(x_1114, 2, x_8); -lean_closure_set(x_1114, 3, x_10); -lean_closure_set(x_1114, 4, x_1107); -lean_closure_set(x_1114, 5, x_1108); -lean_closure_set(x_1114, 6, x_1113); -lean_closure_set(x_1114, 7, x_1112); -x_1115 = x_1114; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1116 = lean_apply_5(x_1115, x_12, x_13, x_14, x_15, x_1106); -if (lean_obj_tag(x_1116) == 0) -{ -lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; -x_1117 = lean_ctor_get(x_1116, 0); -lean_inc(x_1117); -x_1118 = lean_ctor_get(x_1116, 1); -lean_inc(x_1118); -lean_dec(x_1116); -lean_inc(x_1); -x_1119 = l_Lean_Meta_getMVarType(x_1, x_12, x_13, x_14, x_15, x_1118); -if (lean_obj_tag(x_1119) == 0) -{ -lean_object* x_1120; lean_object* x_1121; uint8_t x_1122; lean_object* x_1123; -x_1120 = lean_ctor_get(x_1119, 0); -lean_inc(x_1120); -x_1121 = lean_ctor_get(x_1119, 1); -lean_inc(x_1121); -lean_dec(x_1119); -x_1122 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -if (x_1122 == 0) -{ -lean_object* x_1174; uint8_t x_1175; -x_1174 = l_Lean_MetavarContext_exprDependsOn(x_1107, x_1120, x_2); -x_1175 = lean_unbox(x_1174); -lean_dec(x_1174); -if (x_1175 == 0) -{ -x_1123 = x_1121; -goto block_1173; -} -else -{ -lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; uint8_t x_1183; -lean_dec(x_1117); -lean_dec(x_1101); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1176 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1176, 0, x_3); -x_1177 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6; -x_1178 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1178, 0, x_1177); -lean_ctor_set(x_1178, 1, x_1176); -x_1179 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4; -x_1180 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1180, 0, x_1178); -lean_ctor_set(x_1180, 1, x_1179); -x_1181 = lean_box(0); -x_1182 = l_Lean_Meta_throwTacticEx___rarg(x_5, x_1, x_1180, x_1181, x_12, x_13, x_14, x_15, x_1121); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_1183 = !lean_is_exclusive(x_1182); -if (x_1183 == 0) -{ -return x_1182; -} -else -{ -lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; -x_1184 = lean_ctor_get(x_1182, 0); -x_1185 = lean_ctor_get(x_1182, 1); -lean_inc(x_1185); -lean_inc(x_1184); -lean_dec(x_1182); -x_1186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1186, 0, x_1184); -lean_ctor_set(x_1186, 1, x_1185); -return x_1186; -} -} -} -else -{ -lean_dec(x_1120); -lean_dec(x_1107); -x_1123 = x_1121; -goto block_1173; -} -block_1173: -{ -lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; uint8_t x_1128; lean_object* x_1129; -lean_inc(x_1117); -x_1124 = x_1117; -x_1125 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_1113, x_1124); -x_1126 = x_1125; -x_1127 = lean_array_push(x_1126, x_2); -x_1128 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1129 = l_Lean_Meta_revert(x_1, x_1127, x_1128, x_12, x_13, x_14, x_15, x_1123); -if (lean_obj_tag(x_1129) == 0) -{ -lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; -x_1130 = lean_ctor_get(x_1129, 0); -lean_inc(x_1130); -x_1131 = lean_ctor_get(x_1129, 1); -lean_inc(x_1131); -lean_dec(x_1129); -x_1132 = lean_ctor_get(x_1130, 0); -lean_inc(x_1132); -x_1133 = lean_ctor_get(x_1130, 1); -lean_inc(x_1133); -lean_dec(x_1130); -x_1134 = lean_array_get_size(x_1117); -x_1135 = lean_box(0); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1136 = l_Lean_Meta_introNCore(x_1133, x_1134, x_1135, x_1128, x_12, x_13, x_14, x_15, x_1131); -if (lean_obj_tag(x_1136) == 0) -{ -lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; -x_1137 = lean_ctor_get(x_1136, 0); -lean_inc(x_1137); -x_1138 = lean_ctor_get(x_1136, 1); -lean_inc(x_1138); -lean_dec(x_1136); -x_1139 = lean_ctor_get(x_1137, 0); -lean_inc(x_1139); -x_1140 = lean_ctor_get(x_1137, 1); -lean_inc(x_1140); -lean_dec(x_1137); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_1141 = l_Lean_Meta_intro1Core(x_1140, x_1128, x_12, x_13, x_14, x_15, x_1138); -if (lean_obj_tag(x_1141) == 0) -{ -lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; -x_1142 = lean_ctor_get(x_1141, 0); -lean_inc(x_1142); -x_1143 = lean_ctor_get(x_1141, 1); -lean_inc(x_1143); -lean_dec(x_1141); -x_1144 = lean_ctor_get(x_1142, 0); -lean_inc(x_1144); -x_1145 = lean_ctor_get(x_1142, 1); -lean_inc(x_1145); -lean_dec(x_1142); -x_1146 = lean_box(0); -x_1147 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_1117, x_1139, x_1117, x_1113, x_1146); -lean_dec(x_1117); -lean_inc(x_1145); -x_1148 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed), 2, 1); -lean_closure_set(x_1148, 0, x_1145); -x_1149 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; -x_1150 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_1149, x_1148, x_12, x_13, x_14, x_15, x_1143); -x_1151 = lean_ctor_get(x_1150, 1); -lean_inc(x_1151); -lean_dec(x_1150); -x_1152 = x_1139; -x_1153 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_1113, x_1152); -x_1154 = x_1153; -lean_inc(x_1144); -x_1155 = l_Lean_mkFVar(x_1144); -lean_inc(x_1145); -x_1156 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); -lean_closure_set(x_1156, 0, x_1145); -x_1157 = lean_box(x_1122); -lean_inc(x_1145); -x_1158 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed), 19, 13); -lean_closure_set(x_1158, 0, x_1144); -lean_closure_set(x_1158, 1, x_7); -lean_closure_set(x_1158, 2, x_1145); -lean_closure_set(x_1158, 3, x_3); -lean_closure_set(x_1158, 4, x_4); -lean_closure_set(x_1158, 5, x_5); -lean_closure_set(x_1158, 6, x_6); -lean_closure_set(x_1158, 7, x_1101); -lean_closure_set(x_1158, 8, x_1157); -lean_closure_set(x_1158, 9, x_1132); -lean_closure_set(x_1158, 10, x_1147); -lean_closure_set(x_1158, 11, x_1154); -lean_closure_set(x_1158, 12, x_1155); -x_1159 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_1159, 0, x_1156); -lean_closure_set(x_1159, 1, x_1158); -x_1160 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1145, x_1159, x_12, x_13, x_14, x_15, x_1151); -return x_1160; -} -else -{ -uint8_t x_1161; -lean_dec(x_1139); -lean_dec(x_1132); -lean_dec(x_1117); -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1161 = !lean_is_exclusive(x_1141); -if (x_1161 == 0) -{ -return x_1141; -} -else -{ -lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; -x_1162 = lean_ctor_get(x_1141, 0); -x_1163 = lean_ctor_get(x_1141, 1); -lean_inc(x_1163); -lean_inc(x_1162); -lean_dec(x_1141); -x_1164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1164, 0, x_1162); -lean_ctor_set(x_1164, 1, x_1163); -return x_1164; -} -} -} -else -{ -uint8_t x_1165; -lean_dec(x_1132); -lean_dec(x_1117); -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1165 = !lean_is_exclusive(x_1136); -if (x_1165 == 0) -{ -return x_1136; -} -else -{ -lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; -x_1166 = lean_ctor_get(x_1136, 0); -x_1167 = lean_ctor_get(x_1136, 1); -lean_inc(x_1167); -lean_inc(x_1166); -lean_dec(x_1136); -x_1168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1168, 0, x_1166); -lean_ctor_set(x_1168, 1, x_1167); -return x_1168; -} -} -} -else -{ -uint8_t x_1169; -lean_dec(x_1117); -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1169 = !lean_is_exclusive(x_1129); -if (x_1169 == 0) -{ -return x_1129; -} -else -{ -lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; -x_1170 = lean_ctor_get(x_1129, 0); -x_1171 = lean_ctor_get(x_1129, 1); -lean_inc(x_1171); -lean_inc(x_1170); -lean_dec(x_1129); -x_1172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1172, 0, x_1170); -lean_ctor_set(x_1172, 1, x_1171); -return x_1172; -} -} -} -} -else -{ -uint8_t x_1187; -lean_dec(x_1117); -lean_dec(x_1107); -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_1187 = !lean_is_exclusive(x_1119); -if (x_1187 == 0) -{ -return x_1119; -} -else -{ -lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; -x_1188 = lean_ctor_get(x_1119, 0); -x_1189 = lean_ctor_get(x_1119, 1); -lean_inc(x_1189); -lean_inc(x_1188); -lean_dec(x_1119); -x_1190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1190, 0, x_1188); -lean_ctor_set(x_1190, 1, x_1189); -return x_1190; -} -} -} -else -{ -uint8_t x_1191; -lean_dec(x_1107); -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -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_1191 = !lean_is_exclusive(x_1116); -if (x_1191 == 0) -{ -return x_1116; -} -else -{ -lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; -x_1192 = lean_ctor_get(x_1116, 0); -x_1193 = lean_ctor_get(x_1116, 1); -lean_inc(x_1193); -lean_inc(x_1192); -lean_dec(x_1116); -x_1194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1194, 0, x_1192); -lean_ctor_set(x_1194, 1, x_1193); -return x_1194; -} -} -} -else -{ -uint8_t x_1195; -lean_dec(x_1101); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -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_1195 = !lean_is_exclusive(x_1102); -if (x_1195 == 0) -{ -return x_1102; -} -else -{ -lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; -x_1196 = lean_ctor_get(x_1102, 0); -x_1197 = lean_ctor_get(x_1102, 1); -lean_inc(x_1197); -lean_inc(x_1196); -lean_dec(x_1102); -x_1198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1198, 0, x_1196); -lean_ctor_set(x_1198, 1, x_1197); -return x_1198; -} +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } @@ -11359,7 +7162,7 @@ _start: lean_object* x_12; lean_inc(x_7); lean_inc(x_1); -x_12 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_1, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -11392,7 +7195,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_19); -x_21 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_19, x_20, x_7, x_8, x_9, x_10, x_18); +x_21 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_19, x_20, x_7, x_8, x_9, x_10, x_18); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; @@ -11410,7 +7213,7 @@ lean_dec(x_1); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg(x_3, x_19, x_7, x_8, x_9, x_10, x_23); +x_24 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg(x_3, x_19, x_7, x_8, x_9, x_10, x_23); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -11436,7 +7239,7 @@ x_31 = lean_unsigned_to_nat(1u); x_32 = lean_nat_sub(x_28, x_31); lean_dec(x_28); lean_inc(x_26); -x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12(x_3, x_1, x_2, x_4, x_5, x_17, x_20, x_26, x_26, x_30, x_32, x_7, x_8, x_9, x_10, x_25); +x_33 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16(x_3, x_1, x_2, x_4, x_5, x_17, x_20, x_26, x_26, x_30, x_32, x_7, x_8, x_9, x_10, x_25); return x_33; } } @@ -11545,7 +7348,7 @@ lean_object* l_Lean_Meta_induction(lean_object* x_1, lean_object* x_2, lean_obje _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2; +x_11 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2; lean_inc(x_1); x_12 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); lean_closure_set(x_12, 0, x_1); @@ -11560,42 +7363,53 @@ lean_closure_set(x_13, 4, x_11); x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_14, x_6, x_7, x_8, x_9, x_10); return x_15; } } -lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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* l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_induction___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at_Lean_Meta_induction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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* l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___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) { _start: { lean_object* x_8; -x_8 = l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnfHeadPredAux___main___at_Lean_Meta_induction___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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* l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___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: { lean_object* x_8; -x_8 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_whnfUntil___at_Lean_Meta_induction___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_2); return x_8; } } -lean_object* l_List_forM___main___at_Lean_Meta_induction___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_object* l_List_forM___main___at_Lean_Meta_induction___spec__5___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_List_forM___main___at_Lean_Meta_induction___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_forM___main___at_Lean_Meta_induction___spec__5(x_1, x_2, x_3, 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); @@ -11605,61 +7419,126 @@ lean_dec(x_4); return x_11; } } -lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___main___at_Lean_Meta_induction___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at_Lean_Meta_induction___spec__5(x_1, x_2); +x_3 = l_List_elem___main___at_Lean_Meta_induction___spec__6(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__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, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +return x_15; +} +} +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_16 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_9); +lean_dec(x_10); +lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_4); return x_16; } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_13) { +lean_object* l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_14; -x_14 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_17; +x_17 = l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +return x_17; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__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, x_13, x_14, x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +return x_16; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_4); -return x_14; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_15; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +return x_15; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9___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_Array_iterateMAux___main___at_Lean_Meta_induction___spec__8(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at_Lean_Meta_induction___spec__9(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9___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* l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11___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_Meta_normalizeLevel___at_Lean_Meta_induction___spec__9(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_normalizeLevel___at_Lean_Meta_induction___spec__11(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -11667,11 +7546,28 @@ lean_dec(x_2); return x_7; } } -lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__10___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* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_4); +lean_dec(x_4); +x_12 = l_List_foldlM___main___at_Lean_Meta_induction___spec__12___lambda__1(x_1, x_2, x_3, x_11, x_5, x_6, x_7, x_8, x_9, 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_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l_List_foldlM___main___at_Lean_Meta_induction___spec__12___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_foldlM___main___at_Lean_Meta_induction___spec__10(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_foldlM___main___at_Lean_Meta_induction___spec__12(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); @@ -11681,7 +7577,51 @@ lean_dec(x_4); return x_12; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__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, x_13, x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_15; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_19; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11702,30 +7642,42 @@ lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; lean_object* x_19 = _args[18]; lean_object* x_20 = _args[19]; -lean_object* x_21 = _args[20]; _start: { -uint8_t x_22; lean_object* x_23; -x_22 = lean_unbox(x_6); +lean_object* x_21; +x_21 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_6); -x_23 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11(x_1, x_2, x_3, x_4, x_5, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_23; +return x_21; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_addTrace___at_Lean_Meta_induction___spec__14___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: { -lean_object* x_3; -x_3 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1(x_1, x_2); +lean_object* x_8; +x_8 = l_Lean_addTrace___at_Lean_Meta_induction___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15___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___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_induction___spec__15(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -return x_3; +return x_7; } } -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2___boxed(lean_object** _args) { +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -11744,19 +7696,25 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; _start: { -uint8_t x_20; lean_object* x_21; -x_20 = lean_unbox(x_9); +lean_object* x_19; +x_19 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__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, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_9); -x_21 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -return x_21; +return x_19; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_10); +return x_16; } } lean_object* l_Lean_Meta_induction___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) { @@ -11778,11 +7736,11 @@ x_12 = l_Lean_Meta_induction(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10) return x_12; } } -lean_object* l___private_Lean_Meta_Tactic_Induction_7__regTraceClasses(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1; +x_2 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -11824,103 +7782,89 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_FVarSubst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__2); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__3); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__4); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__5); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__6); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__7); -l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8 = _init_l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__8); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__2); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__3); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__4); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__5); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__6); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__7); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__8); +l_Lean_Meta_InductionSubgoal_fields___default = _init_l_Lean_Meta_InductionSubgoal_fields___default(); +lean_mark_persistent(l_Lean_Meta_InductionSubgoal_fields___default); +l_Lean_Meta_InductionSubgoal_subst___default = _init_l_Lean_Meta_InductionSubgoal_subst___default(); +lean_mark_persistent(l_Lean_Meta_InductionSubgoal_subst___default); l_Lean_Meta_InductionSubgoal_inhabited___closed__1 = _init_l_Lean_Meta_InductionSubgoal_inhabited___closed__1(); lean_mark_persistent(l_Lean_Meta_InductionSubgoal_inhabited___closed__1); l_Lean_Meta_InductionSubgoal_inhabited = _init_l_Lean_Meta_InductionSubgoal_inhabited(); lean_mark_persistent(l_Lean_Meta_InductionSubgoal_inhabited); -l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__1); -l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__2); -l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3 = _init_l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_6__throwUnexpectedMajorType___rarg___closed__3); -l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1(); -lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__1); -l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2(); -lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__2); -l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3(); -lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__4___closed__3); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__1); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__2); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__3); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__4); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__5); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__6); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__7); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__8); -l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9(); -lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__6___closed__9); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__1); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__2); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__3); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__4); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__5); -l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__7___closed__6); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__4); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__5); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__6); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__7); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__8); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__11___closed__9); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___lambda__1___closed__4); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__1); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__2); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__3); -l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__12___closed__4); -res = l___private_Lean_Meta_Tactic_Induction_7__regTraceClasses(lean_io_mk_world()); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__2); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__3); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__1); +l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2 = _init_l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_throwUnexpectedMajorType___rarg___closed__2); +l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1(); +lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__1); +l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2 = _init_l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2(); +lean_mark_persistent(l_List_forM___main___at_Lean_Meta_induction___spec__5___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__1___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___lambda__2___closed__2); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__1); +l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2 = _init_l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2(); +lean_mark_persistent(l_Nat_forMAux___main___at_Lean_Meta_induction___spec__7___closed__2); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__1); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__2); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__3); +l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4(); +lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Meta_induction___spec__8___lambda__2___closed__4); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__4); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__5); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__6); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__13___closed__7); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__2); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___lambda__2___closed__3); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__1); +l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2 = _init_l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at_Lean_Meta_induction___spec__16___closed__2); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Induction___hyg_2132_(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)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Injection.c b/stage0/stdlib/Lean/Meta/Tactic/Injection.c index f5add05fde..6b8142d3d2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Injection.c @@ -16,13 +16,19 @@ extern "C" { lean_object* l_Lean_Meta_mkNoConfusion___at_Lean_Meta_injectionCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___closed__1; +lean_object* l_Lean_Meta_injectionCore_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__2(lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__6; +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionCore_match__2(lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Meta_injectionIntro_match__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__2(lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -30,49 +36,190 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_ lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionIntro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___lambda__1(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_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l_Lean_Meta_mkEqOfHEq___at___private_Lean_Meta_Tactic_Injection_1__heqToEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injection_match__1(lean_object*); lean_object* l_Lean_Meta_injectionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l_Lean_Meta_injectionIntro_match__1(lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__1___rarg(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_injectionIntro___main(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_Injection_0__Lean_Meta_heqToEq_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEqOfHEq___at___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp___closed__5; +lean_object* l_Lean_Meta_injectionIntro_match__5(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__4(lean_object*); lean_object* l_Lean_Meta_injection___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__1(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injection_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionCore_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__3; +lean_object* l_Lean_Meta_injectionCore_match__1(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__5; +lean_object* l_Lean_Meta_injectionCore_match__3(lean_object*); 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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__2; +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__1; lean_object* l_Lean_Meta_injectionCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionIntro_match__3(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_injectionCore___lambda__1___closed__4; lean_object* l_Lean_Meta_injectionCore___closed__2; +lean_object* l_Lean_Meta_injectionCore_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq___at___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_injectionCore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l_Lean_Meta_injectionCore_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionCore_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionCore_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_apply_2(x_4, x_1, x_2); +return x_5; +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_apply_2(x_4, x_1, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_dec(x_2); +x_9 = lean_apply_2(x_3, x_7, x_8); +return x_9; +} +} +} +} +lean_object* l_Lean_Meta_injectionCore_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionCore_match__2___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionCore_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +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_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_3, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Meta_injectionCore_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionCore_match__3___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Meta_mkNoConfusion___at_Lean_Meta_injectionCore___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: { @@ -81,6 +228,106 @@ x_8 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp(x_1, x_2, x_3, x_4, return x_8; } } +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___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; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +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; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_inferTypeRef; +x_20 = lean_st_ref_get(x_19, x_6); +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); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_inferTypeRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} static lean_object* _init_l_Lean_Meta_injectionCore___lambda__1___closed__1() { _start: { @@ -143,7 +390,7 @@ _start: lean_object* x_10; lean_inc(x_5); lean_inc(x_1); -x_10 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -158,7 +405,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_14 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_13, x_5, x_6, x_7, x_8, x_12); +x_14 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(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; lean_object* x_18; uint8_t x_19; @@ -196,7 +443,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_26 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_24, x_5, x_6, x_7, x_8, x_16); +x_26 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_24, x_5, x_6, x_7, x_8, x_16); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -209,7 +456,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_29 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_25, x_5, x_6, x_7, x_8, x_28); +x_29 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_25, x_5, x_6, x_7, x_8, x_28); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; @@ -294,189 +541,171 @@ lean_inc(x_5); x_50 = l___private_Lean_Meta_AppBuilder_24__mkNoConfusionImp(x_33, x_49, x_5, x_6, x_7, x_8, x_37); if (lean_obj_tag(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; uint8_t x_57; +lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; 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_ctor_get(x_43, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_ctor_get(x_48, 0); -lean_inc(x_55); +x_110 = lean_ctor_get(x_43, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +lean_dec(x_110); +x_112 = lean_ctor_get(x_48, 0); +lean_inc(x_112); lean_dec(x_48); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_name_eq(x_54, x_56); -lean_dec(x_56); -lean_dec(x_54); -if (x_57 == 0) +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +lean_dec(x_112); +x_114 = lean_name_eq(x_111, x_113); +lean_dec(x_113); +lean_dec(x_111); +if (x_114 == 0) { -lean_object* x_58; uint8_t x_59; -lean_dec(x_43); -lean_dec(x_2); -lean_dec(x_1); -x_58 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_3, x_51, x_5, x_6, x_7, x_8, x_52); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -x_61 = lean_box(0); -lean_ctor_set(x_58, 0, x_61); -return x_58; +uint8_t x_115; +x_115 = 1; +x_53 = x_115; +goto block_109; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_58, 1); -lean_inc(x_62); -lean_dec(x_58); -x_63 = lean_box(0); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -return x_64; +uint8_t x_116; +x_116 = 0; +x_53 = x_116; +goto block_109; } -} -else +block_109: { -lean_object* x_65; +if (x_53 == 0) +{ +lean_object* x_54; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_51); -x_65 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_51, x_5, x_6, x_7, x_8, x_52); -if (lean_obj_tag(x_65) == 0) +x_54 = l_Lean_Meta_inferType___at_Lean_Meta_injectionCore___spec__2(x_51, x_5, x_6, x_7, x_8, x_52); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_57 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_55, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 7) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_2); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = l_Lean_Expr_headBeta(x_60); +lean_inc(x_3); +x_62 = l_Lean_Meta_getMVarTag(x_3, x_5, x_6, x_7, x_8, x_59); +if (lean_obj_tag(x_62) == 0) +{ +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; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +lean_inc(x_5); +x_65 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_61, x_63, x_5, x_6, x_7, x_8, x_64); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); lean_dec(x_65); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_68 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_66, x_5, x_6, x_7, x_8, x_67); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -if (lean_obj_tag(x_69) == 7) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_2); -x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_66); +x_68 = l_Lean_mkApp(x_51, x_66); +x_69 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_3, x_68, x_5, x_6, x_7, x_8, x_67); +x_70 = lean_ctor_get(x_69, 1); 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 = l_Lean_Expr_headBeta(x_71); -lean_inc(x_3); -x_73 = l_Lean_Meta_getMVarTag(x_3, x_5, x_6, x_7, x_8, x_70); -if (lean_obj_tag(x_73) == 0) +x_71 = l_Lean_Expr_mvarId_x21(x_66); +lean_dec(x_66); +x_72 = l_Lean_Meta_tryClear(x_71, x_1, x_5, x_6, x_7, x_8, x_70); +if (lean_obj_tag(x_72) == 0) { -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_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_72, 0); +x_75 = lean_ctor_get(x_43, 4); lean_inc(x_75); -lean_dec(x_73); -lean_inc(x_5); -x_76 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_72, x_74, x_5, x_6, x_7, x_8, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); +lean_dec(x_43); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set(x_72, 0, x_76); +return x_72; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_77 = lean_ctor_get(x_72, 0); +x_78 = lean_ctor_get(x_72, 1); lean_inc(x_78); -lean_dec(x_76); lean_inc(x_77); -x_79 = l_Lean_mkApp(x_51, x_77); -x_80 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_3, x_79, x_5, x_6, x_7, x_8, x_78); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -x_82 = l_Lean_Expr_mvarId_x21(x_77); -lean_dec(x_77); -x_83 = l_Lean_Meta_tryClear(x_82, x_1, x_5, x_6, x_7, x_8, x_81); -if (lean_obj_tag(x_83) == 0) -{ -uint8_t x_84; -x_84 = !lean_is_exclusive(x_83); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_83, 0); -x_86 = lean_ctor_get(x_43, 4); -lean_inc(x_86); -lean_dec(x_43); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -lean_ctor_set(x_83, 0, x_87); -return x_83; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_88 = lean_ctor_get(x_83, 0); -x_89 = lean_ctor_get(x_83, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_83); -x_90 = lean_ctor_get(x_43, 4); -lean_inc(x_90); -lean_dec(x_43); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_89); -return x_92; -} -} -else -{ -uint8_t x_93; -lean_dec(x_43); -x_93 = !lean_is_exclusive(x_83); -if (x_93 == 0) -{ -return x_83; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_83, 0); -x_95 = lean_ctor_get(x_83, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_83); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} -} -else -{ -uint8_t x_97; lean_dec(x_72); +x_79 = lean_ctor_get(x_43, 4); +lean_inc(x_79); +lean_dec(x_43); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +return x_81; +} +} +else +{ +uint8_t x_82; +lean_dec(x_43); +x_82 = !lean_is_exclusive(x_72); +if (x_82 == 0) +{ +return x_72; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_72, 0); +x_84 = lean_ctor_get(x_72, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_72); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_61); lean_dec(x_51); lean_dec(x_43); lean_dec(x_8); @@ -485,49 +714,49 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_97 = !lean_is_exclusive(x_73); -if (x_97 == 0) +x_86 = !lean_is_exclusive(x_62); +if (x_86 == 0) { -return x_73; +return x_62; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_73, 0); -x_99 = lean_ctor_get(x_73, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_73); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_62, 0); +x_88 = lean_ctor_get(x_62, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_62); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_69); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_58); lean_dec(x_51); lean_dec(x_43); lean_dec(x_1); -x_101 = lean_ctor_get(x_68, 1); -lean_inc(x_101); -lean_dec(x_68); -x_102 = l_Lean_Meta_injectionCore___lambda__1___closed__6; -x_103 = lean_box(0); -x_104 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_102, x_103, x_5, x_6, x_7, x_8, x_101); +x_90 = lean_ctor_get(x_57, 1); +lean_inc(x_90); +lean_dec(x_57); +x_91 = l_Lean_Meta_injectionCore___lambda__1___closed__6; +x_92 = lean_box(0); +x_93 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_91, x_92, x_5, x_6, x_7, x_8, x_90); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_104; +return x_93; } } else { -uint8_t x_105; +uint8_t x_94; lean_dec(x_51); lean_dec(x_43); lean_dec(x_8); @@ -537,96 +766,131 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_68); -if (x_105 == 0) +x_94 = !lean_is_exclusive(x_57); +if (x_94 == 0) { -return x_68; +return x_57; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_57, 0); +x_96 = lean_ctor_get(x_57, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_57); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_51); +lean_dec(x_43); +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_98 = !lean_is_exclusive(x_54); +if (x_98 == 0) +{ +return x_54; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_54, 0); +x_100 = lean_ctor_get(x_54, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_54); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; +} +} +} +else +{ +lean_object* x_102; uint8_t x_103; +lean_dec(x_43); +lean_dec(x_2); +lean_dec(x_1); +x_102 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_3, x_51, x_5, x_6, x_7, x_8, x_52); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_103 = !lean_is_exclusive(x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_102, 0); +lean_dec(x_104); +x_105 = lean_box(0); +lean_ctor_set(x_102, 0, x_105); +return x_102; } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_68, 0); -x_107 = lean_ctor_get(x_68, 1); -lean_inc(x_107); +x_106 = lean_ctor_get(x_102, 1); lean_inc(x_106); -lean_dec(x_68); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); +lean_dec(x_102); +x_107 = lean_box(0); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_106); return x_108; } } } -else -{ -uint8_t x_109; -lean_dec(x_51); -lean_dec(x_43); -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_109 = !lean_is_exclusive(x_65); -if (x_109 == 0) -{ -return x_65; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_65, 0); -x_111 = lean_ctor_get(x_65, 1); -lean_inc(x_111); -lean_inc(x_110); -lean_dec(x_65); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; -} -} -} -} -else -{ -uint8_t x_113; -lean_dec(x_48); -lean_dec(x_43); -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_113 = !lean_is_exclusive(x_50); -if (x_113 == 0) -{ -return x_50; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_50, 0); -x_115 = lean_ctor_get(x_50, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_50); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -} } else { uint8_t x_117; +lean_dec(x_48); +lean_dec(x_43); +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_117 = !lean_is_exclusive(x_50); +if (x_117 == 0) +{ +return x_50; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_50, 0); +x_119 = lean_ctor_get(x_50, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_50); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; +} +} +} +} +} +else +{ +uint8_t x_121; lean_dec(x_30); lean_dec(x_27); lean_dec(x_8); @@ -636,50 +900,19 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_117 = !lean_is_exclusive(x_32); -if (x_117 == 0) +x_121 = !lean_is_exclusive(x_32); +if (x_121 == 0) { return x_32; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_32, 0); -x_119 = lean_ctor_get(x_32, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_32); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; -} -} -} -else -{ -uint8_t x_121; -lean_dec(x_27); -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_121 = !lean_is_exclusive(x_29); -if (x_121 == 0) -{ -return x_29; -} -else -{ lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_29, 0); -x_123 = lean_ctor_get(x_29, 1); +x_122 = lean_ctor_get(x_32, 0); +x_123 = lean_ctor_get(x_32, 1); lean_inc(x_123); lean_inc(x_122); -lean_dec(x_29); +lean_dec(x_32); x_124 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_124, 0, x_122); lean_ctor_set(x_124, 1, x_123); @@ -690,6 +923,37 @@ return x_124; else { uint8_t x_125; +lean_dec(x_27); +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_125 = !lean_is_exclusive(x_29); +if (x_125 == 0) +{ +return x_29; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_29, 0); +x_127 = lean_ctor_get(x_29, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_29); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +} +else +{ +uint8_t x_129; lean_dec(x_25); lean_dec(x_8); lean_dec(x_7); @@ -698,50 +962,19 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_125 = !lean_is_exclusive(x_26); -if (x_125 == 0) +x_129 = !lean_is_exclusive(x_26); +if (x_129 == 0) { return x_26; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_26, 0); -x_127 = lean_ctor_get(x_26, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_26); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -} -else -{ -uint8_t x_129; -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_129 = !lean_is_exclusive(x_14); -if (x_129 == 0) -{ -return x_14; -} -else -{ lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_14, 0); -x_131 = lean_ctor_get(x_14, 1); +x_130 = lean_ctor_get(x_26, 0); +x_131 = lean_ctor_get(x_26, 1); lean_inc(x_131); lean_inc(x_130); -lean_dec(x_14); +lean_dec(x_26); x_132 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_132, 0, x_130); lean_ctor_set(x_132, 1, x_131); @@ -749,6 +982,7 @@ return x_132; } } } +} else { uint8_t x_133; @@ -759,23 +993,53 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_10); +x_133 = !lean_is_exclusive(x_14); if (x_133 == 0) { +return x_14; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_14, 0); +x_135 = lean_ctor_get(x_14, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_14); +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_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_137 = !lean_is_exclusive(x_10); +if (x_137 == 0) +{ return x_10; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_10, 0); -x_135 = lean_ctor_get(x_10, 1); -lean_inc(x_135); -lean_inc(x_134); +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_10, 0); +x_139 = lean_ctor_get(x_10, 1); +lean_inc(x_139); +lean_inc(x_138); lean_dec(x_10); -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; +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; } } } @@ -815,7 +1079,7 @@ lean_closure_set(x_10, 2, x_1); x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_11, 0, x_9); lean_closure_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); +x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); return x_12; } } @@ -828,7 +1092,74 @@ lean_dec(x_4); return x_10; } } -lean_object* l_Lean_Meta_mkEqOfHEq___at___private_Lean_Meta_Tactic_Injection_1__heqToEq___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* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +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_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +lean_dec(x_8); +x_13 = lean_apply_4(x_3, x_9, x_10, x_11, x_12); +return x_13; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkEqOfHEq___at___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___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; @@ -836,7 +1167,15 @@ x_7 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(x_1, x_2, x_3, x_4, x_5, return x_7; } } -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq___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* l_Lean_Meta_mkEq___at___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___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: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___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; lean_object* x_10; @@ -845,7 +1184,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_10 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_9, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_9, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -946,103 +1285,142 @@ uint8_t x_38; x_38 = !lean_is_exclusive(x_37); if (x_38 == 0) { -return x_37; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_object* x_39; uint8_t x_40; x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 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; -x_42 = !lean_is_exclusive(x_37); -if (x_42 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { return x_37; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_37, 0, x_43); +return x_37; +} +} +else +{ +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; +x_44 = lean_ctor_get(x_37, 0); +x_45 = lean_ctor_get(x_37, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_37); -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; +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_48 = x_44; +} else { + lean_dec_ref(x_44); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_45); +return x_50; +} +} +else +{ +uint8_t x_51; +x_51 = !lean_is_exclusive(x_37); +if (x_51 == 0) +{ +return x_37; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_37, 0); +x_53 = lean_ctor_get(x_37, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_37); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -uint8_t x_46; +uint8_t x_55; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_46 = !lean_is_exclusive(x_33); -if (x_46 == 0) +x_55 = !lean_is_exclusive(x_33); +if (x_55 == 0) { return x_33; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_33, 0); -x_48 = lean_ctor_get(x_33, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_33, 0); +x_57 = lean_ctor_get(x_33, 1); +lean_inc(x_57); +lean_inc(x_56); lean_dec(x_33); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } else { -uint8_t x_50; +uint8_t x_59; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_30); -if (x_50 == 0) +x_59 = !lean_is_exclusive(x_30); +if (x_59 == 0) { return x_30; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_30, 0); -x_52 = lean_ctor_get(x_30, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_30, 0); +x_61 = lean_ctor_get(x_30, 1); +lean_inc(x_61); +lean_inc(x_60); lean_dec(x_30); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } else { -uint8_t x_54; +uint8_t x_63; lean_dec(x_24); lean_dec(x_7); lean_dec(x_6); @@ -1050,29 +1428,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_26); -if (x_54 == 0) +x_63 = !lean_is_exclusive(x_26); +if (x_63 == 0) { return x_26; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_26, 0); -x_56 = lean_ctor_get(x_26, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_26, 0); +x_65 = lean_ctor_get(x_26, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_26); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } else { -uint8_t x_58; +uint8_t x_67; lean_dec(x_21); lean_dec(x_20); lean_dec(x_7); @@ -1081,354 +1459,516 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_58 = !lean_is_exclusive(x_23); -if (x_58 == 0) +x_67 = !lean_is_exclusive(x_23); +if (x_67 == 0) { return x_23; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_23, 0); -x_60 = lean_ctor_get(x_23, 1); -lean_inc(x_60); -lean_inc(x_59); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_23, 0); +x_69 = lean_ctor_get(x_23, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_23); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_62 = lean_ctor_get(x_10, 0); -x_63 = lean_ctor_get(x_10, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = lean_ctor_get(x_10, 0); +x_72 = lean_ctor_get(x_10, 1); +lean_inc(x_72); +lean_inc(x_71); lean_dec(x_10); -x_64 = l_Lean_Expr_heq_x3f___closed__2; -x_65 = lean_unsigned_to_nat(4u); -x_66 = l_Lean_Expr_isAppOfArity___main(x_62, x_64, x_65); -if (x_66 == 0) +x_73 = l_Lean_Expr_heq_x3f___closed__2; +x_74 = lean_unsigned_to_nat(4u); +x_75 = l_Lean_Expr_isAppOfArity___main(x_71, x_73, x_74); +if (x_75 == 0) { -lean_object* x_67; lean_object* x_68; -lean_dec(x_62); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_1); -lean_ctor_set(x_67, 1, x_2); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_63); -return x_68; -} -else -{ -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_69 = l_Lean_Expr_appFn_x21(x_62); -x_70 = l_Lean_Expr_appFn_x21(x_69); -lean_dec(x_69); -x_71 = l_Lean_Expr_appArg_x21(x_70); -lean_dec(x_70); -x_72 = l_Lean_Expr_appArg_x21(x_62); -lean_dec(x_62); -lean_inc(x_1); -x_73 = l_Lean_mkFVar(x_1); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_74 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(x_73, x_4, x_5, x_6, x_7, x_63); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -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); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_77 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_71, x_72, x_4, x_5, x_6, x_7, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = l_Lean_LocalDecl_userName(x_3); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_81 = l_Lean_Meta_assert(x_2, x_80, x_78, x_75, x_4, x_5, x_6, x_7, x_79); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_84 = l_Lean_Meta_clear(x_82, x_1, x_4, x_5, x_6, x_7, x_83); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; -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 = 1; -x_88 = l_Lean_Meta_intro1Core(x_85, x_87, x_4, x_5, x_6, x_7, x_86); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -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); -} -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_91; -} -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_88, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_88, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_95 = x_88; -} else { - lean_dec_ref(x_88); - x_95 = lean_box(0); -} -if (lean_is_scalar(x_95)) { - x_96 = lean_alloc_ctor(1, 2, 0); -} else { - x_96 = x_95; -} -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_96, 1, x_94); -return x_96; -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_97 = lean_ctor_get(x_84, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_84, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_99 = x_84; -} else { - lean_dec_ref(x_84); - x_99 = lean_box(0); -} -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); -} else { - x_100 = x_99; -} -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_98); -return x_100; -} -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_101 = lean_ctor_get(x_81, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_81, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_103 = x_81; -} else { - lean_dec_ref(x_81); - x_103 = lean_box(0); -} -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); -} else { - x_104 = x_103; -} -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_75); -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_105 = lean_ctor_get(x_77, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_77, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_107 = x_77; -} else { - lean_dec_ref(x_77); - x_107 = lean_box(0); -} -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(1, 2, 0); -} else { - x_108 = x_107; -} -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; -} -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_72); +lean_object* x_76; lean_object* x_77; lean_dec(x_71); 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_109 = lean_ctor_get(x_74, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_74, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_111 = x_74; +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_1); +lean_ctor_set(x_76, 1, x_2); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_72); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = l_Lean_Expr_appFn_x21(x_71); +x_79 = l_Lean_Expr_appFn_x21(x_78); +lean_dec(x_78); +x_80 = l_Lean_Expr_appArg_x21(x_79); +lean_dec(x_79); +x_81 = l_Lean_Expr_appArg_x21(x_71); +lean_dec(x_71); +lean_inc(x_1); +x_82 = l_Lean_mkFVar(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_83 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp(x_82, x_4, x_5, x_6, x_7, x_72); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_86 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_80, x_81, x_4, x_5, x_6, x_7, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +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_LocalDecl_userName(x_3); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_90 = l_Lean_Meta_assert(x_2, x_89, x_87, x_84, x_4, x_5, x_6, x_7, x_88); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_93 = l_Lean_Meta_clear(x_91, x_1, x_4, x_5, x_6, x_7, x_92); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = 1; +x_97 = l_Lean_Meta_intro1Core(x_94, x_96, x_4, x_5, x_6, x_7, x_95); +if (lean_obj_tag(x_97) == 0) +{ +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; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; } else { - lean_dec_ref(x_74); - x_111 = lean_box(0); + lean_dec_ref(x_97); + x_100 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_98, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_103 = x_98; } else { - x_112 = x_111; + lean_dec_ref(x_98); + x_103 = lean_box(0); } -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_103; } +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +if (lean_is_scalar(x_100)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_100; } +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_99); +return x_105; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_106 = lean_ctor_get(x_97, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_97, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_108 = x_97; +} else { + lean_dec_ref(x_97); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; } } else { -uint8_t x_113; +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_110 = lean_ctor_get(x_93, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_93, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_112 = x_93; +} else { + lean_dec_ref(x_93); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_114 = lean_ctor_get(x_90, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_90, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_116 = x_90; +} else { + lean_dec_ref(x_90); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_84); 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_113 = !lean_is_exclusive(x_10); -if (x_113 == 0) +x_118 = lean_ctor_get(x_86, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_86, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_120 = x_86; +} else { + lean_dec_ref(x_86); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; +} +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_81); +lean_dec(x_80); +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_122 = lean_ctor_get(x_83, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_83, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_124 = x_83; +} else { + lean_dec_ref(x_83); + x_124 = lean_box(0); +} +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); +} else { + x_125 = x_124; +} +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_123); +return x_125; +} +} +} +} +else +{ +uint8_t x_126; +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_126 = !lean_is_exclusive(x_10); +if (x_126 == 0) { return x_10; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_10, 0); -x_115 = lean_ctor_get(x_10, 1); -lean_inc(x_115); -lean_inc(x_114); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_10, 0); +x_128 = lean_ctor_get(x_10, 1); +lean_inc(x_128); +lean_inc(x_127); lean_dec(x_10); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; } } } } -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq(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* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq(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_inc(x_2); -x_8 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed), 6, 1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___boxed), 6, 1); lean_closure_set(x_8, 0, x_2); lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Injection_1__heqToEq___lambda__1___boxed), 8, 2); +x_9 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___lambda__1___boxed), 8, 2); lean_closure_set(x_9, 0, x_2); lean_closure_set(x_9, 1, x_1); x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); return x_11; } } -lean_object* l___private_Lean_Meta_Tactic_Injection_1__heqToEq___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* l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___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___private_Lean_Meta_Tactic_Injection_1__heqToEq___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_injectionIntro___main(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* l_Lean_Meta_injectionIntro_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionIntro_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionIntro_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionIntro_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionIntro_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__5___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_1, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_1, x_10); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_12; +lean_dec(x_6); +x_12 = lean_apply_3(x_7, x_11, x_2, x_3); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_7); +x_13 = lean_ctor_get(x_4, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 1); +lean_inc(x_14); +lean_dec(x_4); +x_15 = lean_apply_5(x_6, x_11, x_2, x_3, x_13, x_14); +return x_15; +} +} +else +{ +lean_object* x_16; +lean_dec(x_7); +lean_dec(x_6); +x_16 = lean_apply_3(x_5, x_2, x_3, x_4); +return x_16; +} +} +} +lean_object* l_Lean_Meta_injectionIntro_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injectionIntro_match__5___rarg___boxed), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_injectionIntro_match__5___rarg___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: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_injectionIntro_match__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Meta_injectionIntro(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; uint8_t x_11; @@ -1466,10 +2006,10 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_20 = l___private_Lean_Meta_Tactic_Injection_1__heqToEq(x_19, x_18, x_5, x_6, x_7, x_8, x_17); +x_20 = l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq(x_19, x_18, x_5, x_6, x_7, x_8, x_17); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -1481,208 +2021,235 @@ x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); lean_dec(x_21); x_25 = lean_array_push(x_3, x_23); +x_26 = lean_box(0); x_1 = x_13; x_2 = x_24; x_3 = x_25; +x_4 = x_26; x_9 = x_22; goto _start; } else { -uint8_t x_27; +uint8_t x_28; lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_27 = !lean_is_exclusive(x_20); -if (x_27 == 0) +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) { return x_20; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_20, 0); -x_29 = lean_ctor_get(x_20, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); lean_dec(x_20); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +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 { -uint8_t x_31; +uint8_t x_32; lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_31 = !lean_is_exclusive(x_15); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_15); +if (x_32 == 0) { return x_15; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_15, 0); -x_33 = lean_ctor_get(x_15, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_15, 0); +x_34 = lean_ctor_get(x_15, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); lean_dec(x_15); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_4, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_4, 0); lean_inc(x_36); +x_37 = lean_ctor_get(x_4, 1); +lean_inc(x_37); lean_dec(x_4); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_37 = l_Lean_Meta_intro(x_2, x_35, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_37) == 0) +x_38 = l_Lean_Meta_intro(x_2, x_36, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_38, 0); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); lean_dec(x_38); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_42 = l___private_Lean_Meta_Tactic_Injection_1__heqToEq(x_41, x_40, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_42) == 0) +x_43 = l___private_Lean_Meta_Tactic_Injection_0__Lean_Meta_heqToEq(x_42, x_41, x_5, x_6, x_7, x_8, x_40); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_43, 0); +x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); lean_dec(x_43); -x_47 = lean_array_push(x_3, x_45); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_array_push(x_3, x_46); x_1 = x_13; -x_2 = x_46; -x_3 = x_47; -x_4 = x_36; -x_9 = x_44; +x_2 = x_47; +x_3 = x_48; +x_4 = x_37; +x_9 = x_45; goto _start; } else { -uint8_t x_49; -lean_dec(x_36); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_49 = !lean_is_exclusive(x_42); -if (x_49 == 0) -{ -return x_42; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_42, 0); -x_51 = lean_ctor_get(x_42, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_42); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -else -{ -uint8_t x_53; -lean_dec(x_36); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_53 = !lean_is_exclusive(x_37); -if (x_53 == 0) -{ -return x_37; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_37, 0); -x_55 = lean_ctor_get(x_37, 1); -lean_inc(x_55); -lean_inc(x_54); +uint8_t x_50; lean_dec(x_37); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_50 = !lean_is_exclusive(x_43); +if (x_50 == 0) +{ +return x_43; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_43, 0); +x_52 = lean_ctor_get(x_43, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_43); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_37); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_54 = !lean_is_exclusive(x_38); +if (x_54 == 0) +{ +return x_38; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_38, 0); +x_56 = lean_ctor_get(x_38, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_38); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } } else { -lean_object* x_57; lean_object* x_58; +lean_object* x_58; lean_object* x_59; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_57 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_57, 0, x_2); -lean_ctor_set(x_57, 1, x_3); -lean_ctor_set(x_57, 2, x_4); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_9); -return x_58; +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_2); +lean_ctor_set(x_58, 1, x_3); +lean_ctor_set(x_58, 2, x_4); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_9); +return x_59; } } } -lean_object* l_Lean_Meta_injectionIntro(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* l_Lean_Meta_injection_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_injectionIntro___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l_Lean_Meta_injection_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_injection_match__1___rarg), 3, 0); +return x_2; } } lean_object* l_Lean_Meta_injection(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -1742,7 +2309,7 @@ x_20 = lean_ctor_get(x_11, 1); lean_inc(x_20); lean_dec(x_11); x_21 = l_Array_empty___closed__1; -x_22 = l_Lean_Meta_injectionIntro___main(x_20, x_19, x_21, x_3, x_5, x_6, x_7, x_8, x_18); +x_22 = l_Lean_Meta_injectionIntro(x_20, x_19, x_21, x_3, x_5, x_6, x_7, x_8, x_18); return x_22; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Intro.c index ed850683fc..879895c8d4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Intro.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Intro.c @@ -13,21 +13,22 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_18__withNewLocalInstancesImpAux___at_Lean_Meta_withNewLocalInstances___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2(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_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Lean_Meta_registerHygienicIntro___closed__4; lean_object* l_Lean_Meta_intro1Core___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; lean_object* lean_local_ctx_get_unused_name(lean_object*, lean_object*); -lean_object* l_Lean_Meta_registerHygienicIntro___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___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_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_Meta_introN(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___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*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2; -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__2(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_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4; uint8_t lean_name_eq(lean_object*, lean_object*); +uint8_t l_Lean_Meta_hygienicIntroDefault; +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* l_ReaderT_bind___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getHygienicIntro___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___rarg(lean_object*, lean_object*, lean_object*); @@ -35,94 +36,266 @@ lean_object* l_Lean_Meta_getHygienicIntro___rarg___boxed(lean_object*, lean_obje extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_getHygienicIntro___rarg___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(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_object* l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3(lean_object*); -lean_object* l_Lean_Meta_registerHygienicIntro___closed__3; -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux(lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___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*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg___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_getHygienicIntro___rarg___closed__2; lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, 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_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___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*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_introNCore___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5; +lean_object* l_Lean_Meta_intro_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534_(lean_object*); lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__4; lean_object* l_Lean_Meta_withNewLocalInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_match__1___rarg(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_introNP(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg(lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___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* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1___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_introNCore___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*); extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Expr_headBeta(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3; +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___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_Expr_fvarId_x21(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__1(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_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__1___rarg(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___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*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__2___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1; lean_object* l_Lean_Meta_intro1P(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___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*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___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*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp(lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___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* l___private_Lean_CoreM_1__mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp___boxed(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_mkSimpleThunk___closed__1; +uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_match__1(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1; -extern lean_object* l_Id_Monad; -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4; -uint8_t l_Lean_Meta_hygienicIntroDef; +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Array_umapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(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_Intro_2__introNImp___rarg___lambda__1(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___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_object*); -lean_object* l_Lean_Meta_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__2(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_Intro_0__Lean_Meta_introNImp_loop_match__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_Core_mkFreshUserName___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_intro_match__1(lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__1(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*); +extern lean_object* l_Lean_Meta_whnfRef; lean_object* lean_register_option(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getHygienicIntro___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___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___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1(uint8_t, uint8_t, 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_Meta_getHygienicIntro(lean_object*, lean_object*); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_intro1Core_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3___rarg___boxed(lean_object*, 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_Intro_0__Lean_Meta_introNImp_loop_match__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore___boxed(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_Intro_0__Lean_Meta_introNImp_loop___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*); extern lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp_match__1(lean_object*); +lean_object* l_Lean_Meta_intro1Core_match__1(lean_object*); 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_registerHygienicIntro___closed__2; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg(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_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1(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_object*, lean_object*); +lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___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* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main(lean_object*); -lean_object* l_Lean_Meta_registerHygienicIntro(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4; +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___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_object*); +lean_object* lean_name_mk_numeral(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5; -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1() { +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__1___rarg), 2, 0); +return x_3; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__2___rarg), 2, 0); +return x_3; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3___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, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_eq(x_1, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_7); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_1, x_13); +switch (lean_obj_tag(x_6)) { +case 7: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_10); +lean_dec(x_8); +x_15 = lean_ctor_get(x_6, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_6, 2); +lean_inc(x_17); +x_18 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); +lean_dec(x_6); +x_19 = lean_box_uint64(x_18); +x_20 = lean_apply_9(x_9, x_14, x_2, x_3, x_4, x_5, x_15, x_16, x_17, x_19); +return x_20; +} +case 8: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_10); +lean_dec(x_9); +x_21 = lean_ctor_get(x_6, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_6, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_6, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 3); +lean_inc(x_24); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*4); +lean_dec(x_6); +x_26 = lean_box_uint64(x_25); +x_27 = lean_apply_10(x_8, x_14, x_2, x_3, x_4, x_5, x_21, x_22, x_23, x_24, x_26); +return x_27; +} +default: +{ +lean_object* x_28; +lean_dec(x_9); +lean_dec(x_8); +x_28 = lean_apply_6(x_10, x_14, x_2, x_3, x_4, x_5, x_6); +return x_28; +} +} +} +else +{ +lean_object* x_29; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_29 = lean_apply_5(x_7, x_2, x_3, x_4, x_5, x_6); +return x_29; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3___rarg___boxed), 10, 0); +return x_3; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3___rarg___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___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop_match__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_match__1___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -130,17 +303,17 @@ x_1 = lean_mk_string("introN"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3() { _start: { lean_object* x_1; @@ -148,27 +321,27 @@ x_1 = lean_mk_string("insufficient number of binders"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3; +x_1 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4; +x_1 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -182,8 +355,8 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_15 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2; -x_16 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5; +x_15 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; +x_16 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5; x_17 = lean_box(0); x_18 = l_Lean_Meta_throwTacticEx___rarg(x_15, x_1, x_16, x_17, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); @@ -197,12 +370,12 @@ else lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_unsigned_to_nat(1u); x_20 = lean_nat_add(x_2, x_19); -x_21 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg(x_1, x_3, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_21 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg(x_1, x_3, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_21; } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___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) { _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; lean_object* x_16; @@ -323,7 +496,7 @@ return x_36; } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___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, 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; uint8_t x_15; @@ -331,82 +504,82 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_nat_dec_eq(x_3, x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_sub(x_3, x_16); lean_dec(x_3); switch (lean_obj_tag(x_8)) { case 7: { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t 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; -x_40 = lean_ctor_get(x_8, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_8, 1); -lean_inc(x_41); -x_42 = lean_ctor_get(x_8, 2); -lean_inc(x_42); -x_43 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t 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; +x_18 = lean_ctor_get(x_8, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_8, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_8, 2); +lean_inc(x_20); +x_21 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); lean_dec(x_8); -x_44 = lean_array_get_size(x_5); -x_45 = lean_expr_instantiate_rev_range(x_41, x_6, x_44, x_5); -lean_dec(x_44); -lean_dec(x_41); -x_46 = l_Lean_Expr_headBeta(x_45); -x_47 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_48 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; -x_49 = l_Lean_mkFreshId___rarg(x_47, x_48); +x_22 = lean_array_get_size(x_5); +x_23 = lean_expr_instantiate_rev_range(x_19, x_6, x_22, x_5); +lean_dec(x_22); +lean_dec(x_19); +x_24 = l_Lean_Expr_headBeta(x_23); +x_25 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_26 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; +x_27 = l_Lean_mkFreshId___rarg(x_25, x_26); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_50 = lean_apply_5(x_49, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_50) == 0) +x_28 = lean_apply_5(x_27, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -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); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); lean_inc(x_2); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_4); -x_53 = lean_apply_8(x_2, x_4, x_40, x_7, x_9, x_10, x_11, x_12, x_52); -if (lean_obj_tag(x_53) == 0) +x_31 = lean_apply_8(x_2, x_4, x_18, x_7, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_31) == 0) { -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; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_dec(x_54); -x_58 = (uint8_t)((x_43 << 24) >> 61); -lean_inc(x_51); -x_59 = lean_local_ctx_mk_local_decl(x_4, x_51, x_56, x_46, x_58); -x_60 = l_Lean_mkFVar(x_51); -x_61 = lean_array_push(x_5, x_60); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = (uint8_t)((x_21 << 24) >> 61); +lean_inc(x_29); +x_37 = lean_local_ctx_mk_local_decl(x_4, x_29, x_34, x_24, x_36); +x_38 = l_Lean_mkFVar(x_29); +x_39 = lean_array_push(x_5, x_38); x_3 = x_17; -x_4 = x_59; -x_5 = x_61; -x_7 = x_57; -x_8 = x_42; -x_13 = x_55; +x_4 = x_37; +x_5 = x_39; +x_7 = x_35; +x_8 = x_20; +x_13 = x_33; goto _start; } else { -uint8_t x_63; -lean_dec(x_51); -lean_dec(x_46); -lean_dec(x_42); +uint8_t x_41; +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_20); lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -417,32 +590,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_53); -if (x_63 == 0) +x_41 = !lean_is_exclusive(x_31); +if (x_41 == 0) { -return x_53; +return x_31; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_53, 0); -x_65 = lean_ctor_get(x_53, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_53); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_31, 0); +x_43 = lean_ctor_get(x_31, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_31); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -uint8_t x_67; -lean_dec(x_46); -lean_dec(x_42); -lean_dec(x_40); +uint8_t x_45; +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_18); lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -454,101 +627,101 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_50); -if (x_67 == 0) +x_45 = !lean_is_exclusive(x_28); +if (x_45 == 0) { -return x_50; +return x_28; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_50, 0); -x_69 = lean_ctor_get(x_50, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_50); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_28, 0); +x_47 = lean_ctor_get(x_28, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_28); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } case 8: { -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; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_71 = lean_ctor_get(x_8, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_8, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_8, 2); -lean_inc(x_73); -x_74 = lean_ctor_get(x_8, 3); -lean_inc(x_74); +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; +x_49 = lean_ctor_get(x_8, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_8, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_8, 2); +lean_inc(x_51); +x_52 = lean_ctor_get(x_8, 3); +lean_inc(x_52); lean_dec(x_8); -x_75 = lean_array_get_size(x_5); -x_76 = lean_expr_instantiate_rev_range(x_72, x_6, x_75, x_5); -lean_dec(x_72); -x_77 = l_Lean_Expr_headBeta(x_76); -x_78 = lean_expr_instantiate_rev_range(x_73, x_6, x_75, x_5); -lean_dec(x_75); -lean_dec(x_73); -x_79 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_80 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; -x_81 = l_Lean_mkFreshId___rarg(x_79, x_80); +x_53 = lean_array_get_size(x_5); +x_54 = lean_expr_instantiate_rev_range(x_50, x_6, x_53, x_5); +lean_dec(x_50); +x_55 = l_Lean_Expr_headBeta(x_54); +x_56 = lean_expr_instantiate_rev_range(x_51, x_6, x_53, x_5); +lean_dec(x_53); +lean_dec(x_51); +x_57 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_58 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; +x_59 = l_Lean_mkFreshId___rarg(x_57, x_58); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_82 = lean_apply_5(x_81, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_82) == 0) +x_60 = lean_apply_5(x_59, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); lean_inc(x_2); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_4); -x_85 = lean_apply_8(x_2, x_4, x_71, x_7, x_9, x_10, x_11, x_12, x_84); -if (lean_obj_tag(x_85) == 0) +x_63 = lean_apply_8(x_2, x_4, x_49, x_7, x_9, x_10, x_11, x_12, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_dec(x_86); -x_90 = 0; -lean_inc(x_83); -x_91 = lean_local_ctx_mk_let_decl(x_4, x_83, x_88, x_77, x_78, x_90); -x_92 = l_Lean_mkFVar(x_83); -x_93 = lean_array_push(x_5, x_92); +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; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_dec(x_64); +x_68 = 0; +lean_inc(x_61); +x_69 = lean_local_ctx_mk_let_decl(x_4, x_61, x_66, x_55, x_56, x_68); +x_70 = l_Lean_mkFVar(x_61); +x_71 = lean_array_push(x_5, x_70); x_3 = x_17; -x_4 = x_91; -x_5 = x_93; -x_7 = x_89; -x_8 = x_74; -x_13 = x_87; +x_4 = x_69; +x_5 = x_71; +x_7 = x_67; +x_8 = x_52; +x_13 = x_65; goto _start; } else { -uint8_t x_95; -lean_dec(x_83); -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_74); +uint8_t x_73; +lean_dec(x_61); +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_52); lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -559,33 +732,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_95 = !lean_is_exclusive(x_85); -if (x_95 == 0) +x_73 = !lean_is_exclusive(x_63); +if (x_73 == 0) { -return x_85; +return x_63; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_85, 0); -x_97 = lean_ctor_get(x_85, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_85); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_63, 0); +x_75 = lean_ctor_get(x_63, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_63); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_99; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_74); -lean_dec(x_71); +uint8_t x_77; +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_52); +lean_dec(x_49); lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); @@ -597,202 +770,196 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_99 = !lean_is_exclusive(x_82); -if (x_99 == 0) +x_77 = !lean_is_exclusive(x_60); +if (x_77 == 0) { -return x_82; +return x_60; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_82, 0); -x_101 = lean_ctor_get(x_82, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_82); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_60, 0); +x_79 = lean_ctor_get(x_60, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_60); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } default: { -lean_object* x_103; -x_103 = lean_box(0); -x_18 = x_103; -goto block_39; -} -} -block_39: -{ -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; uint8_t x_26; -lean_dec(x_18); -x_19 = lean_array_get_size(x_5); -x_20 = lean_expr_instantiate_rev_range(x_8, x_6, x_19, x_5); +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; uint8_t x_88; +x_81 = lean_array_get_size(x_5); +x_82 = lean_expr_instantiate_rev_range(x_8, x_6, x_81, x_5); lean_dec(x_8); -x_21 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__4; -x_22 = l_Lean_Meta_whnf___rarg(x_21, x_20); +x_83 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__4; +x_84 = l_Lean_Meta_whnf___rarg(x_83, x_82); lean_inc(x_5); lean_inc(x_4); -x_23 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___boxed), 13, 7); -lean_closure_set(x_23, 0, x_1); -lean_closure_set(x_23, 1, x_17); -lean_closure_set(x_23, 2, x_2); -lean_closure_set(x_23, 3, x_4); -lean_closure_set(x_23, 4, x_5); -lean_closure_set(x_23, 5, x_19); -lean_closure_set(x_23, 6, x_7); -x_24 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___rarg), 6, 5); -lean_closure_set(x_25, 0, x_24); -lean_closure_set(x_25, 1, lean_box(0)); -lean_closure_set(x_25, 2, lean_box(0)); -lean_closure_set(x_25, 3, x_22); -lean_closure_set(x_25, 4, x_23); -x_26 = !lean_is_exclusive(x_9); -if (x_26 == 0) +x_85 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___boxed), 13, 7); +lean_closure_set(x_85, 0, x_1); +lean_closure_set(x_85, 1, x_17); +lean_closure_set(x_85, 2, x_2); +lean_closure_set(x_85, 3, x_4); +lean_closure_set(x_85, 4, x_5); +lean_closure_set(x_85, 5, x_81); +lean_closure_set(x_85, 6, x_7); +x_86 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; +x_87 = lean_alloc_closure((void*)(l_ReaderT_bind___rarg), 6, 5); +lean_closure_set(x_87, 0, x_86); +lean_closure_set(x_87, 1, lean_box(0)); +lean_closure_set(x_87, 2, lean_box(0)); +lean_closure_set(x_87, 3, x_84); +lean_closure_set(x_87, 4, x_85); +x_88 = !lean_is_exclusive(x_9); +if (x_88 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_9, 1); -lean_dec(x_27); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_89 = lean_ctor_get(x_9, 1); +lean_dec(x_89); lean_ctor_set(x_9, 1, x_4); -x_28 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -x_29 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_30 = l_Lean_Meta_withNewLocalInstances___rarg(x_28, x_29, lean_box(0), x_5, x_6, x_25); -x_31 = lean_apply_5(x_30, x_9, x_10, x_11, x_12, x_13); -return x_31; +x_90 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; +x_91 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_92 = l_Lean_Meta_withNewLocalInstances___rarg(x_90, x_91, lean_box(0), x_5, x_6, x_87); +x_93 = lean_apply_5(x_92, x_9, x_10, x_11, x_12, x_13); +return x_93; } else { -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; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 2); -lean_inc(x_33); -lean_inc(x_32); +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; +x_94 = lean_ctor_get(x_9, 0); +x_95 = lean_ctor_get(x_9, 2); +lean_inc(x_95); +lean_inc(x_94); lean_dec(x_9); -x_34 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_4); -lean_ctor_set(x_34, 2, x_33); -x_35 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -x_36 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_37 = l_Lean_Meta_withNewLocalInstances___rarg(x_35, x_36, lean_box(0), x_5, x_6, x_25); -x_38 = lean_apply_5(x_37, x_34, x_10, x_11, x_12, x_13); -return x_38; +x_96 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_4); +lean_ctor_set(x_96, 2, x_95); +x_97 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; +x_98 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_99 = l_Lean_Meta_withNewLocalInstances___rarg(x_97, x_98, lean_box(0), x_5, x_6, x_87); +x_100 = lean_apply_5(x_99, x_96, x_10, x_11, x_12, x_13); +return x_100; +} } } } else { -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_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); -x_104 = lean_array_get_size(x_5); -x_105 = lean_expr_instantiate_rev_range(x_8, x_6, x_104, x_5); -lean_dec(x_104); +x_101 = lean_array_get_size(x_5); +x_102 = lean_expr_instantiate_rev_range(x_8, x_6, x_101, x_5); +lean_dec(x_101); lean_dec(x_8); lean_inc(x_1); -x_106 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); -lean_closure_set(x_106, 0, x_1); +x_103 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); +lean_closure_set(x_103, 0, x_1); lean_inc(x_5); -x_107 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__2), 9, 3); -lean_closure_set(x_107, 0, x_105); -lean_closure_set(x_107, 1, x_5); -lean_closure_set(x_107, 2, x_1); -x_108 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; -x_109 = lean_alloc_closure((void*)(l_ReaderT_bind___rarg), 6, 5); -lean_closure_set(x_109, 0, x_108); -lean_closure_set(x_109, 1, lean_box(0)); -lean_closure_set(x_109, 2, lean_box(0)); -lean_closure_set(x_109, 3, x_106); -lean_closure_set(x_109, 4, x_107); -x_110 = !lean_is_exclusive(x_9); -if (x_110 == 0) +x_104 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__2), 9, 3); +lean_closure_set(x_104, 0, x_102); +lean_closure_set(x_104, 1, x_5); +lean_closure_set(x_104, 2, x_1); +x_105 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; +x_106 = lean_alloc_closure((void*)(l_ReaderT_bind___rarg), 6, 5); +lean_closure_set(x_106, 0, x_105); +lean_closure_set(x_106, 1, lean_box(0)); +lean_closure_set(x_106, 2, lean_box(0)); +lean_closure_set(x_106, 3, x_103); +lean_closure_set(x_106, 4, x_104); +x_107 = !lean_is_exclusive(x_9); +if (x_107 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_111 = lean_ctor_get(x_9, 1); -lean_dec(x_111); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_108 = lean_ctor_get(x_9, 1); +lean_dec(x_108); lean_ctor_set(x_9, 1, x_4); -x_112 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -x_113 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_114 = l_Lean_Meta_withNewLocalInstances___rarg(x_112, x_113, lean_box(0), x_5, x_6, x_109); -x_115 = lean_apply_5(x_114, x_9, x_10, x_11, x_12, x_13); -return x_115; +x_109 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; +x_110 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_111 = l_Lean_Meta_withNewLocalInstances___rarg(x_109, x_110, lean_box(0), x_5, x_6, x_106); +x_112 = lean_apply_5(x_111, x_9, x_10, x_11, x_12, x_13); +return x_112; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_116 = lean_ctor_get(x_9, 0); -x_117 = lean_ctor_get(x_9, 2); -lean_inc(x_117); -lean_inc(x_116); +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; +x_113 = lean_ctor_get(x_9, 0); +x_114 = lean_ctor_get(x_9, 2); +lean_inc(x_114); +lean_inc(x_113); lean_dec(x_9); -x_118 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_4); -lean_ctor_set(x_118, 2, x_117); -x_119 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -x_120 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_121 = l_Lean_Meta_withNewLocalInstances___rarg(x_119, x_120, lean_box(0), x_5, x_6, x_109); -x_122 = lean_apply_5(x_121, x_118, x_10, x_11, x_12, x_13); -return x_122; +x_115 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_4); +lean_ctor_set(x_115, 2, x_114); +x_116 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; +x_117 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_118 = l_Lean_Meta_withNewLocalInstances___rarg(x_116, x_117, lean_box(0), x_5, x_6, x_106); +x_119 = lean_apply_5(x_118, x_115, x_10, x_11, x_12, x_13); +return x_119; } } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg), 13, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg), 13, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___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, lean_object* x_13) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___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, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__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, x_13); +x_14 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__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, x_13); lean_dec(x_2); return x_14; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_14; -x_14 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_14; -} -} -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux(lean_object* x_1) { -_start: +lean_object* x_3; uint8_t x_4; +x_3 = lean_array_get_size(x_2); +x_4 = lean_nat_dec_lt(x_1, x_3); +lean_dec(x_3); +if (x_4 == 0) { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___rarg), 13, 0); -return x_2; +lean_object* x_5; +lean_dec(x_1); +x_5 = x_2; +return x_5; } -} -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: +else { -lean_object* x_3; -x_3 = l_Lean_Expr_fvarId_x21(x_2); -return x_3; +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; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = x_6; +x_10 = l_Lean_Expr_fvarId_x21(x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_1, x_11); +x_13 = x_10; +x_14 = lean_array_fset(x_8, x_1, x_13); +lean_dec(x_1); +x_1 = x_12; +x_2 = x_14; +goto _start; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__1___boxed), 2, 0); -return x_1; } -} -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___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, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -810,7 +977,7 @@ x_14 = lean_ctor_get(x_6, 1); lean_inc(x_14); x_15 = l_Array_empty___closed__1; x_16 = lean_unsigned_to_nat(0u); -x_17 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg(x_1, x_2, x_3, x_14, x_15, x_16, x_4, x_12, x_6, x_7, x_8, x_9, x_13); +x_17 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg(x_1, x_2, x_3, x_14, x_15, x_16, x_4, x_12, x_6, x_7, x_8, x_9, x_13); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; @@ -822,100 +989,94 @@ x_19 = lean_ctor_get(x_17, 0); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) { -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_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_19, 0); x_22 = x_21; -x_23 = l_Id_Monad; -x_24 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1; -x_25 = l_Array_umapMAux___main___rarg(x_23, lean_box(0), x_24, x_16, x_22); -x_26 = x_25; -lean_ctor_set(x_19, 0, x_26); +x_23 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_16, x_22); +x_24 = x_23; +lean_ctor_set(x_19, 0, x_24); return x_17; } else { -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; -x_27 = lean_ctor_get(x_19, 0); -x_28 = lean_ctor_get(x_19, 1); -lean_inc(x_28); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_19); -x_29 = x_27; -x_30 = l_Id_Monad; -x_31 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1; -x_32 = l_Array_umapMAux___main___rarg(x_30, lean_box(0), x_31, x_16, x_29); -x_33 = x_32; -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_28); -lean_ctor_set(x_17, 0, x_34); +x_27 = x_25; +x_28 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_16, x_27); +x_29 = x_28; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_26); +lean_ctor_set(x_17, 0, x_30); return x_17; } } else { -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; lean_object* x_45; lean_object* x_46; -x_35 = lean_ctor_get(x_17, 0); -x_36 = lean_ctor_get(x_17, 1); -lean_inc(x_36); -lean_inc(x_35); +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; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); lean_dec(x_17); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_35 = x_31; +} else { + lean_dec_ref(x_31); + x_35 = lean_box(0); +} +x_36 = x_33; +x_37 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_16, x_36); +x_38 = x_37; +if (lean_is_scalar(x_35)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { x_39 = x_35; -} else { - lean_dec_ref(x_35); - x_39 = lean_box(0); } -x_40 = x_37; -x_41 = l_Id_Monad; -x_42 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1; -x_43 = l_Array_umapMAux___main___rarg(x_41, lean_box(0), x_42, x_16, x_40); -x_44 = x_43; -if (lean_is_scalar(x_39)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_39; -} -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_38); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_36); -return x_46; +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_34); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_32); +return x_40; } } else { -uint8_t x_47; -x_47 = !lean_is_exclusive(x_17); -if (x_47 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_17); +if (x_41 == 0) { return x_17; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_17, 0); -x_49 = lean_ctor_get(x_17, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_17, 0); +x_43 = lean_ctor_get(x_17, 1); +lean_inc(x_43); +lean_inc(x_42); lean_dec(x_17); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -uint8_t x_51; +uint8_t x_45; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -924,84 +1085,67 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_11); -if (x_51 == 0) +x_45 = !lean_is_exclusive(x_11); +if (x_45 == 0) { return x_11; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_11, 0); -x_53 = lean_ctor_get(x_11, 1); -lean_inc(x_53); -lean_inc(x_52); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_11, 0); +x_47 = lean_ctor_get(x_11, 1); +lean_inc(x_47); +lean_inc(x_46); lean_dec(x_11); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___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, lean_object* x_9) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___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, 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; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_10); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___boxed), 10, 4); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg___lambda__1___boxed), 10, 4); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_3); lean_closure_set(x_12, 2, x_2); lean_closure_set(x_12, 3, x_4); -x_13 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__2; -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___rarg), 6, 5); -lean_closure_set(x_14, 0, x_13); -lean_closure_set(x_14, 1, lean_box(0)); -lean_closure_set(x_14, 2, lean_box(0)); -lean_closure_set(x_14, 3, x_11); -lean_closure_set(x_14, 4, x_12); -x_15 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__5; -x_16 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_17 = l_Lean_Meta_withMVarContext___rarg(x_15, x_16, lean_box(0), x_1, x_14); -x_18 = lean_apply_5(x_17, x_5, x_6, x_7, x_8, x_9); -return x_18; +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_13, x_5, x_6, x_7, x_8, x_9); +return x_14; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg___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___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___rarg___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_5); return x_11; } } -static uint8_t _init_l_Lean_Meta_hygienicIntroDef() { +static uint8_t _init_l_Lean_Meta_hygienicIntroDefault() { _start: { uint8_t x_1; @@ -1033,7 +1177,7 @@ _start: lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_ctor_get(x_1, 0); x_5 = l_Lean_Meta_getHygienicIntro___rarg___closed__2; -x_6 = l_Lean_Meta_hygienicIntroDef; +x_6 = l_Lean_Meta_hygienicIntroDefault; x_7 = l_Lean_KVMap_getBool(x_4, x_5, x_6); x_8 = lean_box(x_7); x_9 = lean_alloc_ctor(0, 2, 0); @@ -1070,17 +1214,17 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_registerHygienicIntro___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1() { _start: { uint8_t x_1; lean_object* x_2; -x_1 = l_Lean_Meta_hygienicIntroDef; +x_1 = l_Lean_Meta_hygienicIntroDefault; x_2 = lean_alloc_ctor(1, 0, 1); lean_ctor_set_uint8(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_registerHygienicIntro___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2() { _start: { lean_object* x_1; @@ -1088,7 +1232,7 @@ x_1 = lean_mk_string("tactic"); return x_1; } } -static lean_object* _init_l_Lean_Meta_registerHygienicIntro___closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3() { _start: { lean_object* x_1; @@ -1096,13 +1240,13 @@ x_1 = lean_mk_string("make sure 'intro'-like tactics are hygienic"); return x_1; } } -static lean_object* _init_l_Lean_Meta_registerHygienicIntro___closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_registerHygienicIntro___closed__1; -x_2 = l_Lean_Meta_registerHygienicIntro___closed__2; -x_3 = l_Lean_Meta_registerHygienicIntro___closed__3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1110,17 +1254,58 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_registerHygienicIntro(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Meta_getHygienicIntro___rarg___closed__2; -x_3 = l_Lean_Meta_registerHygienicIntro___closed__4; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4; x_4 = lean_register_option(x_2, x_3, x_1); return x_4; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp(uint8_t x_1, uint8_t 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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_2(x_3, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___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; +x_7 = l___private_Lean_CoreM_1__mkFreshNameImp(x_1, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(uint8_t x_1, uint8_t 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: { if (lean_obj_tag(x_5) == 0) @@ -1129,154 +1314,189 @@ if (x_1 == 0) { if (x_2 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_local_ctx_get_unused_name(x_3, x_4); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_5); +x_12 = lean_box(0); x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_10); -return x_13; -} -else -{ -lean_object* x_14; uint8_t x_15; -lean_dec(x_3); -x_14 = l___private_Lean_CoreM_1__mkFreshNameImp(x_4, x_8, x_9, x_10); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_5); -lean_ctor_set(x_14, 0, x_17); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); return x_14; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_14, 0); -x_19 = lean_ctor_get(x_14, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_14); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_5); -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; -} -} +lean_object* x_15; uint8_t x_16; +lean_dec(x_3); +x_15 = l___private_Lean_CoreM_1__mkFreshNameImp(x_4, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_15, 0, x_19); +return x_15; } else { -lean_object* x_22; lean_object* x_23; -lean_dec(x_3); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_4); -lean_ctor_set(x_22, 1, x_5); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_box(0); x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_10); -return x_23; +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, 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; +} } } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_5, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_5, 1); -lean_inc(x_25); -lean_dec(x_5); -x_26 = l_Lean_mkSimpleThunk___closed__1; -x_27 = lean_name_eq(x_24, x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_4); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_3); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_10); -return x_29; +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_4); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_10); +return x_27; +} } else { -lean_dec(x_24); +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_47; uint8_t x_48; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_47 = l_Lean_mkSimpleThunk___closed__1; +x_48 = lean_name_eq(x_28, x_47); +if (x_48 == 0) +{ +uint8_t x_49; +x_49 = 1; +x_30 = x_49; +goto block_46; +} +else +{ +uint8_t x_50; +x_50 = 0; +x_30 = x_50; +goto block_46; +} +block_46: +{ +if (x_30 == 0) +{ if (x_1 == 0) { if (x_2 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_local_ctx_get_unused_name(x_3, x_4); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_25); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_local_ctx_get_unused_name(x_3, x_4); +lean_inc(x_29); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_10); -return x_32; -} -else -{ -lean_object* x_33; uint8_t x_34; -lean_dec(x_3); -x_33 = l___private_Lean_CoreM_1__mkFreshNameImp(x_4, x_8, x_9, x_10); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_25); -lean_ctor_set(x_33, 0, x_36); +lean_ctor_set(x_32, 1, x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_10); return x_33; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); +lean_object* x_34; uint8_t x_35; +lean_dec(x_3); +x_34 = l___private_Lean_CoreM_1__mkFreshNameImp(x_4, x_8, x_9, x_10); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_29); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_29); +lean_ctor_set(x_34, 0, x_37); +return x_34; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_25); +lean_dec(x_34); +lean_inc(x_29); x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } } else { -lean_object* x_41; lean_object* x_42; +lean_object* x_42; lean_object* x_43; lean_dec(x_3); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_25); +lean_inc(x_29); x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_10); -return x_42; +lean_ctor_set(x_42, 0, x_4); +lean_ctor_set(x_42, 1, x_29); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_10); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_4); +lean_dec(x_3); +lean_inc(x_29); +lean_inc(x_28); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_28); +lean_ctor_set(x_44, 1, x_29); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_10); +return x_45; } } } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp___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* l_Lean_Core_mkFreshUserName___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Core_mkFreshUserName___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp___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: { uint8_t x_11; uint8_t x_12; lean_object* x_13; @@ -1284,14 +1504,226 @@ x_11 = lean_unbox(x_1); lean_dec(x_1); x_12 = lean_unbox(x_2); lean_dec(x_2); -x_13 = l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(x_11, x_12, x_3, 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); lean_dec(x_6); +lean_dec(x_5); return x_13; } } +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___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: +{ +uint8_t x_8; +x_8 = l_Array_isEmpty___rarg(x_1); +if (x_8 == 0) +{ +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; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_9 = lean_st_ref_get(x_4, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_get(x_6, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = l_Std_HashMap_inhabited___closed__1; +x_19 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_16); +lean_ctor_set(x_19, 2, x_18); +x_20 = 1; +x_21 = 0; +x_22 = l_Lean_MetavarContext_MkBinding_mkBinding(x_20, x_17, x_1, x_2, x_21, x_21, x_19); +if (lean_obj_tag(x_22) == 0) +{ +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_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +x_27 = lean_st_ref_take(x_6, x_15); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_31 = lean_ctor_get(x_28, 2); +lean_dec(x_31); +lean_ctor_set(x_28, 2, x_26); +x_32 = lean_st_ref_set(x_6, x_28, x_29); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_ctor_get(x_24, 0); +lean_inc(x_34); +lean_dec(x_24); +x_35 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_34, x_3, x_4, x_5, x_6, x_33); +lean_dec(x_3); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set(x_35, 0, x_25); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_25); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +else +{ +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; lean_object* x_49; lean_object* x_50; +x_40 = lean_ctor_get(x_28, 0); +x_41 = lean_ctor_get(x_28, 1); +x_42 = lean_ctor_get(x_28, 3); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_28); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +lean_ctor_set(x_43, 2, x_26); +lean_ctor_set(x_43, 3, x_42); +x_44 = lean_st_ref_set(x_6, x_43, x_29); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_ctor_get(x_24, 0); +lean_inc(x_46); +lean_dec(x_24); +x_47 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_46, x_3, x_4, x_5, x_6, x_45); +lean_dec(x_3); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_25); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +else +{ +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; uint8_t x_59; +x_51 = lean_ctor_get(x_22, 1); +lean_inc(x_51); +lean_dec(x_22); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_52, x_3, x_4, x_5, x_6, x_15); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +lean_dec(x_51); +x_56 = lean_st_ref_take(x_6, x_54); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_57, 2); +lean_dec(x_60); +lean_ctor_set(x_57, 2, x_55); +x_61 = lean_st_ref_set(x_6, x_57, x_58); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_64 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_3); +return x_64; +} +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; +x_65 = lean_ctor_get(x_57, 0); +x_66 = lean_ctor_get(x_57, 1); +x_67 = lean_ctor_get(x_57, 3); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_57); +x_68 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_55); +lean_ctor_set(x_68, 3, x_67); +x_69 = lean_st_ref_set(x_6, x_68, x_58); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_72 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_71, x_3, x_4, x_5, x_6, x_70); +lean_dec(x_3); +return x_72; +} +} +} +else +{ +lean_object* x_73; +lean_dec(x_3); +lean_dec(x_1); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_2); +lean_ctor_set(x_73, 1, x_7); +return x_73; +} +} +} lean_object* l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___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: { @@ -1351,7 +1783,282 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___at_Lean_Met return x_2; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t 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, lean_object* x_14) { +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__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; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +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; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_whnfRef; +x_20 = lean_st_ref_get(x_19, x_6); +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); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +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_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_whnfRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_8); +x_10 = lean_name_mk_numeral(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_9, x_11); +lean_dec(x_9); +lean_ctor_set(x_5, 1, x_12); +x_13 = lean_st_ref_take(x_1, x_6); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +lean_ctor_set(x_14, 2, x_5); +x_18 = lean_st_ref_set(x_1, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_10); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +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; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 3); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_24); +lean_ctor_set(x_26, 2, x_5); +lean_ctor_set(x_26, 3, x_25); +x_27 = lean_st_ref_set(x_1, x_26, x_15); +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_10); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +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; 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; +x_31 = lean_ctor_get(x_5, 0); +x_32 = lean_ctor_get(x_5, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_5); +lean_inc(x_32); +lean_inc(x_31); +x_33 = lean_name_mk_numeral(x_31, x_32); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_add(x_32, x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_31); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_st_ref_take(x_1, x_6); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_38, 3); +lean_inc(x_42); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + lean_ctor_release(x_38, 3); + x_43 = x_38; +} else { + lean_dec_ref(x_38); + x_43 = lean_box(0); +} +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 4, 0); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_41); +lean_ctor_set(x_44, 2, x_36); +lean_ctor_set(x_44, 3, x_42); +x_45 = lean_st_ref_set(x_1, x_44, x_39); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_33); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg___boxed), 2, 0); +return x_4; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t 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, lean_object* x_14) { _start: { uint8_t x_15; @@ -1364,8 +2071,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_16 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2; -x_17 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5; +x_16 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; +x_17 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5; x_18 = lean_box(0); x_19 = l_Lean_Meta_throwTacticEx___rarg(x_16, x_1, x_17, x_18, x_10, x_11, x_12, x_13, x_14); lean_dec(x_13); @@ -1379,12 +2086,12 @@ else lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_unsigned_to_nat(1u); x_21 = lean_nat_add(x_2, x_20); -x_22 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2(x_3, x_4, x_1, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_22 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1(x_3, x_4, x_1, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); return x_22; } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -1399,7 +2106,7 @@ lean_dec(x_11); lean_inc(x_5); lean_inc(x_12); lean_inc(x_2); -x_14 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_2, x_12, x_5, x_6, x_7, x_8, x_13); +x_14 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_2, x_12, x_5, x_6, x_7, x_8, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -1408,7 +2115,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_3, x_15, x_5, x_6, x_7, x_8, x_16); +x_17 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_3, x_15, x_5, x_6, x_7, x_8, x_16); lean_dec(x_5); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) @@ -1469,7 +2176,7 @@ return x_29; } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2(uint8_t x_1, uint8_t 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, lean_object* x_14) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1(uint8_t x_1, uint8_t 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, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; @@ -1477,251 +2184,211 @@ x_15 = lean_unsigned_to_nat(0u); x_16 = lean_nat_dec_eq(x_4, x_15); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_17; lean_object* x_18; x_17 = lean_unsigned_to_nat(1u); x_18 = lean_nat_sub(x_4, x_17); lean_dec(x_4); switch (lean_obj_tag(x_9)) { case 7: { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint64_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; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_35 = lean_ctor_get(x_9, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_9, 1); -lean_inc(x_36); -x_37 = lean_ctor_get(x_9, 2); -lean_inc(x_37); -x_38 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t 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; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_19 = lean_ctor_get(x_9, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_9, 2); +lean_inc(x_21); +x_22 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); lean_dec(x_9); -x_39 = lean_array_get_size(x_6); -x_40 = lean_expr_instantiate_rev_range(x_36, x_7, x_39, x_6); -lean_dec(x_39); -lean_dec(x_36); -x_41 = l_Lean_Expr_headBeta(x_40); -x_42 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_13, x_14); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); +x_23 = lean_array_get_size(x_6); +x_24 = lean_expr_instantiate_rev_range(x_20, x_7, x_23, x_6); +lean_dec(x_23); +lean_dec(x_20); +x_25 = l_Lean_Expr_headBeta(x_24); +x_26 = l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg(x_13, x_14); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); lean_inc(x_5); -x_45 = l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp(x_1, x_2, x_5, x_35, x_8, x_10, x_11, x_12, x_13, x_44); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_ctor_get(x_46, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = (uint8_t)((x_38 << 24) >> 61); -lean_inc(x_43); -x_51 = lean_local_ctx_mk_local_decl(x_5, x_43, x_48, x_41, x_50); -x_52 = l_Lean_mkFVar(x_43); -x_53 = lean_array_push(x_6, x_52); +x_29 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(x_1, x_2, x_5, x_19, x_8, x_10, x_11, x_12, x_13, x_28); +lean_dec(x_8); +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_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = (uint8_t)((x_22 << 24) >> 61); +lean_inc(x_27); +x_35 = lean_local_ctx_mk_local_decl(x_5, x_27, x_32, x_25, x_34); +x_36 = l_Lean_mkFVar(x_27); +x_37 = lean_array_push(x_6, x_36); x_4 = x_18; -x_5 = x_51; -x_6 = x_53; -x_8 = x_49; -x_9 = x_37; -x_14 = x_47; +x_5 = x_35; +x_6 = x_37; +x_8 = x_33; +x_9 = x_21; +x_14 = x_31; goto _start; } case 8: { -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; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_55 = lean_ctor_get(x_9, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_9, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_9, 2); -lean_inc(x_57); -x_58 = lean_ctor_get(x_9, 3); -lean_inc(x_58); +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; 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_object* x_56; lean_object* x_57; lean_object* x_58; +x_39 = lean_ctor_get(x_9, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_9, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_9, 2); +lean_inc(x_41); +x_42 = lean_ctor_get(x_9, 3); +lean_inc(x_42); lean_dec(x_9); -x_59 = lean_array_get_size(x_6); -x_60 = lean_expr_instantiate_rev_range(x_56, x_7, x_59, x_6); -lean_dec(x_56); -x_61 = l_Lean_Expr_headBeta(x_60); -x_62 = lean_expr_instantiate_rev_range(x_57, x_7, x_59, x_6); -lean_dec(x_59); -lean_dec(x_57); -x_63 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_13, x_14); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); +x_43 = lean_array_get_size(x_6); +x_44 = lean_expr_instantiate_rev_range(x_40, x_7, x_43, x_6); +lean_dec(x_40); +x_45 = l_Lean_Expr_headBeta(x_44); +x_46 = lean_expr_instantiate_rev_range(x_41, x_7, x_43, x_6); +lean_dec(x_43); +lean_dec(x_41); +x_47 = l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg(x_13, x_14); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); lean_inc(x_5); -x_66 = l___private_Lean_Meta_Tactic_Intro_3__mkAuxNameImp(x_1, x_2, x_5, x_55, x_8, x_10, x_11, x_12, x_13, x_65); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_ctor_get(x_67, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = 0; -lean_inc(x_64); -x_72 = lean_local_ctx_mk_let_decl(x_5, x_64, x_69, x_61, x_62, x_71); -x_73 = l_Lean_mkFVar(x_64); -x_74 = lean_array_push(x_6, x_73); +x_50 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_mkAuxNameImp(x_1, x_2, x_5, x_39, x_8, x_10, x_11, x_12, x_13, x_49); +lean_dec(x_8); +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_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = 0; +lean_inc(x_48); +x_56 = lean_local_ctx_mk_let_decl(x_5, x_48, x_53, x_45, x_46, x_55); +x_57 = l_Lean_mkFVar(x_48); +x_58 = lean_array_push(x_6, x_57); x_4 = x_18; -x_5 = x_72; -x_6 = x_74; -x_8 = x_70; -x_9 = x_58; -x_14 = x_68; +x_5 = x_56; +x_6 = x_58; +x_8 = x_54; +x_9 = x_42; +x_14 = x_52; goto _start; } default: { -lean_object* x_76; -x_76 = lean_box(0); -x_19 = x_76; -goto block_34; -} -} -block_34: -{ -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; uint8_t x_27; -lean_dec(x_19); -x_20 = lean_array_get_size(x_6); -x_21 = lean_expr_instantiate_rev_range(x_9, x_7, x_20, x_6); +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; uint8_t x_67; +x_60 = lean_array_get_size(x_6); +x_61 = lean_expr_instantiate_rev_range(x_9, x_7, x_60, x_6); lean_dec(x_9); -x_22 = lean_alloc_closure((void*)(l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2), 6, 1); -lean_closure_set(x_22, 0, x_21); -x_23 = lean_box(x_1); -x_24 = lean_box(x_2); +x_62 = lean_alloc_closure((void*)(l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4), 6, 1); +lean_closure_set(x_62, 0, x_61); +x_63 = lean_box(x_1); +x_64 = lean_box(x_2); lean_inc(x_6); lean_inc(x_5); -x_25 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__1___boxed), 14, 8); -lean_closure_set(x_25, 0, x_3); -lean_closure_set(x_25, 1, x_18); -lean_closure_set(x_25, 2, x_23); -lean_closure_set(x_25, 3, x_24); -lean_closure_set(x_25, 4, x_5); -lean_closure_set(x_25, 5, x_6); -lean_closure_set(x_25, 6, x_20); -lean_closure_set(x_25, 7, x_8); -x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_26, 0, x_22); -lean_closure_set(x_26, 1, x_25); -x_27 = !lean_is_exclusive(x_10); -if (x_27 == 0) +x_65 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__1___boxed), 14, 8); +lean_closure_set(x_65, 0, x_3); +lean_closure_set(x_65, 1, x_18); +lean_closure_set(x_65, 2, x_63); +lean_closure_set(x_65, 3, x_64); +lean_closure_set(x_65, 4, x_5); +lean_closure_set(x_65, 5, x_6); +lean_closure_set(x_65, 6, x_60); +lean_closure_set(x_65, 7, x_8); +x_66 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_66, 0, x_62); +lean_closure_set(x_66, 1, x_65); +x_67 = !lean_is_exclusive(x_10); +if (x_67 == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_10, 1); -lean_dec(x_28); +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_10, 1); +lean_dec(x_68); lean_ctor_set(x_10, 1, x_5); -x_29 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_26, x_10, x_11, x_12, x_13, x_14); -return x_29; +x_69 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_66, x_10, x_11, x_12, x_13, x_14); +return x_69; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_10, 0); -x_31 = lean_ctor_get(x_10, 2); -lean_inc(x_31); -lean_inc(x_30); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_10, 0); +x_71 = lean_ctor_get(x_10, 2); +lean_inc(x_71); +lean_inc(x_70); lean_dec(x_10); -x_32 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_5); -lean_ctor_set(x_32, 2, x_31); -x_33 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_26, x_32, x_11, x_12, x_13, x_14); -return x_33; +x_72 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_5); +lean_ctor_set(x_72, 2, x_71); +x_73 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_66, x_72, x_11, x_12, x_13, x_14); +return x_73; +} } } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +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_8); lean_dec(x_4); -x_77 = lean_array_get_size(x_6); -x_78 = lean_expr_instantiate_rev_range(x_9, x_7, x_77, x_6); -lean_dec(x_77); +x_74 = lean_array_get_size(x_6); +x_75 = lean_expr_instantiate_rev_range(x_9, x_7, x_74, x_6); +lean_dec(x_74); lean_dec(x_9); lean_inc(x_3); -x_79 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); -lean_closure_set(x_79, 0, x_3); +x_76 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); +lean_closure_set(x_76, 0, x_3); lean_inc(x_6); -x_80 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__2___boxed), 9, 3); -lean_closure_set(x_80, 0, x_78); -lean_closure_set(x_80, 1, x_6); -lean_closure_set(x_80, 2, x_3); -x_81 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_81, 0, x_79); -lean_closure_set(x_81, 1, x_80); -x_82 = !lean_is_exclusive(x_10); -if (x_82 == 0) +x_77 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__2___boxed), 9, 3); +lean_closure_set(x_77, 0, x_75); +lean_closure_set(x_77, 1, x_6); +lean_closure_set(x_77, 2, x_3); +x_78 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_78, 0, x_76); +lean_closure_set(x_78, 1, x_77); +x_79 = !lean_is_exclusive(x_10); +if (x_79 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_10, 1); -lean_dec(x_83); +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_10, 1); +lean_dec(x_80); lean_ctor_set(x_10, 1, x_5); -x_84 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_81, x_10, x_11, x_12, x_13, x_14); -return x_84; +x_81 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_78, x_10, x_11, x_12, x_13, x_14); +return x_81; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_10, 0); -x_86 = lean_ctor_get(x_10, 2); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_10, 0); +x_83 = lean_ctor_get(x_10, 2); +lean_inc(x_83); +lean_inc(x_82); lean_dec(x_10); -x_87 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_5); -lean_ctor_set(x_87, 2, x_86); -x_88 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_81, x_87, x_11, x_12, x_13, x_14); -return x_88; +x_84 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_5); +lean_ctor_set(x_84, 2, x_83); +x_85 = l_Lean_Meta_withNewLocalInstances___at_Lean_Meta_introNCore___spec__3___rarg(x_6, x_7, x_78, x_84, x_11, x_12, x_13, x_14); +return x_85; } } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_array_get_size(x_2); -x_4 = lean_nat_dec_lt(x_1, x_3); -lean_dec(x_3); -if (x_4 == 0) -{ -lean_object* x_5; -lean_dec(x_1); -x_5 = x_2; -return x_5; -} -else -{ -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; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = x_6; -x_10 = l_Lean_Expr_fvarId_x21(x_9); -lean_dec(x_9); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_1, x_11); -x_13 = x_10; -x_14 = lean_array_fset(x_8, x_1, x_13); -lean_dec(x_1); -x_1 = x_12; -x_2 = x_14; -goto _start; -} -} -} -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1___lambda__1(lean_object* x_1, uint8_t 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* l_Lean_Meta_introNCore___lambda__1(lean_object* x_1, uint8_t 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) { _start: { lean_object* x_12; @@ -1739,7 +2406,7 @@ x_15 = lean_ctor_get(x_7, 1); lean_inc(x_15); x_16 = l_Array_empty___closed__1; x_17 = lean_unsigned_to_nat(0u); -x_18 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2(x_2, x_3, x_1, x_4, x_15, x_16, x_17, x_5, x_13, x_7, x_8, x_9, x_10, x_14); +x_18 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1(x_2, x_3, x_1, x_4, x_15, x_16, x_17, x_5, x_13, x_7, x_8, x_9, x_10, x_14); if (lean_obj_tag(x_18) == 0) { uint8_t x_19; @@ -1754,7 +2421,7 @@ if (x_21 == 0) lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_22 = lean_ctor_get(x_20, 0); x_23 = x_22; -x_24 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_17, x_23); +x_24 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_17, x_23); x_25 = x_24; lean_ctor_set(x_20, 0, x_25); return x_18; @@ -1768,7 +2435,7 @@ lean_inc(x_27); lean_inc(x_26); lean_dec(x_20); x_28 = x_26; -x_29 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_17, x_28); +x_29 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_17, x_28); x_30 = x_29; x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); @@ -1798,7 +2465,7 @@ if (lean_is_exclusive(x_32)) { x_36 = lean_box(0); } x_37 = x_34; -x_38 = l_Array_umapMAux___main___at_Lean_Meta_introNCore___spec__4(x_17, x_37); +x_38 = l_Array_umapMAux___main___at___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp___spec__1(x_17, x_37); x_39 = x_38; if (lean_is_scalar(x_36)) { x_40 = lean_alloc_ctor(0, 2, 0); @@ -1867,31 +2534,6 @@ return x_49; } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1(uint8_t x_1, uint8_t 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; lean_object* x_16; lean_object* x_17; -x_11 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2; -lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); -lean_closure_set(x_12, 0, x_3); -lean_closure_set(x_12, 1, x_11); -x_13 = lean_box(x_1); -x_14 = lean_box(x_2); -lean_inc(x_3); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1___lambda__1___boxed), 11, 5); -lean_closure_set(x_15, 0, x_3); -lean_closure_set(x_15, 1, x_13); -lean_closure_set(x_15, 2, x_14); -lean_closure_set(x_15, 3, x_4); -lean_closure_set(x_15, 4, x_5); -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_16, 0, x_12); -lean_closure_set(x_16, 1, x_15); -x_17 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_3, x_16, x_6, x_7, x_8, x_9, x_10); -return x_17; -} -} lean_object* l_Lean_Meta_introNCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -1907,16 +2549,30 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_nat_dec_eq(x_2, x_14); if (x_15 == 0) { -uint8_t x_16; lean_object* 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; lean_free_object(x_10); -x_16 = lean_unbox(x_12); -lean_dec(x_12); -x_17 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1(x_4, x_16, x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_13); -return x_17; +x_16 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; +lean_inc(x_1); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_16); +x_18 = lean_box(x_4); +lean_inc(x_1); +x_19 = lean_alloc_closure((void*)(l_Lean_Meta_introNCore___lambda__1___boxed), 11, 5); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_18); +lean_closure_set(x_19, 2, x_12); +lean_closure_set(x_19, 3, x_2); +lean_closure_set(x_19, 4, x_3); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_20, 0, x_17); +lean_closure_set(x_20, 1, x_19); +x_21 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_20, x_5, x_6, x_7, x_8, x_13); +return x_21; } else { -lean_object* x_18; lean_object* x_19; +lean_object* x_22; lean_object* x_23; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -1924,55 +2580,100 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_18 = l_Array_empty___closed__1; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_1); -lean_ctor_set(x_10, 0, x_19); +x_22 = l_Array_empty___closed__1; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_1); +lean_ctor_set(x_10, 0, x_23); return x_10; } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_inc(x_20); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); lean_dec(x_10); -x_22 = lean_unsigned_to_nat(0u); -x_23 = lean_nat_dec_eq(x_2, x_22); -if (x_23 == 0) +x_26 = lean_unsigned_to_nat(0u); +x_27 = lean_nat_dec_eq(x_2, x_26); +if (x_27 == 0) { -uint8_t x_24; lean_object* x_25; -x_24 = lean_unbox(x_20); -lean_dec(x_20); -x_25 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1(x_4, x_24, x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_21); -return x_25; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_28 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2; +lean_inc(x_1); +x_29 = lean_alloc_closure((void*)(l_Lean_Meta_checkNotAssigned___boxed), 7, 2); +lean_closure_set(x_29, 0, x_1); +lean_closure_set(x_29, 1, x_28); +x_30 = lean_box(x_4); +lean_inc(x_1); +x_31 = lean_alloc_closure((void*)(l_Lean_Meta_introNCore___lambda__1___boxed), 11, 5); +lean_closure_set(x_31, 0, x_1); +lean_closure_set(x_31, 1, x_30); +lean_closure_set(x_31, 2, x_24); +lean_closure_set(x_31, 3, x_2); +lean_closure_set(x_31, 4, x_3); +x_32 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_32, 0, x_29); +lean_closure_set(x_32, 1, x_31); +x_33 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_32, x_5, x_6, x_7, x_8, x_25); +return x_33; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_20); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_24); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_26 = l_Array_empty___closed__1; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_1); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_21); -return x_28; +x_34 = l_Array_empty___closed__1; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_1); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_25); +return x_36; } } } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___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, 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* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___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: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +} +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_mkFreshId___at_Lean_Meta_introNCore___spec__5(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; uint8_t x_16; lean_object* x_17; @@ -1980,23 +2681,23 @@ x_15 = lean_unbox(x_3); lean_dec(x_3); x_16 = lean_unbox(x_4); lean_dec(x_4); -x_17 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__1(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__1(x_1, x_2, x_15, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_2); return x_17; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___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* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___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) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1___lambda__2(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); return x_10; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; uint8_t x_16; lean_object* x_17; @@ -2004,11 +2705,11 @@ x_15 = lean_unbox(x_1); lean_dec(x_1); x_16 = lean_unbox(x_2); lean_dec(x_2); -x_17 = l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___at_Lean_Meta_introNCore___spec__2(x_15, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___at_Lean_Meta_introNCore___spec__1(x_15, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); return x_17; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___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, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_introNCore___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: { uint8_t x_12; uint8_t x_13; lean_object* x_14; @@ -2016,23 +2717,11 @@ x_12 = lean_unbox(x_2); lean_dec(x_2); x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1___lambda__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Lean_Meta_introNCore___lambda__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_14; } } -lean_object* l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___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: -{ -uint8_t x_11; uint8_t x_12; lean_object* x_13; -x_11 = lean_unbox(x_1); -lean_dec(x_1); -x_12 = lean_unbox(x_2); -lean_dec(x_2); -x_13 = l___private_Lean_Meta_Tactic_Intro_2__introNImp___at_Lean_Meta_introNCore___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_13; -} -} lean_object* l_Lean_Meta_introNCore___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: { @@ -2062,6 +2751,27 @@ x_10 = l_Lean_Meta_introNCore(x_1, x_2, x_8, x_9, x_3, x_4, x_5, x_6, x_7); return x_10; } } +lean_object* l_Lean_Meta_intro_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_intro_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_intro_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Meta_intro(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: { @@ -2173,6 +2883,27 @@ return x_39; } } } +lean_object* l_Lean_Meta_intro1Core_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_intro1Core_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_intro1Core_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Meta_intro1Core(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -2321,32 +3052,30 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__1); -l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__2); -l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__3); -l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__4); -l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_1__introNImpAux___main___rarg___lambda__1___closed__5); -l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_2__introNImp___rarg___lambda__2___closed__1); -l_Lean_Meta_hygienicIntroDef = _init_l_Lean_Meta_hygienicIntroDef(); +l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__3); +l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__4); +l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5 = _init_l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___lambda__1___closed__5); +l_Lean_Meta_hygienicIntroDefault = _init_l_Lean_Meta_hygienicIntroDefault(); l_Lean_Meta_getHygienicIntro___rarg___closed__1 = _init_l_Lean_Meta_getHygienicIntro___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_getHygienicIntro___rarg___closed__1); l_Lean_Meta_getHygienicIntro___rarg___closed__2 = _init_l_Lean_Meta_getHygienicIntro___rarg___closed__2(); lean_mark_persistent(l_Lean_Meta_getHygienicIntro___rarg___closed__2); -l_Lean_Meta_registerHygienicIntro___closed__1 = _init_l_Lean_Meta_registerHygienicIntro___closed__1(); -lean_mark_persistent(l_Lean_Meta_registerHygienicIntro___closed__1); -l_Lean_Meta_registerHygienicIntro___closed__2 = _init_l_Lean_Meta_registerHygienicIntro___closed__2(); -lean_mark_persistent(l_Lean_Meta_registerHygienicIntro___closed__2); -l_Lean_Meta_registerHygienicIntro___closed__3 = _init_l_Lean_Meta_registerHygienicIntro___closed__3(); -lean_mark_persistent(l_Lean_Meta_registerHygienicIntro___closed__3); -l_Lean_Meta_registerHygienicIntro___closed__4 = _init_l_Lean_Meta_registerHygienicIntro___closed__4(); -lean_mark_persistent(l_Lean_Meta_registerHygienicIntro___closed__4); -res = l_Lean_Meta_registerHygienicIntro(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534____closed__4); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Intro___hyg_534_(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)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Replace.c b/stage0/stdlib/Lean/Meta/Tactic/Replace.c index e8c0144282..a0a002c07e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Replace.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Replace.c @@ -14,65 +14,88 @@ extern "C" { #endif lean_object* l_Lean_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_change___lambda__2___closed__3; extern lean_object* l_Lean_Meta_mkEqMP___rarg___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -extern lean_object* l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp___closed__8; -lean_object* l_Lean_Meta_mkAppM___at_Lean_Meta_mkDecideProof___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_mkAppM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkExpectedTypeHint___at_Lean_Meta_replaceTargetEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_changeLocalDecl_match__3___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceLocalDecl___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_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkEqMPR___rarg___closed__2; +extern lean_object* l_Lean_Meta_mkAppM___rarg___closed__2; lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_AppBuilder_20__mkFun___boxed(lean_object*, lean_object*, lean_object*, 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_Lean_Meta_change___lambda__2___closed__2; lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__4; lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_change___lambda__2___closed__4; lean_object* l_Lean_Meta_replaceLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_changeLocalDecl_match__2(lean_object*); lean_object* l_Lean_Meta_replaceTargetDefEq___closed__2; lean_object* l_Lean_Meta_changeLocalDecl___closed__2; +lean_object* l_Lean_Meta_change___lambda__2___closed__1; +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_change___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetDefEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkAppM___at_Lean_Meta_replaceLocalDecl___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl___closed__1; +extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Lean_Meta_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_Meta_changeLocalDecl_match__1(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_2__mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_change___lambda__1___closed__1; +lean_object* l_Lean_Meta_change___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__1; lean_object* l_Lean_Meta_changeLocalDecl___lambda__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_replaceTargetDefEq___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_change___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq___lambda__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_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_mkEqMP___at_Lean_Meta_replaceLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l_Lean_Meta_mkEq___at_Lean_Meta_replaceTargetEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l_Lean_Meta_changeLocalDecl_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_change___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceLocalDecl___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_Meta_changeLocalDecl___lambda__1___closed__2; lean_object* l_Lean_Meta_replaceTargetDefEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_changeLocalDecl_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(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_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Meta_change___lambda__1___closed__2; extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_change(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq___closed__1; @@ -83,10 +106,29 @@ lean_object* l_Lean_Meta_replaceTargetEq___closed__2; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_changeLocalDecl___lambda__1___closed__3; +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Meta_change___lambda__1___closed__3; +lean_object* l_Lean_Meta_changeLocalDecl_match__3(lean_object*); lean_object* l_Lean_Meta_changeLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq___at_Lean_Meta_replaceTargetEq___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; +x_8 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_Meta_mkExpectedTypeHint___at_Lean_Meta_replaceTargetEq___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: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_AppBuilder_2__mkExpectedTypeHint(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} lean_object* l_Lean_Meta_replaceTargetEq___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: { @@ -175,7 +217,7 @@ x_35 = lean_array_push(x_34, x_14); x_36 = lean_unsigned_to_nat(0u); x_37 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_35, x_35, x_36, x_30); lean_dec(x_35); -x_38 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_37, x_5, x_6, x_7, x_8, x_26); +x_38 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_37, x_5, x_6, x_7, x_8, x_26); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -400,7 +442,7 @@ lean_closure_set(x_11, 2, x_3); x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_12, 0, x_10); lean_closure_set(x_12, 1, x_11); -x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_12, x_4, x_5, x_6, x_7, x_8); +x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_12, x_4, x_5, x_6, x_7, x_8); return x_13; } } @@ -463,7 +505,7 @@ x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); lean_inc(x_18); -x_22 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_18, x_4, x_5, x_6, x_7, x_21); +x_22 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_18, x_4, x_5, x_6, x_7, x_21); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -606,7 +648,7 @@ x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); lean_dec(x_46); lean_inc(x_44); -x_48 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_44, x_4, x_5, x_6, x_7, x_47); +x_48 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_44, x_4, x_5, x_6, x_7, x_47); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -775,7 +817,7 @@ lean_closure_set(x_10, 1, x_2); x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_11, 0, x_9); lean_closure_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); +x_12 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7); return x_12; } } @@ -788,6 +830,859 @@ lean_dec(x_3); return x_9; } } +lean_object* l_Lean_Meta_mkAppM___at_Lean_Meta_replaceLocalDecl___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: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +x_8 = lean_alloc_closure((void*)(l___private_Lean_Meta_AppBuilder_20__mkFun___boxed), 6, 1); +lean_closure_set(x_8, 0, x_1); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_mkAppM___rarg___lambda__1___boxed), 7, 1); +lean_closure_set(x_9, 0, x_2); +x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_10, 0, x_8); +lean_closure_set(x_10, 1, x_9); +x_214 = lean_st_ref_get(x_6, x_7); +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_215, 3); +lean_inc(x_216); +lean_dec(x_215); +x_217 = lean_ctor_get_uint8(x_216, sizeof(void*)*1); +lean_dec(x_216); +if (x_217 == 0) +{ +lean_object* x_218; uint8_t x_219; +x_218 = lean_ctor_get(x_214, 1); +lean_inc(x_218); +lean_dec(x_214); +x_219 = 0; +x_11 = x_219; +x_12 = x_218; +goto block_213; +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_220 = lean_ctor_get(x_214, 1); +lean_inc(x_220); +lean_dec(x_214); +x_221 = l_Lean_Meta_mkAppM___rarg___closed__2; +x_222 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_221, x_3, x_4, x_5, x_6, x_220); +x_223 = lean_ctor_get(x_222, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_222, 1); +lean_inc(x_224); +lean_dec(x_222); +x_225 = lean_unbox(x_223); +lean_dec(x_223); +x_11 = x_225; +x_12 = x_224; +goto block_213; +} +block_213: +{ +if (x_11 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_13 = lean_st_ref_get(x_6, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_14, 3); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_ctor_get_uint8(x_15, sizeof(void*)*1); +lean_dec(x_15); +x_18 = lean_st_ref_take(x_6, x_16); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_19, 3); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = 0; +lean_ctor_set_uint8(x_20, sizeof(void*)*1, x_25); +x_26 = lean_st_ref_set(x_6, x_19, x_21); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +lean_inc(x_6); +x_28 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2___rarg(x_10, x_3, x_4, x_5, x_6, x_27); +if (lean_obj_tag(x_28) == 0) +{ +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; uint8_t x_37; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_st_ref_get(x_6, x_30); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_take(x_6, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_34, 3); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_34, 3); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_17); +x_40 = lean_st_ref_set(x_6, x_34, x_36); +lean_dec(x_6); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_29); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_29); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +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; +x_45 = lean_ctor_get(x_35, 0); +lean_inc(x_45); +lean_dec(x_35); +x_46 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_17); +lean_ctor_set(x_34, 3, x_46); +x_47 = lean_st_ref_set(x_6, x_34, x_36); +lean_dec(x_6); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_29); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +else +{ +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; +x_51 = lean_ctor_get(x_34, 0); +x_52 = lean_ctor_get(x_34, 1); +x_53 = lean_ctor_get(x_34, 2); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_34); +x_54 = lean_ctor_get(x_35, 0); +lean_inc(x_54); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + x_55 = x_35; +} else { + lean_dec_ref(x_35); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 1, 1); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_17); +x_57 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_57, 0, x_51); +lean_ctor_set(x_57, 1, x_52); +lean_ctor_set(x_57, 2, x_53); +lean_ctor_set(x_57, 3, x_56); +x_58 = lean_st_ref_set(x_6, x_57, x_36); +lean_dec(x_6); +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_58); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_29); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +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; uint8_t x_70; +x_62 = lean_ctor_get(x_28, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_28, 1); +lean_inc(x_63); +lean_dec(x_28); +x_64 = lean_st_ref_get(x_6, x_63); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = lean_st_ref_take(x_6, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_67, 3); +lean_inc(x_68); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = !lean_is_exclusive(x_67); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; +x_71 = lean_ctor_get(x_67, 3); +lean_dec(x_71); +x_72 = !lean_is_exclusive(x_68); +if (x_72 == 0) +{ +lean_object* x_73; uint8_t x_74; +lean_ctor_set_uint8(x_68, sizeof(void*)*1, x_17); +x_73 = lean_st_ref_set(x_6, x_67, x_69); +lean_dec(x_6); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +lean_ctor_set_tag(x_73, 1); +lean_ctor_set(x_73, 0, x_62); +return x_73; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_62); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_78 = lean_ctor_get(x_68, 0); +lean_inc(x_78); +lean_dec(x_68); +x_79 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set_uint8(x_79, sizeof(void*)*1, x_17); +lean_ctor_set(x_67, 3, x_79); +x_80 = lean_st_ref_set(x_6, x_67, x_69); +lean_dec(x_6); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_82 = x_80; +} else { + lean_dec_ref(x_80); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; + lean_ctor_set_tag(x_83, 1); +} +lean_ctor_set(x_83, 0, x_62); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +else +{ +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; +x_84 = lean_ctor_get(x_67, 0); +x_85 = lean_ctor_get(x_67, 1); +x_86 = lean_ctor_get(x_67, 2); +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_67); +x_87 = lean_ctor_get(x_68, 0); +lean_inc(x_87); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + x_88 = x_68; +} else { + lean_dec_ref(x_68); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 1, 1); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*1, x_17); +x_90 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_90, 0, x_84); +lean_ctor_set(x_90, 1, x_85); +lean_ctor_set(x_90, 2, x_86); +lean_ctor_set(x_90, 3, x_89); +x_91 = lean_st_ref_set(x_6, x_90, x_69); +lean_dec(x_6); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); +} else { + x_94 = x_93; + lean_ctor_set_tag(x_94, 1); +} +lean_ctor_set(x_94, 0, x_62); +lean_ctor_set(x_94, 1, x_92); +return x_94; +} +} +} +else +{ +lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_95 = lean_ctor_get(x_20, 0); +lean_inc(x_95); +lean_dec(x_20); +x_96 = 0; +x_97 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set_uint8(x_97, sizeof(void*)*1, x_96); +lean_ctor_set(x_19, 3, x_97); +x_98 = lean_st_ref_set(x_6, x_19, x_21); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +lean_inc(x_6); +x_100 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2___rarg(x_10, x_3, x_4, x_5, x_6, x_99); +if (lean_obj_tag(x_100) == 0) +{ +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; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_st_ref_get(x_6, x_102); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = lean_st_ref_take(x_6, x_104); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_106, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_105, 1); +lean_inc(x_108); +lean_dec(x_105); +x_109 = lean_ctor_get(x_106, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_106, 1); +lean_inc(x_110); +x_111 = lean_ctor_get(x_106, 2); +lean_inc(x_111); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + lean_ctor_release(x_106, 2); + lean_ctor_release(x_106, 3); + x_112 = x_106; +} else { + lean_dec_ref(x_106); + x_112 = lean_box(0); +} +x_113 = lean_ctor_get(x_107, 0); +lean_inc(x_113); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + x_114 = x_107; +} else { + lean_dec_ref(x_107); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 1, 1); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set_uint8(x_115, sizeof(void*)*1, x_17); +if (lean_is_scalar(x_112)) { + x_116 = lean_alloc_ctor(0, 4, 0); +} else { + x_116 = x_112; +} +lean_ctor_set(x_116, 0, x_109); +lean_ctor_set(x_116, 1, x_110); +lean_ctor_set(x_116, 2, x_111); +lean_ctor_set(x_116, 3, x_115); +x_117 = lean_st_ref_set(x_6, x_116, x_108); +lean_dec(x_6); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; +} else { + lean_dec_ref(x_117); + x_119 = lean_box(0); +} +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_119; +} +lean_ctor_set(x_120, 0, x_101); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} +else +{ +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; lean_object* x_133; 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; +x_121 = lean_ctor_get(x_100, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_100, 1); +lean_inc(x_122); +lean_dec(x_100); +x_123 = lean_st_ref_get(x_6, x_122); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); +x_125 = lean_st_ref_take(x_6, x_124); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_126, 3); +lean_inc(x_127); +x_128 = lean_ctor_get(x_125, 1); +lean_inc(x_128); +lean_dec(x_125); +x_129 = lean_ctor_get(x_126, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_126, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_126, 2); +lean_inc(x_131); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + lean_ctor_release(x_126, 2); + lean_ctor_release(x_126, 3); + x_132 = x_126; +} else { + lean_dec_ref(x_126); + x_132 = lean_box(0); +} +x_133 = lean_ctor_get(x_127, 0); +lean_inc(x_133); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + x_134 = x_127; +} else { + lean_dec_ref(x_127); + x_134 = lean_box(0); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(0, 1, 1); +} else { + x_135 = x_134; +} +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set_uint8(x_135, sizeof(void*)*1, x_17); +if (lean_is_scalar(x_132)) { + x_136 = lean_alloc_ctor(0, 4, 0); +} else { + x_136 = x_132; +} +lean_ctor_set(x_136, 0, x_129); +lean_ctor_set(x_136, 1, x_130); +lean_ctor_set(x_136, 2, x_131); +lean_ctor_set(x_136, 3, x_135); +x_137 = lean_st_ref_set(x_6, x_136, x_128); +lean_dec(x_6); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_139 = x_137; +} else { + lean_dec_ref(x_137); + x_139 = lean_box(0); +} +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); +} else { + x_140 = x_139; + lean_ctor_set_tag(x_140, 1); +} +lean_ctor_set(x_140, 0, x_121); +lean_ctor_set(x_140, 1, x_138); +return x_140; +} +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_141 = lean_ctor_get(x_19, 0); +x_142 = lean_ctor_get(x_19, 1); +x_143 = lean_ctor_get(x_19, 2); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_19); +x_144 = lean_ctor_get(x_20, 0); +lean_inc(x_144); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + x_145 = x_20; +} else { + lean_dec_ref(x_20); + x_145 = lean_box(0); +} +x_146 = 0; +if (lean_is_scalar(x_145)) { + x_147 = lean_alloc_ctor(0, 1, 1); +} else { + x_147 = x_145; +} +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set_uint8(x_147, sizeof(void*)*1, x_146); +x_148 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_148, 0, x_141); +lean_ctor_set(x_148, 1, x_142); +lean_ctor_set(x_148, 2, x_143); +lean_ctor_set(x_148, 3, x_147); +x_149 = lean_st_ref_set(x_6, x_148, x_21); +x_150 = lean_ctor_get(x_149, 1); +lean_inc(x_150); +lean_dec(x_149); +lean_inc(x_6); +x_151 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2___rarg(x_10, x_3, x_4, x_5, x_6, x_150); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; 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; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +lean_dec(x_151); +x_154 = lean_st_ref_get(x_6, x_153); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_156 = lean_st_ref_take(x_6, x_155); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_157, 3); +lean_inc(x_158); +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +lean_dec(x_156); +x_160 = lean_ctor_get(x_157, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_157, 1); +lean_inc(x_161); +x_162 = lean_ctor_get(x_157, 2); +lean_inc(x_162); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + lean_ctor_release(x_157, 2); + lean_ctor_release(x_157, 3); + x_163 = x_157; +} else { + lean_dec_ref(x_157); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_158, 0); +lean_inc(x_164); +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + x_165 = x_158; +} else { + lean_dec_ref(x_158); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(0, 1, 1); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set_uint8(x_166, sizeof(void*)*1, x_17); +if (lean_is_scalar(x_163)) { + x_167 = lean_alloc_ctor(0, 4, 0); +} else { + x_167 = x_163; +} +lean_ctor_set(x_167, 0, x_160); +lean_ctor_set(x_167, 1, x_161); +lean_ctor_set(x_167, 2, x_162); +lean_ctor_set(x_167, 3, x_166); +x_168 = lean_st_ref_set(x_6, x_167, x_159); +lean_dec(x_6); +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_170 = x_168; +} else { + lean_dec_ref(x_168); + x_170 = lean_box(0); +} +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_170; +} +lean_ctor_set(x_171, 0, x_152); +lean_ctor_set(x_171, 1, x_169); +return x_171; +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_172 = lean_ctor_get(x_151, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_151, 1); +lean_inc(x_173); +lean_dec(x_151); +x_174 = lean_st_ref_get(x_6, x_173); +x_175 = lean_ctor_get(x_174, 1); +lean_inc(x_175); +lean_dec(x_174); +x_176 = lean_st_ref_take(x_6, x_175); +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_177, 3); +lean_inc(x_178); +x_179 = lean_ctor_get(x_176, 1); +lean_inc(x_179); +lean_dec(x_176); +x_180 = lean_ctor_get(x_177, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_177, 1); +lean_inc(x_181); +x_182 = lean_ctor_get(x_177, 2); +lean_inc(x_182); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + lean_ctor_release(x_177, 2); + lean_ctor_release(x_177, 3); + x_183 = x_177; +} else { + lean_dec_ref(x_177); + x_183 = lean_box(0); +} +x_184 = lean_ctor_get(x_178, 0); +lean_inc(x_184); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + x_185 = x_178; +} else { + lean_dec_ref(x_178); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 1, 1); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set_uint8(x_186, sizeof(void*)*1, x_17); +if (lean_is_scalar(x_183)) { + x_187 = lean_alloc_ctor(0, 4, 0); +} else { + x_187 = x_183; +} +lean_ctor_set(x_187, 0, x_180); +lean_ctor_set(x_187, 1, x_181); +lean_ctor_set(x_187, 2, x_182); +lean_ctor_set(x_187, 3, x_186); +x_188 = lean_st_ref_set(x_6, x_187, x_179); +lean_dec(x_6); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_190 = x_188; +} else { + lean_dec_ref(x_188); + x_190 = lean_box(0); +} +if (lean_is_scalar(x_190)) { + x_191 = lean_alloc_ctor(1, 2, 0); +} else { + x_191 = x_190; + lean_ctor_set_tag(x_191, 1); +} +lean_ctor_set(x_191, 0, x_172); +lean_ctor_set(x_191, 1, x_189); +return x_191; +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_192 = lean_ctor_get(x_5, 3); +lean_inc(x_192); +x_193 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_12); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +lean_dec(x_193); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_196 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__2___rarg(x_10, x_3, x_4, x_5, x_6, x_195); +if (lean_obj_tag(x_196) == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +x_199 = l_Lean_Meta_mkAppM___rarg___closed__2; +x_200 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_194, x_199, x_192, x_3, x_4, x_5, x_6, x_198); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_201 = !lean_is_exclusive(x_200); +if (x_201 == 0) +{ +lean_object* x_202; +x_202 = lean_ctor_get(x_200, 0); +lean_dec(x_202); +lean_ctor_set(x_200, 0, x_197); +return x_200; +} +else +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_200, 1); +lean_inc(x_203); +lean_dec(x_200); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_203); +return x_204; +} +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; +x_205 = lean_ctor_get(x_196, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_196, 1); +lean_inc(x_206); +lean_dec(x_196); +x_207 = l_Lean_Meta_mkAppM___rarg___closed__2; +x_208 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_194, x_207, x_192, x_3, x_4, x_5, x_6, x_206); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_209 = !lean_is_exclusive(x_208); +if (x_209 == 0) +{ +lean_object* x_210; +x_210 = lean_ctor_get(x_208, 0); +lean_dec(x_210); +lean_ctor_set_tag(x_208, 1); +lean_ctor_set(x_208, 0, x_205); +return x_208; +} +else +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_208, 1); +lean_inc(x_211); +lean_dec(x_208); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_205); +lean_ctor_set(x_212, 1, x_211); +return x_212; +} +} +} +} +} +} lean_object* l_Lean_Meta_mkEqMP___at_Lean_Meta_replaceLocalDecl___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: { @@ -796,7 +1691,7 @@ x_8 = l_Lean_mkAppStx___closed__9; x_9 = lean_array_push(x_8, x_1); x_10 = lean_array_push(x_9, x_2); x_11 = l_Lean_Meta_mkEqMP___rarg___closed__2; -x_12 = l_Lean_Meta_mkAppM___at_Lean_Meta_mkDecideProof___spec__1(x_11, x_10, x_3, x_4, x_5, x_6, x_7); +x_12 = l_Lean_Meta_mkAppM___at_Lean_Meta_replaceLocalDecl___spec__2(x_11, x_10, x_3, x_4, x_5, x_6, x_7); return x_12; } } @@ -1039,7 +1934,7 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_inc(x_2); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed), 6, 1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_assertAfter___spec__1___boxed), 6, 1); lean_closure_set(x_10, 0, x_2); lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_replaceLocalDecl___lambda__1___boxed), 10, 4); @@ -1050,7 +1945,7 @@ lean_closure_set(x_11, 3, x_3); x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_12, 0, x_10); lean_closure_set(x_12, 1, x_11); -x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_12, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_12, x_5, x_6, x_7, x_8, x_9); return x_13; } } @@ -1063,7 +1958,961 @@ lean_dec(x_5); return x_11; } } -static lean_object* _init_l_Lean_Meta_change___lambda__1___closed__1() { +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_change___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; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +else +{ +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; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +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_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +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_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; + lean_ctor_set_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; + lean_ctor_set_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_126) == 0) +{ +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; 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; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +lean_inc(x_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +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; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t 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_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +lean_object* l_Lean_Meta_change___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 = l_Lean_Meta_replaceTargetDefEq(x_1, x_2, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_change___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1071,27 +2920,33 @@ x_1 = lean_mk_string("given type"); return x_1; } } -static lean_object* _init_l_Lean_Meta_change___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_change___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_change___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_change___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_change___lambda__1___closed__3() { +static lean_object* _init_l_Lean_Meta_change___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nis not definitionally equal to"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_change___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_change___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_change___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Meta_change___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* l_Lean_Meta_change___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; @@ -1101,7 +2956,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); lean_inc(x_3); -x_9 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_3, x_1, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_change___spec__1(x_3, 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; @@ -1116,19 +2971,19 @@ x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); lean_dec(x_9); x_13 = l_Lean_indentExpr(x_1); -x_14 = l_Lean_Meta_change___lambda__1___closed__3; +x_14 = l_Lean_Meta_change___lambda__2___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_MessageData_ofList___closed__3; +x_16 = l_Lean_Meta_change___lambda__2___closed__4; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp___closed__8; +x_18 = l_Lean_indentExpr(x_3); x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_indentExpr(x_3); +x_20 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -1208,16 +3063,126 @@ lean_inc(x_1); x_8 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarType___boxed), 6, 1); lean_closure_set(x_8, 0, x_1); lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_change___lambda__1), 8, 2); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_change___lambda__2), 8, 2); lean_closure_set(x_9, 0, x_2); lean_closure_set(x_9, 1, x_1); x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); return x_11; } } +lean_object* l_Lean_Meta_change___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_Meta_change___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_changeLocalDecl_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 7: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_9 = lean_box_uint64(x_8); +x_10 = lean_apply_4(x_2, x_5, x_6, x_7, x_9); +return x_10; +} +case 8: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_4); +lean_dec(x_2); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +lean_dec(x_1); +x_16 = lean_box_uint64(x_15); +x_17 = lean_apply_5(x_3, x_11, x_12, x_13, x_14, x_16); +return x_17; +} +default: +{ +lean_object* x_18; +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_apply_1(x_4, x_1); +return x_18; +} +} +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_changeLocalDecl_match__2___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_changeLocalDecl_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_changeLocalDecl_match__3___rarg), 2, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_changeLocalDecl___lambda__1___closed__1() { _start: { @@ -1285,7 +3250,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_11); lean_inc(x_2); -x_41 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_2, x_11, x_5, x_6, x_7, x_8, x_9); +x_41 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_change___spec__1(x_2, x_11, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_41) == 0) { lean_object* x_42; uint8_t x_43; @@ -1302,19 +3267,19 @@ x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); lean_dec(x_41); x_45 = l_Lean_indentExpr(x_2); -x_46 = l_Lean_Meta_change___lambda__1___closed__3; +x_46 = l_Lean_Meta_change___lambda__2___closed__2; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_MessageData_ofList___closed__3; +x_48 = l_Lean_Meta_change___lambda__2___closed__4; x_49 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); -x_50 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp___closed__8; +x_50 = l_Lean_indentExpr(x_11); x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_indentExpr(x_11); +x_52 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); @@ -1509,7 +3474,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_67); lean_inc(x_2); -x_97 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_2, x_67, x_5, x_6, x_7, x_8, x_9); +x_97 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_change___spec__1(x_2, x_67, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_97) == 0) { lean_object* x_98; uint8_t x_99; @@ -1527,19 +3492,19 @@ x_100 = lean_ctor_get(x_97, 1); lean_inc(x_100); lean_dec(x_97); x_101 = l_Lean_indentExpr(x_2); -x_102 = l_Lean_Meta_change___lambda__1___closed__3; +x_102 = l_Lean_Meta_change___lambda__2___closed__2; x_103 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_103, 0, x_102); lean_ctor_set(x_103, 1, x_101); -x_104 = l_Lean_MessageData_ofList___closed__3; +x_104 = l_Lean_Meta_change___lambda__2___closed__4; x_105 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); -x_106 = l___private_Lean_Meta_AppBuilder_14__mkEqOfHEqImp___closed__8; +x_106 = l_Lean_indentExpr(x_67); x_107 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_107, 0, x_105); lean_ctor_set(x_107, 1, x_106); -x_108 = l_Lean_indentExpr(x_67); +x_108 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_109 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_109, 0, x_107); lean_ctor_set(x_109, 1, x_108); @@ -1800,7 +3765,7 @@ lean_closure_set(x_22, 2, x_20); x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_23, 0, x_21); lean_closure_set(x_23, 1, x_22); -x_24 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_19, x_23, x_4, x_5, x_6, x_7, x_17); +x_24 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_19, x_23, x_4, x_5, x_6, x_7, x_17); return x_24; } else @@ -1912,12 +3877,14 @@ l_Lean_Meta_replaceTargetDefEq___closed__1 = _init_l_Lean_Meta_replaceTargetDefE lean_mark_persistent(l_Lean_Meta_replaceTargetDefEq___closed__1); l_Lean_Meta_replaceTargetDefEq___closed__2 = _init_l_Lean_Meta_replaceTargetDefEq___closed__2(); lean_mark_persistent(l_Lean_Meta_replaceTargetDefEq___closed__2); -l_Lean_Meta_change___lambda__1___closed__1 = _init_l_Lean_Meta_change___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_change___lambda__1___closed__1); -l_Lean_Meta_change___lambda__1___closed__2 = _init_l_Lean_Meta_change___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_change___lambda__1___closed__2); -l_Lean_Meta_change___lambda__1___closed__3 = _init_l_Lean_Meta_change___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_change___lambda__1___closed__3); +l_Lean_Meta_change___lambda__2___closed__1 = _init_l_Lean_Meta_change___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_change___lambda__2___closed__1); +l_Lean_Meta_change___lambda__2___closed__2 = _init_l_Lean_Meta_change___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_change___lambda__2___closed__2); +l_Lean_Meta_change___lambda__2___closed__3 = _init_l_Lean_Meta_change___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_change___lambda__2___closed__3); +l_Lean_Meta_change___lambda__2___closed__4 = _init_l_Lean_Meta_change___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_change___lambda__2___closed__4); l_Lean_Meta_changeLocalDecl___lambda__1___closed__1 = _init_l_Lean_Meta_changeLocalDecl___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_changeLocalDecl___lambda__1___closed__1); l_Lean_Meta_changeLocalDecl___lambda__1___closed__2 = _init_l_Lean_Meta_changeLocalDecl___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Revert.c b/stage0/stdlib/Lean/Meta/Tactic/Revert.c index 77f75fced1..2210ae3824 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Revert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Revert.c @@ -13,18 +13,21 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_revert___lambda__2___closed__1; +lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_revert___lambda__2___closed__2; extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_MetavarContext_setMVarKind(lean_object*, lean_object*, uint8_t); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_32__withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_Meta_revert___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -36,26 +39,27 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Meta_revert___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_revert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_revert___lambda__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_revert___lambda__1___closed__2; -lean_object* l_Lean_Meta_revert___lambda__1___closed__1; +lean_object* l_Lean_Meta_revert___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5(lean_object*); +lean_object* l_Lean_Meta_revert___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__4(lean_object*, 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_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: @@ -136,7 +140,106 @@ return x_30; } } } -lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__2(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* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_array_get_size(x_2); +x_4 = lean_nat_dec_lt(x_1, x_3); +lean_dec(x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_1); +x_5 = x_2; +return x_5; +} +else +{ +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; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = x_6; +x_10 = l_Lean_Expr_fvarId_x21(x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_1, x_11); +x_13 = x_10; +x_14 = lean_array_fset(x_8, x_1, x_13); +lean_dec(x_1); +x_1 = x_12; +x_2 = x_14; +goto _start; +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___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) { +_start: +{ +if (lean_obj_tag(x_2) == 5) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_array_set(x_3, x_4, x_11); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_4, x_13); +lean_dec(x_4); +x_2 = x_10; +x_3 = x_12; +x_4 = x_14; +goto _start; +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_dec(x_4); +x_16 = l_Lean_Expr_mvarId_x21(x_2); +lean_dec(x_2); +lean_inc(x_16); +x_17 = l_Lean_Meta_setMVarTag(x_16, x_1, x_5, x_6, x_7, x_8, x_9); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 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; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +x_20 = x_3; +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(x_21, x_20); +x_23 = 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_16); +lean_ctor_set(x_17, 0, x_24); +return x_17; +} +else +{ +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; +x_25 = lean_ctor_get(x_17, 1); +lean_inc(x_25); +lean_dec(x_17); +x_26 = x_3; +x_27 = lean_unsigned_to_nat(0u); +x_28 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__2(x_27, x_26); +x_29 = x_28; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_16); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_25); +return x_31; +} +} +} +} +lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__4(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) { _start: { uint8_t x_9; @@ -335,106 +438,82 @@ return x_70; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___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) { _start: { -lean_object* x_3; uint8_t x_4; -x_3 = lean_array_get_size(x_2); -x_4 = lean_nat_dec_lt(x_1, x_3); -lean_dec(x_3); -if (x_4 == 0) +lean_object* x_8; +x_8 = l___private_Lean_Meta_Basic_32__withMVarContextImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_5; -lean_dec(x_1); -x_5 = x_2; -return x_5; +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +return x_8; } else { -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; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = x_6; -x_10 = l_Lean_Expr_fvarId_x21(x_9); -lean_dec(x_9); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_1, x_11); -x_13 = x_10; -x_14 = lean_array_fset(x_8, x_1, x_13); -lean_dec(x_1); -x_1 = x_12; -x_2 = x_14; -goto _start; -} -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__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_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (lean_obj_tag(x_2) == 5) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_2, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); lean_inc(x_11); -lean_dec(x_2); -x_12 = lean_array_set(x_3, x_4, x_11); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_4, x_13); -lean_dec(x_4); -x_2 = x_10; -x_3 = x_12; -x_4 = x_14; -goto _start; +lean_inc(x_10); +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_4); -x_16 = l_Lean_Expr_mvarId_x21(x_2); -lean_dec(x_2); -lean_inc(x_16); -x_17 = l_Lean_Meta_setMVarTag(x_16, x_1, x_5, x_6, x_7, x_8, x_9); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 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; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -x_20 = x_3; -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(x_21, x_20); -x_23 = 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_16); -lean_ctor_set(x_17, 0, x_24); -return x_17; +return x_8; } else { -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; -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); -lean_dec(x_17); -x_26 = x_3; -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Array_umapMAux___main___at_Lean_Meta_revert___spec__3(x_27, x_26); -x_29 = x_28; -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_16); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_25); -return x_31; +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } } } -static lean_object* _init_l_Lean_Meta_revert___lambda__1___closed__1() { +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_revert___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) { +_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; lean_object* x_14; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_8); +x_10 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_9); +x_11 = lean_mk_array(x_9, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_9, x_12); +lean_dec(x_9); +x_14 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__3(x_1, x_2, x_11, x_13, x_3, x_4, x_5, x_6, x_7); +return x_14; +} +} +static lean_object* _init_l_Lean_Meta_revert___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -442,21 +521,21 @@ x_1 = lean_mk_string("revert"); return x_1; } } -static lean_object* _init_l_Lean_Meta_revert___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Meta_revert___lambda__2___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_revert___lambda__1___closed__1; +x_2 = l_Lean_Meta_revert___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_revert___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* l_Lean_Meta_revert___lambda__2(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) { _start: { lean_object* x_10; lean_object* x_11; -x_10 = l_Lean_Meta_revert___lambda__1___closed__2; +x_10 = l_Lean_Meta_revert___lambda__2___closed__2; lean_inc(x_1); x_11 = l_Lean_Meta_checkNotAssigned(x_1, x_10, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_11) == 0) @@ -477,10 +556,10 @@ x_18 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_17, x x_19 = x_18; lean_inc(x_1); x_20 = l_Lean_mkMVar(x_1); -x_21 = l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__2(x_19, x_20, x_3, x_5, x_6, x_7, x_8, x_15); +x_21 = l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__4(x_19, x_20, x_3, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t 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_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -491,73 +570,66 @@ x_25 = l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1(x_1, x_24, x_5, x x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec(x_25); -x_27 = l_Lean_Expr_getAppNumArgsAux___main(x_22, x_17); -x_28 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_27); -x_29 = lean_mk_array(x_27, x_28); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_sub(x_27, x_30); -lean_dec(x_27); -x_32 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__4(x_4, x_22, x_29, x_31, x_5, x_6, x_7, x_8, x_26); -return x_32; +x_27 = l_Lean_Meta_revert___lambda__1(x_4, x_22, x_5, x_6, x_7, x_8, x_26); +return x_27; } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; uint8_t x_37; +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_dec(x_4); -x_33 = lean_ctor_get(x_21, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); +x_28 = lean_ctor_get(x_21, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); lean_dec(x_21); -x_35 = 2; -x_36 = l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1(x_1, x_35, x_5, x_6, x_7, x_8, x_34); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +x_30 = 2; +x_31 = l_Lean_Meta_setMVarKind___at_Lean_Meta_revert___spec__1(x_1, x_30, x_5, x_6, x_7, x_8, x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set_tag(x_36, 1); -lean_ctor_set(x_36, 0, x_33); -return x_36; +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 0, x_28); +return x_31; } else { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_33); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } else { -uint8_t x_41; +uint8_t x_36; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_11); -if (x_41 == 0) +x_36 = !lean_is_exclusive(x_11); +if (x_36 == 0) { return x_11; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_11, 0); -x_43 = lean_ctor_get(x_11, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_11, 0); +x_38 = lean_ctor_get(x_11, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_11); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +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; } } } @@ -575,14 +647,14 @@ x_10 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); lean_closure_set(x_10, 0, x_1); x_11 = lean_box(x_3); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_revert___lambda__1___boxed), 9, 3); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_revert___lambda__2___boxed), 9, 3); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_2); lean_closure_set(x_12, 2, x_11); x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_13, 0, x_10); lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_13, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_1, x_13, x_4, x_5, x_6, x_7, x_8); return x_14; } else @@ -616,25 +688,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___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) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_3); -lean_dec(x_3); -x_10 = l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__2(x_1, x_2, x_9, 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); -return x_10; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___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* l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___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) { _start: { lean_object* x_10; -x_10 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_revert___spec__3(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); @@ -642,13 +700,39 @@ lean_dec(x_5); return x_10; } } -lean_object* l_Lean_Meta_revert___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* l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_elimMVarDeps___at_Lean_Meta_revert___spec__4(x_1, x_2, x_9, 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); +return x_10; +} +} +lean_object* l_Lean_Meta_revert___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_revert___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_Lean_Meta_revert___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) { _start: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_3); lean_dec(x_3); -x_11 = l_Lean_Meta_revert___lambda__1(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Lean_Meta_revert___lambda__2(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -679,10 +763,10 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Util(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_revert___lambda__1___closed__1 = _init_l_Lean_Meta_revert___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_revert___lambda__1___closed__1); -l_Lean_Meta_revert___lambda__1___closed__2 = _init_l_Lean_Meta_revert___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_revert___lambda__1___closed__2); +l_Lean_Meta_revert___lambda__2___closed__1 = _init_l_Lean_Meta_revert___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_revert___lambda__2___closed__1); +l_Lean_Meta_revert___lambda__2___closed__2 = _init_l_Lean_Meta_revert___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_revert___lambda__2___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c index 9178e64fa3..4e02a0e103 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c @@ -13,80 +13,238 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__9; +lean_object* l_Lean_Meta_rewrite___lambda__3___closed__3; +lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_rewrite___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__20; -extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__8; lean_object* l___private_Lean_HeadIndex_1__headNumArgsAux___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__19; +lean_object* l_Lean_Meta_rewrite_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__1; lean_object* l_Lean_Meta_rewrite___closed__1; +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__5; lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__2___closed__1; +lean_object* l_Lean_Meta_rewrite___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_Meta_rewrite___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* l_Lean_Meta_rewrite___closed__2; +lean_object* l_Lean_Meta_rewrite___lambda__2___closed__4; lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_rewrite___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__7; +lean_object* l_Lean_Meta_rewrite_match__2(lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__10; +lean_object* l_Lean_Meta_rewrite___lambda__3___closed__2; +lean_object* l_Lean_Meta_rewrite___lambda__3___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqNDRec___at_Lean_Meta_rewrite___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__9; lean_object* l_Lean_Meta_postprocessAppMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_rewrite___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite_match__1___rarg(uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__11; -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__1; -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__8; +lean_object* l_Lean_Meta_rewrite___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*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__5(lean_object*); +lean_object* l_Lean_Meta_mkEq___at_Lean_Meta_rewrite___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Occurrences_beq(lean_object*, lean_object*); -lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__13; -lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_toHeadIndex___main(lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__16; extern lean_object* l_Lean_Expr_iff_x3f___closed__2; +lean_object* l_Lean_Meta_rewrite___lambda__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* l_Lean_Meta_rewrite_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_rewrite___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__18; -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__15; +lean_object* l_Lean_Meta_rewrite___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*, lean_object*); +lean_object* l_Lean_Meta_rewrite_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__2; lean_object* l_Lean_Meta_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__2___closed__3; lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___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* l_Lean_Meta_rewrite___lambda__1___closed__2; +lean_object* l_Lean_Meta_rewrite___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*, lean_object*); +lean_object* l_Lean_Meta_mkEqNDRec___at_Lean_Meta_rewrite___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__3; +lean_object* l_Lean_Meta_rewrite_match__1(lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__7; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__12; lean_object* l___private_Lean_Meta_KAbstract_1__kabstractAux___main(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_Expr_isMVar(lean_object*); +lean_object* l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__4; lean_object* l_Lean_mkApp(lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___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* l_Lean_Meta_rewrite___lambda__2___closed__5; +lean_object* l_Lean_Meta_rewrite_match__3(lean_object*); +lean_object* l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___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* l_Lean_Meta_rewrite_match__4(lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__3; +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__6; lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__14; +lean_object* l_Lean_Meta_rewrite___lambda__2___closed__2; lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_rewrite___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__5; +lean_object* l_Lean_Meta_rewrite___lambda__4___closed__10; lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__4; +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__6; -lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__3(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_rewrite___lambda__1___closed__17; +lean_object* l_Lean_Meta_rewrite_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Meta_rewrite_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite_match__1___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_rewrite_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = l_Lean_Meta_rewrite_match__1___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Lean_Meta_rewrite_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +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_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_3, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Meta_rewrite_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_rewrite_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Meta_rewrite_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_rewrite_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_rewrite_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite_match__4___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___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: { @@ -203,7 +361,23 @@ return x_28; } } } -lean_object* l_Lean_Meta_mkEqNDRec___at_Lean_Meta_rewrite___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* l_Lean_Meta_mkEq___at_Lean_Meta_rewrite___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: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_rewrite___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) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_mkEqNDRec___at_Lean_Meta_rewrite___spec__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_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -211,7 +385,7 @@ x_9 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_1, x_2, x_3, x_4, x_5, return x_9; } } -lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__3(lean_object* x_1) { +lean_object* l_List_map___main___at_Lean_Meta_rewrite___spec__5(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -231,7 +405,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Expr_mvarId_x21(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_5); +x_7 = l_List_map___main___at_Lean_Meta_rewrite___spec__5(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -246,7 +420,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Expr_mvarId_x21(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_9); +x_11 = l_List_map___main___at_Lean_Meta_rewrite___spec__5(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -255,7 +429,7 @@ return x_12; } } } -lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_rewrite___spec__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_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_rewrite___spec__6(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; @@ -263,35 +437,185 @@ x_7 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_1, x_2, x_3, x_4, x_5, return x_7; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__1() { +lean_object* l_Lean_Meta_rewrite___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("equality of iff proof expected"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__2() { -_start: +lean_object* x_15; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_15 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_1, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__3() { -_start: +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_18 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_2, x_16, x_3, x_10, x_11, x_12, x_13, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +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_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_21 = l_Lean_Meta_postprocessAppMVars(x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__3(x_6, x_23, x_23, x_10, x_11, x_12, x_13, x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_24, 0); +x_27 = l_Array_toList___rarg(x_26); +lean_dec(x_26); +x_28 = l_List_map___main___at_Lean_Meta_rewrite___spec__5(x_27); +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_8); +lean_ctor_set(x_29, 1, x_19); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set(x_24, 0, x_29); +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_24); +x_32 = l_Array_toList___rarg(x_30); +lean_dec(x_30); +x_33 = l_List_map___main___at_Lean_Meta_rewrite___spec__5(x_32); +x_34 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_34, 0, x_8); +lean_ctor_set(x_34, 1, x_19); +lean_ctor_set(x_34, 2, 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_31); +return x_35; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__4() { +else +{ +uint8_t x_36; +lean_dec(x_19); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +x_36 = !lean_is_exclusive(x_21); +if (x_36 == 0) +{ +return x_21; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_21, 0); +x_38 = lean_ctor_get(x_21, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_21); +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; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_40 = !lean_is_exclusive(x_18); +if (x_40 == 0) +{ +return x_18; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_18, 0); +x_42 = lean_ctor_get(x_18, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_18); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_15); +if (x_44 == 0) +{ +return x_15; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_15, 0); +x_46 = lean_ctor_get(x_15, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_15); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +static lean_object* _init_l_Lean_Meta_rewrite___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -299,17 +623,17 @@ x_1 = lean_mk_string("_a"); return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__2___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_rewrite___lambda__1___closed__4; +x_2 = l_Lean_Meta_rewrite___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__6() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -317,27 +641,152 @@ x_1 = lean_mk_string("motive is not type correct"); return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__7() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__6; +x_1 = l_Lean_Meta_rewrite___lambda__2___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__8() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__2___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__7; +x_1 = l_Lean_Meta_rewrite___lambda__2___closed__4; 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_rewrite___lambda__1___closed__9() { +lean_object* l_Lean_Meta_rewrite___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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_expr_instantiate1(x_1, x_2); +x_17 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(x_16, x_11, x_12, x_13, x_14, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc_n(x_3, 2); +x_20 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_3, x_3, x_11, x_12, x_13, x_14, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; 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; lean_object* x_29; uint8_t x_30; +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); +x_23 = l_Lean_Expr_appFn_x21(x_21); +lean_dec(x_21); +x_24 = l_Lean_mkApp(x_23, x_1); +x_25 = l_Lean_Meta_rewrite___lambda__2___closed__2; +x_26 = 0; +x_27 = l_Lean_mkLambda(x_25, x_26, x_4, x_24); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_27); +x_28 = l_Lean_Meta_isTypeCorrect(x_27, x_11, x_12, x_13, x_14, x_22); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_dec(x_27); +lean_dec(x_18); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = l_Lean_Meta_rewrite___lambda__2___closed__5; +x_33 = lean_box(0); +x_34 = l_Lean_Meta_throwTacticEx___rarg(x_6, x_7, x_32, x_33, x_11, x_12, x_13, x_14, x_31); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +return x_34; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_28, 1); +lean_inc(x_39); +lean_dec(x_28); +x_40 = lean_box(0); +x_41 = l_Lean_Meta_rewrite___lambda__1(x_3, x_27, x_5, x_6, x_7, x_8, x_9, x_18, x_40, x_11, x_12, x_13, x_14, x_39); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_18); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +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_42 = !lean_is_exclusive(x_20); +if (x_42 == 0) +{ +return x_20; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_20, 0); +x_44 = lean_ctor_get(x_20, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_20); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_rewrite___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -345,83 +794,190 @@ x_1 = lean_mk_string("did not find instance of the pattern in the target express return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__10() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__9; +x_1 = l_Lean_Meta_rewrite___lambda__3___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__11() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__10; +x_1 = l_Lean_Meta_rewrite___lambda__3___closed__2; 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_rewrite___lambda__1___closed__12() { +lean_object* l_Lean_Meta_rewrite___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, 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) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_apply___spec__2(x_1, x_12, x_13, x_14, x_15, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_18); +x_20 = l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(x_18, x_2, x_3, x_12, x_13, x_14, x_15, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +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); +x_23 = l_Lean_Expr_hasLooseBVars(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +x_24 = l_Lean_Meta_rewrite___lambda__3___closed__3; +x_25 = lean_box(0); +x_26 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_24, x_25, x_12, x_13, x_14, x_15, x_22); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_box(0); +x_32 = l_Lean_Meta_rewrite___lambda__2(x_21, x_4, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_31, x_12, x_13, x_14, x_15, x_22); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_33 = !lean_is_exclusive(x_20); +if (x_33 == 0) +{ +return x_20; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_ctor_get(x_20, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_20); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("pattern is a metavariable "); +x_1 = lean_mk_string("equality of iff proof expected"); return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__13() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__12; +x_1 = l_Lean_Meta_rewrite___lambda__4___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__14() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__13; +x_1 = l_Lean_Meta_rewrite___lambda__4___closed__2; 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_rewrite___lambda__1___closed__15() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string("from equation"); +x_1 = lean_mk_string("pattern is a metavariable"); return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__16() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__15; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_rewrite___lambda__4___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__17() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nfrom equation"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_rewrite___lambda__1___closed__16; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_rewrite___lambda__4___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__18() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__8() { _start: { lean_object* x_1; @@ -429,27 +985,27 @@ x_1 = lean_mk_string("propext"); return x_1; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__19() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_rewrite___lambda__1___closed__18; +x_2 = l_Lean_Meta_rewrite___lambda__4___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_rewrite___lambda__1___closed__20() { +static lean_object* _init_l_Lean_Meta_rewrite___lambda__4___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_rewrite___lambda__1___closed__19; +x_2 = l_Lean_Meta_rewrite___lambda__4___closed__9; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -lean_object* l_Lean_Meta_rewrite___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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* l_Lean_Meta_rewrite___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; @@ -458,7 +1014,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_13 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_1, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Meta_inferType___at_Lean_Meta_synthAppInstances___spec__1(x_1, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; @@ -473,7 +1029,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_18 = l_Lean_Meta_forallMetaTelescopeReducing___at___private_Lean_Meta_Instances_1__mkInstanceKey___spec__1(x_14, x_16, x_17, x_8, x_9, x_10, x_11, x_15); +x_18 = l_Lean_Meta_forallMetaTelescopeReducing___at_Lean_Meta_apply___spec__1(x_14, x_16, x_17, x_8, x_9, x_10, x_11, x_15); 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; @@ -511,7 +1067,7 @@ lean_dec(x_24); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_33 = l_Lean_Meta_rewrite___lambda__1___closed__3; +x_33 = l_Lean_Meta_rewrite___lambda__4___closed__3; x_34 = lean_box(0); x_35 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_33, x_34, x_8, x_9, x_10, x_11, x_21); lean_dec(x_11); @@ -538,558 +1094,167 @@ x_42 = l_Lean_Expr_isMVar(x_41); lean_dec(x_41); if (x_42 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_object* x_43; lean_object* x_44; lean_dec(x_24); -x_43 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_5, x_8, x_9, x_10, x_11, x_21); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_44); -x_46 = l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(x_44, x_39, x_6, x_8, x_9, x_10, x_11, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_113; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_113 = l_Lean_Expr_hasLooseBVars(x_47); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -lean_dec(x_47); -lean_dec(x_44); +x_43 = lean_box(0); +x_44 = l_Lean_Meta_rewrite___lambda__3(x_5, x_39, x_6, x_40, x_38, x_26, x_2, x_3, x_22, x_23, x_43, x_8, x_9, x_10, x_11, x_21); +lean_dec(x_23); lean_dec(x_40); -lean_dec(x_38); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -x_114 = l_Lean_Meta_rewrite___lambda__1___closed__11; -x_115 = lean_box(0); -x_116 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_114, x_115, x_8, x_9, x_10, x_11, x_48); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_117 = !lean_is_exclusive(x_116); -if (x_117 == 0) -{ -return x_116; +return x_44; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_116, 0); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_116); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; -} -} -else -{ -x_49 = x_48; -goto block_112; -} -block_112: -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_expr_instantiate1(x_47, x_40); -lean_dec(x_40); -x_51 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_50, x_8, x_9, x_10, x_11, x_49); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc_n(x_44, 2); -x_54 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_44, x_44, x_8, x_9, x_10, x_11, x_53); -if (lean_obj_tag(x_54) == 0) -{ -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_96; lean_object* x_97; uint8_t x_98; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l_Lean_Expr_appFn_x21(x_55); -lean_dec(x_55); -x_58 = l_Lean_mkApp(x_57, x_47); -x_59 = l_Lean_Meta_rewrite___lambda__1___closed__5; -x_60 = 0; -x_61 = l_Lean_mkLambda(x_59, x_60, x_38, x_58); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_61); -x_96 = l_Lean_Meta_isTypeCorrect(x_61, x_8, x_9, x_10, x_11, x_56); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_unbox(x_97); -lean_dec(x_97); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -lean_dec(x_61); -lean_dec(x_52); -lean_dec(x_44); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -x_99 = lean_ctor_get(x_96, 1); -lean_inc(x_99); -lean_dec(x_96); -x_100 = l_Lean_Meta_rewrite___lambda__1___closed__8; -x_101 = lean_box(0); -x_102 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_100, x_101, x_8, x_9, x_10, x_11, x_99); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) -{ -return x_102; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 0); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_102); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; -} -} -else -{ -lean_object* x_107; -x_107 = lean_ctor_get(x_96, 1); -lean_inc(x_107); -lean_dec(x_96); -x_62 = x_107; -goto block_95; -} -block_95: -{ -lean_object* x_63; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_63 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_44, x_8, x_9, x_10, x_11, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_66 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_61, x_64, x_26, x_8, x_9, x_10, x_11, x_65); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_69 = l_Lean_Meta_postprocessAppMVars(x_2, x_3, x_22, x_23, x_8, x_9, x_10, x_11, x_68); -lean_dec(x_23); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_22, x_25, x_25, x_8, x_9, x_10, x_11, x_70); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_71, 0); -x_74 = l_Array_toList___rarg(x_73); -lean_dec(x_73); -x_75 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_74); -x_76 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_76, 0, x_52); -lean_ctor_set(x_76, 1, x_67); -lean_ctor_set(x_76, 2, x_75); -lean_ctor_set(x_71, 0, x_76); -return x_71; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_77 = lean_ctor_get(x_71, 0); -x_78 = lean_ctor_get(x_71, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_71); -x_79 = l_Array_toList___rarg(x_77); -lean_dec(x_77); -x_80 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_79); -x_81 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_81, 0, x_52); -lean_ctor_set(x_81, 1, x_67); -lean_ctor_set(x_81, 2, x_80); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_78); -return x_82; -} -} -else -{ -uint8_t x_83; -lean_dec(x_67); -lean_dec(x_52); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_83 = !lean_is_exclusive(x_69); -if (x_83 == 0) -{ -return x_69; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_69, 0); -x_85 = lean_ctor_get(x_69, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_69); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -else -{ -uint8_t x_87; -lean_dec(x_52); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_87 = !lean_is_exclusive(x_66); -if (x_87 == 0) -{ -return x_66; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_66, 0); -x_89 = lean_ctor_get(x_66, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_66); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; -} -} -} -else -{ -uint8_t x_91; -lean_dec(x_61); -lean_dec(x_52); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_91 = !lean_is_exclusive(x_63); -if (x_91 == 0) -{ -return x_63; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_63, 0); -x_93 = lean_ctor_get(x_63, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_63); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; -} -} -} -} -else -{ -uint8_t x_108; -lean_dec(x_52); -lean_dec(x_47); -lean_dec(x_44); -lean_dec(x_38); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_54); -if (x_108 == 0) -{ -return x_54; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_54, 0); -x_110 = lean_ctor_get(x_54, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_54); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -} -else -{ -uint8_t x_121; -lean_dec(x_44); -lean_dec(x_40); -lean_dec(x_38); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_121 = !lean_is_exclusive(x_46); -if (x_121 == 0) -{ -return x_46; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_46, 0); -x_123 = lean_ctor_get(x_46, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_46); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -else -{ -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; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +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; uint8_t x_56; lean_dec(x_40); lean_dec(x_38); lean_dec(x_26); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_125 = l_Lean_indentExpr(x_39); -x_126 = l_Lean_Meta_rewrite___lambda__1___closed__14; -x_127 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = l_Lean_MessageData_ofList___closed__3; -x_129 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -x_130 = l_Lean_Meta_rewrite___lambda__1___closed__17; -x_131 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -x_132 = l_Lean_indentExpr(x_24); -x_133 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_box(0); -x_135 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_133, x_134, x_8, x_9, x_10, x_11, x_21); +x_45 = l_Lean_indentExpr(x_39); +x_46 = l_Lean_Meta_rewrite___lambda__4___closed__5; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l_Lean_Meta_rewrite___lambda__4___closed__7; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_indentExpr(x_24); +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_box(0); +x_55 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_53, x_54, x_8, x_9, x_10, x_11, x_21); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) { -return x_135; +return x_55; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_135, 0); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_135); -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; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_55); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -lean_object* x_140; +lean_object* x_60; lean_dec(x_24); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_140 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_26, x_8, x_9, x_10, x_11, x_21); -if (lean_obj_tag(x_140) == 0) +x_60 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_26, x_8, x_9, x_10, x_11, x_21); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_227; -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_39); lean_inc(x_40); -x_227 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_40, x_39, x_8, x_9, x_10, x_11, x_142); -if (lean_obj_tag(x_227) == 0) +x_63 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_40, x_39, x_8, x_9, x_10, x_11, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec(x_227); -x_230 = l_Lean_Expr_getAppFn___main(x_40); -x_231 = l_Lean_Expr_isMVar(x_230); -lean_dec(x_230); -if (x_231 == 0) +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Lean_Expr_getAppFn___main(x_40); +x_67 = l_Lean_Expr_isMVar(x_66); +lean_dec(x_66); +if (x_67 == 0) { -lean_dec(x_228); -x_143 = x_229; -goto block_226; +lean_object* x_68; lean_object* x_69; +lean_dec(x_64); +x_68 = lean_box(0); +x_69 = l_Lean_Meta_rewrite___lambda__3(x_5, x_40, x_6, x_39, x_38, x_61, x_2, x_3, x_22, x_23, x_68, x_8, x_9, x_10, x_11, x_65); +lean_dec(x_23); +lean_dec(x_39); +return x_69; } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; -lean_dec(x_141); +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; lean_object* x_79; lean_object* x_80; uint8_t x_81; +lean_dec(x_61); lean_dec(x_39); lean_dec(x_38); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_232 = l_Lean_indentExpr(x_40); -x_233 = l_Lean_Meta_rewrite___lambda__1___closed__14; -x_234 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_232); -x_235 = l_Lean_MessageData_ofList___closed__3; -x_236 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -x_237 = l_Lean_Meta_rewrite___lambda__1___closed__17; -x_238 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_238, 0, x_236); -lean_ctor_set(x_238, 1, x_237); -x_239 = l_Lean_indentExpr(x_228); -x_240 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_240, 0, x_238); -lean_ctor_set(x_240, 1, x_239); -x_241 = lean_box(0); -x_242 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_240, x_241, x_8, x_9, x_10, x_11, x_229); +x_70 = l_Lean_indentExpr(x_40); +x_71 = l_Lean_Meta_rewrite___lambda__4___closed__5; +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Lean_Meta_rewrite___lambda__4___closed__7; +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_indentExpr(x_64); +x_76 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_78 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = lean_box(0); +x_80 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_78, x_79, x_8, x_9, x_10, x_11, x_65); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_243 = !lean_is_exclusive(x_242); -if (x_243 == 0) +x_81 = !lean_is_exclusive(x_80); +if (x_81 == 0) { -return x_242; +return x_80; } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_242, 0); -x_245 = lean_ctor_get(x_242, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_242); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_80, 0); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_80); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; } } } else { -uint8_t x_247; -lean_dec(x_141); +uint8_t x_85; +lean_dec(x_61); lean_dec(x_40); lean_dec(x_39); lean_dec(x_38); @@ -1102,433 +1267,29 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_247 = !lean_is_exclusive(x_227); -if (x_247 == 0) +x_85 = !lean_is_exclusive(x_63); +if (x_85 == 0) { -return x_227; +return x_63; } else { -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_227, 0); -x_249 = lean_ctor_get(x_227, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_227); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; -} -} -block_226: -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_144 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_5, x_8, x_9, x_10, x_11, x_143); -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -lean_dec(x_144); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_145); -x_147 = l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(x_145, x_40, x_6, x_8, x_9, x_10, x_11, x_146); -if (lean_obj_tag(x_147) == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_214; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); -x_214 = l_Lean_Expr_hasLooseBVars(x_148); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -lean_dec(x_148); -lean_dec(x_145); -lean_dec(x_141); -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_23); -lean_dec(x_22); -x_215 = l_Lean_Meta_rewrite___lambda__1___closed__11; -x_216 = lean_box(0); -x_217 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_215, x_216, x_8, x_9, x_10, x_11, x_149); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_218 = !lean_is_exclusive(x_217); -if (x_218 == 0) -{ -return x_217; -} -else -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_217, 0); -x_220 = lean_ctor_get(x_217, 1); -lean_inc(x_220); -lean_inc(x_219); -lean_dec(x_217); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_219); -lean_ctor_set(x_221, 1, x_220); -return x_221; -} -} -else -{ -x_150 = x_149; -goto block_213; -} -block_213: -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_151 = lean_expr_instantiate1(x_148, x_39); -lean_dec(x_39); -x_152 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_151, x_8, x_9, x_10, x_11, x_150); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc_n(x_145, 2); -x_155 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_145, x_145, x_8, x_9, x_10, x_11, x_154); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_197; lean_object* x_198; uint8_t x_199; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = l_Lean_Expr_appFn_x21(x_156); -lean_dec(x_156); -x_159 = l_Lean_mkApp(x_158, x_148); -x_160 = l_Lean_Meta_rewrite___lambda__1___closed__5; -x_161 = 0; -x_162 = l_Lean_mkLambda(x_160, x_161, x_38, x_159); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_162); -x_197 = l_Lean_Meta_isTypeCorrect(x_162, x_8, x_9, x_10, x_11, x_157); -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -x_199 = lean_unbox(x_198); -lean_dec(x_198); -if (x_199 == 0) -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -lean_dec(x_162); -lean_dec(x_153); -lean_dec(x_145); -lean_dec(x_141); -lean_dec(x_23); -lean_dec(x_22); -x_200 = lean_ctor_get(x_197, 1); -lean_inc(x_200); -lean_dec(x_197); -x_201 = l_Lean_Meta_rewrite___lambda__1___closed__8; -x_202 = lean_box(0); -x_203 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_201, x_202, x_8, x_9, x_10, x_11, x_200); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_204 = !lean_is_exclusive(x_203); -if (x_204 == 0) -{ -return x_203; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_203, 0); -x_206 = lean_ctor_get(x_203, 1); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_203); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; -} -} -else -{ -lean_object* x_208; -x_208 = lean_ctor_get(x_197, 1); -lean_inc(x_208); -lean_dec(x_197); -x_163 = x_208; -goto block_196; -} -block_196: -{ -lean_object* x_164; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_164 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_145, x_8, x_9, x_10, x_11, x_163); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_167 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_162, x_165, x_141, x_8, x_9, x_10, x_11, x_166); -if (lean_obj_tag(x_167) == 0) -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_170 = l_Lean_Meta_postprocessAppMVars(x_2, x_3, x_22, x_23, x_8, x_9, x_10, x_11, x_169); -lean_dec(x_23); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -lean_dec(x_170); -x_172 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_22, x_25, x_25, x_8, x_9, x_10, x_11, x_171); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_173 = !lean_is_exclusive(x_172); -if (x_173 == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_174 = lean_ctor_get(x_172, 0); -x_175 = l_Array_toList___rarg(x_174); -lean_dec(x_174); -x_176 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_175); -x_177 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_177, 0, x_153); -lean_ctor_set(x_177, 1, x_168); -lean_ctor_set(x_177, 2, x_176); -lean_ctor_set(x_172, 0, x_177); -return x_172; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_178 = lean_ctor_get(x_172, 0); -x_179 = lean_ctor_get(x_172, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_172); -x_180 = l_Array_toList___rarg(x_178); -lean_dec(x_178); -x_181 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_180); -x_182 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_182, 0, x_153); -lean_ctor_set(x_182, 1, x_168); -lean_ctor_set(x_182, 2, x_181); -x_183 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_179); -return x_183; -} -} -else -{ -uint8_t x_184; -lean_dec(x_168); -lean_dec(x_153); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_184 = !lean_is_exclusive(x_170); -if (x_184 == 0) -{ -return x_170; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_170, 0); -x_186 = lean_ctor_get(x_170, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_170); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_63, 0); +x_87 = lean_ctor_get(x_63, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_63); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } } else { -uint8_t x_188; -lean_dec(x_153); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_188 = !lean_is_exclusive(x_167); -if (x_188 == 0) -{ -return x_167; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_189 = lean_ctor_get(x_167, 0); -x_190 = lean_ctor_get(x_167, 1); -lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_167); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -return x_191; -} -} -} -else -{ -uint8_t x_192; -lean_dec(x_162); -lean_dec(x_153); -lean_dec(x_141); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_192 = !lean_is_exclusive(x_164); -if (x_192 == 0) -{ -return x_164; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_ctor_get(x_164, 0); -x_194 = lean_ctor_get(x_164, 1); -lean_inc(x_194); -lean_inc(x_193); -lean_dec(x_164); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -return x_195; -} -} -} -} -else -{ -uint8_t x_209; -lean_dec(x_153); -lean_dec(x_148); -lean_dec(x_145); -lean_dec(x_141); -lean_dec(x_38); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_209 = !lean_is_exclusive(x_155); -if (x_209 == 0) -{ -return x_155; -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_155, 0); -x_211 = lean_ctor_get(x_155, 1); -lean_inc(x_211); -lean_inc(x_210); -lean_dec(x_155); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; -} -} -} -} -else -{ -uint8_t x_222; -lean_dec(x_145); -lean_dec(x_141); -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_222 = !lean_is_exclusive(x_147); -if (x_222 == 0) -{ -return x_147; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_147, 0); -x_224 = lean_ctor_get(x_147, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_147); -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_223); -lean_ctor_set(x_225, 1, x_224); -return x_225; -} -} -} -} -else -{ -uint8_t x_251; +uint8_t x_89; lean_dec(x_40); lean_dec(x_39); lean_dec(x_38); @@ -1541,23 +1302,23 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_251 = !lean_is_exclusive(x_140); -if (x_251 == 0) +x_89 = !lean_is_exclusive(x_60); +if (x_89 == 0) { -return x_140; +return x_60; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_140, 0); -x_253 = lean_ctor_get(x_140, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_140); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -return x_254; +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_60, 0); +x_91 = lean_ctor_get(x_60, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_60); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } @@ -1565,622 +1326,231 @@ return x_254; } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_255 = l_Lean_Expr_appFn_x21(x_24); -x_256 = l_Lean_Expr_appArg_x21(x_255); -lean_dec(x_255); -x_257 = l_Lean_Expr_appArg_x21(x_24); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = l_Lean_Expr_appFn_x21(x_24); +x_94 = l_Lean_Expr_appArg_x21(x_93); +lean_dec(x_93); +x_95 = l_Lean_Expr_appArg_x21(x_24); lean_dec(x_24); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_257); -lean_inc(x_256); -x_258 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_256, x_257, x_8, x_9, x_10, x_11, x_21); -if (lean_obj_tag(x_258) == 0) +lean_inc(x_95); +lean_inc(x_94); +x_96 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_94, x_95, x_8, x_9, x_10, x_11, x_21); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = l_Lean_Meta_rewrite___lambda__1___closed__20; -x_262 = l_Lean_mkApp3(x_261, x_256, x_257, x_26); -x_263 = l_Lean_Expr_eq_x3f___closed__2; -x_264 = lean_unsigned_to_nat(3u); -x_265 = l_Lean_Expr_isAppOfArity___main(x_259, x_263, x_264); -if (x_265 == 0) +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; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = l_Lean_Meta_rewrite___lambda__4___closed__10; +x_100 = l_Lean_mkApp3(x_99, x_94, x_95, x_26); +x_101 = l_Lean_Expr_eq_x3f___closed__2; +x_102 = lean_unsigned_to_nat(3u); +x_103 = l_Lean_Expr_isAppOfArity___main(x_97, x_101, x_102); +if (x_103 == 0) { -lean_object* x_266; lean_object* x_267; lean_object* x_268; -lean_dec(x_262); -lean_dec(x_259); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_100); +lean_dec(x_97); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_266 = l_Lean_Meta_rewrite___lambda__1___closed__3; -x_267 = lean_box(0); -x_268 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_266, x_267, x_8, x_9, x_10, x_11, x_260); +x_104 = l_Lean_Meta_rewrite___lambda__4___closed__3; +x_105 = lean_box(0); +x_106 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_104, x_105, x_8, x_9, x_10, x_11, x_98); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -return x_268; +return x_106; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_269 = l_Lean_Expr_appFn_x21(x_259); -x_270 = l_Lean_Expr_appFn_x21(x_269); -x_271 = l_Lean_Expr_appArg_x21(x_270); -lean_dec(x_270); -x_272 = l_Lean_Expr_appArg_x21(x_269); -lean_dec(x_269); -x_273 = l_Lean_Expr_appArg_x21(x_259); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_107 = l_Lean_Expr_appFn_x21(x_97); +x_108 = l_Lean_Expr_appFn_x21(x_107); +x_109 = l_Lean_Expr_appArg_x21(x_108); +lean_dec(x_108); +x_110 = l_Lean_Expr_appArg_x21(x_107); +lean_dec(x_107); +x_111 = l_Lean_Expr_appArg_x21(x_97); if (x_4 == 0) { -lean_object* x_274; uint8_t x_275; -x_274 = l_Lean_Expr_getAppFn___main(x_272); -x_275 = l_Lean_Expr_isMVar(x_274); -lean_dec(x_274); -if (x_275 == 0) +lean_object* x_112; uint8_t x_113; +x_112 = l_Lean_Expr_getAppFn___main(x_110); +x_113 = l_Lean_Expr_isMVar(x_112); +lean_dec(x_112); +if (x_113 == 0) { -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; -lean_dec(x_259); -x_276 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_5, x_8, x_9, x_10, x_11, x_260); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -lean_dec(x_276); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_277); -x_279 = l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(x_277, x_272, x_6, x_8, x_9, x_10, x_11, x_278); -if (lean_obj_tag(x_279) == 0) -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_346; -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -lean_dec(x_279); -x_346 = l_Lean_Expr_hasLooseBVars(x_280); -if (x_346 == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; uint8_t x_350; -lean_dec(x_280); -lean_dec(x_277); -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_262); +lean_object* x_114; lean_object* x_115; +lean_dec(x_97); +x_114 = lean_box(0); +x_115 = l_Lean_Meta_rewrite___lambda__3(x_5, x_110, x_6, x_111, x_109, x_100, x_2, x_3, x_22, x_23, x_114, x_8, x_9, x_10, x_11, x_98); lean_dec(x_23); -lean_dec(x_22); -x_347 = l_Lean_Meta_rewrite___lambda__1___closed__11; -x_348 = lean_box(0); -x_349 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_347, x_348, x_8, x_9, x_10, x_11, x_281); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_350 = !lean_is_exclusive(x_349); -if (x_350 == 0) -{ -return x_349; +lean_dec(x_111); +return x_115; } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_351 = lean_ctor_get(x_349, 0); -x_352 = lean_ctor_get(x_349, 1); -lean_inc(x_352); -lean_inc(x_351); -lean_dec(x_349); -x_353 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_353, 0, x_351); -lean_ctor_set(x_353, 1, x_352); -return x_353; -} -} -else -{ -x_282 = x_281; -goto block_345; -} -block_345: -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_283 = lean_expr_instantiate1(x_280, x_273); -lean_dec(x_273); -x_284 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_283, x_8, x_9, x_10, x_11, x_282); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); -lean_inc(x_286); -lean_dec(x_284); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc_n(x_277, 2); -x_287 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_277, x_277, x_8, x_9, x_10, x_11, x_286); -if (lean_obj_tag(x_287) == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; lean_object* x_294; lean_object* x_295; lean_object* x_329; lean_object* x_330; uint8_t x_331; -x_288 = lean_ctor_get(x_287, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_287, 1); -lean_inc(x_289); -lean_dec(x_287); -x_290 = l_Lean_Expr_appFn_x21(x_288); -lean_dec(x_288); -x_291 = l_Lean_mkApp(x_290, x_280); -x_292 = l_Lean_Meta_rewrite___lambda__1___closed__5; -x_293 = 0; -x_294 = l_Lean_mkLambda(x_292, x_293, x_271, x_291); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_294); -x_329 = l_Lean_Meta_isTypeCorrect(x_294, x_8, x_9, x_10, x_11, x_289); -x_330 = lean_ctor_get(x_329, 0); -lean_inc(x_330); -x_331 = lean_unbox(x_330); -lean_dec(x_330); -if (x_331 == 0) -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; -lean_dec(x_294); -lean_dec(x_285); -lean_dec(x_277); -lean_dec(x_262); -lean_dec(x_23); -lean_dec(x_22); -x_332 = lean_ctor_get(x_329, 1); -lean_inc(x_332); -lean_dec(x_329); -x_333 = l_Lean_Meta_rewrite___lambda__1___closed__8; -x_334 = lean_box(0); -x_335 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_333, x_334, x_8, x_9, x_10, x_11, x_332); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_336 = !lean_is_exclusive(x_335); -if (x_336 == 0) -{ -return x_335; -} -else -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_337 = lean_ctor_get(x_335, 0); -x_338 = lean_ctor_get(x_335, 1); -lean_inc(x_338); -lean_inc(x_337); -lean_dec(x_335); -x_339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_339, 0, x_337); -lean_ctor_set(x_339, 1, x_338); -return x_339; -} -} -else -{ -lean_object* x_340; -x_340 = lean_ctor_get(x_329, 1); -lean_inc(x_340); -lean_dec(x_329); -x_295 = x_340; -goto block_328; -} -block_328: -{ -lean_object* x_296; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_296 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_277, x_8, x_9, x_10, x_11, x_295); -if (lean_obj_tag(x_296) == 0) -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_296, 1); -lean_inc(x_298); -lean_dec(x_296); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_299 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_294, x_297, x_262, x_8, x_9, x_10, x_11, x_298); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_302 = l_Lean_Meta_postprocessAppMVars(x_2, x_3, x_22, x_23, x_8, x_9, x_10, x_11, x_301); -lean_dec(x_23); -if (lean_obj_tag(x_302) == 0) -{ -lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_303 = lean_ctor_get(x_302, 1); -lean_inc(x_303); -lean_dec(x_302); -x_304 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_22, x_25, x_25, x_8, x_9, x_10, x_11, x_303); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_305 = !lean_is_exclusive(x_304); -if (x_305 == 0) -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_306 = lean_ctor_get(x_304, 0); -x_307 = l_Array_toList___rarg(x_306); -lean_dec(x_306); -x_308 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_307); -x_309 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_309, 0, x_285); -lean_ctor_set(x_309, 1, x_300); -lean_ctor_set(x_309, 2, x_308); -lean_ctor_set(x_304, 0, x_309); -return x_304; -} -else -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_310 = lean_ctor_get(x_304, 0); -x_311 = lean_ctor_get(x_304, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_304); -x_312 = l_Array_toList___rarg(x_310); -lean_dec(x_310); -x_313 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_312); -x_314 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_314, 0, x_285); -lean_ctor_set(x_314, 1, x_300); -lean_ctor_set(x_314, 2, x_313); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_314); -lean_ctor_set(x_315, 1, x_311); -return x_315; -} -} -else -{ -uint8_t x_316; -lean_dec(x_300); -lean_dec(x_285); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_316 = !lean_is_exclusive(x_302); -if (x_316 == 0) -{ -return x_302; -} -else -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_317 = lean_ctor_get(x_302, 0); -x_318 = lean_ctor_get(x_302, 1); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_302); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_317); -lean_ctor_set(x_319, 1, x_318); -return x_319; -} -} -} -else -{ -uint8_t x_320; -lean_dec(x_285); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_320 = !lean_is_exclusive(x_299); -if (x_320 == 0) -{ -return x_299; -} -else -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_321 = lean_ctor_get(x_299, 0); -x_322 = lean_ctor_get(x_299, 1); -lean_inc(x_322); -lean_inc(x_321); -lean_dec(x_299); -x_323 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_323, 0, x_321); -lean_ctor_set(x_323, 1, x_322); -return x_323; -} -} -} -else -{ -uint8_t x_324; -lean_dec(x_294); -lean_dec(x_285); -lean_dec(x_262); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_324 = !lean_is_exclusive(x_296); -if (x_324 == 0) -{ -return x_296; -} -else -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_325 = lean_ctor_get(x_296, 0); -x_326 = lean_ctor_get(x_296, 1); -lean_inc(x_326); -lean_inc(x_325); -lean_dec(x_296); -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_325); -lean_ctor_set(x_327, 1, x_326); -return x_327; -} -} -} -} -else -{ -uint8_t x_341; -lean_dec(x_285); -lean_dec(x_280); -lean_dec(x_277); -lean_dec(x_271); -lean_dec(x_262); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_341 = !lean_is_exclusive(x_287); -if (x_341 == 0) -{ -return x_287; -} -else -{ -lean_object* x_342; lean_object* x_343; lean_object* x_344; -x_342 = lean_ctor_get(x_287, 0); -x_343 = lean_ctor_get(x_287, 1); -lean_inc(x_343); -lean_inc(x_342); -lean_dec(x_287); -x_344 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_344, 0, x_342); -lean_ctor_set(x_344, 1, x_343); -return x_344; -} -} -} -} -else -{ -uint8_t x_354; -lean_dec(x_277); -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_262); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_354 = !lean_is_exclusive(x_279); -if (x_354 == 0) -{ -return x_279; -} -else -{ -lean_object* x_355; lean_object* x_356; lean_object* x_357; -x_355 = lean_ctor_get(x_279, 0); -x_356 = lean_ctor_get(x_279, 1); -lean_inc(x_356); -lean_inc(x_355); -lean_dec(x_279); -x_357 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_357, 0, x_355); -lean_ctor_set(x_357, 1, x_356); -return x_357; -} -} -} -else -{ -lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_262); +lean_object* x_116; lean_object* x_117; lean_object* x_118; 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; uint8_t x_127; +lean_dec(x_111); +lean_dec(x_109); +lean_dec(x_100); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_358 = l_Lean_indentExpr(x_272); -x_359 = l_Lean_Meta_rewrite___lambda__1___closed__14; -x_360 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_358); -x_361 = l_Lean_MessageData_ofList___closed__3; -x_362 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_362, 0, x_360); -lean_ctor_set(x_362, 1, x_361); -x_363 = l_Lean_Meta_rewrite___lambda__1___closed__17; -x_364 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_364, 0, x_362); -lean_ctor_set(x_364, 1, x_363); -x_365 = l_Lean_indentExpr(x_259); -x_366 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_366, 0, x_364); -lean_ctor_set(x_366, 1, x_365); -x_367 = lean_box(0); -x_368 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_366, x_367, x_8, x_9, x_10, x_11, x_260); +x_116 = l_Lean_indentExpr(x_110); +x_117 = l_Lean_Meta_rewrite___lambda__4___closed__5; +x_118 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l_Lean_Meta_rewrite___lambda__4___closed__7; +x_120 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = l_Lean_indentExpr(x_97); +x_122 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_124 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +x_125 = lean_box(0); +x_126 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_124, x_125, x_8, x_9, x_10, x_11, x_98); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_369 = !lean_is_exclusive(x_368); -if (x_369 == 0) +x_127 = !lean_is_exclusive(x_126); +if (x_127 == 0) { -return x_368; +return x_126; } else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_370 = lean_ctor_get(x_368, 0); -x_371 = lean_ctor_get(x_368, 1); -lean_inc(x_371); -lean_inc(x_370); -lean_dec(x_368); -x_372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_372, 0, x_370); -lean_ctor_set(x_372, 1, x_371); -return x_372; +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_126, 0); +x_129 = lean_ctor_get(x_126, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_126); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +return x_130; } } } else { -lean_object* x_373; -lean_dec(x_259); +lean_object* x_131; +lean_dec(x_97); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_373 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_262, x_8, x_9, x_10, x_11, x_260); -if (lean_obj_tag(x_373) == 0) +x_131 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_100, x_8, x_9, x_10, x_11, x_98); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_460; -x_374 = lean_ctor_get(x_373, 0); -lean_inc(x_374); -x_375 = lean_ctor_get(x_373, 1); -lean_inc(x_375); -lean_dec(x_373); +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_272); -lean_inc(x_273); -x_460 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_273, x_272, x_8, x_9, x_10, x_11, x_375); -if (lean_obj_tag(x_460) == 0) +lean_inc(x_110); +lean_inc(x_111); +x_134 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_111, x_110, x_8, x_9, x_10, x_11, x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_461; lean_object* x_462; lean_object* x_463; uint8_t x_464; -x_461 = lean_ctor_get(x_460, 0); -lean_inc(x_461); -x_462 = lean_ctor_get(x_460, 1); -lean_inc(x_462); -lean_dec(x_460); -x_463 = l_Lean_Expr_getAppFn___main(x_273); -x_464 = l_Lean_Expr_isMVar(x_463); -lean_dec(x_463); -if (x_464 == 0) +lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_137 = l_Lean_Expr_getAppFn___main(x_111); +x_138 = l_Lean_Expr_isMVar(x_137); +lean_dec(x_137); +if (x_138 == 0) { -lean_dec(x_461); -x_376 = x_462; -goto block_459; +lean_object* x_139; lean_object* x_140; +lean_dec(x_135); +x_139 = lean_box(0); +x_140 = l_Lean_Meta_rewrite___lambda__3(x_5, x_111, x_6, x_110, x_109, x_132, x_2, x_3, x_22, x_23, x_139, x_8, x_9, x_10, x_11, x_136); +lean_dec(x_23); +lean_dec(x_110); +return x_140; } else { -lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; uint8_t x_476; -lean_dec(x_374); -lean_dec(x_272); -lean_dec(x_271); +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; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; +lean_dec(x_132); +lean_dec(x_110); +lean_dec(x_109); lean_dec(x_23); lean_dec(x_22); lean_dec(x_5); -x_465 = l_Lean_indentExpr(x_273); -x_466 = l_Lean_Meta_rewrite___lambda__1___closed__14; -x_467 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_467, 0, x_466); -lean_ctor_set(x_467, 1, x_465); -x_468 = l_Lean_MessageData_ofList___closed__3; -x_469 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_469, 0, x_467); -lean_ctor_set(x_469, 1, x_468); -x_470 = l_Lean_Meta_rewrite___lambda__1___closed__17; -x_471 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_471, 0, x_469); -lean_ctor_set(x_471, 1, x_470); -x_472 = l_Lean_indentExpr(x_461); -x_473 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_473, 0, x_471); -lean_ctor_set(x_473, 1, x_472); -x_474 = lean_box(0); -x_475 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_473, x_474, x_8, x_9, x_10, x_11, x_462); +x_141 = l_Lean_indentExpr(x_111); +x_142 = l_Lean_Meta_rewrite___lambda__4___closed__5; +x_143 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Meta_rewrite___lambda__4___closed__7; +x_145 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +x_146 = l_Lean_indentExpr(x_135); +x_147 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_149 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +x_150 = lean_box(0); +x_151 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_149, x_150, x_8, x_9, x_10, x_11, x_136); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_476 = !lean_is_exclusive(x_475); -if (x_476 == 0) +x_152 = !lean_is_exclusive(x_151); +if (x_152 == 0) { -return x_475; +return x_151; } else { -lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_477 = lean_ctor_get(x_475, 0); -x_478 = lean_ctor_get(x_475, 1); -lean_inc(x_478); -lean_inc(x_477); -lean_dec(x_475); -x_479 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_479, 0, x_477); -lean_ctor_set(x_479, 1, x_478); -return x_479; +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_151, 0); +x_154 = lean_ctor_get(x_151, 1); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_151); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; } } } else { -uint8_t x_480; -lean_dec(x_374); -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_271); +uint8_t x_156; +lean_dec(x_132); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); lean_dec(x_23); lean_dec(x_22); lean_dec(x_11); @@ -2190,436 +1560,32 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_480 = !lean_is_exclusive(x_460); -if (x_480 == 0) +x_156 = !lean_is_exclusive(x_134); +if (x_156 == 0) { -return x_460; +return x_134; } else { -lean_object* x_481; lean_object* x_482; lean_object* x_483; -x_481 = lean_ctor_get(x_460, 0); -x_482 = lean_ctor_get(x_460, 1); -lean_inc(x_482); -lean_inc(x_481); -lean_dec(x_460); -x_483 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_483, 0, x_481); -lean_ctor_set(x_483, 1, x_482); -return x_483; -} -} -block_459: -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_377 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_5, x_8, x_9, x_10, x_11, x_376); -x_378 = lean_ctor_get(x_377, 0); -lean_inc(x_378); -x_379 = lean_ctor_get(x_377, 1); -lean_inc(x_379); -lean_dec(x_377); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_378); -x_380 = l_Lean_Meta_kabstract___at_Lean_Meta_rewrite___spec__1(x_378, x_273, x_6, x_8, x_9, x_10, x_11, x_379); -if (lean_obj_tag(x_380) == 0) -{ -lean_object* x_381; lean_object* x_382; lean_object* x_383; uint8_t x_447; -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); -lean_inc(x_382); -lean_dec(x_380); -x_447 = l_Lean_Expr_hasLooseBVars(x_381); -if (x_447 == 0) -{ -lean_object* x_448; lean_object* x_449; lean_object* x_450; uint8_t x_451; -lean_dec(x_381); -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_272); -lean_dec(x_271); -lean_dec(x_23); -lean_dec(x_22); -x_448 = l_Lean_Meta_rewrite___lambda__1___closed__11; -x_449 = lean_box(0); -x_450 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_448, x_449, x_8, x_9, x_10, x_11, x_382); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_451 = !lean_is_exclusive(x_450); -if (x_451 == 0) -{ -return x_450; -} -else -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; -x_452 = lean_ctor_get(x_450, 0); -x_453 = lean_ctor_get(x_450, 1); -lean_inc(x_453); -lean_inc(x_452); -lean_dec(x_450); -x_454 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_454, 0, x_452); -lean_ctor_set(x_454, 1, x_453); -return x_454; -} -} -else -{ -x_383 = x_382; -goto block_446; -} -block_446: -{ -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_384 = lean_expr_instantiate1(x_381, x_272); -lean_dec(x_272); -x_385 = l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(x_384, x_8, x_9, x_10, x_11, x_383); -x_386 = lean_ctor_get(x_385, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_385, 1); -lean_inc(x_387); -lean_dec(x_385); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc_n(x_378, 2); -x_388 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_378, x_378, x_8, x_9, x_10, x_11, x_387); -if (lean_obj_tag(x_388) == 0) -{ -lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; uint8_t x_394; lean_object* x_395; lean_object* x_396; lean_object* x_430; lean_object* x_431; uint8_t x_432; -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -lean_dec(x_388); -x_391 = l_Lean_Expr_appFn_x21(x_389); -lean_dec(x_389); -x_392 = l_Lean_mkApp(x_391, x_381); -x_393 = l_Lean_Meta_rewrite___lambda__1___closed__5; -x_394 = 0; -x_395 = l_Lean_mkLambda(x_393, x_394, x_271, x_392); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_395); -x_430 = l_Lean_Meta_isTypeCorrect(x_395, x_8, x_9, x_10, x_11, x_390); -x_431 = lean_ctor_get(x_430, 0); -lean_inc(x_431); -x_432 = lean_unbox(x_431); -lean_dec(x_431); -if (x_432 == 0) -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; -lean_dec(x_395); -lean_dec(x_386); -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_23); -lean_dec(x_22); -x_433 = lean_ctor_get(x_430, 1); -lean_inc(x_433); -lean_dec(x_430); -x_434 = l_Lean_Meta_rewrite___lambda__1___closed__8; -x_435 = lean_box(0); -x_436 = l_Lean_Meta_throwTacticEx___rarg(x_2, x_3, x_434, x_435, x_8, x_9, x_10, x_11, x_433); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_437 = !lean_is_exclusive(x_436); -if (x_437 == 0) -{ -return x_436; -} -else -{ -lean_object* x_438; lean_object* x_439; lean_object* x_440; -x_438 = lean_ctor_get(x_436, 0); -x_439 = lean_ctor_get(x_436, 1); -lean_inc(x_439); -lean_inc(x_438); -lean_dec(x_436); -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_438); -lean_ctor_set(x_440, 1, x_439); -return x_440; -} -} -else -{ -lean_object* x_441; -x_441 = lean_ctor_get(x_430, 1); -lean_inc(x_441); -lean_dec(x_430); -x_396 = x_441; -goto block_429; -} -block_429: -{ -lean_object* x_397; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_397 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_378, x_8, x_9, x_10, x_11, x_396); -if (lean_obj_tag(x_397) == 0) -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -lean_dec(x_397); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_400 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_395, x_398, x_374, x_8, x_9, x_10, x_11, x_399); -if (lean_obj_tag(x_400) == 0) -{ -lean_object* x_401; lean_object* x_402; lean_object* x_403; -x_401 = lean_ctor_get(x_400, 0); -lean_inc(x_401); -x_402 = lean_ctor_get(x_400, 1); -lean_inc(x_402); -lean_dec(x_400); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_403 = l_Lean_Meta_postprocessAppMVars(x_2, x_3, x_22, x_23, x_8, x_9, x_10, x_11, x_402); -lean_dec(x_23); -if (lean_obj_tag(x_403) == 0) -{ -lean_object* x_404; lean_object* x_405; uint8_t x_406; -x_404 = lean_ctor_get(x_403, 1); -lean_inc(x_404); -lean_dec(x_403); -x_405 = l_Array_filterMAux___main___at_Lean_Meta_apply___spec__1(x_22, x_25, x_25, x_8, x_9, x_10, x_11, x_404); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_406 = !lean_is_exclusive(x_405); -if (x_406 == 0) -{ -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_407 = lean_ctor_get(x_405, 0); -x_408 = l_Array_toList___rarg(x_407); -lean_dec(x_407); -x_409 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_408); -x_410 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_410, 0, x_386); -lean_ctor_set(x_410, 1, x_401); -lean_ctor_set(x_410, 2, x_409); -lean_ctor_set(x_405, 0, x_410); -return x_405; -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_411 = lean_ctor_get(x_405, 0); -x_412 = lean_ctor_get(x_405, 1); -lean_inc(x_412); -lean_inc(x_411); -lean_dec(x_405); -x_413 = l_Array_toList___rarg(x_411); -lean_dec(x_411); -x_414 = l_List_map___main___at_Lean_Meta_rewrite___spec__3(x_413); -x_415 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_415, 0, x_386); -lean_ctor_set(x_415, 1, x_401); -lean_ctor_set(x_415, 2, x_414); -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_412); -return x_416; -} -} -else -{ -uint8_t x_417; -lean_dec(x_401); -lean_dec(x_386); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_417 = !lean_is_exclusive(x_403); -if (x_417 == 0) -{ -return x_403; -} -else -{ -lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_418 = lean_ctor_get(x_403, 0); -x_419 = lean_ctor_get(x_403, 1); -lean_inc(x_419); -lean_inc(x_418); -lean_dec(x_403); -x_420 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_420, 0, x_418); -lean_ctor_set(x_420, 1, x_419); -return x_420; +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_134, 0); +x_158 = lean_ctor_get(x_134, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_134); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } else { -uint8_t x_421; -lean_dec(x_386); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_421 = !lean_is_exclusive(x_400); -if (x_421 == 0) -{ -return x_400; -} -else -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_422 = lean_ctor_get(x_400, 0); -x_423 = lean_ctor_get(x_400, 1); -lean_inc(x_423); -lean_inc(x_422); -lean_dec(x_400); -x_424 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -return x_424; -} -} -} -else -{ -uint8_t x_425; -lean_dec(x_395); -lean_dec(x_386); -lean_dec(x_374); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_425 = !lean_is_exclusive(x_397); -if (x_425 == 0) -{ -return x_397; -} -else -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_397, 0); -x_427 = lean_ctor_get(x_397, 1); -lean_inc(x_427); -lean_inc(x_426); -lean_dec(x_397); -x_428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_428, 0, x_426); -lean_ctor_set(x_428, 1, x_427); -return x_428; -} -} -} -} -else -{ -uint8_t x_442; -lean_dec(x_386); -lean_dec(x_381); -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_271); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_442 = !lean_is_exclusive(x_388); -if (x_442 == 0) -{ -return x_388; -} -else -{ -lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_443 = lean_ctor_get(x_388, 0); -x_444 = lean_ctor_get(x_388, 1); -lean_inc(x_444); -lean_inc(x_443); -lean_dec(x_388); -x_445 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_445, 0, x_443); -lean_ctor_set(x_445, 1, x_444); -return x_445; -} -} -} -} -else -{ -uint8_t x_455; -lean_dec(x_378); -lean_dec(x_374); -lean_dec(x_272); -lean_dec(x_271); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_455 = !lean_is_exclusive(x_380); -if (x_455 == 0) -{ -return x_380; -} -else -{ -lean_object* x_456; lean_object* x_457; lean_object* x_458; -x_456 = lean_ctor_get(x_380, 0); -x_457 = lean_ctor_get(x_380, 1); -lean_inc(x_457); -lean_inc(x_456); -lean_dec(x_380); -x_458 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_458, 0, x_456); -lean_ctor_set(x_458, 1, x_457); -return x_458; -} -} -} -} -else -{ -uint8_t x_484; -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_271); +uint8_t x_160; +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_109); lean_dec(x_23); lean_dec(x_22); lean_dec(x_11); @@ -2629,23 +1595,23 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_484 = !lean_is_exclusive(x_373); -if (x_484 == 0) +x_160 = !lean_is_exclusive(x_131); +if (x_160 == 0) { -return x_373; +return x_131; } else { -lean_object* x_485; lean_object* x_486; lean_object* x_487; -x_485 = lean_ctor_get(x_373, 0); -x_486 = lean_ctor_get(x_373, 1); -lean_inc(x_486); -lean_inc(x_485); -lean_dec(x_373); -x_487 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_487, 0, x_485); -lean_ctor_set(x_487, 1, x_486); -return x_487; +lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_161 = lean_ctor_get(x_131, 0); +x_162 = lean_ctor_get(x_131, 1); +lean_inc(x_162); +lean_inc(x_161); +lean_dec(x_131); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +return x_163; } } } @@ -2653,9 +1619,9 @@ return x_487; } else { -uint8_t x_488; -lean_dec(x_257); -lean_dec(x_256); +uint8_t x_164; +lean_dec(x_95); +lean_dec(x_94); lean_dec(x_26); lean_dec(x_23); lean_dec(x_22); @@ -2666,30 +1632,30 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_488 = !lean_is_exclusive(x_258); -if (x_488 == 0) +x_164 = !lean_is_exclusive(x_96); +if (x_164 == 0) { -return x_258; +return x_96; } else { -lean_object* x_489; lean_object* x_490; lean_object* x_491; -x_489 = lean_ctor_get(x_258, 0); -x_490 = lean_ctor_get(x_258, 1); -lean_inc(x_490); -lean_inc(x_489); -lean_dec(x_258); -x_491 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_491, 0, x_489); -lean_ctor_set(x_491, 1, x_490); -return x_491; +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_96, 0); +x_166 = lean_ctor_get(x_96, 1); +lean_inc(x_166); +lean_inc(x_165); +lean_dec(x_96); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +return x_167; } } } } else { -uint8_t x_492; +uint8_t x_168; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -2698,29 +1664,29 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_492 = !lean_is_exclusive(x_18); -if (x_492 == 0) +x_168 = !lean_is_exclusive(x_18); +if (x_168 == 0) { return x_18; } else { -lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_493 = lean_ctor_get(x_18, 0); -x_494 = lean_ctor_get(x_18, 1); -lean_inc(x_494); -lean_inc(x_493); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_18, 0); +x_170 = lean_ctor_get(x_18, 1); +lean_inc(x_170); +lean_inc(x_169); lean_dec(x_18); -x_495 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_495, 0, x_493); -lean_ctor_set(x_495, 1, x_494); -return x_495; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } else { -uint8_t x_496; +uint8_t x_172; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -2729,23 +1695,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_496 = !lean_is_exclusive(x_13); -if (x_496 == 0) +x_172 = !lean_is_exclusive(x_13); +if (x_172 == 0) { return x_13; } else { -lean_object* x_497; lean_object* x_498; lean_object* x_499; -x_497 = lean_ctor_get(x_13, 0); -x_498 = lean_ctor_get(x_13, 1); -lean_inc(x_498); -lean_inc(x_497); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_13, 0); +x_174 = lean_ctor_get(x_13, 1); +lean_inc(x_174); +lean_inc(x_173); lean_dec(x_13); -x_499 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_499, 0, x_497); -lean_ctor_set(x_499, 1, x_498); -return x_499; +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } } @@ -2779,7 +1745,7 @@ lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_11); x_13 = lean_box(x_4); lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite___lambda__1___boxed), 12, 6); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_rewrite___lambda__4___boxed), 12, 6); lean_closure_set(x_14, 0, x_3); lean_closure_set(x_14, 1, x_11); lean_closure_set(x_14, 2, x_1); @@ -2789,7 +1755,7 @@ lean_closure_set(x_14, 5, x_5); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_15, 0, x_12); lean_closure_set(x_15, 1, x_14); -x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); return x_16; } } @@ -2802,13 +1768,46 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_rewrite___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) { +lean_object* l_Lean_Meta_rewrite___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lean_Meta_rewrite___lambda__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, x_13, x_14); +lean_dec(x_9); +lean_dec(x_7); +return x_15; +} +} +lean_object* l_Lean_Meta_rewrite___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Meta_rewrite___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_2); +return x_16; +} +} +lean_object* l_Lean_Meta_rewrite___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_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) { +_start: +{ +lean_object* x_17; +x_17 = l_Lean_Meta_rewrite___lambda__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, x_13, x_14, x_15, x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +return x_17; +} +} +lean_object* l_Lean_Meta_rewrite___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_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_4); lean_dec(x_4); -x_14 = l_Lean_Meta_rewrite___lambda__1(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Meta_rewrite___lambda__4(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_7); lean_dec(x_6); return x_14; @@ -2849,46 +1848,42 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Apply(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_rewrite___lambda__1___closed__1 = _init_l_Lean_Meta_rewrite___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__1); -l_Lean_Meta_rewrite___lambda__1___closed__2 = _init_l_Lean_Meta_rewrite___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__2); -l_Lean_Meta_rewrite___lambda__1___closed__3 = _init_l_Lean_Meta_rewrite___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__3); -l_Lean_Meta_rewrite___lambda__1___closed__4 = _init_l_Lean_Meta_rewrite___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__4); -l_Lean_Meta_rewrite___lambda__1___closed__5 = _init_l_Lean_Meta_rewrite___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__5); -l_Lean_Meta_rewrite___lambda__1___closed__6 = _init_l_Lean_Meta_rewrite___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__6); -l_Lean_Meta_rewrite___lambda__1___closed__7 = _init_l_Lean_Meta_rewrite___lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__7); -l_Lean_Meta_rewrite___lambda__1___closed__8 = _init_l_Lean_Meta_rewrite___lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__8); -l_Lean_Meta_rewrite___lambda__1___closed__9 = _init_l_Lean_Meta_rewrite___lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__9); -l_Lean_Meta_rewrite___lambda__1___closed__10 = _init_l_Lean_Meta_rewrite___lambda__1___closed__10(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__10); -l_Lean_Meta_rewrite___lambda__1___closed__11 = _init_l_Lean_Meta_rewrite___lambda__1___closed__11(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__11); -l_Lean_Meta_rewrite___lambda__1___closed__12 = _init_l_Lean_Meta_rewrite___lambda__1___closed__12(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__12); -l_Lean_Meta_rewrite___lambda__1___closed__13 = _init_l_Lean_Meta_rewrite___lambda__1___closed__13(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__13); -l_Lean_Meta_rewrite___lambda__1___closed__14 = _init_l_Lean_Meta_rewrite___lambda__1___closed__14(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__14); -l_Lean_Meta_rewrite___lambda__1___closed__15 = _init_l_Lean_Meta_rewrite___lambda__1___closed__15(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__15); -l_Lean_Meta_rewrite___lambda__1___closed__16 = _init_l_Lean_Meta_rewrite___lambda__1___closed__16(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__16); -l_Lean_Meta_rewrite___lambda__1___closed__17 = _init_l_Lean_Meta_rewrite___lambda__1___closed__17(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__17); -l_Lean_Meta_rewrite___lambda__1___closed__18 = _init_l_Lean_Meta_rewrite___lambda__1___closed__18(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__18); -l_Lean_Meta_rewrite___lambda__1___closed__19 = _init_l_Lean_Meta_rewrite___lambda__1___closed__19(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__19); -l_Lean_Meta_rewrite___lambda__1___closed__20 = _init_l_Lean_Meta_rewrite___lambda__1___closed__20(); -lean_mark_persistent(l_Lean_Meta_rewrite___lambda__1___closed__20); +l_Lean_Meta_rewrite___lambda__2___closed__1 = _init_l_Lean_Meta_rewrite___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__2___closed__1); +l_Lean_Meta_rewrite___lambda__2___closed__2 = _init_l_Lean_Meta_rewrite___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__2___closed__2); +l_Lean_Meta_rewrite___lambda__2___closed__3 = _init_l_Lean_Meta_rewrite___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__2___closed__3); +l_Lean_Meta_rewrite___lambda__2___closed__4 = _init_l_Lean_Meta_rewrite___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__2___closed__4); +l_Lean_Meta_rewrite___lambda__2___closed__5 = _init_l_Lean_Meta_rewrite___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__2___closed__5); +l_Lean_Meta_rewrite___lambda__3___closed__1 = _init_l_Lean_Meta_rewrite___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__3___closed__1); +l_Lean_Meta_rewrite___lambda__3___closed__2 = _init_l_Lean_Meta_rewrite___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__3___closed__2); +l_Lean_Meta_rewrite___lambda__3___closed__3 = _init_l_Lean_Meta_rewrite___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__3___closed__3); +l_Lean_Meta_rewrite___lambda__4___closed__1 = _init_l_Lean_Meta_rewrite___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__1); +l_Lean_Meta_rewrite___lambda__4___closed__2 = _init_l_Lean_Meta_rewrite___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__2); +l_Lean_Meta_rewrite___lambda__4___closed__3 = _init_l_Lean_Meta_rewrite___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__3); +l_Lean_Meta_rewrite___lambda__4___closed__4 = _init_l_Lean_Meta_rewrite___lambda__4___closed__4(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__4); +l_Lean_Meta_rewrite___lambda__4___closed__5 = _init_l_Lean_Meta_rewrite___lambda__4___closed__5(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__5); +l_Lean_Meta_rewrite___lambda__4___closed__6 = _init_l_Lean_Meta_rewrite___lambda__4___closed__6(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__6); +l_Lean_Meta_rewrite___lambda__4___closed__7 = _init_l_Lean_Meta_rewrite___lambda__4___closed__7(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__7); +l_Lean_Meta_rewrite___lambda__4___closed__8 = _init_l_Lean_Meta_rewrite___lambda__4___closed__8(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__8); +l_Lean_Meta_rewrite___lambda__4___closed__9 = _init_l_Lean_Meta_rewrite___lambda__4___closed__9(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__9); +l_Lean_Meta_rewrite___lambda__4___closed__10 = _init_l_Lean_Meta_rewrite___lambda__4___closed__10(); +lean_mark_persistent(l_Lean_Meta_rewrite___lambda__4___closed__10); l_Lean_Meta_rewrite___closed__1 = _init_l_Lean_Meta_rewrite___closed__1(); lean_mark_persistent(l_Lean_Meta_rewrite___closed__1); l_Lean_Meta_rewrite___closed__2 = _init_l_Lean_Meta_rewrite___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index 7eba0d4b5d..1c0abff14e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -14,232 +14,435 @@ extern "C" { #endif lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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* l_Lean_Meta_substCore___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* l_Lean_Meta_substCore___lambda__4(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_substCore___lambda__3___boxed(lean_object**); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__10(lean_object*, 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*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_subst___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__5; -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__15; -extern lean_object* l_List_repr___rarg___closed__1; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__18; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__7; +lean_object* l_Lean_Meta_subst_match__1(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__9(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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_subst___lambda__1___closed__4; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__7; +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__7___boxed(lean_object**); +lean_object* l_Lean_Meta_substCore_match__6(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__11; lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_Meta_subst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Tactic_Subst_0__Lean_Meta_regTraceClasses(lean_object*); lean_object* l_Lean_Meta_subst___lambda__1___closed__2; +lean_object* l_List_map___main___at_Lean_Meta_substCore___spec__11(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__26; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__12; +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__2___boxed(lean_object*, lean_object*); -lean_object* l_List_toString___at_Lean_Meta_substCore___spec__1(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__12___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* l_Lean_Meta_substCore___lambda__2___boxed(lean_object**); +lean_object* l_Lean_Meta_substCore___lambda__12___closed__1; lean_object* l_Lean_Meta_subst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__16; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2___boxed(lean_object*, lean_object*); -lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__12; +lean_object* l_Lean_Meta_substCore___lambda__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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore_match__4___rarg(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); extern lean_object* l_Lean_Name_inhabited; -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__3; -lean_object* l_Lean_Meta_substCore___lambda__2___closed__1; -extern lean_object* l_List_repr___rarg___closed__3; +lean_object* l_Lean_Meta_subst_match__2(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__8(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* l_Lean_Meta_substCore_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_Meta_subst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__11; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__1; +lean_object* l_Lean_Meta_substCore___lambda__12___closed__2; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__9; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___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*); +lean_object* l_Lean_Meta_subst_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___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*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_subst_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__3; lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_Meta_subst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__4___closed__1; lean_object* l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__4___closed__2; -extern lean_object* l_Array_HasRepr___rarg___closed__1; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__20; lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__10; lean_object* l_Lean_Meta_substCore(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10(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_mkEqNDRec___at_Lean_Meta_substCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__2___closed__2; -lean_object* l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(uint8_t, lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__17; +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__16; +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___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* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__8; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_Meta_subst_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__9; -lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_subst___lambda__1___closed__6; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__4; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__2; +lean_object* l_Lean_Meta_mkEqRefl___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore_match__3(lean_object*); +lean_object* l_Lean_Meta_substCore___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_name_mk_string(lean_object*, lean_object*); -extern lean_object* l_List_repr___rarg___closed__2; +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_List_reprAux___main___rarg___closed__1; -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Lean_Meta_substCore___lambda__4___boxed(lean_object**); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__8; -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__19; +lean_object* l_Lean_Meta_substCore___lambda__10___boxed(lean_object**); +lean_object* l_Lean_Meta_substCore___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* l_Lean_Meta_substCore___lambda__13___closed__21; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__23; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__13; lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__9; -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__4___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_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__4; +lean_object* l_Lean_Meta_substCore___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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* l_Lean_Meta_substCore___lambda__13___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_subst_match__3(lean_object*); +lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__1; lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__2(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_substCore___lambda__6___boxed(lean_object**); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__22; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__5; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__14; lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__2(lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__25; lean_object* l_Lean_Meta_subst___lambda__1___closed__3; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__22; -lean_object* l_Lean_Meta_substCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore_match__5(lean_object*); +lean_object* l_Lean_Meta_substCore___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*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkEqRec___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__3(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_substCore___lambda__3(lean_object*, 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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___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* l_Lean_Meta_throwUnknownFVar___rarg(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*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___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_substCore___lambda__13___closed__7; lean_object* l_Lean_Meta_subst___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; -lean_object* l_Lean_Meta_subst___lambda__1___closed__5; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__14; -lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__11___boxed(lean_object**); +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__18; +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__24; +lean_object* l_Lean_Meta_substCore_match__6___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__9___boxed(lean_object**); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__15; +lean_object* l_Lean_Meta_mkEqRec___at_Lean_Meta_substCore___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__19; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore_match__1(lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__23; +lean_object* l_Lean_Meta_substCore_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_3__mkEqImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__13; -lean_object* l_Lean_Meta_substCore___lambda__5___closed__20; -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__11___closed__1; +lean_object* l_Lean_Meta_substCore___lambda__11___closed__4; +lean_object* l_Lean_Meta_substCore___lambda__7(lean_object*, 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*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__11___closed__2; lean_object* l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__21; +lean_object* l_Lean_Meta_substCore___lambda__13(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__2; lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore_match__4(lean_object*); lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__6; -lean_object* l_Lean_Meta_substCore___lambda__1___closed__1; -lean_object* l___private_Lean_Meta_Tactic_Subst_1__regTraceClasses(lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5___closed__10; lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_Meta_subst___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7(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_substCore___lambda__1___closed__2; +lean_object* l_Lean_Meta_substCore___lambda__6(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*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__13___closed__4; lean_object* l_Std_PersistentArray_findSomeMAux___main___at_Lean_Meta_subst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_substCore___lambda__2___closed__3; -extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__3; +extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__17; +lean_object* lean_local_ctx_find(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__6; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__8; +lean_object* l_Lean_Meta_substCore_match__2(lean_object*); lean_object* l_Lean_Meta_subst___lambda__1___closed__1; +lean_object* l_Lean_Meta_substCore_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_substCore___lambda__1___closed__5; -lean_object* l_Lean_Meta_substCore___lambda__1___closed__6; +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10___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_substCore_match__5___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__5(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* l_Lean_Meta_substCore___lambda__11___closed__5; +lean_object* l_Lean_Meta_substCore___lambda__13___closed__6; +lean_object* l_Lean_Meta_substCore___lambda__12(lean_object*, 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* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_substCore___lambda__11___closed__3; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(uint8_t x_1, lean_object* x_2) { +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7(lean_object*); +lean_object* l_Lean_Meta_substCore_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -if (x_1 == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = l_String_splitAux___main___closed__1; -return x_3; -} -else -{ -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; -x_4 = lean_ctor_get(x_2, 0); +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 1); -lean_inc(x_5); -lean_dec(x_2); -x_6 = l_System_FilePath_dirName___closed__1; -x_7 = l_Lean_Name_toStringWithSep___main(x_6, x_4); -x_8 = l_List_reprAux___main___rarg___closed__1; -x_9 = lean_string_append(x_8, x_7); -lean_dec(x_7); -x_10 = l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(x_1, x_5); -x_11 = lean_string_append(x_9, x_10); -lean_dec(x_10); -return x_11; +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; } } -else +lean_object* l_Lean_Meta_substCore_match__1(lean_object* x_1) { +_start: { -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_12; -x_12 = l_String_splitAux___main___closed__1; -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_2, 1); -lean_inc(x_14); -lean_dec(x_2); -x_15 = l_System_FilePath_dirName___closed__1; -x_16 = l_Lean_Name_toStringWithSep___main(x_15, x_13); -x_17 = 0; -x_18 = l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(x_17, x_14); -x_19 = lean_string_append(x_16, x_18); -lean_dec(x_18); -return x_19; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__1___rarg), 2, 0); +return x_2; } } -} -} -lean_object* l_List_toString___at_Lean_Meta_substCore___spec__1(lean_object* x_1) { +lean_object* l_Lean_Meta_substCore_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_2; -x_2 = l_List_repr___rarg___closed__1; -return x_2; +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; } else { -uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_3 = 1; -x_4 = l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(x_3, x_1); -x_5 = l_List_repr___rarg___closed__2; -x_6 = lean_string_append(x_5, x_4); -lean_dec(x_4); -x_7 = l_List_repr___rarg___closed__3; -x_8 = lean_string_append(x_6, x_7); +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_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_3, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Meta_substCore_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_substCore_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Meta_substCore_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); return x_8; } } } +lean_object* l_Lean_Meta_substCore_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +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_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_3, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Meta_substCore_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_substCore_match__6___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___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; +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_local_ctx_find(x_7, x_1); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_6); +return x_11; +} +} +} +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___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: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_eq(x_4, 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_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; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_4, x_13); +lean_dec(x_4); +x_15 = lean_nat_sub(x_3, x_14); +x_16 = lean_nat_sub(x_15, x_13); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_add(x_16, x_17); +x_19 = l_Lean_Name_inhabited; +x_20 = lean_array_get(x_19, x_1, x_18); +lean_dec(x_18); +x_21 = lean_array_get(x_19, x_2, x_16); +lean_dec(x_16); +x_22 = l_Lean_mkFVar(x_21); +x_23 = l_Lean_Meta_FVarSubst_insert(x_5, x_20, x_22); +x_4 = x_14; +x_5 = x_23; +goto _start; +} +else +{ +lean_object* x_25; +lean_dec(x_4); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_5); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +} +} lean_object* l_Lean_Meta_mkEqNDRec___at_Lean_Meta_substCore___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) { _start: { @@ -248,46 +451,7 @@ x_9 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_1, x_2, x_3, x_4, x_5, return x_9; } } -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_nat_dec_eq(x_4, 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_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; -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_4, x_13); -lean_dec(x_4); -x_15 = lean_nat_sub(x_3, x_14); -x_16 = lean_nat_sub(x_15, x_13); -lean_dec(x_15); -x_17 = lean_unsigned_to_nat(2u); -x_18 = lean_nat_add(x_16, x_17); -x_19 = l_Lean_Name_inhabited; -x_20 = lean_array_get(x_19, x_1, x_18); -lean_dec(x_18); -x_21 = lean_array_get(x_19, x_2, x_16); -lean_dec(x_16); -x_22 = l_Lean_mkFVar(x_21); -x_23 = l_Lean_Meta_FVarSubst_insert(x_5, x_20, x_22); -x_4 = x_14; -x_5 = x_23; -goto _start; -} -else -{ -lean_object* x_25; -lean_dec(x_4); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_5); -lean_ctor_set(x_25, 1, x_10); -return x_25; -} -} -} -lean_object* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__5(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* l_Lean_Meta_mkEqSymm___at_Lean_Meta_substCore___spec__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; @@ -295,52 +459,80 @@ x_7 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_1, x_2, x_3, x_4, x_5, return x_7; } } -lean_object* l_Lean_Meta_mkEqRec___at_Lean_Meta_substCore___spec__6(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* l_Lean_Meta_mkEqRefl___at_Lean_Meta_substCore___spec__5(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_9; -x_9 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; +lean_object* x_7; +x_7 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; } } -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7(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* l_Lean_Meta_mkEq___at_Lean_Meta_substCore___spec__6(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_11; uint8_t x_12; -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_nat_dec_eq(x_4, x_11); -if (x_12 == 0) +lean_object* x_8; +x_8 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(lean_object* x_1, uint8_t 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_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; -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_4, x_13); -lean_dec(x_4); -x_15 = lean_nat_sub(x_3, x_14); -x_16 = lean_nat_sub(x_15, x_13); -lean_dec(x_15); -x_17 = lean_unsigned_to_nat(2u); -x_18 = lean_nat_add(x_16, x_17); -x_19 = l_Lean_Name_inhabited; -x_20 = lean_array_get(x_19, x_1, x_18); -lean_dec(x_18); -x_21 = lean_array_get(x_19, x_2, x_16); -lean_dec(x_16); -x_22 = l_Lean_mkFVar(x_21); -x_23 = l_Lean_Meta_FVarSubst_insert(x_5, x_20, x_22); -x_4 = x_14; -x_5 = x_23; -goto _start; +lean_object* x_10; +x_10 = l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; } else { -lean_object* x_25; -lean_dec(x_4); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_5); -lean_ctor_set(x_25, 1, x_10); -return x_25; +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg___boxed), 9, 0); +return x_2; +} } lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(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: @@ -381,170 +573,680 @@ return x_25; } } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__1() { +lean_object* l_Lean_Meta_mkEqRec___at_Lean_Meta_substCore___spec__9(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_1; -x_1 = lean_mk_string("substituting "); -return x_1; +lean_object* x_9; +x_9 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__2() { +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10(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_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__3() { -_start: +lean_object* x_11; uint8_t x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_eq(x_4, x_11); +if (x_12 == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__2; -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_substCore___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" (id: "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__5; -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_substCore___lambda__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(") with "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__1___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_substCore___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; 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; -x_5 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_5, 0, x_1); -x_6 = l_Lean_Meta_substCore___lambda__1___closed__3; -x_7 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = l_Lean_Meta_substCore___lambda__1___closed__6; -x_9 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_10, 0, x_2); -x_11 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Meta_substCore___lambda__1___closed__9; -x_13 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_3); -x_15 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("reverted variables "); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__2___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_substCore___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_substCore___lambda__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -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; -x_3 = l_Array_toList___rarg(x_1); -x_4 = l_List_toString___at_Lean_Meta_substCore___spec__1(x_3); -x_5 = l_Array_HasRepr___rarg___closed__1; -x_6 = lean_string_append(x_5, x_4); +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; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_4, x_13); lean_dec(x_4); -x_7 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_7, 0, x_6); -x_8 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = l_Lean_Meta_substCore___lambda__2___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); +x_15 = lean_nat_sub(x_3, x_14); +x_16 = lean_nat_sub(x_15, x_13); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_add(x_16, x_17); +x_19 = l_Lean_Name_inhabited; +x_20 = lean_array_get(x_19, x_1, x_18); +lean_dec(x_18); +x_21 = lean_array_get(x_19, x_2, x_16); +lean_dec(x_16); +x_22 = l_Lean_mkFVar(x_21); +x_23 = l_Lean_Meta_FVarSubst_insert(x_5, x_20, x_22); +x_4 = x_14; +x_5 = x_23; +goto _start; +} +else +{ +lean_object* x_25; +lean_dec(x_4); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_5); +lean_ctor_set(x_25, 1, x_10); +return x_25; +} +} +} +lean_object* l_List_map___main___at_Lean_Meta_substCore___spec__11(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_6, 0, x_4); +x_7 = l_List_map___main___at_Lean_Meta_substCore___spec__11(x_5); +lean_ctor_set(x_1, 1, x_7); +lean_ctor_set(x_1, 0, x_6); +return x_1; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_1); +x_10 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_10, 0, x_8); +x_11 = l_List_map___main___at_Lean_Meta_substCore___spec__11(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +} +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(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; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_8 = lean_ctor_get(x_5, 3); +x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_st_ref_take(x_6, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_13, 3); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_10); +lean_inc(x_8); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_20); +x_22 = l_Std_PersistentArray_push___rarg(x_19, x_21); +lean_ctor_set(x_14, 0, x_22); +x_23 = lean_st_ref_set(x_6, x_13, x_15); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +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_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 +{ +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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_30 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +x_31 = lean_ctor_get(x_14, 0); +lean_inc(x_31); +lean_dec(x_14); +x_32 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_32, 0, x_1); +lean_ctor_set(x_32, 1, x_10); +lean_inc(x_8); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_8); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Std_PersistentArray_push___rarg(x_31, x_33); +x_35 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_30); +lean_ctor_set(x_13, 3, x_35); +x_36 = lean_st_ref_set(x_6, x_13, x_15); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +x_39 = lean_box(0); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t 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; +x_41 = lean_ctor_get(x_13, 0); +x_42 = lean_ctor_get(x_13, 1); +x_43 = lean_ctor_get(x_13, 2); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_13); +x_44 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +x_45 = lean_ctor_get(x_14, 0); +lean_inc(x_45); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_46 = x_14; +} else { + lean_dec_ref(x_14); + x_46 = lean_box(0); +} +x_47 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_10); +lean_inc(x_8); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_8); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Std_PersistentArray_push___rarg(x_45, x_48); +if (lean_is_scalar(x_46)) { + x_50 = lean_alloc_ctor(0, 1, 1); +} else { + x_50 = x_46; +} +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set_uint8(x_50, sizeof(void*)*1, x_44); +x_51 = lean_alloc_ctor(0, 4, 0); +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); +x_52 = lean_st_ref_set(x_6, x_51, x_15); +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_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(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; uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_4, 0); +x_8 = l_Lean_checkTraceOption(x_7, x_1); +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); +lean_ctor_set(x_10, 1, x_6); return x_10; } } -lean_object* l_Lean_Meta_substCore___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, lean_object* x_10) { +lean_object* l_Lean_Meta_substCore___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_16 = lean_array_get_size(x_1); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_sub(x_16, x_17); +lean_dec(x_16); +x_19 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_20 = l_Lean_Meta_introNCore(x_10, x_18, x_2, x_19, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +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); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_array_get_size(x_24); +lean_inc(x_25); +x_26 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__2(x_1, x_24, x_25, x_25, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_25); +lean_dec(x_24); +if (x_4 == 0) +{ +uint8_t x_27; +lean_dec(x_9); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = l_Lean_Meta_FVarSubst_insert(x_28, x_5, x_6); +x_30 = l_Lean_Meta_FVarSubst_insert(x_29, x_7, x_8); +lean_ctor_set(x_21, 0, x_30); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_26, 0); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_26); +x_33 = l_Lean_Meta_FVarSubst_insert(x_31, x_5, x_6); +x_34 = l_Lean_Meta_FVarSubst_insert(x_33, x_7, x_8); +lean_ctor_set(x_21, 0, x_34); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_21); +lean_ctor_set(x_35, 1, x_32); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_6); +x_36 = !lean_is_exclusive(x_26); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = l_Lean_Meta_FVarSubst_insert(x_37, x_5, x_9); +x_39 = l_Lean_Meta_FVarSubst_insert(x_38, x_7, x_8); +lean_ctor_set(x_21, 0, x_39); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_26, 0); +x_41 = lean_ctor_get(x_26, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_26); +x_42 = l_Lean_Meta_FVarSubst_insert(x_40, x_5, x_9); +x_43 = l_Lean_Meta_FVarSubst_insert(x_42, x_7, x_8); +lean_ctor_set(x_21, 0, x_43); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_21); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_21, 0); +x_46 = lean_ctor_get(x_21, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_21); +x_47 = lean_array_get_size(x_45); +lean_inc(x_47); +x_48 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__2(x_1, x_45, x_47, x_47, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_47); +lean_dec(x_45); +if (x_4 == 0) +{ +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_dec(x_9); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = l_Lean_Meta_FVarSubst_insert(x_49, x_5, x_6); +x_53 = l_Lean_Meta_FVarSubst_insert(x_52, x_7, x_8); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_46); +if (lean_is_scalar(x_51)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_51; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +return x_55; +} +else +{ +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_dec(x_6); +x_56 = lean_ctor_get(x_48, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_48, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_58 = x_48; +} else { + lean_dec_ref(x_48); + x_58 = lean_box(0); +} +x_59 = l_Lean_Meta_FVarSubst_insert(x_56, x_5, x_9); +x_60 = l_Lean_Meta_FVarSubst_insert(x_59, x_7, x_8); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_46); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_58; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_57); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_20); +if (x_63 == 0) +{ +return x_20; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_20, 0); +x_65 = lean_ctor_get(x_20, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_20); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { +_start: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_14, x_15, x_16, x_17, x_18, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Expr_mvarId_x21(x_2); +if (x_6 == 0) +{ +lean_object* x_23; +lean_dec(x_13); +lean_dec(x_12); +x_23 = l_Lean_Meta_substCore___lambda__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22, x_15, x_16, x_17, x_18, x_21); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Meta_clear(x_22, x_12, x_15, x_16, x_17, x_18, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_27 = l_Lean_Meta_clear(x_25, x_13, x_15, x_16, x_17, x_18, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Meta_substCore___lambda__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28, x_15, x_16, x_17, x_18, x_29); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_24; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +lean_object* l_Lean_Meta_substCore___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, uint8_t 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) { +_start: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_inc(x_17); +x_22 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_1, x_2, x_17, x_18, x_19, x_20, 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); +lean_dec(x_22); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_23); +x_25 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_15, x_23, x_16, x_17, x_18, x_19, x_20, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Meta_substCore___lambda__2(x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26, x_17, x_18, x_19, x_20, x_27); +lean_dec(x_23); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_23); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +lean_object* l_Lean_Meta_substCore___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -566,7 +1268,7 @@ x_14 = l_Lean_Expr_replaceFVar(x_1, x_2, x_12); lean_dec(x_12); x_15 = lean_array_push(x_3, x_4); x_16 = lean_array_push(x_15, x_5); -x_17 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_16, x_14, x_6, x_7, x_8, x_9, x_13); +x_17 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_16, x_14, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -604,7 +1306,811 @@ return x_21; } } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__4___closed__1() { +lean_object* l_Lean_Meta_substCore___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_16 = lean_array_get_size(x_1); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_sub(x_16, x_17); +lean_dec(x_16); +x_19 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_20 = l_Lean_Meta_introNCore(x_10, x_18, x_2, x_19, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +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); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_array_get_size(x_24); +lean_inc(x_25); +x_26 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(x_1, x_24, x_25, x_25, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_25); +lean_dec(x_24); +if (x_4 == 0) +{ +uint8_t x_27; +lean_dec(x_9); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = l_Lean_Meta_FVarSubst_insert(x_28, x_5, x_6); +x_30 = l_Lean_Meta_FVarSubst_insert(x_29, x_7, x_8); +lean_ctor_set(x_21, 0, x_30); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_26, 0); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_26); +x_33 = l_Lean_Meta_FVarSubst_insert(x_31, x_5, x_6); +x_34 = l_Lean_Meta_FVarSubst_insert(x_33, x_7, x_8); +lean_ctor_set(x_21, 0, x_34); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_21); +lean_ctor_set(x_35, 1, x_32); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_6); +x_36 = !lean_is_exclusive(x_26); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = l_Lean_Meta_FVarSubst_insert(x_37, x_5, x_9); +x_39 = l_Lean_Meta_FVarSubst_insert(x_38, x_7, x_8); +lean_ctor_set(x_21, 0, x_39); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_26, 0); +x_41 = lean_ctor_get(x_26, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_26); +x_42 = l_Lean_Meta_FVarSubst_insert(x_40, x_5, x_9); +x_43 = l_Lean_Meta_FVarSubst_insert(x_42, x_7, x_8); +lean_ctor_set(x_21, 0, x_43); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_21); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_21, 0); +x_46 = lean_ctor_get(x_21, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_21); +x_47 = lean_array_get_size(x_45); +lean_inc(x_47); +x_48 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(x_1, x_45, x_47, x_47, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_47); +lean_dec(x_45); +if (x_4 == 0) +{ +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_dec(x_9); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = l_Lean_Meta_FVarSubst_insert(x_49, x_5, x_6); +x_53 = l_Lean_Meta_FVarSubst_insert(x_52, x_7, x_8); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_46); +if (lean_is_scalar(x_51)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_51; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +return x_55; +} +else +{ +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_dec(x_6); +x_56 = lean_ctor_get(x_48, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_48, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_58 = x_48; +} else { + lean_dec_ref(x_48); + x_58 = lean_box(0); +} +x_59 = l_Lean_Meta_FVarSubst_insert(x_56, x_5, x_9); +x_60 = l_Lean_Meta_FVarSubst_insert(x_59, x_7, x_8); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_46); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_58; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_57); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_20); +if (x_63 == 0) +{ +return x_20; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_20, 0); +x_65 = lean_ctor_get(x_20, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_20); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { +_start: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_14, x_15, x_16, x_17, x_18, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Expr_mvarId_x21(x_2); +if (x_6 == 0) +{ +lean_object* x_23; +lean_dec(x_13); +lean_dec(x_12); +x_23 = l_Lean_Meta_substCore___lambda__5(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22, x_15, x_16, x_17, x_18, x_21); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Meta_clear(x_22, x_12, x_15, x_16, x_17, x_18, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_27 = l_Lean_Meta_clear(x_25, x_13, x_15, x_16, x_17, x_18, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Meta_substCore___lambda__5(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28, x_15, x_16, x_17, x_18, x_29); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_24; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t 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) { +_start: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_inc(x_17); +x_22 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_1, x_2, x_17, x_18, x_19, x_20, 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); +lean_dec(x_22); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_23); +x_25 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_15, x_23, x_16, x_17, x_18, x_19, x_20, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Meta_substCore___lambda__6(x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26, x_17, x_18, x_19, x_20, x_27); +lean_dec(x_23); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_23); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_16 = lean_array_get_size(x_1); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_sub(x_16, x_17); +lean_dec(x_16); +x_19 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_20 = l_Lean_Meta_introNCore(x_10, x_18, x_2, x_19, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +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); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_array_get_size(x_24); +lean_inc(x_25); +x_26 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10(x_1, x_24, x_25, x_25, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_25); +lean_dec(x_24); +if (x_4 == 0) +{ +uint8_t x_27; +lean_dec(x_9); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = l_Lean_Meta_FVarSubst_insert(x_28, x_5, x_6); +x_30 = l_Lean_Meta_FVarSubst_insert(x_29, x_7, x_8); +lean_ctor_set(x_21, 0, x_30); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_26, 0); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_26); +x_33 = l_Lean_Meta_FVarSubst_insert(x_31, x_5, x_6); +x_34 = l_Lean_Meta_FVarSubst_insert(x_33, x_7, x_8); +lean_ctor_set(x_21, 0, x_34); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_21); +lean_ctor_set(x_35, 1, x_32); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_6); +x_36 = !lean_is_exclusive(x_26); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = l_Lean_Meta_FVarSubst_insert(x_37, x_5, x_9); +x_39 = l_Lean_Meta_FVarSubst_insert(x_38, x_7, x_8); +lean_ctor_set(x_21, 0, x_39); +lean_ctor_set(x_26, 0, x_21); +return x_26; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_26, 0); +x_41 = lean_ctor_get(x_26, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_26); +x_42 = l_Lean_Meta_FVarSubst_insert(x_40, x_5, x_9); +x_43 = l_Lean_Meta_FVarSubst_insert(x_42, x_7, x_8); +lean_ctor_set(x_21, 0, x_43); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_21); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_21, 0); +x_46 = lean_ctor_get(x_21, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_21); +x_47 = lean_array_get_size(x_45); +lean_inc(x_47); +x_48 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10(x_1, x_45, x_47, x_47, x_3, x_11, x_12, x_13, x_14, x_22); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_47); +lean_dec(x_45); +if (x_4 == 0) +{ +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_dec(x_9); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +x_52 = l_Lean_Meta_FVarSubst_insert(x_49, x_5, x_6); +x_53 = l_Lean_Meta_FVarSubst_insert(x_52, x_7, x_8); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_46); +if (lean_is_scalar(x_51)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_51; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +return x_55; +} +else +{ +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_dec(x_6); +x_56 = lean_ctor_get(x_48, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_48, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_58 = x_48; +} else { + lean_dec_ref(x_48); + x_58 = lean_box(0); +} +x_59 = l_Lean_Meta_FVarSubst_insert(x_56, x_5, x_9); +x_60 = l_Lean_Meta_FVarSubst_insert(x_59, x_7, x_8); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_46); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_58; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_57); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_20); +if (x_63 == 0) +{ +return x_20; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_20, 0); +x_65 = lean_ctor_get(x_20, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_20); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t 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) { +_start: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_14, x_15, x_16, x_17, x_18, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Expr_mvarId_x21(x_2); +if (x_6 == 0) +{ +lean_object* x_23; +lean_dec(x_13); +lean_dec(x_12); +x_23 = l_Lean_Meta_substCore___lambda__8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22, x_15, x_16, x_17, x_18, x_21); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Meta_clear(x_22, x_12, x_15, x_16, x_17, x_18, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +x_27 = l_Lean_Meta_clear(x_25, x_13, x_15, x_16, x_17, x_18, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Meta_substCore___lambda__8(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28, x_15, x_16, x_17, x_18, x_29); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) +{ +return x_24; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +lean_object* l_Lean_Meta_substCore___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t 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) { +_start: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_inc(x_17); +x_22 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_1, x_2, x_17, x_18, x_19, x_20, 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); +lean_dec(x_22); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_23); +x_25 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_15, x_23, x_16, x_17, x_18, x_19, x_20, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Meta_substCore___lambda__9(x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26, x_17, x_18, x_19, x_20, x_27); +lean_dec(x_23); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_23); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__11___closed__1() { _start: { lean_object* x_1; @@ -612,17 +2118,46 @@ x_1 = lean_mk_string("_h"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__11___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_substCore___lambda__4___closed__1; +x_2 = l_Lean_Meta_substCore___lambda__11___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_substCore___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, uint8_t x_12, uint8_t 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) { +static lean_object* _init_l_Lean_Meta_substCore___lambda__11___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.Tactic.Subst"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__11___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.substCore"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__11___closed__5() { +_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_Meta_substCore___lambda__11___closed__3; +x_2 = l_Lean_Meta_substCore___lambda__11___closed__4; +x_3 = lean_unsigned_to_nat(49u); +x_4 = lean_unsigned_to_nat(18u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_Meta_substCore___lambda__11(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, uint8_t 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) { _start: { lean_object* x_21; lean_object* x_22; @@ -631,7 +2166,7 @@ lean_inc(x_21); lean_dec(x_15); lean_inc(x_16); lean_inc(x_1); -x_22 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_1, x_16, x_17, x_18, x_19, x_20); +x_22 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_1, x_16, x_17, x_18, x_19, x_20); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; @@ -657,53 +2192,54 @@ lean_inc(x_28); lean_dec(x_26); if (lean_obj_tag(x_27) == 0) { -lean_object* x_354; lean_object* x_355; lean_object* x_356; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_21); lean_dec(x_14); +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_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_354 = l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; -x_355 = l_unreachable_x21___rarg(x_354); -x_356 = lean_apply_5(x_355, x_16, x_17, x_18, x_19, x_28); -return x_356; +x_100 = l___private_Lean_Meta_Basic_9__isClassQuick_x3f___main___closed__1; +x_101 = l_Lean_Meta_substCore___lambda__11___closed__5; +x_102 = lean_panic_fn(x_100, x_101); +x_103 = lean_apply_5(x_102, x_16, x_17, x_18, x_19, x_28); +return x_103; } else { -lean_object* x_357; lean_object* x_358; -x_357 = lean_ctor_get(x_27, 0); -lean_inc(x_357); +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_27, 0); +lean_inc(x_104); lean_dec(x_27); -x_358 = lean_ctor_get(x_357, 1); -lean_inc(x_358); -lean_dec(x_357); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +lean_dec(x_104); if (x_13 == 0) { -lean_object* x_359; -x_359 = lean_ctor_get(x_358, 1); -lean_inc(x_359); -lean_dec(x_358); -x_29 = x_359; -goto block_353; +lean_object* x_106; +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +x_29 = x_106; +goto block_99; } else { -lean_object* x_360; -x_360 = lean_ctor_get(x_358, 0); -lean_inc(x_360); -lean_dec(x_358); -x_29 = x_360; -goto block_353; +lean_object* x_107; +x_107 = lean_ctor_get(x_105, 0); +lean_inc(x_107); +lean_dec(x_105); +x_29 = x_107; +goto block_99; } } -block_353: +block_99: { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; x_30 = lean_st_ref_get(x_17, x_28); @@ -728,10 +2264,10 @@ lean_inc(x_2); x_37 = lean_array_push(x_36, x_2); lean_inc(x_16); lean_inc(x_21); -x_38 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_37, x_21, x_16, x_17, x_18, x_19, x_32); +x_38 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_37, x_21, x_16, x_17, x_18, x_19, x_32); if (lean_obj_tag(x_38) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_object* x_39; lean_object* x_40; lean_object* x_41; x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -742,28 +2278,27 @@ x_41 = l_Lean_Expr_replaceFVar(x_21, x_2, x_29); lean_dec(x_21); if (x_13 == 0) { -lean_object* x_130; +lean_object* x_42; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_10); -x_130 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_10, x_16, x_17, x_18, x_19, x_40); -if (lean_obj_tag(x_130) == 0) +lean_inc(x_11); +x_42 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_11, x_16, x_17, x_18, x_19, x_40); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -x_42 = x_131; -x_43 = x_132; -goto block_129; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_Meta_substCore___lambda__3(x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_2, x_10, x_11, x_29, x_1, x_12, x_39, x_43, x_16, x_17, x_18, x_19, x_44); +return x_45; } else { -uint8_t x_133; +uint8_t x_46; lean_dec(x_41); lean_dec(x_39); lean_dec(x_29); @@ -771,409 +2306,382 @@ lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); +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_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_130); -if (x_133 == 0) +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) { -return x_130; +return x_42; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_130, 0); -x_135 = lean_ctor_get(x_130, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_130); -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 -{ -lean_inc(x_10); -x_42 = x_10; -x_43 = x_40; -goto block_129; -} -block_129: -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_inc(x_16); -x_44 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_41, x_3, x_16, x_17, x_18, x_19, x_43); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_45); -x_47 = l___private_Lean_Meta_AppBuilder_22__mkEqNDRecImp(x_39, x_45, x_42, x_16, x_17, x_18, x_19, x_46); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 0); +x_48 = lean_ctor_get(x_42, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_4, x_48, x_16, x_17, x_18, x_19, x_49); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_52 = l_Lean_Expr_mvarId_x21(x_45); -lean_dec(x_45); -if (x_12 == 0) -{ -uint8_t x_123; -x_123 = 0; -x_53 = x_123; -goto block_122; +lean_inc(x_47); +lean_dec(x_42); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} } else { -uint8_t x_124; -x_124 = 1; -x_53 = x_124; -goto block_122; +lean_object* x_50; +lean_inc(x_11); +x_50 = l_Lean_Meta_substCore___lambda__3(x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_2, x_10, x_11, x_29, x_1, x_12, x_39, x_11, x_16, x_17, x_18, x_19, x_40); +return x_50; } -block_122: -{ -lean_object* x_54; lean_object* x_55; -if (x_53 == 0) +} +else { +uint8_t x_51; +lean_dec(x_29); +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_54 = x_52; -x_55 = x_51; -goto block_107; +x_51 = !lean_is_exclusive(x_38); +if (x_51 == 0) +{ +return x_38; } else { -lean_object* x_108; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_38, 0); +x_53 = lean_ctor_get(x_38, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_38); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +else +{ +lean_object* x_55; lean_object* x_56; +lean_inc(x_2); +x_55 = l_Lean_Expr_replaceFVar(x_21, x_2, x_29); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_108 = l_Lean_Meta_clear(x_52, x_1, x_16, x_17, x_18, x_19, x_51); -if (lean_obj_tag(x_108) == 0) +lean_inc(x_29); +x_56 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_29, x_16, x_17, x_18, x_19, x_32); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_111 = l_Lean_Meta_clear(x_109, x_11, x_16, x_17, x_18, x_19, x_110); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; lean_object* x_113; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_54 = x_112; -x_55 = x_113; -goto block_107; -} -else -{ -uint8_t x_114; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_114 = !lean_is_exclusive(x_111); -if (x_114 == 0) -{ -return x_111; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_111, 0); -x_116 = lean_ctor_get(x_111, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_111); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -} -else -{ -uint8_t x_118; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_2); -x_118 = !lean_is_exclusive(x_108); -if (x_118 == 0) -{ -return x_108; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_108, 0); -x_120 = lean_ctor_get(x_108, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_108); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; -} -} -} -block_107: -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; -x_56 = lean_array_get_size(x_5); -x_57 = lean_unsigned_to_nat(2u); -x_58 = lean_nat_sub(x_56, x_57); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); lean_dec(x_56); -x_59 = 1; +lean_inc(x_11); +x_59 = l_Lean_Expr_replaceFVar(x_55, x_11, x_57); +lean_dec(x_57); +lean_dec(x_55); +if (x_13 == 0) +{ +lean_object* x_60; lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_60 = l_Lean_Meta_introNCore(x_54, x_58, x_6, x_59, x_16, x_17, x_18, x_19, x_55); +lean_inc(x_2); +lean_inc(x_29); +x_60 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_29, x_2, x_16, x_17, x_18, x_19, x_58); if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; uint8_t x_63; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_63 = !lean_is_exclusive(x_61); -if (x_63 == 0) +lean_inc(x_2); +lean_inc(x_11); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__4___boxed), 10, 4); +lean_closure_set(x_63, 0, x_21); +lean_closure_set(x_63, 1, x_11); +lean_closure_set(x_63, 2, x_14); +lean_closure_set(x_63, 3, x_2); +x_64 = l_Lean_Meta_substCore___lambda__11___closed__2; +x_65 = 0; +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +x_66 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_64, x_65, x_61, x_63, x_16, x_17, x_18, x_19, x_62); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_61, 0); -x_65 = lean_array_get_size(x_64); -lean_inc(x_65); -x_66 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__4(x_5, x_64, x_65, x_65, x_7, x_16, x_17, x_18, x_19, x_62); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_11); +x_69 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_11, x_16, x_17, x_18, x_19, x_68); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = l_Lean_Meta_substCore___lambda__7(x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_2, x_10, x_11, x_29, x_1, x_12, x_67, x_70, x_16, x_17, x_18, x_19, x_71); +return x_72; +} +else +{ +uint8_t x_73; +lean_dec(x_67); +lean_dec(x_59); +lean_dec(x_29); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_65); -lean_dec(x_64); -if (x_53 == 0) -{ -uint8_t x_67; -lean_dec(x_29); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 0); -x_69 = l_Lean_Meta_FVarSubst_insert(x_68, x_8, x_2); -x_70 = l_Lean_Meta_FVarSubst_insert(x_69, x_9, x_10); -lean_ctor_set(x_61, 0, x_70); -lean_ctor_set(x_66, 0, x_61); -return x_66; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_71 = lean_ctor_get(x_66, 0); -x_72 = lean_ctor_get(x_66, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_66); -x_73 = l_Lean_Meta_FVarSubst_insert(x_71, x_8, x_2); -x_74 = l_Lean_Meta_FVarSubst_insert(x_73, x_9, x_10); -lean_ctor_set(x_61, 0, x_74); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_61); -lean_ctor_set(x_75, 1, x_72); -return x_75; -} -} -else -{ -uint8_t x_76; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_66); -if (x_76 == 0) +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_69); +if (x_73 == 0) +{ +return x_69; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_69, 0); +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_69); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_59); +lean_dec(x_29); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_66); +if (x_77 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_66, 0); -x_78 = l_Lean_Meta_FVarSubst_insert(x_77, x_8, x_29); -x_79 = l_Lean_Meta_FVarSubst_insert(x_78, x_9, x_10); -lean_ctor_set(x_61, 0, x_79); -lean_ctor_set(x_66, 0, x_61); return x_66; } 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_66, 0); -x_81 = lean_ctor_get(x_66, 1); -lean_inc(x_81); -lean_inc(x_80); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_66, 0); +x_79 = lean_ctor_get(x_66, 1); +lean_inc(x_79); +lean_inc(x_78); lean_dec(x_66); -x_82 = l_Lean_Meta_FVarSubst_insert(x_80, x_8, x_29); -x_83 = l_Lean_Meta_FVarSubst_insert(x_82, x_9, x_10); -lean_ctor_set(x_61, 0, x_83); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_61); -lean_ctor_set(x_84, 1, x_81); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_59); +lean_dec(x_29); +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_81 = !lean_is_exclusive(x_60); +if (x_81 == 0) +{ +return x_60; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_60, 0); +x_83 = lean_ctor_get(x_60, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_60); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); return x_84; } } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_61, 0); -x_86 = lean_ctor_get(x_61, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_61); -x_87 = lean_array_get_size(x_85); -lean_inc(x_87); -x_88 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__4(x_5, x_85, x_87, x_87, x_7, x_16, x_17, x_18, x_19, x_62); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_87); -lean_dec(x_85); -if (x_53 == 0) +lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_inc(x_2); +x_85 = lean_array_push(x_14, x_2); +lean_inc(x_11); +x_86 = lean_array_push(x_85, x_11); +lean_inc(x_16); +x_87 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_introNCore___spec__2(x_86, x_21, x_16, x_17, x_18, x_19, x_58); +if (lean_obj_tag(x_87) == 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_dec(x_29); -x_89 = lean_ctor_get(x_88, 0); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); lean_inc(x_89); -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 = l_Lean_Meta_FVarSubst_insert(x_89, x_8, x_2); -x_93 = l_Lean_Meta_FVarSubst_insert(x_92, x_9, x_10); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_86); -if (lean_is_scalar(x_91)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_91; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_90); -return x_95; +lean_dec(x_87); +lean_inc(x_11); +x_90 = l_Lean_Meta_substCore___lambda__10(x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_2, x_10, x_11, x_29, x_1, x_12, x_88, x_11, x_16, x_17, x_18, x_19, x_89); +return x_90; } else { -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_91; +lean_dec(x_59); +lean_dec(x_29); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_96 = lean_ctor_get(x_88, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_88, 1); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_87); +if (x_91 == 0) +{ +return x_87; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_87, 0); +x_93 = lean_ctor_get(x_87, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_87); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +} +else +{ +uint8_t x_95; +lean_dec(x_55); +lean_dec(x_29); +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_95 = !lean_is_exclusive(x_56); +if (x_95 == 0) +{ +return x_56; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_56, 0); +x_97 = lean_ctor_get(x_56, 1); lean_inc(x_97); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_98 = x_88; -} else { - lean_dec_ref(x_88); - x_98 = lean_box(0); -} -x_99 = l_Lean_Meta_FVarSubst_insert(x_96, x_8, x_29); -x_100 = l_Lean_Meta_FVarSubst_insert(x_99, x_9, x_10); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_86); -if (lean_is_scalar(x_98)) { - x_102 = lean_alloc_ctor(0, 2, 0); -} else { - x_102 = x_98; -} -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_97); -return x_102; -} -} -} -else -{ -uint8_t x_103; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_103 = !lean_is_exclusive(x_60); -if (x_103 == 0) -{ -return x_60; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_60, 0); -x_105 = lean_ctor_get(x_60, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_60); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; +lean_inc(x_96); +lean_dec(x_56); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } @@ -1181,1272 +2689,367 @@ return x_106; } else { -uint8_t x_125; -lean_dec(x_45); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_2); -lean_dec(x_1); -x_125 = !lean_is_exclusive(x_47); -if (x_125 == 0) -{ -return x_47; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_47, 0); -x_127 = lean_ctor_get(x_47, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_47); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -} -else -{ -uint8_t x_137; -lean_dec(x_29); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_137 = !lean_is_exclusive(x_38); -if (x_137 == 0) -{ -return x_38; -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_38, 0); -x_139 = lean_ctor_get(x_38, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_38); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; -} -} -} -else -{ -lean_object* x_141; lean_object* x_142; -lean_inc(x_2); -x_141 = l_Lean_Expr_replaceFVar(x_21, x_2, x_29); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_29); -x_142 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp(x_29, x_16, x_17, x_18, x_19, x_32); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -lean_inc(x_10); -x_145 = l_Lean_Expr_replaceFVar(x_141, x_10, x_143); -lean_dec(x_143); -lean_dec(x_141); -if (x_13 == 0) -{ -lean_object* x_146; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_2); -lean_inc(x_29); -x_146 = l___private_Lean_Meta_AppBuilder_3__mkEqImp(x_29, x_2, x_16, x_17, x_18, x_19, x_144); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; lean_object* x_152; -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec(x_146); -lean_inc(x_2); -lean_inc(x_10); -x_149 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__3___boxed), 10, 4); -lean_closure_set(x_149, 0, x_21); -lean_closure_set(x_149, 1, x_10); -lean_closure_set(x_149, 2, x_14); -lean_closure_set(x_149, 3, x_2); -x_150 = l_Lean_Meta_substCore___lambda__4___closed__2; -x_151 = 0; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_152 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(x_150, x_151, x_147, x_149, x_16, x_17, x_18, x_19, x_148); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_10); -x_155 = l___private_Lean_Meta_AppBuilder_10__mkEqSymmImp(x_10, x_16, x_17, x_18, x_19, x_154); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -lean_inc(x_16); -x_158 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_145, x_3, x_16, x_17, x_18, x_19, x_157); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_159); -x_161 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_153, x_159, x_156, x_16, x_17, x_18, x_19, x_160); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_4, x_162, x_16, x_17, x_18, x_19, x_163); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -lean_dec(x_164); -x_166 = l_Lean_Expr_mvarId_x21(x_159); -lean_dec(x_159); -if (x_12 == 0) -{ -uint8_t x_237; -x_237 = 0; -x_167 = x_237; -goto block_236; -} -else -{ -uint8_t x_238; -x_238 = 1; -x_167 = x_238; -goto block_236; -} -block_236: -{ -lean_object* x_168; lean_object* x_169; -if (x_167 == 0) -{ -lean_dec(x_11); -lean_dec(x_1); -x_168 = x_166; -x_169 = x_165; -goto block_221; -} -else -{ -lean_object* x_222; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_222 = l_Lean_Meta_clear(x_166, x_1, x_16, x_17, x_18, x_19, x_165); -if (lean_obj_tag(x_222) == 0) -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_225 = l_Lean_Meta_clear(x_223, x_11, x_16, x_17, x_18, x_19, x_224); -if (lean_obj_tag(x_225) == 0) -{ -lean_object* x_226; lean_object* x_227; -x_226 = lean_ctor_get(x_225, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -lean_dec(x_225); -x_168 = x_226; -x_169 = x_227; -goto block_221; -} -else -{ -uint8_t x_228; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_228 = !lean_is_exclusive(x_225); -if (x_228 == 0) -{ -return x_225; -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_225, 0); -x_230 = lean_ctor_get(x_225, 1); -lean_inc(x_230); -lean_inc(x_229); -lean_dec(x_225); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -return x_231; -} -} -} -else -{ -uint8_t x_232; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_2); -x_232 = !lean_is_exclusive(x_222); -if (x_232 == 0) -{ -return x_222; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_222, 0); -x_234 = lean_ctor_get(x_222, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_222); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -return x_235; -} -} -} -block_221: -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; -x_170 = lean_array_get_size(x_5); -x_171 = lean_unsigned_to_nat(2u); -x_172 = lean_nat_sub(x_170, x_171); -lean_dec(x_170); -x_173 = 1; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_174 = l_Lean_Meta_introNCore(x_168, x_172, x_6, x_173, x_16, x_17, x_18, x_19, x_169); -if (lean_obj_tag(x_174) == 0) -{ -lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -lean_dec(x_174); -x_177 = !lean_is_exclusive(x_175); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_175, 0); -x_179 = lean_array_get_size(x_178); -lean_inc(x_179); -x_180 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7(x_5, x_178, x_179, x_179, x_7, x_16, x_17, x_18, x_19, x_176); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_179); -lean_dec(x_178); -if (x_167 == 0) -{ -uint8_t x_181; -lean_dec(x_29); -x_181 = !lean_is_exclusive(x_180); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_180, 0); -x_183 = l_Lean_Meta_FVarSubst_insert(x_182, x_8, x_2); -x_184 = l_Lean_Meta_FVarSubst_insert(x_183, x_9, x_10); -lean_ctor_set(x_175, 0, x_184); -lean_ctor_set(x_180, 0, x_175); -return x_180; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_185 = lean_ctor_get(x_180, 0); -x_186 = lean_ctor_get(x_180, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_180); -x_187 = l_Lean_Meta_FVarSubst_insert(x_185, x_8, x_2); -x_188 = l_Lean_Meta_FVarSubst_insert(x_187, x_9, x_10); -lean_ctor_set(x_175, 0, x_188); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_175); -lean_ctor_set(x_189, 1, x_186); -return x_189; -} -} -else -{ -uint8_t x_190; -lean_dec(x_2); -x_190 = !lean_is_exclusive(x_180); -if (x_190 == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_180, 0); -x_192 = l_Lean_Meta_FVarSubst_insert(x_191, x_8, x_29); -x_193 = l_Lean_Meta_FVarSubst_insert(x_192, x_9, x_10); -lean_ctor_set(x_175, 0, x_193); -lean_ctor_set(x_180, 0, x_175); -return x_180; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_194 = lean_ctor_get(x_180, 0); -x_195 = lean_ctor_get(x_180, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_180); -x_196 = l_Lean_Meta_FVarSubst_insert(x_194, x_8, x_29); -x_197 = l_Lean_Meta_FVarSubst_insert(x_196, x_9, x_10); -lean_ctor_set(x_175, 0, x_197); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_175); -lean_ctor_set(x_198, 1, x_195); -return x_198; -} -} -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_199 = lean_ctor_get(x_175, 0); -x_200 = lean_ctor_get(x_175, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_175); -x_201 = lean_array_get_size(x_199); -lean_inc(x_201); -x_202 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7(x_5, x_199, x_201, x_201, x_7, x_16, x_17, x_18, x_19, x_176); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_201); -lean_dec(x_199); -if (x_167 == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_29); -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_202, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_205 = x_202; -} else { - lean_dec_ref(x_202); - x_205 = lean_box(0); -} -x_206 = l_Lean_Meta_FVarSubst_insert(x_203, x_8, x_2); -x_207 = l_Lean_Meta_FVarSubst_insert(x_206, x_9, x_10); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_200); -if (lean_is_scalar(x_205)) { - x_209 = lean_alloc_ctor(0, 2, 0); -} else { - x_209 = x_205; -} -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_204); -return x_209; -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -lean_dec(x_2); -x_210 = lean_ctor_get(x_202, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_202, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_212 = x_202; -} else { - lean_dec_ref(x_202); - x_212 = lean_box(0); -} -x_213 = l_Lean_Meta_FVarSubst_insert(x_210, x_8, x_29); -x_214 = l_Lean_Meta_FVarSubst_insert(x_213, x_9, x_10); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_200); -if (lean_is_scalar(x_212)) { - x_216 = lean_alloc_ctor(0, 2, 0); -} else { - x_216 = x_212; -} -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_211); -return x_216; -} -} -} -else -{ -uint8_t x_217; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_217 = !lean_is_exclusive(x_174); -if (x_217 == 0) -{ -return x_174; -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_174, 0); -x_219 = lean_ctor_get(x_174, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_174); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_219); -return x_220; -} -} -} -} -} -else -{ -uint8_t x_239; -lean_dec(x_159); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_2); -lean_dec(x_1); -x_239 = !lean_is_exclusive(x_161); -if (x_239 == 0) -{ -return x_161; -} -else -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_161, 0); -x_241 = lean_ctor_get(x_161, 1); -lean_inc(x_241); -lean_inc(x_240); -lean_dec(x_161); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_240); -lean_ctor_set(x_242, 1, x_241); -return x_242; -} -} -} -else -{ -uint8_t x_243; -lean_dec(x_153); -lean_dec(x_145); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_243 = !lean_is_exclusive(x_155); -if (x_243 == 0) -{ -return x_155; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_155, 0); -x_245 = lean_ctor_get(x_155, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_155); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; -} -} -} -else -{ -uint8_t x_247; -lean_dec(x_145); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_247 = !lean_is_exclusive(x_152); -if (x_247 == 0) -{ -return x_152; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_152, 0); -x_249 = lean_ctor_get(x_152, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_152); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; -} -} -} -else -{ -uint8_t x_251; -lean_dec(x_145); -lean_dec(x_29); +uint8_t x_108; lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_14); +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_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_251 = !lean_is_exclusive(x_146); -if (x_251 == 0) -{ -return x_146; -} -else -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_146, 0); -x_253 = lean_ctor_get(x_146, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_146); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -return x_254; -} -} -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; -lean_inc(x_2); -x_255 = lean_array_push(x_14, x_2); -lean_inc(x_10); -x_256 = lean_array_push(x_255, x_10); -lean_inc(x_16); -x_257 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_SynthInstance_tryResolveCore___spec__1(x_256, x_21, x_16, x_17, x_18, x_19, x_144); -if (lean_obj_tag(x_257) == 0) -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -lean_inc(x_16); -x_260 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_145, x_3, x_16, x_17, x_18, x_19, x_259); -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_10); -lean_inc(x_261); -x_263 = l___private_Lean_Meta_AppBuilder_23__mkEqRecImp(x_258, x_261, x_10, x_16, x_17, x_18, x_19, x_262); -if (lean_obj_tag(x_263) == 0) -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; -x_264 = lean_ctor_get(x_263, 0); -lean_inc(x_264); -x_265 = lean_ctor_get(x_263, 1); -lean_inc(x_265); -lean_dec(x_263); -x_266 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_4, x_264, x_16, x_17, x_18, x_19, x_265); -x_267 = lean_ctor_get(x_266, 1); -lean_inc(x_267); -lean_dec(x_266); -x_268 = l_Lean_Expr_mvarId_x21(x_261); -lean_dec(x_261); -if (x_12 == 0) -{ -uint8_t x_339; -x_339 = 0; -x_269 = x_339; -goto block_338; -} -else -{ -uint8_t x_340; -x_340 = 1; -x_269 = x_340; -goto block_338; -} -block_338: -{ -lean_object* x_270; lean_object* x_271; -if (x_269 == 0) -{ -lean_dec(x_11); -lean_dec(x_1); -x_270 = x_268; -x_271 = x_267; -goto block_323; -} -else -{ -lean_object* x_324; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_324 = l_Lean_Meta_clear(x_268, x_1, x_16, x_17, x_18, x_19, x_267); -if (lean_obj_tag(x_324) == 0) -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_324, 1); -lean_inc(x_326); -lean_dec(x_324); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_327 = l_Lean_Meta_clear(x_325, x_11, x_16, x_17, x_18, x_19, x_326); -if (lean_obj_tag(x_327) == 0) -{ -lean_object* x_328; lean_object* x_329; -x_328 = lean_ctor_get(x_327, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_327, 1); -lean_inc(x_329); -lean_dec(x_327); -x_270 = x_328; -x_271 = x_329; -goto block_323; -} -else -{ -uint8_t x_330; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_330 = !lean_is_exclusive(x_327); -if (x_330 == 0) -{ -return x_327; -} -else -{ -lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_331 = lean_ctor_get(x_327, 0); -x_332 = lean_ctor_get(x_327, 1); -lean_inc(x_332); -lean_inc(x_331); -lean_dec(x_327); -x_333 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_333, 0, x_331); -lean_ctor_set(x_333, 1, x_332); -return x_333; -} -} -} -else -{ -uint8_t x_334; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_2); -x_334 = !lean_is_exclusive(x_324); -if (x_334 == 0) -{ -return x_324; -} -else -{ -lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_335 = lean_ctor_get(x_324, 0); -x_336 = lean_ctor_get(x_324, 1); -lean_inc(x_336); -lean_inc(x_335); -lean_dec(x_324); -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_335); -lean_ctor_set(x_337, 1, x_336); -return x_337; -} -} -} -block_323: -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; -x_272 = lean_array_get_size(x_5); -x_273 = lean_unsigned_to_nat(2u); -x_274 = lean_nat_sub(x_272, x_273); -lean_dec(x_272); -x_275 = 1; -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_276 = l_Lean_Meta_introNCore(x_270, x_274, x_6, x_275, x_16, x_17, x_18, x_19, x_271); -if (lean_obj_tag(x_276) == 0) -{ -lean_object* x_277; lean_object* x_278; uint8_t x_279; -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -lean_dec(x_276); -x_279 = !lean_is_exclusive(x_277); -if (x_279 == 0) -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_280 = lean_ctor_get(x_277, 0); -x_281 = lean_array_get_size(x_280); -lean_inc(x_281); -x_282 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(x_5, x_280, x_281, x_281, x_7, x_16, x_17, x_18, x_19, x_278); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_281); -lean_dec(x_280); -if (x_269 == 0) -{ -uint8_t x_283; -lean_dec(x_29); -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_284 = lean_ctor_get(x_282, 0); -x_285 = l_Lean_Meta_FVarSubst_insert(x_284, x_8, x_2); -x_286 = l_Lean_Meta_FVarSubst_insert(x_285, x_9, x_10); -lean_ctor_set(x_277, 0, x_286); -lean_ctor_set(x_282, 0, x_277); -return x_282; -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_287 = lean_ctor_get(x_282, 0); -x_288 = lean_ctor_get(x_282, 1); -lean_inc(x_288); -lean_inc(x_287); -lean_dec(x_282); -x_289 = l_Lean_Meta_FVarSubst_insert(x_287, x_8, x_2); -x_290 = l_Lean_Meta_FVarSubst_insert(x_289, x_9, x_10); -lean_ctor_set(x_277, 0, x_290); -x_291 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_291, 0, x_277); -lean_ctor_set(x_291, 1, x_288); -return x_291; -} -} -else -{ -uint8_t x_292; -lean_dec(x_2); -x_292 = !lean_is_exclusive(x_282); -if (x_292 == 0) -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_293 = lean_ctor_get(x_282, 0); -x_294 = l_Lean_Meta_FVarSubst_insert(x_293, x_8, x_29); -x_295 = l_Lean_Meta_FVarSubst_insert(x_294, x_9, x_10); -lean_ctor_set(x_277, 0, x_295); -lean_ctor_set(x_282, 0, x_277); -return x_282; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_296 = lean_ctor_get(x_282, 0); -x_297 = lean_ctor_get(x_282, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_282); -x_298 = l_Lean_Meta_FVarSubst_insert(x_296, x_8, x_29); -x_299 = l_Lean_Meta_FVarSubst_insert(x_298, x_9, x_10); -lean_ctor_set(x_277, 0, x_299); -x_300 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_300, 0, x_277); -lean_ctor_set(x_300, 1, x_297); -return x_300; -} -} -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -x_301 = lean_ctor_get(x_277, 0); -x_302 = lean_ctor_get(x_277, 1); -lean_inc(x_302); -lean_inc(x_301); -lean_dec(x_277); -x_303 = lean_array_get_size(x_301); -lean_inc(x_303); -x_304 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__8(x_5, x_301, x_303, x_303, x_7, x_16, x_17, x_18, x_19, x_278); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_303); -lean_dec(x_301); -if (x_269 == 0) -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -lean_dec(x_29); -x_305 = lean_ctor_get(x_304, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_304, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_307 = x_304; -} else { - lean_dec_ref(x_304); - x_307 = lean_box(0); -} -x_308 = l_Lean_Meta_FVarSubst_insert(x_305, x_8, x_2); -x_309 = l_Lean_Meta_FVarSubst_insert(x_308, x_9, x_10); -x_310 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_302); -if (lean_is_scalar(x_307)) { - x_311 = lean_alloc_ctor(0, 2, 0); -} else { - x_311 = x_307; -} -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_306); -return x_311; -} -else -{ -lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; -lean_dec(x_2); -x_312 = lean_ctor_get(x_304, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_304, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_314 = x_304; -} else { - lean_dec_ref(x_304); - x_314 = lean_box(0); -} -x_315 = l_Lean_Meta_FVarSubst_insert(x_312, x_8, x_29); -x_316 = l_Lean_Meta_FVarSubst_insert(x_315, x_9, x_10); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_316); -lean_ctor_set(x_317, 1, x_302); -if (lean_is_scalar(x_314)) { - x_318 = lean_alloc_ctor(0, 2, 0); -} else { - x_318 = x_314; -} -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_313); -return x_318; -} -} -} -else -{ -uint8_t x_319; -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_319 = !lean_is_exclusive(x_276); -if (x_319 == 0) -{ -return x_276; -} -else -{ -lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_320 = lean_ctor_get(x_276, 0); -x_321 = lean_ctor_get(x_276, 1); -lean_inc(x_321); -lean_inc(x_320); -lean_dec(x_276); -x_322 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_322, 0, x_320); -lean_ctor_set(x_322, 1, x_321); -return x_322; -} -} -} -} -} -else -{ -uint8_t x_341; -lean_dec(x_261); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_2); -lean_dec(x_1); -x_341 = !lean_is_exclusive(x_263); -if (x_341 == 0) -{ -return x_263; -} -else -{ -lean_object* x_342; lean_object* x_343; lean_object* x_344; -x_342 = lean_ctor_get(x_263, 0); -x_343 = lean_ctor_get(x_263, 1); -lean_inc(x_343); -lean_inc(x_342); -lean_dec(x_263); -x_344 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_344, 0, x_342); -lean_ctor_set(x_344, 1, x_343); -return x_344; -} -} -} -else -{ -uint8_t x_345; -lean_dec(x_145); -lean_dec(x_29); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_345 = !lean_is_exclusive(x_257); -if (x_345 == 0) -{ -return x_257; -} -else -{ -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_257, 0); -x_347 = lean_ctor_get(x_257, 1); -lean_inc(x_347); -lean_inc(x_346); -lean_dec(x_257); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_346); -lean_ctor_set(x_348, 1, x_347); -return x_348; -} -} -} -} -else -{ -uint8_t x_349; -lean_dec(x_141); -lean_dec(x_29); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_14); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_349 = !lean_is_exclusive(x_142); -if (x_349 == 0) -{ -return x_142; -} -else -{ -lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_350 = lean_ctor_get(x_142, 0); -x_351 = lean_ctor_get(x_142, 1); -lean_inc(x_351); -lean_inc(x_350); -lean_dec(x_142); -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_350); -lean_ctor_set(x_352, 1, x_351); -return x_352; -} -} -} -} -} -else -{ -uint8_t x_361; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_14); -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_361 = !lean_is_exclusive(x_26); -if (x_361 == 0) +x_108 = !lean_is_exclusive(x_26); +if (x_108 == 0) { return x_26; } else { -lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_362 = lean_ctor_get(x_26, 0); -x_363 = lean_ctor_get(x_26, 1); -lean_inc(x_363); -lean_inc(x_362); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_26, 0); +x_110 = lean_ctor_get(x_26, 1); +lean_inc(x_110); +lean_inc(x_109); lean_dec(x_26); -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_362); -lean_ctor_set(x_364, 1, x_363); -return x_364; +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } else { -uint8_t x_365; +uint8_t x_112; lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_14); +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_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_365 = !lean_is_exclusive(x_22); -if (x_365 == 0) +x_112 = !lean_is_exclusive(x_22); +if (x_112 == 0) { return x_22; } else { -lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_366 = lean_ctor_get(x_22, 0); -x_367 = lean_ctor_get(x_22, 1); -lean_inc(x_367); -lean_inc(x_366); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_22, 0); +x_114 = lean_ctor_get(x_22, 1); +lean_inc(x_114); +lean_inc(x_113); lean_dec(x_22); -x_368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_368, 0, x_366); -lean_ctor_set(x_368, 1, x_367); -return x_368; +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; } } } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__1() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__12___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("reverted variables "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__12___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_substCore___lambda__12___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore___lambda__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t 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) { +_start: +{ +lean_object* x_15; +lean_inc(x_10); +lean_inc(x_1); +x_15 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_1, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_mkAppStx___closed__9; +lean_inc(x_1); +x_18 = lean_array_push(x_17, x_1); +lean_inc(x_2); +x_19 = lean_array_push(x_18, x_2); +x_20 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_21 = l_Lean_Meta_revert(x_3, x_19, x_20, x_10, x_11, x_12, x_13, x_16); +if (lean_obj_tag(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; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = lean_unsigned_to_nat(2u); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_28 = l_Lean_Meta_introNCore(x_25, x_27, x_26, x_20, x_10, x_11, x_12, x_13, x_23); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_48; lean_object* x_49; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_60 = lean_st_ref_get(x_13, x_30); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_61, 3); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_ctor_get_uint8(x_62, sizeof(void*)*1); +lean_dec(x_62); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_65 = 0; +x_48 = x_65; +x_49 = x_64; +goto block_59; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); +lean_inc(x_8); +x_67 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_8, x_10, x_11, x_12, x_13, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = lean_unbox(x_68); +lean_dec(x_68); +x_48 = x_70; +x_49 = x_69; +goto block_59; +} +block_47: +{ +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; lean_object* x_45; lean_object* x_46; +x_34 = l_Lean_Name_inhabited; +x_35 = lean_unsigned_to_nat(0u); +x_36 = lean_array_get(x_34, x_31, x_35); +lean_inc(x_36); +x_37 = l_Lean_mkFVar(x_36); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_array_get(x_34, x_31, x_38); +lean_dec(x_31); +lean_inc(x_39); +x_40 = l_Lean_mkFVar(x_39); +lean_inc(x_32); +x_41 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1___boxed), 6, 1); +lean_closure_set(x_41, 0, x_32); +x_42 = lean_box(x_6); +x_43 = lean_box(x_7); +lean_inc(x_32); +x_44 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__11___boxed), 20, 14); +lean_closure_set(x_44, 0, x_39); +lean_closure_set(x_44, 1, x_37); +lean_closure_set(x_44, 2, x_4); +lean_closure_set(x_44, 3, x_32); +lean_closure_set(x_44, 4, x_24); +lean_closure_set(x_44, 5, x_26); +lean_closure_set(x_44, 6, x_5); +lean_closure_set(x_44, 7, x_42); +lean_closure_set(x_44, 8, x_1); +lean_closure_set(x_44, 9, x_2); +lean_closure_set(x_44, 10, x_40); +lean_closure_set(x_44, 11, x_36); +lean_closure_set(x_44, 12, x_43); +lean_closure_set(x_44, 13, x_17); +x_45 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_45, 0, x_41); +lean_closure_set(x_45, 1, x_44); +x_46 = l_Lean_Meta_withMVarContext___at_Lean_Meta_revert___spec__5___rarg(x_32, x_45, x_10, x_11, x_12, x_13, x_33); +return x_46; +} +block_59: +{ +if (x_48 == 0) +{ +lean_dec(x_8); +x_33 = x_49; +goto block_47; +} +else +{ +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; +x_50 = l_Array_toList___rarg(x_24); +x_51 = l_List_map___main___at_Lean_Meta_substCore___spec__11(x_50); +x_52 = l_Lean_MessageData_ofList(x_51); +lean_dec(x_51); +x_53 = l_Lean_Meta_substCore___lambda__12___closed__2; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_8, x_56, x_10, x_11, x_12, x_13, x_49); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_33 = x_58; +goto block_47; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_24); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_28); +if (x_71 == 0) +{ +return x_28; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_28, 0); +x_73 = lean_ctor_get(x_28, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_28); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_21); +if (x_75 == 0) +{ +return x_21; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_21, 0); +x_77 = lean_ctor_get(x_21, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_21); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_15); +if (x_79 == 0) +{ +return x_15; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_15, 0); +x_81 = lean_ctor_get(x_15, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_15); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__1() { _start: { lean_object* x_1; @@ -2454,17 +3057,17 @@ x_1 = lean_mk_string("subst"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__2() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___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_substCore___lambda__5___closed__1; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__3() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__3() { _start: { lean_object* x_1; @@ -2472,27 +3075,27 @@ x_1 = lean_mk_string("argument must be an equality proof"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__4() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__3; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__5() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__4; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__4; 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_substCore___lambda__5___closed__6() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__6() { _start: { lean_object* x_1; @@ -2500,55 +3103,33 @@ x_1 = lean_mk_string("invalid equality proof, it is not of the form "); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__7() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__6; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__7; -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_substCore___lambda__5___closed__9() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__8() { _start: { lean_object* x_1; -x_1 = lean_mk_string("after WHNF, variable expected, but obtained"); +x_1 = lean_mk_string("\nafter WHNF, variable expected, but obtained"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__10() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__9; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__10; -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_substCore___lambda__5___closed__12() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__10() { _start: { lean_object* x_1; @@ -2556,39 +3137,40 @@ x_1 = lean_mk_string("(x = t)"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__13() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__12; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__13; -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_substCore___lambda__5___closed__15() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__8; -x_2 = l_Lean_Meta_substCore___lambda__5___closed__14; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__7; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__11; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__16() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__12; +x_2 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_3 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__14() { _start: { lean_object* x_1; @@ -2596,49 +3178,50 @@ x_1 = lean_mk_string("(t = x)"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__17() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__16; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__14; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__17; -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_substCore___lambda__5___closed__19() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__8; -x_2 = l_Lean_Meta_substCore___lambda__5___closed__18; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__7; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__15; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__20() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; -x_2 = l_Lean_Meta_substCore___lambda__5___closed__1; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__16; +x_2 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_3 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__21() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__19() { _start: { lean_object* x_1; @@ -2646,31 +3229,71 @@ x_1 = lean_mk_string("' occurs at"); return x_1; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__22() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__21; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__19; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_substCore___lambda__5___closed__23() { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("substituting "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_substCore___lambda__5___closed__22; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_substCore___lambda__13___closed__21; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Meta_substCore___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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) { +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__23() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" (id: "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__23; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" with "); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_substCore___lambda__13___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_substCore___lambda__13___closed__25; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_substCore___lambda__13(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, uint8_t 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; lean_object* x_13; -x_12 = l_Lean_Meta_substCore___lambda__5___closed__2; +x_12 = l_Lean_Meta_substCore___lambda__13___closed__2; lean_inc(x_1); x_13 = l_Lean_Meta_checkNotAssigned(x_1, x_12, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_13) == 0) @@ -2681,7 +3304,7 @@ lean_inc(x_14); lean_dec(x_13); lean_inc(x_7); lean_inc(x_2); -x_15 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_2, x_7, x_8, x_9, x_10, x_14); +x_15 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_2, x_7, x_8, x_9, x_10, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -2708,12 +3331,12 @@ if (lean_obj_tag(x_20) == 0) lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_18); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l_Lean_Meta_substCore___lambda__5___closed__5; +x_22 = l_Lean_Meta_substCore___lambda__13___closed__5; x_23 = lean_box(0); x_24 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_22, x_23, x_7, x_8, x_9, x_10, x_21); lean_dec(x_10); @@ -2724,7 +3347,7 @@ return x_24; } else { -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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_25 = lean_ctor_get(x_20, 0); lean_inc(x_25); lean_dec(x_20); @@ -2739,448 +3362,317 @@ lean_inc(x_28); x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); lean_dec(x_26); -if (x_5 == 0) -{ -uint8_t x_138; -x_138 = 0; -x_30 = x_138; -goto block_137; -} -else -{ -uint8_t x_139; -x_139 = 1; -x_30 = x_139; -goto block_137; -} -block_137: -{ -lean_object* x_31; -if (x_30 == 0) +if (x_3 == 0) { lean_inc(x_28); -x_31 = x_28; -goto block_136; +x_30 = x_28; +goto block_119; } else { lean_inc(x_29); -x_31 = x_29; -goto block_136; +x_30 = x_29; +goto block_119; } -block_136: +block_119: { -lean_object* x_32; -if (x_30 == 0) +lean_object* x_31; +if (x_3 == 0) { lean_dec(x_28); -x_32 = x_29; -goto block_135; +x_31 = x_29; +goto block_118; } else { lean_dec(x_29); -x_32 = x_28; -goto block_135; +x_31 = x_28; +goto block_118; } -block_135: +block_118: +{ +lean_object* x_32; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_32 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_30, x_7, x_8, x_9, x_10, x_27); +if (lean_obj_tag(x_32) == 0) { lean_object* x_33; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_33 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_31, x_7, x_8, x_9, x_10, x_27); -if (lean_obj_tag(x_33) == 0) +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +if (lean_obj_tag(x_33) == 1) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -if (lean_obj_tag(x_34) == 1) -{ -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_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_62; lean_object* x_63; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_dec(x_18); -x_58 = lean_ctor_get(x_34, 0); -lean_inc(x_58); -lean_inc(x_32); -lean_inc(x_58); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_59 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__1___boxed), 4, 3); -lean_closure_set(x_59, 0, x_34); -lean_closure_set(x_59, 1, x_58); -lean_closure_set(x_59, 2, x_32); -x_60 = l_Lean_Meta_substCore___lambda__5___closed__20; -x_61 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_60, x_59, x_7, x_8, x_9, x_10, x_35); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_111 = lean_st_ref_get(x_8, x_62); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_ctor_get(x_112, 0); -lean_inc(x_114); -lean_dec(x_112); -lean_inc(x_32); -x_115 = l_Lean_MetavarContext_exprDependsOn(x_114, x_32, x_58); -x_116 = lean_unbox(x_115); -lean_dec(x_115); -if (x_116 == 0) -{ -lean_dec(x_34); lean_dec(x_32); -x_63 = x_113; -goto block_110; -} -else -{ -lean_object* x_117; lean_object* x_118; 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; uint8_t x_126; -lean_dec(x_58); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_117 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_117, 0, x_34); -x_118 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_119 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = l_Lean_Meta_substCore___lambda__5___closed__23; -x_121 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Lean_indentExpr(x_32); -x_123 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -x_124 = lean_box(0); -x_125 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_123, x_124, x_7, x_8, x_9, x_10, x_113); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -return x_125; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_125, 0); -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_125); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; -} -} -block_110: -{ -lean_object* x_64; -lean_inc(x_7); -lean_inc(x_58); -x_64 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_58, x_7, x_8, x_9, x_10, x_63); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = l_Lean_mkAppStx___closed__9; -lean_inc(x_58); -x_67 = lean_array_push(x_66, x_58); -lean_inc(x_2); -x_68 = lean_array_push(x_67, x_2); -x_69 = 1; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_70 = l_Lean_Meta_revert(x_1, x_68, x_69, x_7, x_8, x_9, x_10, x_65); -if (lean_obj_tag(x_70) == 0) -{ -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_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_box(0); -x_76 = lean_unsigned_to_nat(2u); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_77 = l_Lean_Meta_introNCore(x_74, x_76, x_75, x_69, x_7, x_8, x_9, x_10, x_72); -if (lean_obj_tag(x_77) == 0) -{ -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; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_ctor_get(x_78, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -lean_dec(x_78); -lean_inc(x_73); -x_82 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__2___boxed), 2, 1); -lean_closure_set(x_82, 0, x_73); -x_83 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_60, x_82, x_7, x_8, x_9, x_10, x_79); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +x_81 = lean_st_ref_get(x_10, x_34); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_82, 3); +lean_inc(x_83); +lean_dec(x_82); +x_84 = lean_ctor_get_uint8(x_83, sizeof(void*)*1); lean_dec(x_83); -x_85 = l_Lean_Name_inhabited; -x_86 = lean_unsigned_to_nat(0u); -x_87 = lean_array_get(x_85, x_80, x_86); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_81, 1); +lean_inc(x_85); +lean_dec(x_81); +x_86 = 0; +x_62 = x_86; +x_63 = x_85; +goto block_80; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_87 = lean_ctor_get(x_81, 1); lean_inc(x_87); -x_88 = l_Lean_mkFVar(x_87); -x_89 = lean_unsigned_to_nat(1u); -x_90 = lean_array_get(x_85, x_80, x_89); -lean_dec(x_80); +lean_dec(x_81); +x_88 = l_Lean_Meta_substCore___lambda__13___closed__18; +x_89 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_88, x_7, x_8, x_9, x_10, x_87); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); -x_91 = l_Lean_mkFVar(x_90); -lean_inc(x_81); -x_92 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1___boxed), 6, 1); -lean_closure_set(x_92, 0, x_81); -x_93 = lean_box(x_4); -x_94 = lean_box(x_30); -lean_inc(x_81); -x_95 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__4___boxed), 20, 14); -lean_closure_set(x_95, 0, x_90); -lean_closure_set(x_95, 1, x_88); -lean_closure_set(x_95, 2, x_6); -lean_closure_set(x_95, 3, x_81); -lean_closure_set(x_95, 4, x_73); -lean_closure_set(x_95, 5, x_75); -lean_closure_set(x_95, 6, x_3); -lean_closure_set(x_95, 7, x_58); -lean_closure_set(x_95, 8, x_2); -lean_closure_set(x_95, 9, x_91); -lean_closure_set(x_95, 10, x_87); -lean_closure_set(x_95, 11, x_93); -lean_closure_set(x_95, 12, x_94); -lean_closure_set(x_95, 13, x_66); -x_96 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); -lean_closure_set(x_96, 0, x_92); -lean_closure_set(x_96, 1, x_95); -x_97 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_81, x_96, x_7, x_8, x_9, x_10, x_84); -return x_97; +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_unbox(x_90); +lean_dec(x_90); +x_62 = x_92; +x_63 = x_91; +goto block_80; +} +block_61: +{ +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_37 = lean_st_ref_get(x_8, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +lean_inc(x_31); +x_41 = l_Lean_MetavarContext_exprDependsOn(x_40, x_31, x_35); +x_42 = lean_unbox(x_41); +lean_dec(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_33); +lean_dec(x_31); +x_43 = l_Lean_Meta_substCore___lambda__13___closed__18; +x_44 = lean_box(0); +x_45 = l_Lean_Meta_substCore___lambda__12(x_35, x_2, x_1, x_6, x_4, x_5, x_3, x_43, x_44, x_7, x_8, x_9, x_10, x_39); +return x_45; } else { -uint8_t x_98; -lean_dec(x_73); -lean_dec(x_58); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +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; uint8_t x_57; +lean_dec(x_35); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_98 = !lean_is_exclusive(x_77); -if (x_98 == 0) -{ -return x_77; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_77, 0); -x_100 = lean_ctor_get(x_77, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_77); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; -} -} -} -else -{ -uint8_t x_102; -lean_dec(x_58); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_102 = !lean_is_exclusive(x_70); -if (x_102 == 0) -{ -return x_70; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_70, 0); -x_104 = lean_ctor_get(x_70, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_70); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; -} -} -} -else -{ -uint8_t x_106; -lean_dec(x_58); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_106 = !lean_is_exclusive(x_64); -if (x_106 == 0) -{ -return x_64; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_64, 0); -x_108 = lean_ctor_get(x_64, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_64); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -} -} -else -{ -lean_object* x_130; -lean_dec(x_32); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_130 = lean_box(0); -x_36 = x_130; -goto block_57; -} -block_57: -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_36); -x_37 = l_Lean_indentExpr(x_18); -x_38 = l_Lean_indentExpr(x_34); -if (x_30 == 0) -{ -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; -x_39 = l_Lean_Meta_substCore___lambda__5___closed__15; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -x_41 = l_Lean_MessageData_ofList___closed__3; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_Meta_substCore___lambda__5___closed__11; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_38); -x_46 = lean_box(0); -x_47 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_45, x_46, x_7, x_8, x_9, x_10, x_35); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_47; -} -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; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_48 = l_Lean_Meta_substCore___lambda__5___closed__19; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_37); -x_50 = l_Lean_MessageData_ofList___closed__3; -x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_Meta_substCore___lambda__5___closed__11; -x_53 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_33); +x_47 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_Meta_substCore___lambda__13___closed__20; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_indentExpr(x_31); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_Meta_throwTacticEx___rarg___closed__6; x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_38); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); x_55 = lean_box(0); -x_56 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_54, x_55, x_7, x_8, x_9, x_10, x_35); +x_56 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_54, x_55, x_7, x_8, x_9, x_10, x_39); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ return x_56; } +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_56); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +block_80: +{ +if (x_62 == 0) +{ +x_36 = x_63; +goto block_61; +} +else +{ +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; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_inc(x_33); +x_64 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_64, 0, x_33); +x_65 = l_Lean_Meta_substCore___lambda__13___closed__22; +x_66 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +x_67 = l_Lean_Meta_substCore___lambda__13___closed__24; +x_68 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +lean_inc(x_35); +x_69 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_69, 0, x_35); +x_70 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_Meta_substCore___lambda__13___closed__26; +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +lean_inc(x_31); +x_73 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_73, 0, x_31); +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_Meta_throwTacticEx___rarg___closed__6; +x_76 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Lean_Meta_substCore___lambda__13___closed__18; +x_78 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_77, x_76, x_7, x_8, x_9, x_10, x_63); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_36 = x_79; +goto block_61; +} } } else { -uint8_t x_131; +lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_31); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_93 = lean_ctor_get(x_32, 1); +lean_inc(x_93); lean_dec(x_32); +x_94 = l_Lean_indentExpr(x_18); +x_95 = l_Lean_indentExpr(x_33); +if (x_3 == 0) +{ +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_96 = l_Lean_Meta_substCore___lambda__13___closed__13; +x_97 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_94); +x_98 = l_Lean_Meta_substCore___lambda__13___closed__9; +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 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_95); +x_101 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_102 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_103 = lean_box(0); +x_104 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_102, x_103, x_7, x_8, x_9, x_10, x_93); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_104; +} +else +{ +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; +x_105 = l_Lean_Meta_substCore___lambda__13___closed__17; +x_106 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_94); +x_107 = l_Lean_Meta_substCore___lambda__13___closed__9; +x_108 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +x_109 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_95); +x_110 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_111 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_box(0); +x_113 = l_Lean_Meta_throwTacticEx___rarg(x_12, x_1, x_111, x_112, x_7, x_8, x_9, x_10, x_93); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_113; +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_31); lean_dec(x_18); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_131 = !lean_is_exclusive(x_33); -if (x_131 == 0) +x_114 = !lean_is_exclusive(x_32); +if (x_114 == 0) { -return x_33; +return x_32; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_33, 0); -x_133 = lean_ctor_get(x_33, 1); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_33); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -return x_134; -} +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_32, 0); +x_116 = lean_ctor_get(x_32, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_32); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } } @@ -3189,95 +3681,95 @@ return x_134; } else { -uint8_t x_140; +uint8_t x_120; lean_dec(x_18); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_140 = !lean_is_exclusive(x_19); -if (x_140 == 0) +x_120 = !lean_is_exclusive(x_19); +if (x_120 == 0) { return x_19; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_19, 0); -x_142 = lean_ctor_get(x_19, 1); -lean_inc(x_142); -lean_inc(x_141); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_19, 0); +x_122 = lean_ctor_get(x_19, 1); +lean_inc(x_122); +lean_inc(x_121); lean_dec(x_19); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } else { -uint8_t x_144; +uint8_t x_124; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_144 = !lean_is_exclusive(x_15); -if (x_144 == 0) +x_124 = !lean_is_exclusive(x_15); +if (x_124 == 0) { return x_15; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_15, 0); -x_146 = lean_ctor_get(x_15, 1); -lean_inc(x_146); -lean_inc(x_145); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_15, 0); +x_126 = lean_ctor_get(x_15, 1); +lean_inc(x_126); +lean_inc(x_125); lean_dec(x_15); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } } else { -uint8_t x_148; +uint8_t x_128; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_148 = !lean_is_exclusive(x_13); -if (x_148 == 0) +x_128 = !lean_is_exclusive(x_13); +if (x_128 == 0) { return x_13; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_13, 0); -x_150 = lean_ctor_get(x_13, 1); -lean_inc(x_150); -lean_inc(x_149); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_13, 0); +x_130 = lean_ctor_get(x_13, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_13); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } @@ -3289,37 +3781,38 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); lean_closure_set(x_11, 0, x_1); -x_12 = lean_box(x_5); -x_13 = lean_box(x_3); +x_12 = lean_box(x_3); +x_13 = lean_box(x_5); lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__5___boxed), 11, 5); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___lambda__13___boxed), 11, 5); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); -lean_closure_set(x_14, 2, x_4); -lean_closure_set(x_14, 3, x_12); +lean_closure_set(x_14, 2, x_12); +lean_closure_set(x_14, 3, x_4); lean_closure_set(x_14, 4, x_13); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_15, 0, x_11); lean_closure_set(x_15, 1, x_14); -x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_15, x_6, x_7, x_8, x_9, x_10); return x_16; } } -lean_object* l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___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) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = lean_unbox(x_1); -lean_dec(x_1); -x_4 = l_List_toStringAux___main___at_Lean_Meta_substCore___spec__2(x_3, x_2); -return x_4; +lean_object* x_7; +x_7 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; } } -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___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_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___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) { _start: { lean_object* x_11; -x_11 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__2(x_1, x_2, x_3, 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); @@ -3330,18 +3823,13 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7___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* l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg___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_11; -x_11 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__7(x_1, x_2, x_3, 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); -lean_dec(x_6); -lean_dec(x_3); +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); +x_11 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_substCore___spec__7___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } @@ -3360,35 +3848,277 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Meta_substCore___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_Meta_substCore___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_4); -return x_5; -} -} -lean_object* l_Lean_Meta_substCore___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Meta_substCore___lambda__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Meta_substCore___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10___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_Meta_substCore___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Nat_foldMAux___main___at_Lean_Meta_substCore___spec__10(x_1, x_2, x_3, 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); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Meta_substCore___lambda__4___boxed(lean_object** _args) { +lean_object* l_Lean_addTrace___at_Lean_Meta_substCore___spec__12___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: +{ +lean_object* x_8; +x_8 = l_Lean_addTrace___at_Lean_Meta_substCore___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13___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___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_substCore___spec__13(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_substCore___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_4); +lean_dec(x_4); +x_17 = l_Lean_Meta_substCore___lambda__1(x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1); +return x_17; +} +} +lean_object* l_Lean_Meta_substCore___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_6); +lean_dec(x_6); +x_21 = l_Lean_Meta_substCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_3); +lean_dec(x_2); +return x_21; +} +} +lean_object* l_Lean_Meta_substCore___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +uint8_t x_22; lean_object* x_23; +x_22 = lean_unbox(x_7); +lean_dec(x_7); +x_23 = l_Lean_Meta_substCore___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_4); +return x_23; +} +} +lean_object* l_Lean_Meta_substCore___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_substCore___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Meta_substCore___lambda__5___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_4); +lean_dec(x_4); +x_17 = l_Lean_Meta_substCore___lambda__5(x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1); +return x_17; +} +} +lean_object* l_Lean_Meta_substCore___lambda__6___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_6); +lean_dec(x_6); +x_21 = l_Lean_Meta_substCore___lambda__6(x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_3); +lean_dec(x_2); +return x_21; +} +} +lean_object* l_Lean_Meta_substCore___lambda__7___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +uint8_t x_22; lean_object* x_23; +x_22 = lean_unbox(x_7); +lean_dec(x_7); +x_23 = l_Lean_Meta_substCore___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_4); +return x_23; +} +} +lean_object* l_Lean_Meta_substCore___lambda__8___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, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_4); +lean_dec(x_4); +x_17 = l_Lean_Meta_substCore___lambda__8(x_1, x_2, x_3, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1); +return x_17; +} +} +lean_object* l_Lean_Meta_substCore___lambda__9___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_6); +lean_dec(x_6); +x_21 = l_Lean_Meta_substCore___lambda__9(x_1, x_2, x_3, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_3); +lean_dec(x_2); +return x_21; +} +} +lean_object* l_Lean_Meta_substCore___lambda__10___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +uint8_t x_22; lean_object* x_23; +x_22 = lean_unbox(x_7); +lean_dec(x_7); +x_23 = l_Lean_Meta_substCore___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_4); +return x_23; +} +} +lean_object* l_Lean_Meta_substCore___lambda__11___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -3412,24 +4142,37 @@ lean_object* x_20 = _args[19]; _start: { uint8_t x_21; uint8_t x_22; lean_object* x_23; -x_21 = lean_unbox(x_12); -lean_dec(x_12); +x_21 = lean_unbox(x_8); +lean_dec(x_8); x_22 = lean_unbox(x_13); lean_dec(x_13); -x_23 = l_Lean_Meta_substCore___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21, x_22, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_23 = l_Lean_Meta_substCore___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_21, x_9, x_10, x_11, x_12, x_22, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_5); return x_23; } } -lean_object* l_Lean_Meta_substCore___lambda__5___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* l_Lean_Meta_substCore___lambda__12___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, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_unbox(x_6); +lean_dec(x_6); +x_16 = lean_unbox(x_7); +lean_dec(x_7); +x_17 = l_Lean_Meta_substCore___lambda__12(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_9); +return x_17; +} +} +lean_object* l_Lean_Meta_substCore___lambda__13___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: { uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_unbox(x_4); -lean_dec(x_4); +x_12 = lean_unbox(x_3); +lean_dec(x_3); x_13 = lean_unbox(x_5); lean_dec(x_5); -x_14 = l_Lean_Meta_substCore___lambda__5(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Lean_Meta_substCore___lambda__13(x_1, x_2, x_12, x_4, x_13, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } @@ -3445,6 +4188,122 @@ x_13 = l_Lean_Meta_substCore(x_1, x_2, x_11, x_4, x_12, x_6, x_7, x_8, x_9, x_10 return x_13; } } +lean_object* l_Lean_Meta_subst_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +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_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_apply_3(x_2, x_7, x_8, x_9); +return x_10; +} +} +} +lean_object* l_Lean_Meta_subst_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_subst_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_subst_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_apply_2(x_2, x_6, x_7); +return x_8; +} +} +} +lean_object* l_Lean_Meta_subst_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_subst_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_subst_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +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_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_3(x_2, x_8, x_9, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Meta_subst_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_subst_match__3___rarg), 3, 0); +return x_2; +} +} lean_object* l_Array_findSomeMAux___main___at_Lean_Meta_subst___spec__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_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -3593,689 +4452,262 @@ goto block_16; } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_LocalDecl_isAuxDecl(x_23); +if (x_24 == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_21, 0); -x_25 = l_Lean_LocalDecl_isAuxDecl(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = l_Lean_LocalDecl_type(x_24); +lean_object* x_25; lean_object* x_26; +x_25 = l_Lean_LocalDecl_type(x_23); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_27 = l_Lean_Meta_matchEq_x3f(x_26, x_5, x_6, x_7, x_8, x_9); +x_26 = l_Lean_Meta_matchEq_x3f(x_25, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_28; lean_object* x_29; +lean_dec(x_23); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_free_object(x_21); -lean_dec(x_24); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_box(0); -x_10 = x_30; -x_11 = x_29; +lean_dec(x_26); +x_29 = lean_box(0); +x_10 = x_29; +x_11 = x_28; goto block_16; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - x_32 = x_28; +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; uint8_t x_37; uint8_t x_57; +x_30 = lean_ctor_get(x_27, 0); +lean_inc(x_30); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + x_31 = x_27; } else { - lean_dec_ref(x_28); - x_32 = lean_box(0); + lean_dec_ref(x_27); + x_31 = lean_box(0); } -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) -{ -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_55; -x_34 = lean_ctor_get(x_31, 1); -x_35 = lean_ctor_get(x_31, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_ctor_get(x_34, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_34, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_39 = x_34; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_36 = x_32; } else { - lean_dec_ref(x_34); - x_39 = lean_box(0); + lean_dec_ref(x_32); + x_36 = lean_box(0); } -x_55 = l_Lean_Expr_isFVar(x_38); -if (x_55 == 0) +x_57 = l_Lean_Expr_isFVar(x_35); +if (x_57 == 0) { -lean_object* x_56; -lean_free_object(x_31); -lean_free_object(x_21); -x_56 = lean_box(0); -x_40 = x_56; -goto block_54; +uint8_t x_58; +x_58 = 0; +x_37 = x_58; +goto block_56; } else { -lean_object* x_57; uint8_t x_58; -x_57 = l_Lean_Expr_fvarId_x21(x_38); -x_58 = lean_name_eq(x_57, x_1); -lean_dec(x_57); -if (x_58 == 0) +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_Expr_fvarId_x21(x_35); +x_60 = lean_name_eq(x_59, x_1); +lean_dec(x_59); +if (x_60 == 0) { -lean_object* x_59; -lean_free_object(x_31); -lean_free_object(x_21); -x_59 = lean_box(0); -x_40 = x_59; -goto block_54; +uint8_t x_61; +x_61 = 0; +x_37 = x_61; +goto block_56; } else { -lean_object* x_60; uint8_t x_61; -lean_inc(x_37); +lean_object* x_62; uint8_t x_63; +lean_inc(x_34); lean_inc(x_2); -x_60 = l_Lean_MetavarContext_exprDependsOn(x_2, x_37, x_1); -x_61 = lean_unbox(x_60); -lean_dec(x_60); -if (x_61 == 0) +x_62 = l_Lean_MetavarContext_exprDependsOn(x_2, x_34, x_1); +x_63 = lean_unbox(x_62); +lean_dec(x_62); +if (x_63 == 0) { -lean_object* x_62; uint8_t x_63; lean_object* x_64; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_32); -x_62 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_63 = 1; -x_64 = lean_box(x_63); -lean_ctor_set(x_31, 1, x_64); -lean_ctor_set(x_31, 0, x_62); -lean_ctor_set(x_21, 0, x_31); -x_10 = x_21; -x_11 = x_36; +x_37 = x_60; +goto block_56; +} +else +{ +uint8_t x_64; +x_64 = 0; +x_37 = x_64; +goto block_56; +} +} +} +block_56: +{ +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Expr_isFVar(x_34); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_23); +x_39 = lean_box(0); +x_10 = x_39; +x_11 = x_33; goto block_16; } else { -lean_object* x_65; -lean_free_object(x_31); -lean_free_object(x_21); -x_65 = lean_box(0); -x_40 = x_65; -goto block_54; -} -} -} -block_54: -{ -uint8_t x_41; +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_Expr_fvarId_x21(x_34); +lean_dec(x_34); +x_41 = lean_name_eq(x_40, x_1); lean_dec(x_40); -x_41 = l_Lean_Expr_isFVar(x_37); if (x_41 == 0) { lean_object* x_42; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_32); -lean_dec(x_24); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_31); +lean_dec(x_23); x_42 = lean_box(0); x_10 = x_42; -x_11 = x_36; +x_11 = x_33; goto block_16; } else { lean_object* x_43; uint8_t x_44; -x_43 = l_Lean_Expr_fvarId_x21(x_37); -lean_dec(x_37); -x_44 = lean_name_eq(x_43, x_1); +lean_inc(x_2); +x_43 = l_Lean_MetavarContext_exprDependsOn(x_2, x_35, x_1); +x_44 = lean_unbox(x_43); lean_dec(x_43); if (x_44 == 0) { -lean_object* x_45; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_32); -lean_dec(x_24); -x_45 = lean_box(0); -x_10 = x_45; -x_11 = x_36; -goto block_16; -} -else -{ -lean_object* x_46; uint8_t x_47; -lean_inc(x_2); -x_46 = l_Lean_MetavarContext_exprDependsOn(x_2, x_38, x_1); -x_47 = lean_unbox(x_46); -lean_dec(x_46); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_49 = 0; -x_50 = lean_box(x_49); -if (lean_is_scalar(x_39)) { - x_51 = lean_alloc_ctor(0, 2, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = l_Lean_LocalDecl_fvarId(x_23); +lean_dec(x_23); +x_46 = 0; +x_47 = lean_box(x_46); +if (lean_is_scalar(x_36)) { + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_51 = x_39; + x_48 = x_36; } -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_50); -if (lean_is_scalar(x_32)) { - x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_47); +if (lean_is_scalar(x_31)) { + x_49 = lean_alloc_ctor(1, 1, 0); } else { - x_52 = x_32; + x_49 = x_31; } -lean_ctor_set(x_52, 0, x_51); -x_10 = x_52; -x_11 = x_36; +lean_ctor_set(x_49, 0, x_48); +x_10 = x_49; +x_11 = x_33; goto block_16; } else { -lean_object* x_53; -lean_dec(x_39); -lean_dec(x_32); -lean_dec(x_24); -x_53 = lean_box(0); -x_10 = x_53; -x_11 = x_36; -goto block_16; -} -} -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_86; -x_66 = lean_ctor_get(x_31, 1); -lean_inc(x_66); +lean_object* x_50; +lean_dec(x_36); lean_dec(x_31); -x_67 = lean_ctor_get(x_27, 1); +lean_dec(x_23); +x_50 = lean_box(0); +x_10 = x_50; +x_11 = x_33; +goto block_16; +} +} +} +} +else +{ +lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_35); +lean_dec(x_34); +x_51 = l_Lean_LocalDecl_fvarId(x_23); +lean_dec(x_23); +x_52 = 1; +x_53 = lean_box(x_52); +if (lean_is_scalar(x_36)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_36; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_53); +if (lean_is_scalar(x_31)) { + x_55 = lean_alloc_ctor(1, 1, 0); +} else { + x_55 = x_31; +} +lean_ctor_set(x_55, 0, x_54); +x_10 = x_55; +x_11 = x_33; +goto block_16; +} +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_23); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_26); +if (x_65 == 0) +{ +return x_26; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_26, 0); +x_67 = lean_ctor_get(x_26, 1); lean_inc(x_67); -lean_dec(x_27); -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_70 = x_66; -} else { - lean_dec_ref(x_66); - x_70 = lean_box(0); -} -x_86 = l_Lean_Expr_isFVar(x_69); -if (x_86 == 0) -{ -lean_object* x_87; -lean_free_object(x_21); -x_87 = lean_box(0); -x_71 = x_87; -goto block_85; -} -else -{ -lean_object* x_88; uint8_t x_89; -x_88 = l_Lean_Expr_fvarId_x21(x_69); -x_89 = lean_name_eq(x_88, x_1); -lean_dec(x_88); -if (x_89 == 0) -{ -lean_object* x_90; -lean_free_object(x_21); -x_90 = lean_box(0); -x_71 = x_90; -goto block_85; -} -else -{ -lean_object* x_91; uint8_t x_92; -lean_inc(x_68); -lean_inc(x_2); -x_91 = l_Lean_MetavarContext_exprDependsOn(x_2, x_68, x_1); -x_92 = lean_unbox(x_91); -lean_dec(x_91); -if (x_92 == 0) -{ -lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_32); -x_93 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_94 = 1; -x_95 = lean_box(x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_96, 1, x_95); -lean_ctor_set(x_21, 0, x_96); -x_10 = x_21; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_97; -lean_free_object(x_21); -x_97 = lean_box(0); -x_71 = x_97; -goto block_85; -} -} -} -block_85: -{ -uint8_t x_72; -lean_dec(x_71); -x_72 = l_Lean_Expr_isFVar(x_68); -if (x_72 == 0) -{ -lean_object* x_73; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_32); -lean_dec(x_24); -x_73 = lean_box(0); -x_10 = x_73; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_74; uint8_t x_75; -x_74 = l_Lean_Expr_fvarId_x21(x_68); -lean_dec(x_68); -x_75 = lean_name_eq(x_74, x_1); -lean_dec(x_74); -if (x_75 == 0) -{ -lean_object* x_76; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_32); -lean_dec(x_24); -x_76 = lean_box(0); -x_10 = x_76; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_77; uint8_t x_78; -lean_inc(x_2); -x_77 = l_Lean_MetavarContext_exprDependsOn(x_2, x_69, x_1); -x_78 = lean_unbox(x_77); -lean_dec(x_77); -if (x_78 == 0) -{ -lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_80 = 0; -x_81 = lean_box(x_80); -if (lean_is_scalar(x_70)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_70; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_81); -if (lean_is_scalar(x_32)) { - x_83 = lean_alloc_ctor(1, 1, 0); -} else { - x_83 = x_32; -} -lean_ctor_set(x_83, 0, x_82); -x_10 = x_83; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_84; -lean_dec(x_70); -lean_dec(x_32); -lean_dec(x_24); -x_84 = lean_box(0); -x_10 = x_84; -x_11 = x_67; -goto block_16; -} -} -} -} -} -} -} -else -{ -uint8_t x_98; -lean_free_object(x_21); -lean_dec(x_24); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_98 = !lean_is_exclusive(x_27); -if (x_98 == 0) -{ -return x_27; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_27, 0); -x_100 = lean_ctor_get(x_27, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_27); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_inc(x_66); +lean_dec(x_26); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } else { -lean_object* x_102; -lean_free_object(x_21); -lean_dec(x_24); -x_102 = lean_box(0); -x_10 = x_102; +lean_object* x_69; +lean_dec(x_23); +x_69 = lean_box(0); +x_10 = x_69; x_11 = x_9; goto block_16; } } -else -{ -lean_object* x_103; uint8_t x_104; -x_103 = lean_ctor_get(x_21, 0); -lean_inc(x_103); -lean_dec(x_21); -x_104 = l_Lean_LocalDecl_isAuxDecl(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = l_Lean_LocalDecl_type(x_103); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_106 = l_Lean_Meta_matchEq_x3f(x_105, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_103); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_109 = lean_box(0); -x_10 = x_109; -x_11 = x_108; -goto block_16; -} -else -{ -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; lean_object* x_118; uint8_t x_133; -x_110 = lean_ctor_get(x_107, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - x_111 = x_107; -} else { - lean_dec_ref(x_107); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_113 = x_110; -} else { - lean_dec_ref(x_110); - x_113 = lean_box(0); -} -x_114 = lean_ctor_get(x_106, 1); -lean_inc(x_114); -lean_dec(x_106); -x_115 = lean_ctor_get(x_112, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_112, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_117 = x_112; -} else { - lean_dec_ref(x_112); - x_117 = lean_box(0); -} -x_133 = l_Lean_Expr_isFVar(x_116); -if (x_133 == 0) -{ -lean_object* x_134; -lean_dec(x_113); -x_134 = lean_box(0); -x_118 = x_134; -goto block_132; -} -else -{ -lean_object* x_135; uint8_t x_136; -x_135 = l_Lean_Expr_fvarId_x21(x_116); -x_136 = lean_name_eq(x_135, x_1); -lean_dec(x_135); -if (x_136 == 0) -{ -lean_object* x_137; -lean_dec(x_113); -x_137 = lean_box(0); -x_118 = x_137; -goto block_132; -} -else -{ -lean_object* x_138; uint8_t x_139; -lean_inc(x_115); -lean_inc(x_2); -x_138 = l_Lean_MetavarContext_exprDependsOn(x_2, x_115, x_1); -x_139 = lean_unbox(x_138); -lean_dec(x_138); -if (x_139 == 0) -{ -lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_115); -lean_dec(x_111); -x_140 = l_Lean_LocalDecl_fvarId(x_103); -lean_dec(x_103); -x_141 = 1; -x_142 = lean_box(x_141); -if (lean_is_scalar(x_113)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_113; -} -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_142); -x_144 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_144, 0, x_143); -x_10 = x_144; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_145; -lean_dec(x_113); -x_145 = lean_box(0); -x_118 = x_145; -goto block_132; -} -} -} -block_132: -{ -uint8_t x_119; -lean_dec(x_118); -x_119 = l_Lean_Expr_isFVar(x_115); -if (x_119 == 0) -{ -lean_object* x_120; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_115); -lean_dec(x_111); -lean_dec(x_103); -x_120 = lean_box(0); -x_10 = x_120; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_121; uint8_t x_122; -x_121 = l_Lean_Expr_fvarId_x21(x_115); -lean_dec(x_115); -x_122 = lean_name_eq(x_121, x_1); -lean_dec(x_121); -if (x_122 == 0) -{ -lean_object* x_123; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_111); -lean_dec(x_103); -x_123 = lean_box(0); -x_10 = x_123; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_124; uint8_t x_125; -lean_inc(x_2); -x_124 = l_Lean_MetavarContext_exprDependsOn(x_2, x_116, x_1); -x_125 = lean_unbox(x_124); -lean_dec(x_124); -if (x_125 == 0) -{ -lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_126 = l_Lean_LocalDecl_fvarId(x_103); -lean_dec(x_103); -x_127 = 0; -x_128 = lean_box(x_127); -if (lean_is_scalar(x_117)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_117; -} -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_128); -if (lean_is_scalar(x_111)) { - x_130 = lean_alloc_ctor(1, 1, 0); -} else { - x_130 = x_111; -} -lean_ctor_set(x_130, 0, x_129); -x_10 = x_130; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_131; -lean_dec(x_117); -lean_dec(x_111); -lean_dec(x_103); -x_131 = lean_box(0); -x_10 = x_131; -x_11 = x_114; -goto block_16; -} -} -} -} -} -} -else -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_103); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_146 = lean_ctor_get(x_106, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_106, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_148 = x_106; -} else { - lean_dec_ref(x_106); - x_148 = lean_box(0); -} -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); -} else { - x_149 = x_148; -} -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -} -else -{ -lean_object* x_150; -lean_dec(x_103); -x_150 = lean_box(0); -x_10 = x_150; -x_11 = x_9; -goto block_16; -} -} -} } block_16: { @@ -4363,689 +4795,262 @@ goto block_16; } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_LocalDecl_isAuxDecl(x_23); +if (x_24 == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_21, 0); -x_25 = l_Lean_LocalDecl_isAuxDecl(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = l_Lean_LocalDecl_type(x_24); +lean_object* x_25; lean_object* x_26; +x_25 = l_Lean_LocalDecl_type(x_23); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_27 = l_Lean_Meta_matchEq_x3f(x_26, x_5, x_6, x_7, x_8, x_9); +x_26 = l_Lean_Meta_matchEq_x3f(x_25, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_28; lean_object* x_29; +lean_dec(x_23); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_free_object(x_21); -lean_dec(x_24); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_box(0); -x_10 = x_30; -x_11 = x_29; +lean_dec(x_26); +x_29 = lean_box(0); +x_10 = x_29; +x_11 = x_28; goto block_16; } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - x_32 = x_28; +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; uint8_t x_37; uint8_t x_57; +x_30 = lean_ctor_get(x_27, 0); +lean_inc(x_30); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + x_31 = x_27; } else { - lean_dec_ref(x_28); - x_32 = lean_box(0); + lean_dec_ref(x_27); + x_31 = lean_box(0); } -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) -{ -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_55; -x_34 = lean_ctor_get(x_31, 1); -x_35 = lean_ctor_get(x_31, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_27, 1); -lean_inc(x_36); -lean_dec(x_27); -x_37 = lean_ctor_get(x_34, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_34, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_39 = x_34; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_36 = x_32; } else { - lean_dec_ref(x_34); - x_39 = lean_box(0); + lean_dec_ref(x_32); + x_36 = lean_box(0); } -x_55 = l_Lean_Expr_isFVar(x_38); -if (x_55 == 0) +x_57 = l_Lean_Expr_isFVar(x_35); +if (x_57 == 0) { -lean_object* x_56; -lean_free_object(x_31); -lean_free_object(x_21); -x_56 = lean_box(0); -x_40 = x_56; -goto block_54; +uint8_t x_58; +x_58 = 0; +x_37 = x_58; +goto block_56; } else { -lean_object* x_57; uint8_t x_58; -x_57 = l_Lean_Expr_fvarId_x21(x_38); -x_58 = lean_name_eq(x_57, x_1); -lean_dec(x_57); -if (x_58 == 0) +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_Expr_fvarId_x21(x_35); +x_60 = lean_name_eq(x_59, x_1); +lean_dec(x_59); +if (x_60 == 0) { -lean_object* x_59; -lean_free_object(x_31); -lean_free_object(x_21); -x_59 = lean_box(0); -x_40 = x_59; -goto block_54; +uint8_t x_61; +x_61 = 0; +x_37 = x_61; +goto block_56; } else { -lean_object* x_60; uint8_t x_61; -lean_inc(x_37); +lean_object* x_62; uint8_t x_63; +lean_inc(x_34); lean_inc(x_2); -x_60 = l_Lean_MetavarContext_exprDependsOn(x_2, x_37, x_1); -x_61 = lean_unbox(x_60); -lean_dec(x_60); -if (x_61 == 0) +x_62 = l_Lean_MetavarContext_exprDependsOn(x_2, x_34, x_1); +x_63 = lean_unbox(x_62); +lean_dec(x_62); +if (x_63 == 0) { -lean_object* x_62; uint8_t x_63; lean_object* x_64; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_32); -x_62 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_63 = 1; -x_64 = lean_box(x_63); -lean_ctor_set(x_31, 1, x_64); -lean_ctor_set(x_31, 0, x_62); -lean_ctor_set(x_21, 0, x_31); -x_10 = x_21; -x_11 = x_36; +x_37 = x_60; +goto block_56; +} +else +{ +uint8_t x_64; +x_64 = 0; +x_37 = x_64; +goto block_56; +} +} +} +block_56: +{ +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Expr_isFVar(x_34); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_23); +x_39 = lean_box(0); +x_10 = x_39; +x_11 = x_33; goto block_16; } else { -lean_object* x_65; -lean_free_object(x_31); -lean_free_object(x_21); -x_65 = lean_box(0); -x_40 = x_65; -goto block_54; -} -} -} -block_54: -{ -uint8_t x_41; +lean_object* x_40; uint8_t x_41; +x_40 = l_Lean_Expr_fvarId_x21(x_34); +lean_dec(x_34); +x_41 = lean_name_eq(x_40, x_1); lean_dec(x_40); -x_41 = l_Lean_Expr_isFVar(x_37); if (x_41 == 0) { lean_object* x_42; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_32); -lean_dec(x_24); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_31); +lean_dec(x_23); x_42 = lean_box(0); x_10 = x_42; -x_11 = x_36; +x_11 = x_33; goto block_16; } else { lean_object* x_43; uint8_t x_44; -x_43 = l_Lean_Expr_fvarId_x21(x_37); -lean_dec(x_37); -x_44 = lean_name_eq(x_43, x_1); +lean_inc(x_2); +x_43 = l_Lean_MetavarContext_exprDependsOn(x_2, x_35, x_1); +x_44 = lean_unbox(x_43); lean_dec(x_43); if (x_44 == 0) { -lean_object* x_45; -lean_dec(x_39); -lean_dec(x_38); -lean_dec(x_32); -lean_dec(x_24); -x_45 = lean_box(0); -x_10 = x_45; -x_11 = x_36; -goto block_16; -} -else -{ -lean_object* x_46; uint8_t x_47; -lean_inc(x_2); -x_46 = l_Lean_MetavarContext_exprDependsOn(x_2, x_38, x_1); -x_47 = lean_unbox(x_46); -lean_dec(x_46); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_48 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_49 = 0; -x_50 = lean_box(x_49); -if (lean_is_scalar(x_39)) { - x_51 = lean_alloc_ctor(0, 2, 0); +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = l_Lean_LocalDecl_fvarId(x_23); +lean_dec(x_23); +x_46 = 0; +x_47 = lean_box(x_46); +if (lean_is_scalar(x_36)) { + x_48 = lean_alloc_ctor(0, 2, 0); } else { - x_51 = x_39; + x_48 = x_36; } -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_50); -if (lean_is_scalar(x_32)) { - x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_47); +if (lean_is_scalar(x_31)) { + x_49 = lean_alloc_ctor(1, 1, 0); } else { - x_52 = x_32; + x_49 = x_31; } -lean_ctor_set(x_52, 0, x_51); -x_10 = x_52; -x_11 = x_36; +lean_ctor_set(x_49, 0, x_48); +x_10 = x_49; +x_11 = x_33; goto block_16; } else { -lean_object* x_53; -lean_dec(x_39); -lean_dec(x_32); -lean_dec(x_24); -x_53 = lean_box(0); -x_10 = x_53; -x_11 = x_36; -goto block_16; -} -} -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_86; -x_66 = lean_ctor_get(x_31, 1); -lean_inc(x_66); +lean_object* x_50; +lean_dec(x_36); lean_dec(x_31); -x_67 = lean_ctor_get(x_27, 1); +lean_dec(x_23); +x_50 = lean_box(0); +x_10 = x_50; +x_11 = x_33; +goto block_16; +} +} +} +} +else +{ +lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_35); +lean_dec(x_34); +x_51 = l_Lean_LocalDecl_fvarId(x_23); +lean_dec(x_23); +x_52 = 1; +x_53 = lean_box(x_52); +if (lean_is_scalar(x_36)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_36; +} +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_53); +if (lean_is_scalar(x_31)) { + x_55 = lean_alloc_ctor(1, 1, 0); +} else { + x_55 = x_31; +} +lean_ctor_set(x_55, 0, x_54); +x_10 = x_55; +x_11 = x_33; +goto block_16; +} +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_23); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_26); +if (x_65 == 0) +{ +return x_26; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_26, 0); +x_67 = lean_ctor_get(x_26, 1); lean_inc(x_67); -lean_dec(x_27); -x_68 = lean_ctor_get(x_66, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_70 = x_66; -} else { - lean_dec_ref(x_66); - x_70 = lean_box(0); -} -x_86 = l_Lean_Expr_isFVar(x_69); -if (x_86 == 0) -{ -lean_object* x_87; -lean_free_object(x_21); -x_87 = lean_box(0); -x_71 = x_87; -goto block_85; -} -else -{ -lean_object* x_88; uint8_t x_89; -x_88 = l_Lean_Expr_fvarId_x21(x_69); -x_89 = lean_name_eq(x_88, x_1); -lean_dec(x_88); -if (x_89 == 0) -{ -lean_object* x_90; -lean_free_object(x_21); -x_90 = lean_box(0); -x_71 = x_90; -goto block_85; -} -else -{ -lean_object* x_91; uint8_t x_92; -lean_inc(x_68); -lean_inc(x_2); -x_91 = l_Lean_MetavarContext_exprDependsOn(x_2, x_68, x_1); -x_92 = lean_unbox(x_91); -lean_dec(x_91); -if (x_92 == 0) -{ -lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_32); -x_93 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_94 = 1; -x_95 = lean_box(x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_96, 1, x_95); -lean_ctor_set(x_21, 0, x_96); -x_10 = x_21; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_97; -lean_free_object(x_21); -x_97 = lean_box(0); -x_71 = x_97; -goto block_85; -} -} -} -block_85: -{ -uint8_t x_72; -lean_dec(x_71); -x_72 = l_Lean_Expr_isFVar(x_68); -if (x_72 == 0) -{ -lean_object* x_73; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_32); -lean_dec(x_24); -x_73 = lean_box(0); -x_10 = x_73; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_74; uint8_t x_75; -x_74 = l_Lean_Expr_fvarId_x21(x_68); -lean_dec(x_68); -x_75 = lean_name_eq(x_74, x_1); -lean_dec(x_74); -if (x_75 == 0) -{ -lean_object* x_76; -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_32); -lean_dec(x_24); -x_76 = lean_box(0); -x_10 = x_76; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_77; uint8_t x_78; -lean_inc(x_2); -x_77 = l_Lean_MetavarContext_exprDependsOn(x_2, x_69, x_1); -x_78 = lean_unbox(x_77); -lean_dec(x_77); -if (x_78 == 0) -{ -lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = l_Lean_LocalDecl_fvarId(x_24); -lean_dec(x_24); -x_80 = 0; -x_81 = lean_box(x_80); -if (lean_is_scalar(x_70)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_70; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_81); -if (lean_is_scalar(x_32)) { - x_83 = lean_alloc_ctor(1, 1, 0); -} else { - x_83 = x_32; -} -lean_ctor_set(x_83, 0, x_82); -x_10 = x_83; -x_11 = x_67; -goto block_16; -} -else -{ -lean_object* x_84; -lean_dec(x_70); -lean_dec(x_32); -lean_dec(x_24); -x_84 = lean_box(0); -x_10 = x_84; -x_11 = x_67; -goto block_16; -} -} -} -} -} -} -} -else -{ -uint8_t x_98; -lean_free_object(x_21); -lean_dec(x_24); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_98 = !lean_is_exclusive(x_27); -if (x_98 == 0) -{ -return x_27; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_27, 0); -x_100 = lean_ctor_get(x_27, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_27); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_inc(x_66); +lean_dec(x_26); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } else { -lean_object* x_102; -lean_free_object(x_21); -lean_dec(x_24); -x_102 = lean_box(0); -x_10 = x_102; +lean_object* x_69; +lean_dec(x_23); +x_69 = lean_box(0); +x_10 = x_69; x_11 = x_9; goto block_16; } } -else -{ -lean_object* x_103; uint8_t x_104; -x_103 = lean_ctor_get(x_21, 0); -lean_inc(x_103); -lean_dec(x_21); -x_104 = l_Lean_LocalDecl_isAuxDecl(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = l_Lean_LocalDecl_type(x_103); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_106 = l_Lean_Meta_matchEq_x3f(x_105, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_103); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -x_109 = lean_box(0); -x_10 = x_109; -x_11 = x_108; -goto block_16; -} -else -{ -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; lean_object* x_118; uint8_t x_133; -x_110 = lean_ctor_get(x_107, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - x_111 = x_107; -} else { - lean_dec_ref(x_107); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_113 = x_110; -} else { - lean_dec_ref(x_110); - x_113 = lean_box(0); -} -x_114 = lean_ctor_get(x_106, 1); -lean_inc(x_114); -lean_dec(x_106); -x_115 = lean_ctor_get(x_112, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_112, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_117 = x_112; -} else { - lean_dec_ref(x_112); - x_117 = lean_box(0); -} -x_133 = l_Lean_Expr_isFVar(x_116); -if (x_133 == 0) -{ -lean_object* x_134; -lean_dec(x_113); -x_134 = lean_box(0); -x_118 = x_134; -goto block_132; -} -else -{ -lean_object* x_135; uint8_t x_136; -x_135 = l_Lean_Expr_fvarId_x21(x_116); -x_136 = lean_name_eq(x_135, x_1); -lean_dec(x_135); -if (x_136 == 0) -{ -lean_object* x_137; -lean_dec(x_113); -x_137 = lean_box(0); -x_118 = x_137; -goto block_132; -} -else -{ -lean_object* x_138; uint8_t x_139; -lean_inc(x_115); -lean_inc(x_2); -x_138 = l_Lean_MetavarContext_exprDependsOn(x_2, x_115, x_1); -x_139 = lean_unbox(x_138); -lean_dec(x_138); -if (x_139 == 0) -{ -lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_115); -lean_dec(x_111); -x_140 = l_Lean_LocalDecl_fvarId(x_103); -lean_dec(x_103); -x_141 = 1; -x_142 = lean_box(x_141); -if (lean_is_scalar(x_113)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_113; -} -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_142); -x_144 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_144, 0, x_143); -x_10 = x_144; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_145; -lean_dec(x_113); -x_145 = lean_box(0); -x_118 = x_145; -goto block_132; -} -} -} -block_132: -{ -uint8_t x_119; -lean_dec(x_118); -x_119 = l_Lean_Expr_isFVar(x_115); -if (x_119 == 0) -{ -lean_object* x_120; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_115); -lean_dec(x_111); -lean_dec(x_103); -x_120 = lean_box(0); -x_10 = x_120; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_121; uint8_t x_122; -x_121 = l_Lean_Expr_fvarId_x21(x_115); -lean_dec(x_115); -x_122 = lean_name_eq(x_121, x_1); -lean_dec(x_121); -if (x_122 == 0) -{ -lean_object* x_123; -lean_dec(x_117); -lean_dec(x_116); -lean_dec(x_111); -lean_dec(x_103); -x_123 = lean_box(0); -x_10 = x_123; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_124; uint8_t x_125; -lean_inc(x_2); -x_124 = l_Lean_MetavarContext_exprDependsOn(x_2, x_116, x_1); -x_125 = lean_unbox(x_124); -lean_dec(x_124); -if (x_125 == 0) -{ -lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_126 = l_Lean_LocalDecl_fvarId(x_103); -lean_dec(x_103); -x_127 = 0; -x_128 = lean_box(x_127); -if (lean_is_scalar(x_117)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_117; -} -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_128); -if (lean_is_scalar(x_111)) { - x_130 = lean_alloc_ctor(1, 1, 0); -} else { - x_130 = x_111; -} -lean_ctor_set(x_130, 0, x_129); -x_10 = x_130; -x_11 = x_114; -goto block_16; -} -else -{ -lean_object* x_131; -lean_dec(x_117); -lean_dec(x_111); -lean_dec(x_103); -x_131 = lean_box(0); -x_10 = x_131; -x_11 = x_114; -goto block_16; -} -} -} -} -} -} -else -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_103); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_146 = lean_ctor_get(x_106, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_106, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_148 = x_106; -} else { - lean_dec_ref(x_106); - x_148 = lean_box(0); -} -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); -} else { - x_149 = x_148; -} -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -} -else -{ -lean_object* x_150; -lean_dec(x_103); -x_150 = lean_box(0); -x_10 = x_150; -x_11 = x_9; -goto block_16; -} -} -} } block_16: { @@ -5183,46 +5188,24 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_subst___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_subst___lambda__1___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_subst___lambda__1___closed__2; -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_subst___lambda__1___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("invalid equality proof, it is not of the form (x = t) or (t = x)"); return x_1; } } -static lean_object* _init_l_Lean_Meta_subst___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Meta_subst___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_subst___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_subst___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_subst___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_subst___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -5280,15 +5263,15 @@ lean_dec(x_18); x_21 = l_Lean_mkFVar(x_1); x_22 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_22, 0, x_21); -x_23 = l_Lean_Meta_subst___lambda__1___closed__3; +x_23 = l_Lean_Meta_subst___lambda__1___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_throwUnknownConstant___rarg___closed__5; +x_25 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__5; 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_Meta_substCore___lambda__5___closed__2; +x_27 = l_Lean_Meta_substCore___lambda__13___closed__2; x_28 = lean_box(0); x_29 = l_Lean_Meta_throwTacticEx___rarg(x_27, x_2, x_26, x_28, x_4, x_5, x_6, x_7, x_20); lean_dec(x_7); @@ -5422,7 +5405,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_58 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_57, x_4, x_5, x_6, x_7, x_55); +x_58 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_57, x_4, x_5, x_6, x_7, x_55); if (lean_obj_tag(x_58) == 0) { lean_object* x_59; lean_object* x_60; uint8_t x_61; @@ -5440,7 +5423,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_62 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_56, x_4, x_5, x_6, x_7, x_60); +x_62 = l_Lean_Meta_whnf___at_Lean_Meta_introNCore___spec__4(x_56, x_4, x_5, x_6, x_7, x_60); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; lean_object* x_64; uint8_t x_65; @@ -5453,88 +5436,92 @@ x_65 = l_Lean_Expr_isFVar(x_63); lean_dec(x_63); if (x_65 == 0) { -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_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_dec(x_1); x_66 = l_Lean_indentExpr(x_9); -x_67 = l_Lean_Meta_subst___lambda__1___closed__6; +x_67 = l_Lean_Meta_subst___lambda__1___closed__4; 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 = l_Lean_Meta_substCore___lambda__5___closed__2; -x_70 = lean_box(0); -x_71 = l_Lean_Meta_throwTacticEx___rarg(x_69, x_2, x_68, x_70, x_4, x_5, x_6, x_7, x_64); +x_69 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_70 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_Meta_substCore___lambda__13___closed__2; +x_72 = lean_box(0); +x_73 = l_Lean_Meta_throwTacticEx___rarg(x_71, x_2, x_70, x_72, x_4, x_5, x_6, x_7, x_64); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_71; +return x_73; } else { -lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; +lean_object* x_74; uint8_t x_75; uint8_t x_76; lean_object* x_77; lean_dec(x_9); -x_72 = lean_box(0); -x_73 = 0; -x_74 = 1; -x_75 = l_Lean_Meta_substCore(x_2, x_1, x_73, x_72, x_74, x_4, x_5, x_6, x_7, x_64); -if (lean_obj_tag(x_75) == 0) +x_74 = lean_box(0); +x_75 = 0; +x_76 = 1; +x_77 = l_Lean_Meta_substCore(x_2, x_1, x_75, x_74, x_76, x_4, x_5, x_6, x_7, x_64); +if (lean_obj_tag(x_77) == 0) { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +uint8_t x_78; +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -lean_dec(x_77); -lean_ctor_set(x_75, 0, x_78); -return x_75; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_75, 0); -x_80 = lean_ctor_get(x_75, 1); +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_79, 1); lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_75); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); lean_dec(x_79); -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; +lean_ctor_set(x_77, 0, x_80); +return x_77; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_77, 0); +x_82 = lean_ctor_get(x_77, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_77); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } else { -uint8_t x_83; -x_83 = !lean_is_exclusive(x_75); -if (x_83 == 0) +uint8_t x_85; +x_85 = !lean_is_exclusive(x_77); +if (x_85 == 0) { -return x_75; +return x_77; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_75, 0); -x_85 = lean_ctor_get(x_75, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_75); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_77, 0); +x_87 = lean_ctor_get(x_77, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_77); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } } } else { -uint8_t x_87; +uint8_t x_89; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -5542,92 +5529,92 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_87 = !lean_is_exclusive(x_62); -if (x_87 == 0) +x_89 = !lean_is_exclusive(x_62); +if (x_89 == 0) { return x_62; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_62, 0); -x_89 = lean_ctor_get(x_62, 1); -lean_inc(x_89); -lean_inc(x_88); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_62, 0); +x_91 = lean_ctor_get(x_62, 1); +lean_inc(x_91); +lean_inc(x_90); lean_dec(x_62); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } else { -lean_object* x_91; uint8_t x_92; lean_object* x_93; +lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_dec(x_56); lean_dec(x_9); -x_91 = lean_box(0); -x_92 = 1; -x_93 = l_Lean_Meta_substCore(x_2, x_1, x_92, x_91, x_92, x_4, x_5, x_6, x_7, x_60); -if (lean_obj_tag(x_93) == 0) +x_93 = lean_box(0); +x_94 = 1; +x_95 = l_Lean_Meta_substCore(x_2, x_1, x_94, x_93, x_94, x_4, x_5, x_6, x_7, x_60); +if (lean_obj_tag(x_95) == 0) { -uint8_t x_94; -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_93, 0); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -lean_ctor_set(x_93, 0, x_96); -return x_93; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_93, 0); -x_98 = lean_ctor_get(x_93, 1); +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_93); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); lean_dec(x_97); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -return x_100; +lean_ctor_set(x_95, 0, x_98); +return x_95; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_99 = lean_ctor_get(x_95, 0); +x_100 = lean_ctor_get(x_95, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_95); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } else { -uint8_t x_101; -x_101 = !lean_is_exclusive(x_93); -if (x_101 == 0) +uint8_t x_103; +x_103 = !lean_is_exclusive(x_95); +if (x_103 == 0) { -return x_93; +return x_95; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_93, 0); -x_103 = lean_ctor_get(x_93, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_93); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_95, 0); +x_105 = lean_ctor_get(x_95, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_95); +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; } } } } else { -uint8_t x_105; +uint8_t x_107; lean_dec(x_56); lean_dec(x_9); lean_dec(x_7); @@ -5636,30 +5623,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_58); -if (x_105 == 0) +x_107 = !lean_is_exclusive(x_58); +if (x_107 == 0) { return x_58; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_58, 0); -x_107 = lean_ctor_get(x_58, 1); -lean_inc(x_107); -lean_inc(x_106); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_58, 0); +x_109 = lean_ctor_get(x_58, 1); +lean_inc(x_109); +lean_inc(x_108); lean_dec(x_58); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } } else { -uint8_t x_109; +uint8_t x_111; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -5667,23 +5654,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_10); -if (x_109 == 0) +x_111 = !lean_is_exclusive(x_10); +if (x_111 == 0) { return x_10; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_10, 0); -x_111 = lean_ctor_get(x_10, 1); -lean_inc(x_111); -lean_inc(x_110); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_10, 0); +x_113 = lean_ctor_get(x_10, 1); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_10); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } @@ -5693,7 +5680,7 @@ _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_inc(x_2); -x_8 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1___boxed), 6, 1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalDecl___at_Lean_Meta_substCore___spec__1___boxed), 6, 1); lean_closure_set(x_8, 0, x_2); lean_inc(x_1); x_9 = lean_alloc_closure((void*)(l_Lean_Meta_subst___lambda__1___boxed), 8, 2); @@ -5702,7 +5689,7 @@ lean_closure_set(x_9, 1, x_1); x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +x_11 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7); return x_11; } } @@ -5775,11 +5762,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l___private_Lean_Meta_Tactic_Subst_1__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Meta_Tactic_Subst_0__Lean_Meta_regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_substCore___lambda__5___closed__20; +x_2 = l_Lean_Meta_substCore___lambda__13___closed__18; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -5821,80 +5808,72 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_FVarSubst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_substCore___lambda__1___closed__1 = _init_l_Lean_Meta_substCore___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__1); -l_Lean_Meta_substCore___lambda__1___closed__2 = _init_l_Lean_Meta_substCore___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__2); -l_Lean_Meta_substCore___lambda__1___closed__3 = _init_l_Lean_Meta_substCore___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__3); -l_Lean_Meta_substCore___lambda__1___closed__4 = _init_l_Lean_Meta_substCore___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__4); -l_Lean_Meta_substCore___lambda__1___closed__5 = _init_l_Lean_Meta_substCore___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__5); -l_Lean_Meta_substCore___lambda__1___closed__6 = _init_l_Lean_Meta_substCore___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__6); -l_Lean_Meta_substCore___lambda__1___closed__7 = _init_l_Lean_Meta_substCore___lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__7); -l_Lean_Meta_substCore___lambda__1___closed__8 = _init_l_Lean_Meta_substCore___lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__8); -l_Lean_Meta_substCore___lambda__1___closed__9 = _init_l_Lean_Meta_substCore___lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__1___closed__9); -l_Lean_Meta_substCore___lambda__2___closed__1 = _init_l_Lean_Meta_substCore___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__2___closed__1); -l_Lean_Meta_substCore___lambda__2___closed__2 = _init_l_Lean_Meta_substCore___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__2___closed__2); -l_Lean_Meta_substCore___lambda__2___closed__3 = _init_l_Lean_Meta_substCore___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__2___closed__3); -l_Lean_Meta_substCore___lambda__4___closed__1 = _init_l_Lean_Meta_substCore___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__4___closed__1); -l_Lean_Meta_substCore___lambda__4___closed__2 = _init_l_Lean_Meta_substCore___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__4___closed__2); -l_Lean_Meta_substCore___lambda__5___closed__1 = _init_l_Lean_Meta_substCore___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__1); -l_Lean_Meta_substCore___lambda__5___closed__2 = _init_l_Lean_Meta_substCore___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__2); -l_Lean_Meta_substCore___lambda__5___closed__3 = _init_l_Lean_Meta_substCore___lambda__5___closed__3(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__3); -l_Lean_Meta_substCore___lambda__5___closed__4 = _init_l_Lean_Meta_substCore___lambda__5___closed__4(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__4); -l_Lean_Meta_substCore___lambda__5___closed__5 = _init_l_Lean_Meta_substCore___lambda__5___closed__5(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__5); -l_Lean_Meta_substCore___lambda__5___closed__6 = _init_l_Lean_Meta_substCore___lambda__5___closed__6(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__6); -l_Lean_Meta_substCore___lambda__5___closed__7 = _init_l_Lean_Meta_substCore___lambda__5___closed__7(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__7); -l_Lean_Meta_substCore___lambda__5___closed__8 = _init_l_Lean_Meta_substCore___lambda__5___closed__8(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__8); -l_Lean_Meta_substCore___lambda__5___closed__9 = _init_l_Lean_Meta_substCore___lambda__5___closed__9(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__9); -l_Lean_Meta_substCore___lambda__5___closed__10 = _init_l_Lean_Meta_substCore___lambda__5___closed__10(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__10); -l_Lean_Meta_substCore___lambda__5___closed__11 = _init_l_Lean_Meta_substCore___lambda__5___closed__11(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__11); -l_Lean_Meta_substCore___lambda__5___closed__12 = _init_l_Lean_Meta_substCore___lambda__5___closed__12(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__12); -l_Lean_Meta_substCore___lambda__5___closed__13 = _init_l_Lean_Meta_substCore___lambda__5___closed__13(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__13); -l_Lean_Meta_substCore___lambda__5___closed__14 = _init_l_Lean_Meta_substCore___lambda__5___closed__14(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__14); -l_Lean_Meta_substCore___lambda__5___closed__15 = _init_l_Lean_Meta_substCore___lambda__5___closed__15(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__15); -l_Lean_Meta_substCore___lambda__5___closed__16 = _init_l_Lean_Meta_substCore___lambda__5___closed__16(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__16); -l_Lean_Meta_substCore___lambda__5___closed__17 = _init_l_Lean_Meta_substCore___lambda__5___closed__17(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__17); -l_Lean_Meta_substCore___lambda__5___closed__18 = _init_l_Lean_Meta_substCore___lambda__5___closed__18(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__18); -l_Lean_Meta_substCore___lambda__5___closed__19 = _init_l_Lean_Meta_substCore___lambda__5___closed__19(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__19); -l_Lean_Meta_substCore___lambda__5___closed__20 = _init_l_Lean_Meta_substCore___lambda__5___closed__20(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__20); -l_Lean_Meta_substCore___lambda__5___closed__21 = _init_l_Lean_Meta_substCore___lambda__5___closed__21(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__21); -l_Lean_Meta_substCore___lambda__5___closed__22 = _init_l_Lean_Meta_substCore___lambda__5___closed__22(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__22); -l_Lean_Meta_substCore___lambda__5___closed__23 = _init_l_Lean_Meta_substCore___lambda__5___closed__23(); -lean_mark_persistent(l_Lean_Meta_substCore___lambda__5___closed__23); +l_Lean_Meta_substCore___lambda__11___closed__1 = _init_l_Lean_Meta_substCore___lambda__11___closed__1(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__11___closed__1); +l_Lean_Meta_substCore___lambda__11___closed__2 = _init_l_Lean_Meta_substCore___lambda__11___closed__2(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__11___closed__2); +l_Lean_Meta_substCore___lambda__11___closed__3 = _init_l_Lean_Meta_substCore___lambda__11___closed__3(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__11___closed__3); +l_Lean_Meta_substCore___lambda__11___closed__4 = _init_l_Lean_Meta_substCore___lambda__11___closed__4(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__11___closed__4); +l_Lean_Meta_substCore___lambda__11___closed__5 = _init_l_Lean_Meta_substCore___lambda__11___closed__5(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__11___closed__5); +l_Lean_Meta_substCore___lambda__12___closed__1 = _init_l_Lean_Meta_substCore___lambda__12___closed__1(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__12___closed__1); +l_Lean_Meta_substCore___lambda__12___closed__2 = _init_l_Lean_Meta_substCore___lambda__12___closed__2(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__12___closed__2); +l_Lean_Meta_substCore___lambda__13___closed__1 = _init_l_Lean_Meta_substCore___lambda__13___closed__1(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__1); +l_Lean_Meta_substCore___lambda__13___closed__2 = _init_l_Lean_Meta_substCore___lambda__13___closed__2(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__2); +l_Lean_Meta_substCore___lambda__13___closed__3 = _init_l_Lean_Meta_substCore___lambda__13___closed__3(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__3); +l_Lean_Meta_substCore___lambda__13___closed__4 = _init_l_Lean_Meta_substCore___lambda__13___closed__4(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__4); +l_Lean_Meta_substCore___lambda__13___closed__5 = _init_l_Lean_Meta_substCore___lambda__13___closed__5(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__5); +l_Lean_Meta_substCore___lambda__13___closed__6 = _init_l_Lean_Meta_substCore___lambda__13___closed__6(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__6); +l_Lean_Meta_substCore___lambda__13___closed__7 = _init_l_Lean_Meta_substCore___lambda__13___closed__7(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__7); +l_Lean_Meta_substCore___lambda__13___closed__8 = _init_l_Lean_Meta_substCore___lambda__13___closed__8(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__8); +l_Lean_Meta_substCore___lambda__13___closed__9 = _init_l_Lean_Meta_substCore___lambda__13___closed__9(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__9); +l_Lean_Meta_substCore___lambda__13___closed__10 = _init_l_Lean_Meta_substCore___lambda__13___closed__10(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__10); +l_Lean_Meta_substCore___lambda__13___closed__11 = _init_l_Lean_Meta_substCore___lambda__13___closed__11(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__11); +l_Lean_Meta_substCore___lambda__13___closed__12 = _init_l_Lean_Meta_substCore___lambda__13___closed__12(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__12); +l_Lean_Meta_substCore___lambda__13___closed__13 = _init_l_Lean_Meta_substCore___lambda__13___closed__13(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__13); +l_Lean_Meta_substCore___lambda__13___closed__14 = _init_l_Lean_Meta_substCore___lambda__13___closed__14(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__14); +l_Lean_Meta_substCore___lambda__13___closed__15 = _init_l_Lean_Meta_substCore___lambda__13___closed__15(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__15); +l_Lean_Meta_substCore___lambda__13___closed__16 = _init_l_Lean_Meta_substCore___lambda__13___closed__16(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__16); +l_Lean_Meta_substCore___lambda__13___closed__17 = _init_l_Lean_Meta_substCore___lambda__13___closed__17(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__17); +l_Lean_Meta_substCore___lambda__13___closed__18 = _init_l_Lean_Meta_substCore___lambda__13___closed__18(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__18); +l_Lean_Meta_substCore___lambda__13___closed__19 = _init_l_Lean_Meta_substCore___lambda__13___closed__19(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__19); +l_Lean_Meta_substCore___lambda__13___closed__20 = _init_l_Lean_Meta_substCore___lambda__13___closed__20(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__20); +l_Lean_Meta_substCore___lambda__13___closed__21 = _init_l_Lean_Meta_substCore___lambda__13___closed__21(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__21); +l_Lean_Meta_substCore___lambda__13___closed__22 = _init_l_Lean_Meta_substCore___lambda__13___closed__22(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__22); +l_Lean_Meta_substCore___lambda__13___closed__23 = _init_l_Lean_Meta_substCore___lambda__13___closed__23(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__23); +l_Lean_Meta_substCore___lambda__13___closed__24 = _init_l_Lean_Meta_substCore___lambda__13___closed__24(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__24); +l_Lean_Meta_substCore___lambda__13___closed__25 = _init_l_Lean_Meta_substCore___lambda__13___closed__25(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__25); +l_Lean_Meta_substCore___lambda__13___closed__26 = _init_l_Lean_Meta_substCore___lambda__13___closed__26(); +lean_mark_persistent(l_Lean_Meta_substCore___lambda__13___closed__26); l_Lean_Meta_subst___lambda__1___closed__1 = _init_l_Lean_Meta_subst___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_subst___lambda__1___closed__1); l_Lean_Meta_subst___lambda__1___closed__2 = _init_l_Lean_Meta_subst___lambda__1___closed__2(); @@ -5903,11 +5882,7 @@ l_Lean_Meta_subst___lambda__1___closed__3 = _init_l_Lean_Meta_subst___lambda__1_ lean_mark_persistent(l_Lean_Meta_subst___lambda__1___closed__3); l_Lean_Meta_subst___lambda__1___closed__4 = _init_l_Lean_Meta_subst___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Meta_subst___lambda__1___closed__4); -l_Lean_Meta_subst___lambda__1___closed__5 = _init_l_Lean_Meta_subst___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_subst___lambda__1___closed__5); -l_Lean_Meta_subst___lambda__1___closed__6 = _init_l_Lean_Meta_subst___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_subst___lambda__1___closed__6); -res = l___private_Lean_Meta_Tactic_Subst_1__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Meta_Tactic_Subst_0__Lean_Meta_regTraceClasses(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)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Util.c index 93daf04aa5..fd857aa4db 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Util.c @@ -18,12 +18,15 @@ lean_object* l_Lean_Meta_setMVarTag___boxed(lean_object*, lean_object*, lean_obj lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTagSuffix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__3; -extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Lean_Meta_throwTacticEx(lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___closed__3; +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___closed__1; lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___closed__2; @@ -33,6 +36,7 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_ lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__3; lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__1; +extern lean_object* l_String_splitAux___main___closed__1; lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__2; @@ -40,7 +44,9 @@ lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, le extern lean_object* l___private_Lean_Meta_Basic_1__regTraceClasses___closed__2; lean_object* l_Lean_Meta_admit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Data_Format_10__pushNewline___closed__1; lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; lean_object* l_Lean_ppGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__4; @@ -48,44 +54,139 @@ lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, l lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprMVarAssigned___at___private_Lean_Meta_SynthInstance_11__synthPendingImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSorry___at_Lean_Meta_admit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses(lean_object*); +lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3(lean_object*); +extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; lean_object* l_Lean_Meta_admit___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; lean_object* l_Lean_Meta_admit___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_appendTagSuffix___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_admit___closed__2; +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_admit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2(lean_object*); extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__4; lean_object* l_Lean_Meta_mkSorry___at_Lean_Meta_admit___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkSorry___rarg___lambda__1___closed__2; -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_ppGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; 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_throwTacticEx___rarg___closed__6; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222_(lean_object*); lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___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; uint8_t x_8; +x_7 = lean_st_ref_get(x_3, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_1); +x_12 = lean_metavar_ctx_find_decl(x_11, x_1); +if (lean_obj_tag(x_12) == 0) +{ +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_free_object(x_7); +x_13 = l_Lean_mkMVar(x_1); +x_14 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_18, x_2, x_3, x_4, x_5, x_10); +return x_19; +} +else +{ +lean_object* x_20; +lean_dec(x_1); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +lean_ctor_set(x_7, 0, x_20); +return x_7; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_7, 0); +x_22 = lean_ctor_get(x_7, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_7); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_1); +x_24 = lean_metavar_ctx_find_decl(x_23, x_1); +if (lean_obj_tag(x_24) == 0) +{ +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; +x_25 = l_Lean_mkMVar(x_1); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_Meta_getMVarDecl___rarg___lambda__1___closed__3; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_throwUnknownConstant___rarg___closed__5; +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_Meta_mkWHNFRef___spec__1___rarg(x_30, x_2, x_3, x_4, x_5, x_22); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_1); +x_32 = lean_ctor_get(x_24, 0); +lean_inc(x_32); +lean_dec(x_24); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_22); +return x_33; +} +} +} +} lean_object* l_Lean_Meta_getMVarTag(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_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -141,6 +242,18 @@ return x_18; } } } +lean_object* l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} lean_object* l_Lean_Meta_getMVarTag___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: { @@ -377,36 +490,33 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Meta_throwTacticEx___rarg___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__2; -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_throwTacticEx___rarg___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("' failed, "); return x_1; } } +static lean_object* _init_l_Lean_Meta_throwTacticEx___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_throwTacticEx___rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Data_Format_10__pushNewline___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -414,30 +524,29 @@ static lean_object* _init_l_Lean_Meta_throwTacticEx___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_throwTacticEx___rarg___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_String_splitAux___main___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } lean_object* l_Lean_Meta_throwTacticEx___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, 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; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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; x_10 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_10, 0, x_1); -x_11 = l_Lean_Meta_throwTacticEx___rarg___closed__3; +x_11 = l_Lean_Meta_throwTacticEx___rarg___closed__2; x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +x_13 = l_Lean_Meta_throwTacticEx___rarg___closed__4; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_3); -x_16 = l_Lean_MessageData_ofList___closed__3; +x_16 = l_Lean_Meta_throwTacticEx___rarg___closed__5; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -446,8 +555,12 @@ lean_ctor_set(x_18, 0, x_2); x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_19, x_5, x_6, x_7, x_8, x_9); -return x_20; +x_20 = l_Lean_Meta_throwTacticEx___rarg___closed__6; +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_Meta_mkWHNFRef___spec__1___rarg(x_21, x_5, x_6, x_7, x_8, x_9); +return x_22; } } lean_object* l_Lean_Meta_throwTacticEx(lean_object* x_1) { @@ -471,6 +584,44 @@ lean_dec(x_4); return x_10; } } +lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___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; uint8_t x_8; +x_7 = lean_st_ref_get(x_3, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_metavar_ctx_is_expr_assigned(x_10, x_1); +x_12 = lean_box(x_11); +lean_ctor_set(x_7, 0, x_12); +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_metavar_ctx_is_expr_assigned(x_15, x_1); +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; +} +} +} static lean_object* _init_l_Lean_Meta_checkNotAssigned___closed__1() { _start: { @@ -504,7 +655,7 @@ _start: { lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_inc(x_1); -x_8 = l_Lean_Meta_isExprMVarAssigned___at___private_Lean_Meta_SynthInstance_11__synthPendingImp___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_unbox(x_9); @@ -550,6 +701,18 @@ return x_20; } } } +lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_isExprMVarAssigned___at_Lean_Meta_checkNotAssigned___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} lean_object* l_Lean_Meta_checkNotAssigned___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: { @@ -566,7 +729,7 @@ lean_object* l_Lean_Meta_getMVarType(lean_object* x_1, lean_object* x_2, lean_ob _start: { lean_object* x_7; -x_7 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_isReadOnlyExprMVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Meta_getMVarDecl___at_Lean_Meta_getMVarTag___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -749,7 +912,7 @@ lean_dec(x_2); return x_7; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1() { _start: { lean_object* x_1; @@ -757,21 +920,21 @@ x_1 = lean_mk_string("Tactic"); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Basic_1__regTraceClasses___closed__2; -x_2 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -874,7 +1037,86 @@ return x_34; } } } -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___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* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___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: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_st_ref_take(x_4, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +x_13 = l_Lean_MetavarContext_assignExpr(x_12, x_1, x_2); +lean_ctor_set(x_9, 0, x_13); +x_14 = lean_st_ref_set(x_4, x_9, x_10); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +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; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +x_23 = lean_ctor_get(x_9, 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +x_24 = l_Lean_MetavarContext_assignExpr(x_21, x_1, x_2); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_23); +x_26 = lean_st_ref_set(x_4, x_25, x_10); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +x_29 = lean_box(0); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___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) { _start: { lean_object* x_8; @@ -925,11 +1167,11 @@ return x_16; } } } -lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg), 7, 0); return x_2; } } @@ -954,93 +1196,72 @@ lean_inc(x_4); x_12 = l_Lean_Meta_mkSorry___at_Lean_Meta_admit___spec__1(x_10, x_2, x_4, x_5, x_6, x_7, x_11); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(x_1, x_13, x_4, x_5, x_6, x_7, x_14); +x_15 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_13, x_4, x_5, x_6, x_7, x_14); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -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 -{ -uint8_t x_22; +uint8_t x_16; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_12); -if (x_22 == 0) +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) { return x_12; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); lean_dec(x_12); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } else { -uint8_t x_26; +uint8_t x_20; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_26 = !lean_is_exclusive(x_9); -if (x_26 == 0) +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) { return x_9; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_9, 0); -x_28 = lean_ctor_get(x_9, 1); -lean_inc(x_28); -lean_inc(x_27); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_9); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } @@ -1080,7 +1301,7 @@ lean_closure_set(x_11, 1, x_10); x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); lean_closure_set(x_12, 0, x_9); lean_closure_set(x_12, 1, x_11); -x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__2___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7); +x_13 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__3___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7); return x_13; } } @@ -1094,6 +1315,18 @@ x_9 = l_Lean_Meta_mkSorry___at_Lean_Meta_admit___spec__1(x_1, x_8, x_3, x_4, x_5 return x_9; } } +lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___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: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_assignExprMVar___at_Lean_Meta_admit___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} lean_object* l_Lean_Meta_admit___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: { @@ -1154,11 +1387,11 @@ l_Lean_Meta_checkNotAssigned___closed__2 = _init_l_Lean_Meta_checkNotAssigned___ lean_mark_persistent(l_Lean_Meta_checkNotAssigned___closed__2); l_Lean_Meta_checkNotAssigned___closed__3 = _init_l_Lean_Meta_checkNotAssigned___closed__3(); lean_mark_persistent(l_Lean_Meta_checkNotAssigned___closed__3); -l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1 = _init_l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1); -l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2 = _init_l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__2); -res = l___private_Lean_Meta_Tactic_Util_1__regTraceClasses(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222____closed__2); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_222_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_admit___closed__1 = _init_l_Lean_Meta_admit___closed__1();