From ef04995f0e8e4d96e252eaf3d310cdcb6ca2ebf8 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 15 Oct 2020 14:31:37 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/MutualDef.lean | 426 +- stage0/stdlib/Lean/Elab/Declaration.c | 1080 +--- stage0/stdlib/Lean/Elab/MutualDef.c | 7277 +++++++++++++------------ 3 files changed, 4187 insertions(+), 4596 deletions(-) diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index a7cd859e5f..8374f49178 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.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,9 +10,7 @@ import Lean.Elab.Command import Lean.Elab.DefView import Lean.Elab.PreDefinition -namespace Lean -namespace Elab -open MonadResolveName (getCurrNamespace getOpenDecls) -- HACK for old frontend +namespace Lean.Elab /- DefView after elaborating the header. -/ structure DefViewElabHeader := @@ -33,45 +32,42 @@ namespace Term open Meta private def checkModifiers (m₁ m₂ : Modifiers) : TermElabM Unit := do -unless (m₁.isUnsafe == m₂.isUnsafe) $ - throwError "cannot mix unsafe and safe definitions"; -unless (m₁.isNoncomputable == m₂.isNoncomputable) $ - throwError "cannot mix computable and non-computable definitions"; -unless (m₁.isPartial == m₂.isPartial) $ - throwError "cannot mix partial and non-partial definitions"; -pure () +unless m₁.isUnsafe == m₂.isUnsafe do + throwError "cannot mix unsafe and safe definitions" +unless m₁.isNoncomputable == m₂.isNoncomputable do + throwError "cannot mix computable and non-computable definitions" +unless m₁.isPartial == m₂.isPartial do + throwError "cannot mix partial and non-partial definitions" private def checkKinds (k₁ k₂ : DefKind) : TermElabM Unit := do -unless (k₁.isExample == k₂.isExample) $ - throwError "cannot mix examples and definitions"; -- Reason: we should discard examples -unless (k₁.isTheorem == k₂.isTheorem) $ - throwError "cannot mix theorems and definitions"; -- Reason: we will eventually elaborate theorems in `Task`s. -pure () +unless k₁.isExample == k₂.isExample do + throwError "cannot mix examples and definitions" -- Reason: we should discard examples +unless k₁.isTheorem == k₂.isTheorem do + throwError "cannot mix theorems and definitions" -- Reason: we will eventually elaborate theorems in `Task`s. private def check (prevHeaders : Array DefViewElabHeader) (newHeader : DefViewElabHeader) : TermElabM Unit := do -when (newHeader.kind.isTheorem && newHeader.modifiers.isUnsafe) $ - throwError "'unsafe' theorems are not allowed"; -when (newHeader.kind.isTheorem && newHeader.modifiers.isPartial) $ - throwError "'partial' theorems are not allowed, 'partial' is a code generation directive"; -when (newHeader.kind.isTheorem && newHeader.modifiers.isNoncomputable) $ - throwError "'theorem' subsumes 'noncomputable', code is not generated for theorems"; -when (newHeader.modifiers.isNoncomputable && newHeader.modifiers.isUnsafe) $ - throwError "'noncomputable unsafe' is not allowed"; -when (newHeader.modifiers.isNoncomputable && newHeader.modifiers.isPartial) $ - throwError "'noncomputable partial' is not allowed"; -when (newHeader.modifiers.isPartial && newHeader.modifiers.isUnsafe) $ - throwError "'unsafe' subsumes 'partial'"; +if newHeader.kind.isTheorem && newHeader.modifiers.isUnsafe then + throwError "'unsafe' theorems are not allowed" +if newHeader.kind.isTheorem && newHeader.modifiers.isPartial then + throwError "'partial' theorems are not allowed, 'partial' is a code generation directive" +if newHeader.kind.isTheorem && newHeader.modifiers.isNoncomputable then + throwError "'theorem' subsumes 'noncomputable', code is not generated for theorems" +if newHeader.modifiers.isNoncomputable && newHeader.modifiers.isUnsafe then + throwError "'noncomputable unsafe' is not allowed" +if newHeader.modifiers.isNoncomputable && newHeader.modifiers.isPartial then + throwError "'noncomputable partial' is not allowed" +if newHeader.modifiers.isPartial && newHeader.modifiers.isUnsafe then + throwError "'unsafe' subsumes 'partial'" if h : 0 < prevHeaders.size then - let firstHeader := prevHeaders.get ⟨0, h⟩; + let firstHeader := prevHeaders.get ⟨0, h⟩ + try + unless newHeader.levelNames == firstHeader.levelNames do + throwError "universe parameters mismatch" + checkModifiers newHeader.modifiers firstHeader.modifiers + checkKinds newHeader.kind firstHeader.kind catch - (do - unless (newHeader.levelNames == firstHeader.levelNames) $ - throwError "universe parameters mismatch"; - checkModifiers newHeader.modifiers firstHeader.modifiers; - checkKinds newHeader.kind firstHeader.kind) - (fun ex => match ex with - | Exception.error ref msg => throw (Exception.error ref ("invalid mutually recursive definitions, " ++ msg)) - | _ => throw ex) + | Exception.error ref msg => throw (Exception.error ref msg!"invalid mutually recursive definitions, {msg}") + | ex => throw ex else pure () @@ -80,29 +76,28 @@ registerCustomErrorIfMVar type ref "failed to infer definition type" private def elabFunType (ref : Syntax) (xs : Array Expr) (view : DefView) : TermElabM Expr := do match view.type? with -| some typeStx => do - type ← elabType typeStx; - synthesizeSyntheticMVarsNoPostponing; - type ← instantiateMVars type; - registerFailedToInferDefTypeInfo type typeStx; +| some typeStx => + let type ← elabType typeStx + synthesizeSyntheticMVarsNoPostponing + let type ← instantiateMVars type + registerFailedToInferDefTypeInfo type typeStx mkForallFVars xs type -| none => do - let hole := mkHole ref; - type ← elabType hole; - registerFailedToInferDefTypeInfo type ref; +| none => + let hole := mkHole ref + let type ← elabType hole + registerFailedToInferDefTypeInfo type ref mkForallFVars xs type -private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHeader) := -views.foldlM - (fun (headers : Array DefViewElabHeader) (view : DefView) => withRef view.ref do - currNamespace ← getCurrNamespace; - currLevelNames ← getLevelNames; - ⟨shortDeclName, declName, levelNames⟩ ← expandDeclId currNamespace currLevelNames view.declId view.modifiers; - applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration; +private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHeader) := do +let headers := #[] +for view in views do + let newHeader ← withRef view.ref do + let ⟨shortDeclName, declName, levelNames⟩ ← expandDeclId (← getCurrNamespace) (← getLevelNames) view.declId view.modifiers + applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration withLevelNames levelNames $ elabBinders view.binders.getArgs fun xs => do - let refForElabFunType := view.value; - type ← elabFunType refForElabFunType xs view; - let newHeader : DefViewElabHeader := { + let refForElabFunType := view.value + let type ← elabFunType refForElabFunType xs view + let newHeader := { ref := view.ref, modifiers := view.modifiers, kind := view.kind, @@ -111,22 +106,20 @@ views.foldlM levelNames := levelNames, numParams := xs.size, type := type, - valueStx := view.value - }; - check headers newHeader; - pure $ headers.push newHeader) - #[] + valueStx := view.value : DefViewElabHeader } + check headers newHeader + pure newHeader + headers := headers.push newHeader +pure headers -private partial def withFunLocalDeclsAux {α} (headers : Array DefViewElabHeader) (k : Array Expr → TermElabM α) : Nat → Array Expr → TermElabM α -| i, fvars => - if h : i < headers.size then do - let header := headers.get ⟨i, h⟩; - withLocalDecl header.shortDeclName BinderInfo.auxDecl header.type fun fvar => withFunLocalDeclsAux (i+1) (fvars.push fvar) +private partial def withFunLocalDecls {α} (headers : Array DefViewElabHeader) (k : Array Expr → TermElabM α) : TermElabM α := +let rec loop (i : Nat) (fvars : Array Expr) := do + if h : i < headers.size then + let header := headers.get ⟨i, h⟩ + withLocalDecl header.shortDeclName BinderInfo.auxDecl header.type fun fvar => loop (i+1) (fvars.push fvar) else k fvars - -private def withFunLocalDecls {α} (headers : Array DefViewElabHeader) (k : Array Expr → TermElabM α) : TermElabM α := -withFunLocalDeclsAux headers k 0 #[] +loop 0 #[] /- Recall that @@ -142,71 +135,69 @@ def declVal := declValSimple <|> declValEqns -/ private def declValToTerm (declVal : Syntax) : MacroM Syntax := if declVal.isOfKind `Lean.Parser.Command.declValSimple then - pure $ declVal.getArg 1 + pure declVal[1] else if declVal.isOfKind `Lean.Parser.Command.declValEqns then - expandMatchAltsIntoMatch declVal (declVal.getArg 0) + expandMatchAltsIntoMatch declVal declVal[0] else Macro.throwError declVal "unexpected definition value" private def elabFunValues (headers : Array DefViewElabHeader) : TermElabM (Array Expr) := headers.mapM fun header => withDeclName header.declName $ withLevelNames header.levelNames do - valStx ← liftMacroM $ declValToTerm header.valueStx; + let valStx ← liftMacroM $ declValToTerm header.valueStx forallBoundedTelescope header.type header.numParams fun xs type => do - val ← elabTermEnsuringType valStx type; + let val ← elabTermEnsuringType valStx type mkLambdaFVars xs val private def collectUsed (headers : Array DefViewElabHeader) (values : Array Expr) (toLift : List LetRecToLift) : StateRefT CollectFVars.State TermElabM Unit := do -headers.forM fun header => collectUsedFVars header.type; -values.forM collectUsedFVars; -toLift.forM fun letRecToLift => do { - collectUsedFVars letRecToLift.type; +headers.forM fun header => collectUsedFVars header.type +values.forM collectUsedFVars +toLift.forM fun letRecToLift => do + collectUsedFVars letRecToLift.type collectUsedFVars letRecToLift.val -} private def removeUnusedVars (vars : Array Expr) (headers : Array DefViewElabHeader) (values : Array Expr) (toLift : List LetRecToLift) : TermElabM (LocalContext × LocalInstances × Array Expr) := do -(_, used) ← (collectUsed headers values toLift).run {}; +let (_, used) ← (collectUsed headers values toLift).run {} removeUnused vars used private def withUsedWhen {α} (vars : Array Expr) (headers : Array DefViewElabHeader) (values : Array Expr) (toLift : List LetRecToLift) - (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := -if cond then do - (lctx, localInsts, vars) ← removeUnusedVars vars headers values toLift; + (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := do +if cond then + let (lctx, localInsts, vars) ← removeUnusedVars vars headers values toLift withLCtx lctx localInsts $ k vars else k vars private def isExample (views : Array DefView) : Bool := -views.any fun view => view.kind.isExample +views.any (·.kind.isExample) private def isTheorem (views : Array DefView) : Bool := -views.any fun view => view.kind.isTheorem +views.any (·.kind.isTheorem) private def instantiateMVarsAtHeader (header : DefViewElabHeader) : TermElabM DefViewElabHeader := do -type ← instantiateMVars header.type; +let type ← instantiateMVars header.type pure { header with type := type } private def instantiateMVarsAtLetRecToLift (toLift : LetRecToLift) : TermElabM LetRecToLift := do -type ← instantiateMVars toLift.type; -val ← instantiateMVars toLift.val; +let type ← instantiateMVars toLift.type +let val ← instantiateMVars toLift.val pure { toLift with type := type, val := val } private def typeHasRecFun (type : Expr) (funFVars : Array Expr) (letRecsToLift : List LetRecToLift) : Option FVarId := let occ? := type.find? fun e => match e with | Expr.fvar fvarId _ => funFVars.contains e || letRecsToLift.any fun toLift => toLift.fvarId == fvarId - | _ => false; + | _ => false match occ? with | some (Expr.fvar fvarId _) => some fvarId | _ => none private def getFunName (fvarId : FVarId) (letRecsToLift : List LetRecToLift) : TermElabM Name := do -decl? ← findLocalDecl? fvarId; -match decl? with +match (← findLocalDecl? fvarId) with | some decl => pure decl.userName | none => /- Recall that the FVarId of nested let-recs are not in the current local context. -/ - match letRecsToLift.findSome? fun (toLift : LetRecToLift) => if toLift.fvarId == fvarId then some toLift.shortDeclName else none with + match letRecsToLift.findSome? fun toLift => if toLift.fvarId == fvarId then some toLift.shortDeclName else none with | none => throwError "unknown function" | some n => pure n @@ -216,12 +207,12 @@ In principle, this test can be improved. We could perform it after we separate t However, this extra complication doesn't seem worth it. -/ private def checkLetRecsToLiftTypes (funVars : Array Expr) (letRecsToLift : List LetRecToLift) : TermElabM Unit := -letRecsToLift.forM fun toLift => do +letRecsToLift.forM fun toLift => match typeHasRecFun toLift.type funVars letRecsToLift with | none => pure () | some fvarId => do - fnName ← getFunName fvarId letRecsToLift; - throwErrorAt toLift.ref ("invalid type in 'let rec', it uses '" ++ fnName ++ "' which is being defined simultaneously") + let fnName ← getFunName fvarId letRecsToLift + throwErrorAt! toLift.ref "invalid type in 'let rec', it uses '{fnName}' which is being defined simultaneously" namespace MutualClosure @@ -274,28 +265,26 @@ Note that `g` is not a free variable at `(let g : B := ?m₂; body)`. We recover `f` depends on `g` because it contains `m₂` -/ private def mkInitialUsedFVarsMap (mctx : MetavarContext) (sectionVars : Array Expr) (mainFVarIds : Array FVarId) (letRecsToLift : List LetRecToLift) - : UsedFVarsMap := -let sectionVarSet := sectionVars.foldl (fun (s : NameSet) (var : Expr) => s.insert var.fvarId!) {}; -let usedFVarMap := mainFVarIds.foldl - (fun (usedFVarMap : UsedFVarsMap) mainFVarId => - usedFVarMap.insert mainFVarId sectionVarSet) - {}; -letRecsToLift.foldl - (fun (usedFVarMap : UsedFVarsMap) toLift => - let state := Lean.collectFVars {} toLift.val; - let state := Lean.collectFVars state toLift.type; - let set := state.fvarSet; - /- toLift.val may contain metavariables that are placeholders for nested let-recs. We should collect the fvarId - for the associated let-rec because we need this information to compute the fixpoint later. -/ - let mvarIds := (toLift.val.collectMVars {}).result; - let set := mvarIds.foldl - (fun (set : NameSet) (mvarId : MVarId) => - match letRecsToLift.findSome? fun (toLift : LetRecToLift) => if toLift.mvarId == mctx.getDelayedRoot mvarId then some toLift.fvarId else none with - | some fvarId => set.insert fvarId - | none => set) - set; - usedFVarMap.insert toLift.fvarId set) - usedFVarMap + : UsedFVarsMap := do +let sectionVarSet := {} +for var in sectionVars do + sectionVarSet := sectionVarSet.insert var.fvarId! +let usedFVarMap := {} +for mainFVarId in mainFVarIds do + usedFVarMap := usedFVarMap.insert mainFVarId sectionVarSet +for toLift in letRecsToLift do + let state := Lean.collectFVars {} toLift.val + let state := Lean.collectFVars state toLift.type + let set := state.fvarSet + /- toLift.val may contain metavariables that are placeholders for nested let-recs. We should collect the fvarId + for the associated let-rec because we need this information to compute the fixpoint later. -/ + let mvarIds := (toLift.val.collectMVars {}).result + for mvarId in mvarIds do + match letRecsToLift.findSome? fun (toLift : LetRecToLift) => if toLift.mvarId == mctx.getDelayedRoot mvarId then some toLift.fvarId else none with + | some fvarId => set := set.insert fvarId + | none => pure () + usedFVarMap := usedFVarMap.insert toLift.fvarId set +pure usedFVarMap /- The let-recs may invoke each other. Example: @@ -324,10 +313,10 @@ structure State := abbrev M := ReaderT (List FVarId) $ StateM State -private def isModified : M Bool := do s ← get; pure s.modified +private def isModified : M Bool := do pure (← get).modified private def resetModified : M Unit := modify fun s => { s with modified := false } private def markModified : M Unit := modify fun s => { s with modified := true } -private def getUsedFVarsMap : M UsedFVarsMap := do s ← get; pure s.usedFVarsMap +private def getUsedFVarsMap : M UsedFVarsMap := do pure (← get).usedFVarsMap private def modifyUsedFVars (f : UsedFVarsMap → UsedFVarsMap) : M Unit := modify fun s => { s with usedFVarsMap := f s.usedFVarsMap } -- merge s₂ into s₁ @@ -337,16 +326,16 @@ s₂.foldM if s₁.contains k then pure s₁ else do - markModified; + markModified pure $ s₁.insert k) s₁ private def updateUsedVarsOf (fvarId : FVarId) : M Unit := do -usedFVarsMap ← getUsedFVarsMap; +let usedFVarsMap ← getUsedFVarsMap match usedFVarsMap.find? fvarId with | none => pure () -| some fvarIds => do - fvarIdsNew ← fvarIds.foldM +| some fvarIds => + let fvarIdsNew ← fvarIds.foldM (fun (fvarIdsNew : NameSet) (fvarId' : FVarId) => if fvarId == fvarId' then pure fvarIdsNew @@ -357,18 +346,19 @@ match usedFVarsMap.find? fvarId with not in the context of the let-rec associated with fvarId. We filter these out-of-context free variables later. -/ | some otherFVarIds => merge fvarIdsNew otherFVarIds) - fvarIds; + fvarIds modifyUsedFVars fun usedFVars => usedFVars.insert fvarId fvarIdsNew private partial def fixpoint : Unit → M Unit | _ => do - resetModified; - letRecFVarIds ← read; - letRecFVarIds.forM updateUsedVarsOf; - whenM isModified $ fixpoint () + resetModified + let letRecFVarIds ← read + letRecFVarIds.forM updateUsedVarsOf + if (← isModified) then + fixpoint () def run (letRecFVarIds : List FVarId) (usedFVarsMap : UsedFVarsMap) : UsedFVarsMap := -let (_, s) := ((fixpoint ()).run letRecFVarIds).run { usedFVarsMap := usedFVarsMap }; +let (_, s) := ((fixpoint ()).run letRecFVarIds).run { usedFVarsMap := usedFVarsMap } s.usedFVarsMap end FixPoint @@ -377,23 +367,23 @@ abbrev FreeVarMap := NameMap (Array FVarId) private def mkFreeVarMap (mctx : MetavarContext) (sectionVars : Array Expr) (mainFVarIds : Array FVarId) - (recFVarIds : Array FVarId) (letRecsToLift : List LetRecToLift) : FreeVarMap := -let usedFVarsMap := mkInitialUsedFVarsMap mctx sectionVars mainFVarIds letRecsToLift; -let letRecFVarIds := letRecsToLift.map fun toLift => toLift.fvarId; -let usedFVarsMap := FixPoint.run letRecFVarIds usedFVarsMap; -letRecsToLift.foldl - (fun (freeVarMap : FreeVarMap) toLift => - let lctx := toLift.lctx; - let fvarIdsSet := (usedFVarsMap.find? toLift.fvarId).get!; - let fvarIds := fvarIdsSet.fold - (fun (fvarIds : Array FVarId) (fvarId : FVarId) => - if lctx.contains fvarId && !recFVarIds.contains fvarId then - fvarIds.push fvarId - else - fvarIds) - #[]; - freeVarMap.insert toLift.fvarId fvarIds) - {} + (recFVarIds : Array FVarId) (letRecsToLift : List LetRecToLift) : FreeVarMap := do +let usedFVarsMap := mkInitialUsedFVarsMap mctx sectionVars mainFVarIds letRecsToLift +let letRecFVarIds := letRecsToLift.map fun toLift => toLift.fvarId +let usedFVarsMap := FixPoint.run letRecFVarIds usedFVarsMap +let freeVarMap := {} +for toLift in letRecsToLift do + let lctx := toLift.lctx + let fvarIdsSet := (usedFVarsMap.find? toLift.fvarId).get! + let fvarIds := fvarIdsSet.fold + (fun (fvarIds : Array FVarId) (fvarId : FVarId) => + if lctx.contains fvarId && !recFVarIds.contains fvarId then + fvarIds.push fvarId + else + fvarIds) + #[] + freeVarMap := freeVarMap.insert toLift.fvarId fvarIds +pure freeVarMap structure ClosureState := (newLocalDecls : Array LocalDecl := #[]) @@ -405,9 +395,9 @@ private def pickMaxFVar? (lctx : LocalContext) (fvarIds : Array FVarId) : Option fvarIds.getMax? fun fvarId₁ fvarId₂ => (lctx.get! fvarId₁).index < (lctx.get! fvarId₂).index private def preprocess (e : Expr) : TermElabM Expr := do -e ← instantiateMVars e; +let e ← instantiateMVars e -- which let-decls are dependent. We say a let-decl is dependent if its lambda abstraction is type incorrect. -liftM $ check e; +Meta.check e pure e /- Push free variables in `s` to `toProcess` if they are not already there. -/ @@ -418,47 +408,47 @@ s.fvarSet.fold private def pushLocalDecl (toProcess : Array FVarId) (fvarId : FVarId) (userName : Name) (type : Expr) (bi := BinderInfo.default) : StateRefT ClosureState TermElabM (Array FVarId) := do -type ← liftM $ preprocess type; +let type ← preprocess type modify fun s => { s with newLocalDecls := s.newLocalDecls.push $ LocalDecl.cdecl (arbitrary _) fvarId userName type bi, exprArgs := s.exprArgs.push (mkFVar fvarId) -}; +} pure $ pushNewVars toProcess (collectFVars {} type) private partial def mkClosureForAux : Array FVarId → StateRefT ClosureState TermElabM Unit | toProcess => do - lctx ← getLCtx; + let lctx ← getLCtx match pickMaxFVar? lctx toProcess with | none => pure () - | some fvarId => do - trace `Elab.definition.mkClosure fun _ => "toProcess: " ++ (toProcess.map mkFVar) ++ ", maxVar: " ++ mkFVar fvarId; - let toProcess := toProcess.erase fvarId; - localDecl ← getLocalDecl fvarId; + | some fvarId => + trace[Elab.definition.mkClosure]! "toProcess: {toProcess.map mkFVar}, maxVar: {mkFVar fvarId}" + let toProcess := toProcess.erase fvarId + let localDecl ← getLocalDecl fvarId match localDecl with - | LocalDecl.cdecl _ _ userName type bi => do - toProcess ← pushLocalDecl toProcess fvarId userName type bi; + | LocalDecl.cdecl _ _ userName type bi => + let toProcess ← pushLocalDecl toProcess fvarId userName type bi mkClosureForAux toProcess - | LocalDecl.ldecl _ _ userName type val _ => do - zetaFVarIds ← getZetaFVarIds; - if !zetaFVarIds.contains fvarId then do + | LocalDecl.ldecl _ _ userName type val _ => + let zetaFVarIds ← getZetaFVarIds + if !zetaFVarIds.contains fvarId then /- Non-dependent let-decl. See comment at src/Lean/Meta/Closure.lean -/ - toProcess ← pushLocalDecl toProcess fvarId userName type; + let toProcess ← pushLocalDecl toProcess fvarId userName type mkClosureForAux toProcess - else do + else /- Dependent let-decl. -/ - type ← liftM $ preprocess type; - val ← liftM $ preprocess val; + let type ← preprocess type + let val ← preprocess val modify fun s => { s with newLetDecls := s.newLetDecls.push $ LocalDecl.ldecl (arbitrary _) fvarId userName type val false, /- We don't want to interleave let and lambda declarations in our closure. So, we expand any occurrences of fvarId at `newLocalDecls` and `localDecls` -/ newLocalDecls := s.newLocalDecls.map (replaceFVarIdAtLocalDecl fvarId val), localDecls := s.localDecls.map (replaceFVarIdAtLocalDecl fvarId val) - }; + } mkClosureForAux (pushNewVars toProcess (collectFVars (collectFVars {} type) val)) private partial def mkClosureFor (freeVars : Array FVarId) (localDecls : Array LocalDecl) : TermElabM ClosureState := do -(_, s) ← (mkClosureForAux freeVars).run { localDecls := localDecls }; +let (_, s) ← (mkClosureForAux freeVars).run { localDecls := localDecls } pure { s with newLocalDecls := s.newLocalDecls.reverse, newLetDecls := s.newLetDecls.reverse, @@ -470,16 +460,16 @@ structure LetRecClosure := (toLift : LetRecToLift) private def mkLetRecClosureFor (toLift : LetRecToLift) (freeVars : Array FVarId) : TermElabM LetRecClosure := do -let lctx := toLift.lctx; +let lctx := toLift.lctx withLCtx lctx toLift.localInstances do lambdaTelescope toLift.val fun xs val => do - type ← instantiateForall toLift.type xs; - lctx ← getLCtx; - s ← mkClosureFor freeVars $ xs.map fun x => lctx.get! x.fvarId!; - let type := Closure.mkForall s.localDecls $ Closure.mkForall s.newLetDecls type; - let val := Closure.mkLambda s.localDecls $ Closure.mkLambda s.newLetDecls val; - let c := mkAppN (Lean.mkConst toLift.declName) s.exprArgs; - assignExprMVar toLift.mvarId c; + let type ← instantiateForall toLift.type xs + let lctx ← getLCtx + let s ← mkClosureFor freeVars $ xs.map fun x => lctx.get! x.fvarId! + let type := Closure.mkForall s.localDecls $ Closure.mkForall s.newLetDecls type + let val := Closure.mkLambda s.localDecls $ Closure.mkLambda s.newLetDecls val + let c := mkAppN (Lean.mkConst toLift.declName) s.exprArgs + assignExprMVar toLift.mvarId c pure ⟨s.newLocalDecls, c, { toLift with val := val, type := type }⟩ private def mkLetRecClosures (letRecsToLift : List LetRecToLift) (freeVarMap : FreeVarMap) : TermElabM (List LetRecClosure) := @@ -508,9 +498,9 @@ def pushMain (preDefs : Array PreDefinition) (sectionVars : Array Expr) (mainHea : TermElabM (Array PreDefinition) := mainHeaders.size.foldM (fun i (preDefs : Array PreDefinition) => do - let header := mainHeaders.get! i; - val ← mkLambdaFVars sectionVars (mainVals.get! i); - type ← mkForallFVars sectionVars header.type; + let header := mainHeaders[i] + let val ← mkLambdaFVars sectionVars mainVals[i] + let type ← mkForallFVars sectionVars header.type pure $ preDefs.push { kind := header.kind, declName := header.declName, @@ -524,8 +514,8 @@ mainHeaders.size.foldM def pushLetRecs (preDefs : Array PreDefinition) (letRecClosures : List LetRecClosure) (kind : DefKind) (modifiers : Modifiers) : Array PreDefinition := letRecClosures.foldl (fun (preDefs : Array PreDefinition) (c : LetRecClosure) => - let type := Closure.mkForall c.localDecls c.toLift.type; - let val := Closure.mkLambda c.localDecls c.toLift.val; + let type := Closure.mkForall c.localDecls c.toLift.type + let val := Closure.mkLambda c.localDecls c.toLift.val preDefs.push { kind := kind, declName := c.toLift.declName, @@ -555,29 +545,29 @@ def getModifiersForLetRecs (mainHeaders : Array DefViewElabHeader) : Modifiers : def main (sectionVars : Array Expr) (mainHeaders : Array DefViewElabHeader) (mainFVars : Array Expr) (mainVals : Array Expr) (letRecsToLift : List LetRecToLift) : TermElabM (Array PreDefinition) := do -- Store in recFVarIds the fvarId of every function being defined by the mutual block. -let mainFVarIds := mainFVars.map Expr.fvarId!; -let recFVarIds := (letRecsToLift.toArray.map fun toLift => toLift.fvarId) ++ mainFVarIds; +let mainFVarIds := mainFVars.map Expr.fvarId! +let recFVarIds := (letRecsToLift.toArray.map fun toLift => toLift.fvarId) ++ mainFVarIds -- Compute the set of free variables (excluding `recFVarIds`) for each let-rec. -mctx ← getMCtx; -let freeVarMap := mkFreeVarMap mctx sectionVars mainFVarIds recFVarIds letRecsToLift; -resetZetaFVarIds; +let mctx ← getMCtx +let freeVarMap := mkFreeVarMap mctx sectionVars mainFVarIds recFVarIds letRecsToLift +resetZetaFVarIds withTrackingZeta do --- By checking `toLift.type` and `toLift.val` we populate `zetaFVarIds`. See comments at `src/Lean/Meta/Closure.lean`. -letRecsToLift.forM fun toLift => withLCtx toLift.lctx toLift.localInstances do { liftM $ check toLift.type; liftM $ check toLift.val }; -letRecClosures ← mkLetRecClosures letRecsToLift freeVarMap; --- mkLetRecClosures assign metavariables that were placeholders for the lifted declarations. -mainVals ← mainVals.mapM instantiateMVars; -mainHeaders ← mainHeaders.mapM instantiateMVarsAtHeader; -letRecClosures ← letRecClosures.mapM fun closure => do { toLift ← instantiateMVarsAtLetRecToLift closure.toLift; pure { closure with toLift := toLift } }; --- Replace fvarIds for functions being defined with closed terms -let r := insertReplacementForMainFns {} sectionVars mainHeaders mainFVars; -let r := insertReplacementForLetRecs r letRecClosures; -let mainVals := mainVals.map r.apply; -let mainHeaders := mainHeaders.map fun h => { h with type := r.apply h.type }; -let letRecClosures := letRecClosures.map fun c => { c with toLift := { c.toLift with type := r.apply c.toLift.type, val := r.apply c.toLift.val } }; -let letRecKind := getKindForLetRecs mainHeaders; -let letRecMods := getModifiersForLetRecs mainHeaders; -pushMain (pushLetRecs #[] letRecClosures letRecKind letRecMods) sectionVars mainHeaders mainVals + -- By checking `toLift.type` and `toLift.val` we populate `zetaFVarIds`. See comments at `src/Lean/Meta/Closure.lean`. + letRecsToLift.forM fun toLift => withLCtx toLift.lctx toLift.localInstances do Meta.check toLift.type; Meta.check toLift.val + let letRecClosures ← mkLetRecClosures letRecsToLift freeVarMap + -- mkLetRecClosures assign metavariables that were placeholders for the lifted declarations. + let mainVals ← mainVals.mapM instantiateMVars + let mainHeaders ← mainHeaders.mapM instantiateMVarsAtHeader + let letRecClosures ← letRecClosures.mapM fun closure => do pure { closure with toLift := (← instantiateMVarsAtLetRecToLift closure.toLift) } + -- Replace fvarIds for functions being defined with closed terms + let r := insertReplacementForMainFns {} sectionVars mainHeaders mainFVars + let r := insertReplacementForLetRecs r letRecClosures + let mainVals := mainVals.map r.apply + let mainHeaders := mainHeaders.map fun h => { h with type := r.apply h.type } + let letRecClosures := letRecClosures.map fun c => { c with toLift := { c.toLift with type := r.apply c.toLift.type, val := r.apply c.toLift.val } } + let letRecKind := getKindForLetRecs mainHeaders + let letRecMods := getModifiersForLetRecs mainHeaders + pushMain (pushLetRecs #[] letRecClosures letRecKind letRecMods) sectionVars mainHeaders mainVals end MutualClosure @@ -589,34 +579,34 @@ else [] def elabMutualDef (vars : Array Expr) (views : Array DefView) : TermElabM Unit := do -scopeLevelNames ← getLevelNames; -headers ← elabHeaders views; -let allUserLevelNames := getAllUserLevelNames headers; +let scopeLevelNames ← getLevelNames +let headers ← elabHeaders views +let allUserLevelNames := getAllUserLevelNames headers withFunLocalDecls headers fun funFVars => do - values ← elabFunValues headers; - Term.synthesizeSyntheticMVarsNoPostponing; - if isExample views then pure () - else do - values ← values.mapM instantiateMVars; - headers ← headers.mapM instantiateMVarsAtHeader; - letRecsToLift ← getLetRecsToLift; - letRecsToLift ← letRecsToLift.mapM instantiateMVarsAtLetRecToLift; - checkLetRecsToLiftTypes funFVars letRecsToLift; + let values ← elabFunValues headers + Term.synthesizeSyntheticMVarsNoPostponing + if isExample views then + pure () + else + let values ← values.mapM instantiateMVars + let headers ← headers.mapM instantiateMVarsAtHeader + let letRecsToLift ← getLetRecsToLift + let letRecsToLift ← letRecsToLift.mapM instantiateMVarsAtLetRecToLift + checkLetRecsToLiftTypes funFVars letRecsToLift withUsedWhen vars headers values letRecsToLift (not $ isTheorem views) fun vars => do - preDefs ← MutualClosure.main vars headers funFVars values letRecsToLift; - preDefs ← levelMVarToParamPreDecls preDefs; - preDefs ← instantiateMVarsAtPreDecls preDefs; - preDefs ← fixLevelParams preDefs scopeLevelNames allUserLevelNames; + let preDefs ← MutualClosure.main vars headers funFVars values letRecsToLift + let preDefs ← levelMVarToParamPreDecls preDefs + let preDefs ← instantiateMVarsAtPreDecls preDefs + let preDefs ← fixLevelParams preDefs scopeLevelNames allUserLevelNames addPreDefinitions preDefs end Term namespace Command def elabMutualDef (ds : Array Syntax) : CommandElabM Unit := do -views ← ds.mapM fun d => do { - modifiers ← elabModifiers (d.getArg 0); - mkDefView modifiers (d.getArg 1) -}; +let views ← ds.mapM fun d => do + let modifiers ← elabModifiers d[0] + mkDefView modifiers d[1] runTermElabM none fun vars => Term.elabMutualDef vars views end Command diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index cd87ed5517..f33636b66b 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -16,10 +16,8 @@ extern "C" { lean_object* l_Lean_Elab_Command_elabDeclaration(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Elab_Command_expandMutualElement_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_elabStructure___closed__11; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__29; lean_object* l_Lean_extractMacroScopes(lean_object*); size_t l_USize_add(size_t, size_t); @@ -28,8 +26,8 @@ extern lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__3 lean_object* l_Lean_Elab_Command_expandInitialize___closed__22; lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3; +lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object*); @@ -40,7 +38,7 @@ lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_ lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(lean_object*); -lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__37; extern lean_object* l___private_Lean_Elab_Command_11__addNamespace___closed__1; @@ -54,6 +52,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__16; lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_elabMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__4; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__3; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); uint8_t l___private_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); @@ -73,12 +72,9 @@ lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec_ lean_object* l_Lean_Elab_Command_elabDeclaration_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__13; lean_object* l_Lean_Elab_Command_expandInitialize___closed__41; -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabModifiers___rarg___closed__2; -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_private_to_user_name(lean_object*); +lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; uint8_t l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -100,12 +96,8 @@ lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__14; lean_object* l_Lean_Elab_Term_applyAttributesAt(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_string_utf8_extract(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); @@ -118,26 +110,25 @@ uint8_t l_USize_decLt(size_t, size_t); 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___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__33; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__7; lean_object* l_Lean_Elab_Command_expandInitialize___closed__28; extern lean_object* l_Lean_mkAppStx___closed__8; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___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*); lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2(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___private_0__Lean_Elab_Command_classInductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__8; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1; -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(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; -lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__4; lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1(lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__8; +lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,12 +141,10 @@ lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_objec lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__25; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -extern lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__4; -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__23; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___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_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -167,12 +156,12 @@ lean_object* l_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__39; extern lean_object* l_Lean_Elab_Attribute_hasFormat___closed__1; +lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace___boxed(lean_object*, lean_object*, lean_object*); @@ -194,10 +183,9 @@ lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabAttr lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__17; lean_object* l_Lean_Elab_Command_expandInitialize___closed__1; extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; @@ -213,11 +201,11 @@ extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* lean_expr_dbg_to_string(lean_object*); extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__9; lean_object* l_Lean_Elab_Command_expandInitialize___closed__40; +lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___main(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__31; @@ -226,19 +214,15 @@ uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__3; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; -lean_object* l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__27; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__4; lean_object* l_Lean_Elab_Command_elabAxiom_match__2___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; 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_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -255,54 +239,47 @@ lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_obje lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_quoteAutoTactic___spec__1___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___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2; lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(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*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__19; lean_object* l_Lean_Elab_Command_expandMutualElement(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualElement(lean_object*); -extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3; -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Match_Match_40__process___main___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__36; extern lean_object* l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1; -lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__2; -extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_splitMutualPreamble(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1; lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; -lean_object* l_Lean_Syntax_getSepArgs(lean_object*); -uint8_t l_Lean_isAttribute(lean_object*, lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; lean_object* l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Command_isMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1; extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; lean_object* l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Command_isMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3; lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__1(lean_object*); -lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -314,16 +291,13 @@ lean_object* l_Lean_Elab_Command_expandInitialize___closed__26; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__6; -lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9; lean_object* l_Lean_Elab_Command_expandInitialize___closed__11; lean_object* l_Lean_Elab_Command_elabMutual___closed__3; lean_object* l_Array_ofSubarray___rarg(lean_object*); -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkSimpleThunkType___closed__2; extern lean_object* l_Lean_Elab_Tactic_evalIntro___closed__5; @@ -332,8 +306,6 @@ lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__10; lean_object* l_Lean_Elab_Command_expandInitialize___closed__32; @@ -341,17 +313,15 @@ lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__12; lean_object* l_Lean_Macro_expandMacro_x3fImp(lean_object*, lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(lean_object*, 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_Lean_Elab_Command_expandMutualNamespace(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__2(lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__6; -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__3; lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom_match__5(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; @@ -360,16 +330,15 @@ uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration_match__1(lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_0__Lean_Elab_Command_elabMutualInductive(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(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_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom___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_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); @@ -382,14 +351,13 @@ lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; lean_object* l___private_0__Lean_Elab_Command_isMutualInductive___boxed(lean_object*); lean_object* l___private_0__Lean_Elab_Command_isMutualPreambleCommand___boxed(lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2; lean_object* l_Lean_Elab_Command_elabAttr(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__20; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__1; lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2(lean_object*); extern lean_object* l_Lean_mkInitAttr___closed__2; lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabAttr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Command_isMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -397,9 +365,9 @@ lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3( lean_object* l___private_0__Lean_Elab_Command_inductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__42; lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkInitAttr___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,21 +375,15 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__2; extern lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__3; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__7; -lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual___closed__1; -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__1(lean_object*); -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2___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_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; -lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg(lean_object*, lean_object*); @@ -2324,741 +2286,7 @@ x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Command_inductiveSynta return x_2; } } -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); -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_ctor_get(x_2, 4); -lean_inc(x_8); -lean_inc(x_8); -x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); -lean_dec(x_6); -x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); -lean_dec(x_2); -lean_dec(x_8); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set_tag(x_13, 1); -lean_ctor_set(x_13, 0, x_16); -return x_13; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_13, 0); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_13); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -} -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed), 4, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_6 = lean_st_ref_get(x_4, x_5); -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_ctor_get(x_7, 0); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_isAttribute(x_9, x_2); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_2); -x_12 = l_Lean_Elab_elabAttr___rarg___lambda__3___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_elabAttr___rarg___lambda__3___closed__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_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_15, x_3, x_4, x_8); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -return x_16; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_16); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -else -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_box(0); -x_22 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(x_1, x_2, x_21, x_3, x_4, x_8); -lean_dec(x_3); -return x_22; -} -} -} -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_isIdOrAtom_x3f(x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); -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 = l_Lean_replaceRef(x_6, x_9); -lean_dec(x_9); -lean_dec(x_6); -x_12 = !lean_is_exclusive(x_2); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_2, 6); -lean_dec(x_13); -lean_ctor_set(x_2, 6, x_11); -x_14 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_15 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_14, x_2, x_3, x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -return x_15; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_15); -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 -{ -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_20 = lean_ctor_get(x_2, 0); -x_21 = lean_ctor_get(x_2, 1); -x_22 = lean_ctor_get(x_2, 2); -x_23 = lean_ctor_get(x_2, 3); -x_24 = lean_ctor_get(x_2, 4); -x_25 = lean_ctor_get(x_2, 5); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_2); -x_26 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_21); -lean_ctor_set(x_26, 2, x_22); -lean_ctor_set(x_26, 3, x_23); -lean_ctor_set(x_26, 4, x_24); -lean_ctor_set(x_26, 5, x_25); -lean_ctor_set(x_26, 6, x_11); -x_27 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_28 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_27, x_26, x_3, x_10); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_31 = x_28; -} else { - lean_dec_ref(x_28); - x_31 = lean_box(0); -} -if (lean_is_scalar(x_31)) { - x_32 = lean_alloc_ctor(1, 2, 0); -} else { - x_32 = x_31; -} -lean_ctor_set(x_32, 0, x_29); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_6); -x_33 = lean_ctor_get(x_7, 0); -lean_inc(x_33); -lean_dec(x_7); -x_34 = lean_box(0); -x_35 = lean_name_mk_string(x_34, x_33); -x_36 = l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_35, x_2, x_3, x_4); -return x_36; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; -x_8 = x_3 < x_2; -if (x_8 == 0) -{ -lean_object* x_9; -lean_dec(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_array_uget(x_1, x_3); -lean_inc(x_5); -x_11 = l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(x_10, x_5, x_6, x_7); -lean_dec(x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; -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_array_push(x_4, x_12); -x_15 = 1; -x_16 = x_3 + x_15; -x_3 = x_16; -x_4 = x_14; -x_7 = x_13; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_5); -lean_dec(x_4); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) -{ -return x_11; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_11); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -} -lean_object* l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(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; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; -x_5 = l_Lean_Syntax_getSepArgs(x_1); -x_6 = lean_array_get_size(x_5); -x_7 = lean_usize_of_nat(x_6); -lean_dec(x_6); -x_8 = 0; -x_9 = l_Array_empty___closed__1; -x_10 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(x_5, x_7, x_8, x_9, x_2, x_3, x_4); -lean_dec(x_5); -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_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_Elab_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_6, x_2, x_3, x_4); -lean_dec(x_6); -return x_7; -} -} -lean_object* l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); -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 = l_Lean_replaceRef(x_1, x_7); -lean_dec(x_7); -x_10 = !lean_is_exclusive(x_3); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_3, 6); -lean_dec(x_11); -lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_2, x_3, x_4, x_8); -return x_12; -} -else -{ -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_13 = lean_ctor_get(x_3, 0); -x_14 = lean_ctor_get(x_3, 1); -x_15 = lean_ctor_get(x_3, 2); -x_16 = lean_ctor_get(x_3, 3); -x_17 = lean_ctor_get(x_3, 4); -x_18 = lean_ctor_get(x_3, 5); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_3); -x_19 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_19, 0, x_13); -lean_ctor_set(x_19, 1, x_14); -lean_ctor_set(x_19, 2, x_15); -lean_ctor_set(x_19, 3, x_16); -lean_ctor_set(x_19, 4, x_17); -lean_ctor_set(x_19, 5, x_18); -lean_ctor_set(x_19, 6, x_9); -x_20 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_2, x_19, x_4, x_8); -return x_20; -} -} -} -lean_object* l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg___boxed), 5, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(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) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Syntax_getOptional_x3f(x_5); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = l_Array_empty___closed__1; -x_12 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_11, x_7, x_8, x_9); -lean_dec(x_7); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_inc(x_7); -x_14 = l_Lean_Elab_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_13, x_7, x_8, x_9); -lean_dec(x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -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 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_6, x_15, x_7, x_8, x_16); -lean_dec(x_7); -return x_17; -} -else -{ -uint8_t x_18; -lean_dec(x_7); -lean_dec(x_4); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) -{ -return x_14; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_14); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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; -x_10 = l_Lean_Syntax_getOptional_x3f(x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; lean_object* x_12; -x_11 = 0; -x_12 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_6, x_4, x_11, x_7, x_8, x_9); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_inc(x_13); -x_14 = l_Lean_Syntax_getKind(x_13); -x_15 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; -x_16 = lean_name_eq(x_14, x_15); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; -x_18 = lean_name_eq(x_14, x_17); -lean_dec(x_14); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_dec(x_6); -x_19 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; -x_20 = l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_13, x_19, x_7, x_8, x_9); -lean_dec(x_13); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -return x_20; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -else -{ -uint8_t x_25; lean_object* x_26; -lean_dec(x_13); -x_25 = 1; -x_26 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_6, x_4, x_25, x_7, x_8, x_9); -return x_26; -} -} -else -{ -uint8_t x_27; lean_object* x_28; -lean_dec(x_14); -lean_dec(x_13); -x_27 = 2; -x_28 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_6, x_4, x_27, x_7, x_8, x_9); -return x_28; -} -} -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__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; lean_object* x_16; lean_object* x_17; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_9 = lean_unsigned_to_nat(2u); -x_10 = l_Lean_Syntax_getArg(x_1, x_9); -x_11 = lean_unsigned_to_nat(3u); -x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_13 = lean_unsigned_to_nat(4u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = lean_unsigned_to_nat(5u); -x_16 = l_Lean_Syntax_getArg(x_1, x_15); -x_17 = l_Lean_Syntax_getOptional_x3f(x_6); -lean_dec(x_6); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_box(0); -x_19 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_12, x_16, x_14, x_8, x_10, x_18, x_2, x_3, x_4); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_14); -lean_dec(x_16); -lean_dec(x_12); -return x_19; -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_17, 0); -x_22 = l_Lean_Syntax_getArg(x_21, x_7); -if (lean_obj_tag(x_22) == 2) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_21); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_string_utf8_byte_size(x_23); -x_25 = lean_nat_sub(x_24, x_9); -lean_dec(x_24); -x_26 = lean_string_utf8_extract(x_23, x_5, x_25); -lean_dec(x_25); -lean_dec(x_23); -lean_ctor_set(x_17, 0, x_26); -x_27 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_12, x_16, x_14, x_8, x_10, x_17, x_2, x_3, x_4); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_14); -lean_dec(x_16); -lean_dec(x_12); -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; uint8_t x_34; -lean_free_object(x_17); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_22); -x_29 = l_Lean_Elab_elabModifiers___rarg___closed__2; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Lean_Elab_Term_elabLetDeclAux___closed__4; -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 = l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_21, x_32, x_2, x_3, x_4); -lean_dec(x_21); -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; -} -} -} -else -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_17, 0); -lean_inc(x_38); -lean_dec(x_17); -x_39 = l_Lean_Syntax_getArg(x_38, x_7); -if (lean_obj_tag(x_39) == 2) -{ -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_dec(x_38); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_string_utf8_byte_size(x_40); -x_42 = lean_nat_sub(x_41, x_9); -lean_dec(x_41); -x_43 = lean_string_utf8_extract(x_40, x_5, x_42); -lean_dec(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(x_12, x_16, x_14, x_8, x_10, x_44, x_2, x_3, x_4); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_14); -lean_dec(x_16); -lean_dec(x_12); -return x_45; -} -else -{ -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_dec(x_16); -lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_39); -x_47 = l_Lean_Elab_elabModifiers___rarg___closed__2; -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_elabLetDeclAux___closed__4; -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_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_38, x_50, x_2, x_3, x_4); -lean_dec(x_38); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_54 = x_51; -} else { - lean_dec_ref(x_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -} -} -} -} -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_7; @@ -3105,13 +2333,13 @@ x_17 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; 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___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_18, x_4, x_5, x_6); +x_19 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_18, x_4, x_5, x_6); return x_19; } } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_7; uint8_t x_8; @@ -3125,7 +2353,7 @@ if (x_8 == 0) { lean_object* x_9; lean_object* x_10; x_9 = lean_box(0); -x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6); +x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6); return x_10; } else @@ -3142,7 +2370,7 @@ x_14 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_15, x_4, x_5, x_6); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_15, x_4, x_5, x_6); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -3164,7 +2392,7 @@ return x_20; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -3183,7 +2411,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__2(x_1, x_8, x_10, x_2, x_3, x_7); +x_11 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(x_1, x_8, x_10, x_2, x_3, x_7); return x_11; } else @@ -3205,7 +2433,7 @@ x_16 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___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_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_17, x_2, x_3, x_7); +x_18 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_17, x_2, x_3, x_7); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { @@ -3242,7 +2470,7 @@ x_27 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_28, x_2, x_3, x_7); +x_29 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_28, x_2, x_3, x_7); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { @@ -3265,7 +2493,7 @@ return x_33; } } } -lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(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; uint8_t x_8; @@ -3353,7 +2581,7 @@ return x_28; } } } -lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { switch (x_1) { @@ -3361,7 +2589,7 @@ case 0: { lean_object* x_6; lean_inc(x_2); -x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_2, x_3, x_4, x_5); +x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_2, x_3, x_4, x_5); if (lean_obj_tag(x_6) == 0) { uint8_t x_7; @@ -3415,7 +2643,7 @@ case 1: lean_object* x_15; lean_inc(x_3); lean_inc(x_2); -x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_2, x_3, x_4, x_5); +x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_2, x_3, x_4, x_5); 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; lean_object* x_23; uint8_t x_24; @@ -3434,7 +2662,7 @@ lean_dec(x_18); x_21 = l_Lean_protectedExt; lean_inc(x_2); x_22 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_21, x_20, x_2); -x_23 = l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(x_22, x_3, x_4, x_19); +x_23 = l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_22, x_3, x_4, x_19); lean_dec(x_3); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -3496,7 +2724,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_mkPrivateName(x_35, x_2); lean_inc(x_36); -x_37 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_36, x_3, x_4, x_34); +x_37 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_36, x_3, x_4, x_34); if (lean_obj_tag(x_37) == 0) { uint8_t x_38; @@ -3548,7 +2776,7 @@ return x_45; } } } -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_8; @@ -3581,7 +2809,7 @@ lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_5, 6); lean_dec(x_20); lean_ctor_set(x_5, 6, x_18); -x_21 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(x_14, x_12, x_5, x_6, x_17); +x_21 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_14, x_12, x_5, x_6, x_17); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -3746,7 +2974,7 @@ lean_ctor_set(x_66, 3, x_63); lean_ctor_set(x_66, 4, x_64); lean_ctor_set(x_66, 5, x_65); lean_ctor_set(x_66, 6, x_18); -x_67 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(x_14, x_12, x_66, x_6, x_17); +x_67 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_14, x_12, x_66, x_6, x_17); 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; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; @@ -3876,7 +3104,7 @@ return x_94; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -3884,27 +3112,27 @@ x_1 = lean_mk_string("invalid 'protected' constructor in a 'private' inductive d return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1; +x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2; +x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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: { uint8_t x_9; @@ -3913,7 +3141,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__1(x_1, x_2, x_3, x_10, x_6, x_7, x_8); +x_11 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_10, x_6, x_7, x_8); return x_11; } else @@ -3924,7 +3152,7 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__1(x_1, x_2, x_3, x_13, x_6, x_7, x_8); +x_14 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_13, x_6, x_7, x_8); return x_14; } else @@ -3932,8 +3160,8 @@ else lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_dec(x_2); lean_dec(x_1); -x_15 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3; -x_16 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_15, x_6, x_7, x_8); +x_15 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3; +x_16 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_15, x_6, x_7, x_8); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -3956,7 +3184,7 @@ return x_20; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1() { _start: { lean_object* x_1; @@ -3964,27 +3192,27 @@ x_1 = lean_mk_string("invalid 'private' constructor in a 'private' inductive dat return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1; +x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2; +x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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: { lean_object* x_8; uint8_t x_9; @@ -4039,7 +3267,7 @@ lean_ctor_set(x_36, 4, x_34); lean_ctor_set(x_36, 5, x_35); lean_ctor_set(x_36, 6, x_29); lean_inc(x_36); -x_37 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_25, x_36, x_6, x_28); +x_37 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_25, x_36, x_6, x_28); lean_dec(x_25); if (lean_obj_tag(x_37) == 0) { @@ -4054,7 +3282,7 @@ if (x_40 == 0) { lean_object* x_41; lean_object* x_42; x_41 = lean_box(0); -x_42 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2(x_38, x_23, x_2, x_1, x_41, x_36, x_6, x_39); +x_42 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_38, x_23, x_2, x_1, x_41, x_36, x_6, x_39); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; @@ -4100,7 +3328,7 @@ if (x_49 == 0) { lean_object* x_50; lean_object* x_51; x_50 = lean_box(0); -x_51 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2(x_38, x_23, x_2, x_1, x_50, x_36, x_6, x_39); +x_51 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_38, x_23, x_2, x_1, x_50, x_36, x_6, x_39); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; @@ -4145,8 +3373,8 @@ lean_dec(x_38); lean_dec(x_23); lean_dec(x_14); lean_dec(x_3); -x_58 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3; -x_59 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_58, x_36, x_6, x_39); +x_58 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3; +x_59 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_58, x_36, x_6, x_39); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) { @@ -4262,7 +3490,7 @@ x_26 = x_25; x_27 = lean_unsigned_to_nat(0u); lean_inc(x_20); lean_inc(x_1); -x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___boxed), 7, 4); +x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed), 7, 4); lean_closure_set(x_28, 0, x_1); lean_closure_set(x_28, 1, x_20); lean_closure_set(x_28, 2, x_27); @@ -4399,184 +3627,72 @@ return x_49; } } } -lean_object* l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1___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_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_elabAttr___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_elabDeclAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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: -{ -lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_6); -lean_dec(x_6); -x_11 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_11; -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___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_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(x_1, x_2, x_3, x_4); +x_5 = l_Lean_setEnv___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___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 = lean_unbox(x_1); lean_dec(x_1); -x_7 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(x_6, x_2, x_3, x_4, x_5); +x_7 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_6, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); return x_8; } } -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___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) { _start: { lean_object* x_9; -x_9 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -4584,11 +3700,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___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_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(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_2); @@ -4810,7 +3926,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); lean_inc(x_2); -x_8 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_7, x_2, x_3, x_4); +x_8 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_7, x_2, x_3, x_4); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -4852,7 +3968,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_dec(x_1); x_23 = l_Lean_Elab_Command_elabDeclaration___closed__3; -x_24 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_23, x_2, x_3, x_10); +x_24 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_23, x_2, x_3, x_10); lean_dec(x_3); return x_24; } @@ -5167,7 +4283,7 @@ x_12 = lean_array_fset(x_2, x_1, x_11); x_13 = x_10; x_14 = l_Lean_Syntax_getArg(x_13, x_11); lean_inc(x_3); -x_15 = l_Lean_Elab_elabModifiers___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_14, x_3, x_4, x_5); +x_15 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_14, x_3, x_4, x_5); lean_dec(x_14); if (lean_obj_tag(x_15) == 0) { @@ -7081,7 +6197,7 @@ if (x_6 == 0) { lean_object* x_7; lean_object* x_8; x_7 = l_Lean_Elab_Command_elabMutual___closed__3; -x_8 = l_Lean_throwError___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_7, x_2, x_3, x_4); +x_8 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_7, x_2, x_3, x_4); lean_dec(x_3); return x_8; } @@ -7529,7 +6645,7 @@ lean_dec(x_6); x_8 = lean_unsigned_to_nat(3u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); lean_inc(x_2); -x_10 = l_Lean_Elab_elabAttrs___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_9, x_2, x_3, x_4); +x_10 = l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(x_9, x_2, x_3, x_4); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -8634,18 +7750,18 @@ l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9 = _init_l_Lean_Elab_Comm lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9); l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10(); lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__1); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__2); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___lambda__2___closed__3); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2); -l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__1); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__2); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___lambda__2___closed__3); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__1); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__2); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___closed__3); l_Lean_Elab_Command_elabDeclaration___closed__1 = _init_l_Lean_Elab_Command_elabDeclaration___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabDeclaration___closed__1); l_Lean_Elab_Command_elabDeclaration___closed__2 = _init_l_Lean_Elab_Command_elabDeclaration___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index e4c772752f..8a3b17e23f 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -14,547 +14,600 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_getLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__7; -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1(lean_object*); +lean_object* l_List_map___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___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_MutualDef_3__check___closed__24; +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls_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_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___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* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__6(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___private_0__Lean_Elab_Term_collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__7___closed__3; +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1(lean_object*); +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___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_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__2(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___private_Lean_Elab_MutualDef_11__collectUsed___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_0__Lean_Elab_Term_check___lambda__3___closed__2; extern lean_object* l___private_Lean_Util_SCC_8__sccAux___main___rarg___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__16; +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls_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*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, 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_Elab_MutualDef_25__getUsedFVarsMap___boxed(lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(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_Lean_LocalDecl_userName(lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Syntax_getSepArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___boxed(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t l_USize_decEq(size_t, size_t); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__4; lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check(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___private_0__Lean_Elab_Term_collectUsed___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_expr_update_mdata(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__4; -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux(lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3(lean_object*); +uint8_t l___private_0__Lean_Elab_Term_isExample(lean_object*); +lean_object* l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_MutualClosure_getKindForLetRecs(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__13; -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6; +lean_object* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default; extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l___private_Lean_Elab_MutualDef_8__withFunLocalDecls(lean_object*); -extern lean_object* l_Std_HashMap_inhabited___closed__1; -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__1(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___closed__3; +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3; lean_object* l_Lean_Elab_Term_elabMutualDef___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_array_uset(lean_object*, size_t, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___closed__3; +uint8_t l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default; uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__15; -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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___private_0__Lean_Elab_Term_check___lambda__3___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__22; -lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___spec__1___boxed(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_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(lean_object*); +lean_object* l___private_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___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___boxed(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__11; -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___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_Elab_MutualDef_37__mkLetRecClosureFor___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_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__1; +lean_object* l___private_0__Lean_Elab_Term_check___lambda__3___closed__3; +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified___boxed(lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_27__merge(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(lean_object*, lean_object*); lean_object* l_Array_reverseAux___main___rarg(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_39__getAllUserLevelNames(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_22__isModified(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_12__removeUnusedVars___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_MutualDef_35__mkClosureForAux___main___closed__8; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName_match__2(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_lift___rarg___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1; +lean_object* l___private_0__Lean_Elab_Term_declValToTerm___closed__3; +lean_object* l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes_match__1(lean_object*); +lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_33__pushNewVars___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(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_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__19; -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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* l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtHeader(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___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofList(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(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_string_utf8_extract(lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___main___at_Lean_OpenDecl_HasToString___spec__1(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__5; -extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_Lean_Elab_Term_MutualClosure_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___private_0__Lean_Elab_Term_getFunName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen(lean_object*); lean_object* l_Nat_foldAux___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified(lean_object*); +lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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_string_utf8_byte_size(lean_object*); -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(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_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(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_Term_MVarErrorInfo_logError___spec__1(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__4___closed__5; -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__2; +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1; +lean_object* l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(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_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__3___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_MutualDef_35__mkClosureForAux___main___closed__2; -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___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_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__4; +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___closed__1; +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_getMVarsImp___closed__1; lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9; +lean_object* l___private_0__Lean_Elab_Term_getFunName_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___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* l_List_forM___main___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_22__isModified___boxed(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___boxed(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1; +lean_object* l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_isTheorem___boxed(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_declValToTerm___closed__1; +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls_loop(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen_match__1(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___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* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___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_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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___private_0__Lean_Elab_Term_elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__1(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_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__2(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_6__liftMkBindingM___rarg___closed__3; -lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__6; +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___closed__2; 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_MutualDef_1__checkModifiers___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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___private_Lean_Elab_MutualDef_30__mkFreeVarMap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___rarg(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__6(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_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName_match__1(lean_object*); +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___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_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__3(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_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_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap(lean_object*); -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__5___closed__3; +lean_object* l___private_0__Lean_Elab_Term_instantiateMVarsAtHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2; +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkLambda(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_mkDeclName___rarg___closed__2; extern lean_object* l_Lean_Elab_mkDeclName___rarg___lambda__1___closed__3; -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeclAttrs___at_Lean_Elab_Command_elabMutualDef___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1(lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__5___closed__1; +lean_object* l___private_0__Lean_Elab_Term_check___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* l_Lean_Elab_Term_registerCustomErrorIfMVar(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_elabModifiers___at_Lean_Elab_Command_elabMutualDef___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___private_0__Lean_Elab_Term_typeHasRecFun_match__2(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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_Elab_MutualDef_24__markModified___boxed(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_38__mkLetRecClosures(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__5___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs(lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3; +lean_object* l___private_0__Lean_Elab_Term_check___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_Elab_Term_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_3__check___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_MutualDef_3__check___closed__2; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName___closed__3; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8; -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_34__pushLocalDecl___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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_0__Lean_Elab_Term_isExample___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__2___closed__3; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2; lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_18__typeHasRecFun___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2___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_MutualClosure_pushLetRecs___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object*, uint8_t, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__1(lean_object*); lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_15__isTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getAllUserLevelNames(lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_MutualClosure_main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object*, lean_object*); -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2; lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3; -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__1(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_0__Lean_Elab_Term_elabFunValues___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_Lean_Meta_assignExprMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(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_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___spec__5___boxed(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*); +uint8_t l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__8; -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_29__fixpoint(lean_object*); -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__3(uint8_t, 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_MutualDef_35__mkClosureForAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_12__removeUnusedVars(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_0__Lean_Elab_Term_elabFunValues___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* l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_collectUsed___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_MutualClosure_insertReplacementForLetRecs(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1___rarg(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2; -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___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_Elab_MutualDef_29__fixpoint___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_isExample___boxed(lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___spec__3___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_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___rarg(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__2___rarg(lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_36__mkClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_38__mkLetRecClosures___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___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_MutualDef_21__mkInitialUsedFVarsMap(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___boxed(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift___boxed(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___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isExample___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l___private_Lean_Elab_MutualDef_15__isTheorem___boxed(lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabHeaders_match__1(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___closed__3; -lean_object* l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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 l_Lean_Name_isAtomic(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName___boxed(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___private_0__Lean_Elab_Term_getFunName___closed__1; +lean_object* l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified___rarg(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_declValToTerm___closed__2; +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName___closed__2; +lean_object* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__4___closed__3; lean_object* l_Lean_CollectFVars_main___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_9__declValToTerm(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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___private_0__Lean_Elab_Term_withUsedWhen_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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_0__Lean_Elab_Term_check___lambda__7___closed__1; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1(lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__7___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__1(lean_object*); -uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_27__merge___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__4; -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6; -lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5; +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen___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*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabFunType_match__1(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___boxed(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_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__9; -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___closed__2; +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_22__isModified___rarg(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3; +lean_object* l___private_0__Lean_Elab_Term_check___lambda__2___closed__1; +lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default; 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_MessageData_hasCoeOfArrayExpr___closed__2; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__17; lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5; -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__3; size_t lean_usize_of_nat(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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_0__Lean_Elab_Term_check___lambda__4___closed__1; lean_object* l_Nat_foldMAux___main___at_Lean_Elab_Term_MutualClosure_pushMain___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_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3; extern lean_object* l_Lean_NameSet_empty; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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_MutualDef_19__getFunName___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_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_26__modifyUsedFVars(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_36__mkClosureFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; +lean_object* l___private_0__Lean_Elab_Term_elabHeaders_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___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_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__6(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_elabBinders___rarg___boxed(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*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1(lean_object*, uint8_t, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__4___closed__2; lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_MutualDef_15__isTheorem(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3; lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_elabMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__7; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__8(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main___boxed(lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___spec__3(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_Elab_Term_MutualClosure_main___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__4___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_MutualDef_26__modifyUsedFVars___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_removeUnusedVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3; +lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default; +lean_object* l___private_0__Lean_Elab_Term_check___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_List_foldl___main___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); +lean_object* l_Lean_Meta_instantiateForall___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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_Elab_addPreDefinitions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_1__checkOutParam___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__2___closed__2; extern lean_object* l_Lean_Expr_FindImpl_initCache; -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__5; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__14; lean_object* l_Lean_Elab_DefViewElabHeader_inhabited___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_30__mkFreeVarMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3; -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5; +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen___rarg(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* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__18; -lean_object* l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_18__typeHasRecFun(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___closed__1; +lean_object* l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers(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_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4; lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_5__elabFunType(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_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3; +lean_object* l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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* l___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___closed__2; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___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_MutualDef_39__getAllUserLevelNames___boxed(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_24__markModified___rarg(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_33__pushNewVars(lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__2___rarg(lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4; +lean_object* l___private_0__Lean_Elab_Term_check_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabFunType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap___rarg(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__3; lean_object* l_Lean_Elab_Term_elabMutualDef___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_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___closed__1; +lean_object* l___private_0__Lean_Elab_Term_check___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_11__collectUsed___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_Elab_Command_elabMutualDef___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_11__collectUsed(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_0__Lean_Elab_Term_getFunName___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___boxed(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___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___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2; -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_6__elabHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateForall___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_removeUnusedVars___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_panic_fn(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg(lean_object*); extern lean_object* l_Lean_NameSet_Inhabited; -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__8; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_15__isTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkForall(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__7___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_elabModifiers___at_Lean_Elab_Command_elabMutualDef___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* l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; lean_object* l_Lean_Elab_Term_MutualClosure_pushMain(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_Elab_Term_MutualClosure_main___spec__3___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_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__6___closed__3; extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__2; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Syntax_getPos(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_removeUnusedVars_match__1(lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_MutualClosure_main___spec__6(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_MutualDef_10__elabFunValues___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__8(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___private_Lean_Elab_MutualDef_2__checkKinds___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_MutualDef_3__check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___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_MutualClosure_ClosureState_newLetDecls___default; +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_0__Lean_Elab_Term_check___lambda__2___closed__4; lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___boxed(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1; +lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___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* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMutualDef___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_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__2(lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(lean_object*, lean_object*, size_t, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(lean_object*, lean_object*, size_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7; -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__2(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__1; lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_32__preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_34__pushLocalDecl(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* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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* l___private_0__Lean_Elab_Term_MutualClosure_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__2(lean_object*); +lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__12; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_0__Lean_Elab_Term_isTheorem(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__7___closed__2; lean_object* l___private_Lean_Meta_Basic_37__instantiateForallAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(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* l___private_0__Lean_Elab_Term_withFunLocalDecls_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*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; -lean_object* l___private_Lean_Elab_MutualDef_24__markModified(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_32__preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeclAttrs___at_Lean_Elab_Command_elabMutualDef___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2; lean_object* l_List_forM___main___at_Lean_Elab_Term_MutualClosure_main___spec__3(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_MutualDef_35__mkClosureForAux___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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* l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_elabFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkModifiers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_declValToTerm(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2; +lean_object* l___private_0__Lean_Elab_Term_collectUsed(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_instantiateMVarsAtPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2; -lean_object* l___private_Lean_Elab_MutualDef_14__isExample___boxed(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__20; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__6; -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_Elab_MutualDef_3__check___closed__10; +lean_object* l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(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_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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_0__Lean_Elab_Term_checkKinds___lambda__1(uint8_t, uint8_t, 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_Term_MutualClosure_main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1; -lean_object* l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3; -lean_object* l___private_Lean_Elab_MutualDef_6__elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1; +lean_object* l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(lean_object*); +lean_object* l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__7___boxed(lean_object*, lean_object*, 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_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__21; -lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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_0__Lean_Elab_Term_getAllUserLevelNames___boxed(lean_object*); lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__5(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_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_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1(lean_object*, lean_object*, lean_object*); 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_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___boxed(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*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4; +lean_object* l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_checkKinds___closed__2; extern lean_object* l___private_0__Lean_Elab_Command_regTraceClasses___closed__2; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2; -uint8_t l___private_Lean_Elab_MutualDef_14__isExample(lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___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* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___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_MutualDef_3__check___closed__23; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___boxed(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__1(lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__6___closed__1; +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___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_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_removeUnusedVars_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_forM___main___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__2___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_Elab_Term_MutualClosure_pushMain___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___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_MutualClosure_getKindForLetRecs___boxed(lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___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* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_8__withFunLocalDecls___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_MutualDef_35__mkClosureForAux___main___closed__5; lean_object* l_Lean_Elab_DefViewElabHeader_inhabited; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(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* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__3(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_match__1(lean_object*); +lean_object* l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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___private_Lean_Meta_Basic_23__lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen(lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_10__elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check___lambda__6___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatch(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__6; +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___closed__3; +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg(lean_object*); extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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_getBetterRef(lean_object*, lean_object*); +lean_object* l___private_0__Lean_Elab_Term_check_match__1(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen___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*, lean_object*); +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2; static lean_object* _init_l_Lean_Elab_DefViewElabHeader_inhabited___closed__1() { _start: { @@ -587,7 +640,7 @@ x_1 = l_Lean_Elab_DefViewElabHeader_inhabited___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1() { +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -595,124 +648,29 @@ x_1 = lean_mk_string("cannot mix partial and non-partial definitions"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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___private_Lean_Elab_MutualDef_1__checkModifiers___closed__4() { +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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_1; -x_1 = lean_mk_string("cannot mix computable and non-computable definitions"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___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_Elab_MutualDef_1__checkModifiers___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___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___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("cannot mix unsafe and safe definitions"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___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___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_28; uint8_t x_44; uint8_t x_45; uint8_t x_46; -x_44 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); -x_45 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 3); -if (x_44 == 0) -{ -if (x_45 == 0) -{ -uint8_t x_54; -x_54 = 1; -x_46 = x_54; -goto block_53; -} -else -{ -uint8_t x_55; -x_55 = 0; -x_46 = x_55; -goto block_53; -} -} -else -{ -if (x_45 == 0) -{ -uint8_t x_56; -x_56 = 0; -x_46 = x_56; -goto block_53; -} -else -{ -uint8_t x_57; -x_57 = 1; -x_46 = x_57; -goto block_53; -} -} -block_27: -{ uint8_t x_11; uint8_t x_12; uint8_t x_13; x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 2); x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 2); @@ -720,296 +678,92 @@ if (x_11 == 0) { if (x_12 == 0) { -uint8_t x_23; -x_23 = 1; -x_13 = x_23; -goto block_22; +uint8_t x_19; +x_19 = 1; +x_13 = x_19; +goto block_18; } else { -uint8_t x_24; -x_24 = 0; -x_13 = x_24; -goto block_22; +uint8_t x_20; +x_20 = 0; +x_13 = x_20; +goto block_18; } } else { if (x_12 == 0) { -uint8_t x_25; -x_25 = 0; -x_13 = x_25; -goto block_22; +uint8_t x_21; +x_21 = 0; +x_13 = x_21; +goto block_18; } else { -uint8_t x_26; -x_26 = 1; -x_13 = x_26; -goto block_22; +uint8_t x_22; +x_22 = 1; +x_13 = x_22; +goto block_18; } } -block_22: +block_18: { if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3; -x_15 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ +lean_object* x_14; lean_object* x_15; +x_14 = l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_15; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_15); -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 -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_3); -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_10); -return x_21; -} -} -} -block_43: -{ -uint8_t x_29; uint8_t x_30; uint8_t x_31; -x_29 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); -x_30 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 1); -if (x_29 == 0) -{ -if (x_30 == 0) -{ -uint8_t x_39; -x_39 = 1; -x_31 = x_39; -goto block_38; -} -else -{ -uint8_t x_40; -x_40 = 0; -x_31 = x_40; -goto block_38; -} -} -else -{ -if (x_30 == 0) -{ -uint8_t x_41; -x_41 = 0; -x_31 = x_41; -goto block_38; -} -else -{ -uint8_t x_42; -x_42 = 1; -x_31 = x_42; -goto block_38; -} -} -block_38: -{ -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6; -x_33 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_28); -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; -} -} -else -{ -x_10 = x_28; -goto block_27; -} -} -} -block_53: -{ -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9; -x_48 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_47, x_3, x_4, x_5, x_6, x_7, x_8, 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_28 = x_9; -goto block_43; -} -} -} -} -lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_1__checkModifiers(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_object* x_16; lean_object* x_17; lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_10; +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_10); +return x_17; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1() { +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("cannot mix theorems and definitions"); +x_1 = lean_mk_string("cannot mix computable and non-computable definitions"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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___private_Lean_Elab_MutualDef_2__checkKinds___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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___private_Lean_Elab_MutualDef_2__checkKinds___closed__4() { +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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; -x_1 = lean_mk_string("cannot mix examples and definitions"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_2__checkKinds___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_Elab_MutualDef_2__checkKinds___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds(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) { -_start: -{ -lean_object* x_10; uint8_t x_28; uint8_t x_29; uint8_t x_30; -x_28 = l_Lean_Elab_DefKind_isExample(x_1); -x_29 = l_Lean_Elab_DefKind_isExample(x_2); -if (x_28 == 0) -{ -if (x_29 == 0) -{ -uint8_t x_38; -x_38 = 1; -x_30 = x_38; -goto block_37; -} -else -{ -uint8_t x_39; -x_39 = 0; -x_30 = x_39; -goto block_37; -} -} -else -{ -if (x_29 == 0) -{ -uint8_t x_40; -x_40 = 0; -x_30 = x_40; -goto block_37; -} -else -{ -uint8_t x_41; -x_41 = 1; -x_30 = x_41; -goto block_37; -} -} -block_27: -{ uint8_t x_11; uint8_t x_12; uint8_t x_13; -x_11 = l_Lean_Elab_DefKind_isTheorem(x_1); -x_12 = l_Lean_Elab_DefKind_isTheorem(x_2); +x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 1); +x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 1); if (x_11 == 0) { if (x_12 == 0) @@ -1049,8 +803,8 @@ block_22: if (x_13 == 0) { lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3; -x_15 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +x_14 = l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -1073,50 +827,377 @@ return x_19; else { lean_object* x_20; lean_object* x_21; -lean_dec(x_3); 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_10); +x_21 = l___private_0__Lean_Elab_Term_checkModifiers___lambda__1(x_1, x_2, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_21; } } } -block_37: +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___closed__1() { +_start: { -if (x_30 == 0) +lean_object* x_1; +x_1 = lean_mk_string("cannot mix unsafe and safe definitions"); +return x_1; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkModifiers___closed__2() { +_start: { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = l___private_Lean_Elab_MutualDef_2__checkKinds___closed__6; -x_32 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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_0__Lean_Elab_Term_checkModifiers___closed__3() { +_start: { -return x_32; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkModifiers___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_0__Lean_Elab_Term_checkModifiers(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_11; uint8_t x_12; +x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 3); +x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 3); +if (x_10 == 0) +{ +if (x_11 == 0) +{ +uint8_t x_22; +x_22 = 1; +x_12 = x_22; +goto block_21; } 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; +uint8_t x_23; +x_23 = 0; +x_12 = x_23; +goto block_21; } } else { -x_10 = x_9; -goto block_27; +if (x_11 == 0) +{ +uint8_t x_24; +x_24 = 0; +x_12 = x_24; +goto block_21; +} +else +{ +uint8_t x_25; +x_25 = 1; +x_12 = x_25; +goto block_21; +} +} +block_21: +{ +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l___private_0__Lean_Elab_Term_checkModifiers___closed__3; +x_14 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +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; +} +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l___private_0__Lean_Elab_Term_checkModifiers___lambda__2(x_1, x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_20; } } } } -lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_checkModifiers___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_0__Lean_Elab_Term_checkModifiers___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_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___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___private_0__Lean_Elab_Term_checkModifiers___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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_0__Lean_Elab_Term_checkModifiers___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_checkModifiers(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("cannot mix theorems and definitions"); +return x_1; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkKinds___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___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkKinds___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* l___private_0__Lean_Elab_Term_checkKinds___lambda__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: +{ +uint8_t x_11; uint8_t x_12; uint8_t x_13; +x_11 = l_Lean_Elab_DefKind_isTheorem(x_1); +x_12 = l_Lean_Elab_DefKind_isTheorem(x_2); +if (x_11 == 0) +{ +if (x_12 == 0) +{ +uint8_t x_19; +x_19 = 1; +x_13 = x_19; +goto block_18; +} +else +{ +uint8_t x_20; +x_20 = 0; +x_13 = x_20; +goto block_18; +} +} +else +{ +if (x_12 == 0) +{ +uint8_t x_21; +x_21 = 0; +x_13 = x_21; +goto block_18; +} +else +{ +uint8_t x_22; +x_22 = 1; +x_13 = x_22; +goto block_18; +} +} +block_18: +{ +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_4); +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_10); +return x_17; +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkKinds___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("cannot mix examples and definitions"); +return x_1; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_checkKinds___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkKinds___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_0__Lean_Elab_Term_checkKinds___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_checkKinds___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_0__Lean_Elab_Term_checkKinds(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) { +_start: +{ +uint8_t x_10; uint8_t x_11; uint8_t x_12; +x_10 = l_Lean_Elab_DefKind_isExample(x_1); +x_11 = l_Lean_Elab_DefKind_isExample(x_2); +if (x_10 == 0) +{ +if (x_11 == 0) +{ +uint8_t x_22; +x_22 = 1; +x_12 = x_22; +goto block_21; +} +else +{ +uint8_t x_23; +x_23 = 0; +x_12 = x_23; +goto block_21; +} +} +else +{ +if (x_11 == 0) +{ +uint8_t x_24; +x_24 = 0; +x_12 = x_24; +goto block_21; +} +else +{ +uint8_t x_25; +x_25 = 1; +x_12 = x_25; +goto block_21; +} +} +block_21: +{ +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l___private_0__Lean_Elab_Term_checkKinds___closed__3; +x_14 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +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; +} +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l___private_0__Lean_Elab_Term_checkKinds___lambda__1(x_1, x_2, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_20; +} +} +} +} +lean_object* l___private_0__Lean_Elab_Term_checkKinds___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; 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_0__Lean_Elab_Term_checkKinds___lambda__1(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); +lean_dec(x_3); +return x_13; +} +} +lean_object* l___private_0__Lean_Elab_Term_checkKinds___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_11; lean_object* x_12; @@ -1124,7 +1205,7 @@ x_10 = lean_unbox(x_1); lean_dec(x_1); x_11 = lean_unbox(x_2); lean_dec(x_2); -x_12 = l___private_Lean_Elab_MutualDef_2__checkKinds(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_0__Lean_Elab_Term_checkKinds(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1133,35 +1214,83 @@ lean_dec(x_4); return x_12; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__1() { +lean_object* l___private_0__Lean_Elab_Term_check_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("invalid mutually recursive definitions, "); -return x_1; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +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); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__2() { +} +lean_object* l___private_0__Lean_Elab_Term_check_match__1(lean_object* x_1) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___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_0__Lean_Elab_Term_check_match__1___rarg), 3, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__3() { +lean_object* l___private_0__Lean_Elab_Term_check___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_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___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_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_1, 1); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_13 = l___private_0__Lean_Elab_Term_checkModifiers(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); +x_17 = l___private_0__Lean_Elab_Term_checkKinds(x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_4); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__4() { +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1169,27 +1298,264 @@ x_1 = lean_mk_string("universe parameters mismatch"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__5() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__4; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__6() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__5; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__7() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid mutually recursive definitions, "); +return x_1; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_check___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_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_array_get_size(x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_lt(x_12, x_11); +lean_dec(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_4); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_10); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_array_fget(x_1, x_12); +x_17 = lean_ctor_get(x_2, 4); +x_18 = lean_ctor_get(x_16, 4); +lean_inc(x_18); +x_19 = l_List_beq___main___at_Lean_OpenDecl_HasToString___spec__1(x_17, x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_16); +x_20 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__3; +x_21 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_21, 0); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 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_23, 1); +x_26 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +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_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_23, 1, x_29); +return x_21; +} +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; lean_object* x_36; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +x_32 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_21, 0, x_36); +return x_21; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +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_ctor_get(x_37, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_41 = x_37; +} else { + lean_dec_ref(x_37); + x_41 = lean_box(0); +} +x_42 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +x_44 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +if (lean_is_scalar(x_41)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_41; +} +lean_ctor_set(x_46, 0, x_39); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_38); +return x_47; +} +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(0); +x_49 = l___private_0__Lean_Elab_Term_check___lambda__1(x_2, x_16, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_16); +if (lean_obj_tag(x_49) == 0) +{ +return x_49; +} +else +{ +uint8_t x_50; +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_49, 0); +x_52 = !lean_is_exclusive(x_51); +if (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_51, 1); +x_54 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +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_forallTelescopeCompatibleAux___rarg___lambda__4___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); +lean_ctor_set(x_51, 1, x_57); +return x_49; +} +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; +x_58 = lean_ctor_get(x_51, 0); +x_59 = lean_ctor_get(x_51, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_51); +x_60 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_63 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_58); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_49, 0, x_64); +return x_49; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_65 = lean_ctor_get(x_49, 0); +x_66 = lean_ctor_get(x_49, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_49); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_69 = x_65; +} else { + lean_dec_ref(x_65); + x_69 = lean_box(0); +} +x_70 = l___private_0__Lean_Elab_Term_check___lambda__2___closed__5; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_68); +x_72 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +if (lean_is_scalar(x_69)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_69; +} +lean_ctor_set(x_74, 0, x_67); +lean_ctor_set(x_74, 1, x_73); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_66); +return x_75; +} +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -1197,27 +1563,83 @@ x_1 = lean_mk_string("'unsafe' subsumes 'partial'"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__8() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__7; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__9() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__8; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__10() { +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: +{ +uint8_t x_11; lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_2, 1); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 2); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = 0; +x_11 = x_23; +goto block_20; +} +else +{ +uint8_t x_24; +x_24 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 3); +x_11 = x_24; +goto block_20; +} +block_20: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_0__Lean_Elab_Term_check___lambda__2(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l___private_0__Lean_Elab_Term_check___lambda__3___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -1225,27 +1647,83 @@ x_1 = lean_mk_string("'noncomputable partial' is not allowed"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__11() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__10; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__12() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__11; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__13() { +lean_object* l___private_0__Lean_Elab_Term_check___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: +{ +uint8_t x_11; lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_2, 1); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 1); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = 0; +x_11 = x_23; +goto block_20; +} +else +{ +uint8_t x_24; +x_24 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 2); +x_11 = x_24; +goto block_20; +} +block_20: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_0__Lean_Elab_Term_check___lambda__3(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l___private_0__Lean_Elab_Term_check___lambda__4___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -1253,27 +1731,83 @@ x_1 = lean_mk_string("'noncomputable unsafe' is not allowed"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__14() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__13; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__5___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_Elab_MutualDef_3__check___closed__15() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__14; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__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___private_Lean_Elab_MutualDef_3__check___closed__16() { +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: +{ +uint8_t x_11; lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_2, 1); +x_22 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 1); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = 0; +x_11 = x_23; +goto block_20; +} +else +{ +uint8_t x_24; +x_24 = lean_ctor_get_uint8(x_21, sizeof(void*)*2 + 3); +x_11 = x_24; +goto block_20; +} +block_20: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l___private_0__Lean_Elab_Term_check___lambda__5___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__1() { _start: { lean_object* x_1; @@ -1281,27 +1815,84 @@ x_1 = lean_mk_string("'theorem' subsumes 'noncomputable', code is not generated return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__17() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__16; +x_1 = l___private_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_3__check___closed__18() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__17; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__6___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___private_Lean_Elab_MutualDef_3__check___closed__19() { +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: +{ +uint8_t x_11; uint8_t x_21; uint8_t x_22; +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); +x_22 = l_Lean_Elab_DefKind_isTheorem(x_21); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = 0; +x_11 = x_23; +goto block_20; +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_2, 1); +x_25 = lean_ctor_get_uint8(x_24, sizeof(void*)*2 + 1); +x_11 = x_25; +goto block_20; +} +block_20: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_0__Lean_Elab_Term_check___lambda__5(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l___private_0__Lean_Elab_Term_check___lambda__6___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__1() { _start: { lean_object* x_1; @@ -1309,27 +1900,84 @@ x_1 = lean_mk_string("'partial' theorems are not allowed, 'partial' is a code ge return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__20() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__19; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__7___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_Elab_MutualDef_3__check___closed__21() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__20; +x_1 = l___private_0__Lean_Elab_Term_check___lambda__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___private_Lean_Elab_MutualDef_3__check___closed__22() { +lean_object* l___private_0__Lean_Elab_Term_check___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; uint8_t x_21; uint8_t x_22; +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); +x_22 = l_Lean_Elab_DefKind_isTheorem(x_21); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = 0; +x_11 = x_23; +goto block_20; +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_2, 1); +x_25 = lean_ctor_get_uint8(x_24, sizeof(void*)*2 + 2); +x_11 = x_25; +goto block_20; +} +block_20: +{ +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l___private_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = l___private_0__Lean_Elab_Term_check___lambda__7___closed__3; +x_15 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +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; +} +} +} +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_check___closed__1() { _start: { lean_object* x_1; @@ -1337,584 +1985,200 @@ x_1 = lean_mk_string("'unsafe' theorems are not allowed"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_3__check___closed__23() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__22; +x_1 = l___private_0__Lean_Elab_Term_check___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_Elab_MutualDef_3__check___closed__24() { +static lean_object* _init_l___private_0__Lean_Elab_Term_check___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_3__check___closed__23; +x_1 = l___private_0__Lean_Elab_Term_check___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_Elab_MutualDef_3__check(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_check(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_123; lean_object* x_124; -x_10 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); -x_123 = l_Lean_Elab_DefKind_isTheorem(x_10); -if (x_123 == 0) +uint8_t x_10; uint8_t x_20; uint8_t x_21; +x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*8); +x_21 = l_Lean_Elab_DefKind_isTheorem(x_20); +if (x_21 == 0) { -x_124 = x_9; -goto block_140; +uint8_t x_22; +x_22 = 0; +x_10 = x_22; +goto block_19; } else { -lean_object* x_141; uint8_t x_142; -x_141 = lean_ctor_get(x_2, 1); -x_142 = lean_ctor_get_uint8(x_141, sizeof(void*)*2 + 3); -if (x_142 == 0) +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_2, 1); +x_24 = lean_ctor_get_uint8(x_23, sizeof(void*)*2 + 3); +x_10 = x_24; +goto block_19; +} +block_19: { -x_124 = x_9; -goto block_140; +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l___private_0__Lean_Elab_Term_check___lambda__7(x_1, x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; } else { -lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_143 = l___private_Lean_Elab_MutualDef_3__check___closed__24; -x_144 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_143, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_145 = !lean_is_exclusive(x_144); -if (x_145 == 0) +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l___private_0__Lean_Elab_Term_check___closed__3; +x_14 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -return x_144; +return x_14; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_144, 0); -x_147 = lean_ctor_get(x_144, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_144); -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; -} -} -} -block_122: -{ -lean_object* x_12; lean_object* x_13; uint8_t x_97; lean_object* x_98; -x_12 = lean_ctor_get(x_2, 1); -x_97 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 1); -if (x_97 == 0) -{ -x_98 = x_11; -goto block_114; -} -else -{ -uint8_t x_115; -x_115 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 3); -if (x_115 == 0) -{ -x_98 = x_11; -goto block_114; -} -else -{ -lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_116 = l___private_Lean_Elab_MutualDef_3__check___closed__15; -x_117 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -return x_117; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_117); -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_96: -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_lt(x_15, x_14); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); lean_dec(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_3); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_13); +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; } -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; -x_19 = lean_array_fget(x_1, x_15); -x_20 = lean_ctor_get(x_2, 4); -x_21 = lean_ctor_get(x_19, 4); -lean_inc(x_21); -x_22 = l_List_beq___main___at_Lean_OpenDecl_HasToString___spec__1(x_20, x_21); -lean_dec(x_21); -if (x_22 == 0) -{ -uint8_t x_94; -x_94 = 0; -x_23 = x_94; -goto block_93; -} -else -{ -uint8_t x_95; -x_95 = 1; -x_23 = x_95; -goto block_93; -} -block_93: -{ -lean_object* x_24; -if (x_23 == 0) -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec(x_19); -x_71 = l___private_Lean_Elab_MutualDef_3__check___closed__6; -x_72 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_13); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_72, 0); -x_75 = !lean_is_exclusive(x_74); -if (x_75 == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_74, 1); -x_77 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_78 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -lean_ctor_set(x_74, 1, x_78); -return x_72; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = lean_ctor_get(x_74, 0); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_74); -x_81 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_79); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set(x_72, 0, x_83); -return x_72; -} -} -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; -x_84 = lean_ctor_get(x_72, 0); -x_85 = lean_ctor_get(x_72, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_72); -x_86 = lean_ctor_get(x_84, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_88 = x_84; -} else { - lean_dec_ref(x_84); - x_88 = lean_box(0); -} -x_89 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_90 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -if (lean_is_scalar(x_88)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_88; -} -lean_ctor_set(x_91, 0, x_86); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_85); -return x_92; -} -} -else -{ -x_24 = x_13; -goto block_70; -} -block_70: -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_19, 1); -lean_inc(x_25); -lean_inc(x_3); -x_26 = l___private_Lean_Elab_MutualDef_1__checkModifiers(x_12, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -lean_dec(x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_ctor_get_uint8(x_19, sizeof(void*)*8); -lean_dec(x_19); -x_29 = l___private_Lean_Elab_MutualDef_2__checkKinds(x_10, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -if (lean_obj_tag(x_29) == 0) -{ -return x_29; -} -else -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_29, 0); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 1); -x_34 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -lean_ctor_set(x_31, 1, x_35); -return x_29; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_31, 0); -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_31); -x_38 = l___private_Lean_Elab_MutualDef_3__check___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 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_36); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_29, 0, x_40); -return x_29; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_29); -x_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_45 = x_41; -} else { - lean_dec_ref(x_41); - x_45 = lean_box(0); -} -x_46 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_47); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_42); -return x_49; } } } -else +} +lean_object* l___private_0__Lean_Elab_Term_check___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_50; -lean_dec(x_19); +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___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_6); +lean_dec(x_5); lean_dec(x_3); -x_50 = !lean_is_exclusive(x_26); -if (x_50 == 0) +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_0__Lean_Elab_Term_check___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_51; uint8_t x_52; -x_51 = lean_ctor_get(x_26, 0); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_51, 1); -x_54 = l___private_Lean_Elab_MutualDef_3__check___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); -lean_ctor_set(x_51, 1, x_55); -return x_26; +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___lambda__3(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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; } -else +} +lean_object* l___private_0__Lean_Elab_Term_check___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_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_51, 0); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_51); -x_58 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_56); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_26, 0, x_60); -return x_26; +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; } } -else +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: { -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; -x_61 = lean_ctor_get(x_26, 0); -x_62 = lean_ctor_get(x_26, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_26); -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_65 = x_61; -} else { - lean_dec_ref(x_61); - x_65 = lean_box(0); -} -x_66 = l___private_Lean_Elab_MutualDef_3__check___closed__3; -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -if (lean_is_scalar(x_65)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_65; -} -lean_ctor_set(x_68, 0, x_63); -lean_ctor_set(x_68, 1, x_67); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_62); -return x_69; +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___lambda__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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; } } -} -} -} -} -block_114: +lean_object* l___private_0__Lean_Elab_Term_check___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) { +_start: { -if (x_97 == 0) +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___lambda__6(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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_0__Lean_Elab_Term_check___lambda__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) { +_start: { -uint8_t x_99; -x_99 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); -if (x_99 == 0) -{ -x_13 = x_98; -goto block_96; -} -else -{ -uint8_t x_100; -x_100 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 3); -if (x_100 == 0) -{ -x_13 = x_98; -goto block_96; -} -else -{ -lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_101 = l___private_Lean_Elab_MutualDef_3__check___closed__9; -x_102 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_98); -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; +lean_object* x_11; +x_11 = l___private_0__Lean_Elab_Term_check___lambda__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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; } } -} -} -else -{ -uint8_t x_107; -x_107 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); -if (x_107 == 0) -{ -x_13 = x_98; -goto block_96; -} -else -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_108 = l___private_Lean_Elab_MutualDef_3__check___closed__12; -x_109 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_108, x_3, x_4, x_5, x_6, x_7, x_8, x_98); -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 0) -{ -return x_109; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_109, 0); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_109); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -} -} -block_140: -{ -if (x_123 == 0) -{ -x_11 = x_124; -goto block_122; -} -else -{ -lean_object* x_125; uint8_t x_126; -x_125 = lean_ctor_get(x_2, 1); -x_126 = lean_ctor_get_uint8(x_125, sizeof(void*)*2 + 2); -if (x_126 == 0) -{ -uint8_t x_127; -x_127 = lean_ctor_get_uint8(x_125, sizeof(void*)*2 + 1); -if (x_127 == 0) -{ -x_11 = x_124; -goto block_122; -} -else -{ -lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_128 = l___private_Lean_Elab_MutualDef_3__check___closed__18; -x_129 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_128, x_3, x_4, x_5, x_6, x_7, x_8, x_124); -x_130 = !lean_is_exclusive(x_129); -if (x_130 == 0) -{ -return x_129; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_129, 0); -x_132 = lean_ctor_get(x_129, 1); -lean_inc(x_132); -lean_inc(x_131); -lean_dec(x_129); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -return x_133; -} -} -} -else -{ -lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_134 = l___private_Lean_Elab_MutualDef_3__check___closed__21; -x_135 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_134, x_3, x_4, x_5, x_6, x_7, x_8, x_124); -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) -{ -return x_135; -} -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* l___private_Lean_Elab_MutualDef_3__check___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_check___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_3__check(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_check(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); @@ -1925,7 +2189,7 @@ lean_dec(x_1); return x_10; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1() { +static lean_object* _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1() { _start: { lean_object* x_1; @@ -1933,40 +2197,40 @@ x_1 = lean_mk_string("failed to infer definition type"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1; +x_1 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___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_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2; +x_1 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___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_Elab_MutualDef_4__registerFailedToInferDefTypeInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3; +x_10 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3; x_11 = l_Lean_Elab_Term_registerCustomErrorIfMVar(x_1, x_2, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } -lean_object* l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(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); @@ -1977,217 +2241,38 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___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_0__Lean_Elab_Term_elabFunType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_10; -x_10 = l_Array_isEmpty___rarg(x_1); -if (x_10 == 0) +if (lean_obj_tag(x_1) == 0) { -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; uint8_t x_22; lean_object* x_23; -x_11 = lean_st_ref_get(x_6, x_9); -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_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_st_ref_get(x_8, x_13); -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, 2); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_5, 1); -lean_inc(x_19); -x_20 = l_Std_HashMap_inhabited___closed__1; -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_14); -lean_ctor_set(x_21, 1, x_18); -lean_ctor_set(x_21, 2, x_20); -x_22 = 0; -x_23 = l_Lean_MetavarContext_MkBinding_mkBinding(x_22, x_19, x_1, x_2, x_22, x_22, x_21); -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; lean_object* x_29; lean_object* x_30; uint8_t x_31; -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); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -x_28 = lean_st_ref_take(x_8, x_17); -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_is_exclusive(x_29); -if (x_31 == 0) -{ -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_32 = lean_ctor_get(x_29, 2); -lean_dec(x_32); -lean_ctor_set(x_29, 2, x_27); -x_33 = lean_st_ref_set(x_8, x_29, x_30); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_ctor_get(x_25, 0); -lean_inc(x_35); -lean_dec(x_25); -x_36 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_35, x_5, x_6, x_7, x_8, x_34); -lean_dec(x_5); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_26); -return x_36; +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_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(0, 2, 0); -lean_ctor_set(x_40, 0, x_26); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_41 = lean_ctor_get(x_29, 0); -x_42 = lean_ctor_get(x_29, 1); -x_43 = lean_ctor_get(x_29, 3); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_29); -x_44 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); -lean_ctor_set(x_44, 2, x_27); -lean_ctor_set(x_44, 3, x_43); -x_45 = lean_st_ref_set(x_8, x_44, x_30); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = lean_ctor_get(x_25, 0); -lean_inc(x_47); -lean_dec(x_25); -x_48 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_47, x_5, x_6, x_7, x_8, x_46); -lean_dec(x_5); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_50 = x_48; -} else { - lean_dec_ref(x_48); - x_50 = lean_box(0); -} -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(0, 2, 0); -} else { - x_51 = x_50; -} -lean_ctor_set(x_51, 0, x_26); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_52 = lean_ctor_get(x_23, 1); -lean_inc(x_52); -lean_dec(x_23); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_53, x_5, x_6, x_7, x_8, x_17); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); -lean_dec(x_52); -x_57 = lean_st_ref_take(x_8, x_55); -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_is_exclusive(x_58); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_58, 2); -lean_dec(x_61); -lean_ctor_set(x_58, 2, x_56); -x_62 = lean_st_ref_set(x_8, x_58, x_59); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_65 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_64, x_5, x_6, x_7, x_8, x_63); -lean_dec(x_5); -return x_65; -} -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; lean_object* x_72; lean_object* x_73; -x_66 = lean_ctor_get(x_58, 0); -x_67 = lean_ctor_get(x_58, 1); -x_68 = lean_ctor_get(x_58, 3); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_58); -x_69 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -lean_ctor_set(x_69, 2, x_56); -lean_ctor_set(x_69, 3, x_68); -x_70 = lean_st_ref_set(x_8, x_69, x_59); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -x_73 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_72, x_5, x_6, x_7, x_8, x_71); -lean_dec(x_5); -return x_73; -} -} -} -else -{ -lean_object* x_74; -lean_dec(x_5); +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_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_2); -lean_ctor_set(x_74, 1, x_9); -return x_74; +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } } -lean_object* l___private_Lean_Elab_MutualDef_5__elabFunType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_elabFunType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_elabFunType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_elabFunType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -2213,11 +2298,11 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo(x_14, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_16 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(x_14, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15); x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__1(x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +x_18 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_17); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2294,17 +2379,17 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean x_30 = lean_ctor_get(x_29, 1); lean_inc(x_30); lean_dec(x_29); -x_31 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +x_31 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_30); 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 = l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo(x_32, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +x_34 = l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(x_32, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_33); x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); lean_dec(x_34); -x_36 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__1(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +x_36 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_35); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2377,20 +2462,30 @@ return x_44; } } } -lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___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___private_0__Lean_Elab_Term_elabHeaders_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__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_4); -lean_dec(x_3); -return x_10; +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_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_3(x_2, x_3, x_4, x_5); +return x_6; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l___private_0__Lean_Elab_Term_elabHeaders_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_elabHeaders_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_11; @@ -2437,13 +2532,13 @@ x_21 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___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_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_23 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_23; } } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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_11; uint8_t x_12; @@ -2457,7 +2552,7 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_14; } else @@ -2474,7 +2569,7 @@ x_18 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; 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_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_20 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -2496,7 +2591,7 @@ return x_24; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___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; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -2515,7 +2610,7 @@ if (x_13 == 0) { lean_object* x_14; lean_object* x_15; x_14 = lean_box(0); -x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___lambda__2(x_1, x_12, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___lambda__2(x_1, x_12, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -2537,7 +2632,7 @@ x_20 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_22 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_11); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) { @@ -2574,7 +2669,7 @@ x_31 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; 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 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_33 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_11); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { @@ -2597,7 +2692,7 @@ return x_37; } } } -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, 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_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, 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: { switch (x_1) { @@ -2605,7 +2700,7 @@ case 0: { lean_object* x_10; lean_inc(x_2); -x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4(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; @@ -2659,7 +2754,7 @@ case 1: lean_object* x_19; lean_inc(x_3); lean_inc(x_2); -x_19 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_19 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); 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; uint8_t x_28; @@ -2678,7 +2773,7 @@ lean_dec(x_22); x_25 = l_Lean_protectedExt; lean_inc(x_2); x_26 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_25, x_24, x_2); -x_27 = l_Lean_setEnv___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_27 = l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_23); lean_dec(x_3); x_28 = !lean_is_exclusive(x_27); if (x_28 == 0) @@ -2740,7 +2835,7 @@ lean_inc(x_39); lean_dec(x_37); x_40 = l_Lean_mkPrivateName(x_39, x_2); lean_inc(x_40); -x_41 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_38); +x_41 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_38); if (lean_obj_tag(x_41) == 0) { uint8_t x_42; @@ -2792,7 +2887,7 @@ return x_49; } } } -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; uint8_t x_13; lean_object* x_14; @@ -2800,7 +2895,7 @@ lean_inc(x_2); x_12 = l_Lean_Name_append___main(x_1, x_2); x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); lean_inc(x_5); -x_14 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__3(x_13, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___spec__3(x_13, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; @@ -2862,7 +2957,7 @@ x_31 = lean_ctor_get(x_14, 1); lean_inc(x_31); lean_dec(x_14); x_32 = l_Lean_Elab_mkDeclName___rarg___lambda__1___closed__3; -x_33 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_31); +x_33 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_31); return x_33; } } @@ -2928,7 +3023,7 @@ return x_44; } } } -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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; lean_object* x_12; uint8_t x_13; @@ -2957,7 +3052,7 @@ x_18 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__3___closed__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_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_20 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -2981,7 +3076,7 @@ else { lean_object* x_25; lean_object* x_26; x_25 = lean_box(0); -x_26 = l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__2___lambda__1(x_1, x_3, x_2, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_26 = l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___spec__2___lambda__1(x_1, x_3, x_2, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_26; } } @@ -2990,12 +3085,12 @@ else lean_object* x_27; lean_object* x_28; lean_dec(x_12); x_27 = lean_box(0); -x_28 = l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__2___lambda__1(x_1, x_3, x_2, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_28 = l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___spec__2___lambda__1(x_1, x_3, x_2, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_28; } } } -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___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) { _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; @@ -3009,11 +3104,11 @@ x_12 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; 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_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; uint8_t x_13; @@ -3069,7 +3164,7 @@ x_26 = l_Lean_replaceRef(x_25, x_23); lean_dec(x_23); lean_dec(x_25); lean_ctor_set(x_9, 3, x_26); -x_27 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__5(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_27 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___spec__5(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); x_28 = !lean_is_exclusive(x_27); if (x_28 == 0) @@ -3114,7 +3209,7 @@ lean_ctor_set(x_39, 0, x_32); lean_ctor_set(x_39, 1, x_33); lean_ctor_set(x_39, 2, x_34); lean_ctor_set(x_39, 3, x_38); -x_40 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__5(x_18, x_5, x_6, x_7, x_8, x_39, x_10, x_11); +x_40 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___spec__5(x_18, x_5, x_6, x_7, x_8, x_39, x_10, x_11); lean_dec(x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); @@ -3141,7 +3236,7 @@ return x_44; } } } -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { uint8_t x_13; @@ -3157,7 +3252,7 @@ x_17 = l_Lean_replaceRef(x_16, x_14); lean_dec(x_14); lean_dec(x_16); lean_ctor_set(x_10, 3, x_17); -x_18 = l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_18 = l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_10); if (lean_obj_tag(x_18) == 0) { @@ -3249,7 +3344,7 @@ lean_ctor_set(x_41, 0, x_34); lean_ctor_set(x_41, 1, x_35); lean_ctor_set(x_41, 2, x_36); lean_ctor_set(x_41, 3, x_40); -x_42 = l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_41, x_11, x_12); +x_42 = l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___spec__2(x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_41, x_11, x_12); lean_dec(x_41); if (lean_obj_tag(x_42) == 0) { @@ -3312,7 +3407,7 @@ return x_53; } } } -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -3337,7 +3432,7 @@ x_22 = l_Array_foldlStepMAux___main___at_Lean_Syntax_getSepArgs___spec__1(x_19, lean_dec(x_18); lean_inc(x_9); lean_inc(x_5); -x_23 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__6(x_14, x_22, x_20, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_23 = l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___spec__6(x_14, x_22, x_20, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_22); lean_dec(x_14); if (lean_obj_tag(x_23) == 0) @@ -3348,7 +3443,7 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); -x_26 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__1___lambda__1(x_3, x_1, x_4, x_13, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +x_26 = l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___spec__1___lambda__1(x_3, x_1, x_4, x_13, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_25); return x_26; } else @@ -3382,12 +3477,12 @@ else { lean_object* x_31; lean_dec(x_14); -x_31 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__1___lambda__1(x_3, x_1, x_4, x_13, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_31 = l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___spec__1___lambda__1(x_3, x_1, x_4, x_13, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_31; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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, lean_object* x_15) { +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; @@ -3402,7 +3497,7 @@ lean_inc(x_9); lean_inc(x_1); lean_inc(x_8); lean_inc(x_16); -x_17 = l___private_Lean_Elab_MutualDef_5__elabFunType(x_16, x_8, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = l___private_0__Lean_Elab_Term_elabFunType(x_16, x_8, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -3425,7 +3520,7 @@ lean_ctor_set(x_22, 5, x_21); lean_ctor_set(x_22, 6, x_18); lean_ctor_set(x_22, 7, x_16); lean_ctor_set_uint8(x_22, sizeof(void*)*8, x_20); -x_23 = l___private_Lean_Elab_MutualDef_3__check(x_7, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_19); +x_23 = l___private_0__Lean_Elab_Term_check(x_7, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_19); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3437,54 +3532,51 @@ uint8_t x_24; x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; +lean_object* x_25; x_25 = lean_ctor_get(x_23, 0); lean_dec(x_25); -x_26 = lean_array_push(x_7, x_22); -lean_ctor_set(x_23, 0, x_26); +lean_ctor_set(x_23, 0, x_22); 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_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); lean_dec(x_23); -x_28 = lean_array_push(x_7, x_22); -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; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } else { -uint8_t x_30; +uint8_t x_28; lean_dec(x_22); -lean_dec(x_7); -x_30 = !lean_is_exclusive(x_23); -if (x_30 == 0) +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) { return x_23; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_23, 0); -x_32 = lean_ctor_get(x_23, 1); -lean_inc(x_32); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_inc(x_29); lean_dec(x_23); -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; +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_34; +uint8_t x_32; lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); @@ -3493,185 +3585,182 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_17); -if (x_34 == 0) +x_32 = !lean_is_exclusive(x_17); +if (x_32 == 0) { return x_17; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -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_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_17, 0); +x_34 = lean_ctor_get(x_17, 1); +lean_inc(x_34); +lean_inc(x_33); lean_dec(x_17); -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; +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_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_2); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) { -lean_object* x_14; +lean_object* x_13; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = lean_ctor_get(x_15, 0); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_14 = lean_array_uget(x_1, x_3); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_9, 2); +x_19 = lean_ctor_get(x_9, 3); +x_20 = l_Lean_replaceRef(x_15, x_19); +x_21 = l_Lean_replaceRef(x_20, x_19); +lean_dec(x_20); +x_22 = l_Lean_replaceRef(x_21, x_19); +lean_dec(x_21); lean_inc(x_18); -x_19 = lean_ctor_get(x_9, 0); -x_20 = lean_ctor_get(x_9, 1); -x_21 = lean_ctor_get(x_9, 2); -x_22 = lean_ctor_get(x_9, 3); -x_23 = l_Lean_replaceRef(x_18, x_22); -x_24 = l_Lean_replaceRef(x_23, x_22); -lean_dec(x_23); -x_25 = l_Lean_replaceRef(x_24, x_22); -lean_dec(x_24); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -x_26 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_26, 0, x_19); -lean_ctor_set(x_26, 1, x_20); -lean_ctor_set(x_26, 2, x_21); -lean_ctor_set(x_26, 3, x_25); -x_27 = lean_ctor_get(x_5, 2); +lean_inc(x_17); +lean_inc(x_16); +x_23 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_22); +x_24 = lean_ctor_get(x_5, 2); +lean_inc(x_24); +x_25 = l_Lean_Elab_Term_getLevelNames(x_5, x_6, x_7, x_8, x_23, x_10, x_11); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); -x_28 = l_Lean_Elab_Term_getLevelNames(x_5, x_6, x_7, x_8, x_26, x_10, x_11); -x_29 = lean_ctor_get(x_28, 0); +lean_dec(x_25); +x_28 = lean_ctor_get(x_14, 2); +lean_inc(x_28); +x_29 = lean_ctor_get(x_14, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); +lean_inc(x_23); +lean_inc(x_5); +x_30 = l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___spec__1(x_24, x_26, x_28, x_29, x_5, x_6, x_7, x_8, x_23, x_10, x_27); lean_dec(x_28); -x_31 = lean_ctor_get(x_15, 2); +if (lean_obj_tag(x_30) == 0) +{ +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_38; lean_object* x_39; +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_15, 1); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -lean_inc(x_26); -lean_inc(x_5); -x_33 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__1(x_27, x_29, x_31, x_32, x_5, x_6, x_7, x_8, x_26, x_10, x_30); -lean_dec(x_31); -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; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; -x_34 = lean_ctor_get(x_33, 0); +lean_dec(x_30); +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +x_35 = lean_ctor_get(x_31, 2); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_31); +x_36 = lean_ctor_get(x_29, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -x_38 = lean_ctor_get(x_34, 2); -lean_inc(x_38); -lean_dec(x_34); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -x_40 = 2; -x_41 = 1; +x_37 = 2; +x_38 = 1; lean_inc(x_10); -lean_inc(x_26); +lean_inc(x_23); lean_inc(x_5); -lean_inc(x_37); -x_42 = l_Lean_Elab_Term_applyAttributesAt(x_37, x_39, x_40, x_41, x_5, x_6, x_7, x_8, x_26, x_10, x_35); -lean_dec(x_39); -if (lean_obj_tag(x_42) == 0) +lean_inc(x_34); +x_39 = l_Lean_Elab_Term_applyAttributesAt(x_34, x_36, x_37, x_38, x_5, x_6, x_7, x_8, x_23, x_10, x_32); +lean_dec(x_36); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_ctor_get(x_15, 3); -lean_inc(x_44); -x_45 = l_Lean_Syntax_getArgs(x_44); -lean_dec(x_44); -lean_inc(x_38); -x_46 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__7___lambda__1), 15, 7); -lean_closure_set(x_46, 0, x_15); -lean_closure_set(x_46, 1, x_18); -lean_closure_set(x_46, 2, x_32); -lean_closure_set(x_46, 3, x_36); -lean_closure_set(x_46, 4, x_37); -lean_closure_set(x_46, 5, x_38); -lean_closure_set(x_46, 6, x_4); -x_47 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); -lean_closure_set(x_47, 0, x_45); -lean_closure_set(x_47, 1, x_46); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_ctor_get(x_14, 3); +lean_inc(x_41); +x_42 = l_Lean_Syntax_getArgs(x_41); +lean_dec(x_41); +lean_inc(x_4); +lean_inc(x_35); +x_43 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1___boxed), 15, 7); +lean_closure_set(x_43, 0, x_14); +lean_closure_set(x_43, 1, x_15); +lean_closure_set(x_43, 2, x_29); +lean_closure_set(x_43, 3, x_33); +lean_closure_set(x_43, 4, x_34); +lean_closure_set(x_43, 5, x_35); +lean_closure_set(x_43, 6, x_4); +x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); +lean_closure_set(x_44, 0, x_42); +lean_closure_set(x_44, 1, x_43); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_48 = l_Lean_Elab_Term_withLevelNames___rarg(x_38, x_47, x_5, x_6, x_7, x_8, x_26, x_10, x_43); -if (lean_obj_tag(x_48) == 0) +x_45 = l_Lean_Elab_Term_withLevelNames___rarg(x_35, x_44, x_5, x_6, x_7, x_8, x_23, x_10, x_40); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_49; lean_object* x_50; -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_3 = x_17; -x_4 = x_49; -x_11 = x_50; +lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; +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_array_push(x_4, x_46); +x_49 = 1; +x_50 = x_3 + x_49; +x_3 = x_50; +x_4 = x_48; +x_11 = x_47; goto _start; } else { uint8_t x_52; -lean_dec(x_17); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_52 = !lean_is_exclusive(x_48); +lean_dec(x_4); +x_52 = !lean_is_exclusive(x_45); if (x_52 == 0) { -return x_48; +return x_45; } else { lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_48, 0); -x_54 = lean_ctor_get(x_48, 1); +x_53 = lean_ctor_get(x_45, 0); +x_54 = lean_ctor_get(x_45, 1); lean_inc(x_54); lean_inc(x_53); -lean_dec(x_48); +lean_dec(x_45); x_55 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_54); @@ -3682,33 +3771,32 @@ return x_55; else { uint8_t x_56; -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_36); -lean_dec(x_32); -lean_dec(x_26); -lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_29); +lean_dec(x_23); lean_dec(x_15); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_56 = !lean_is_exclusive(x_42); +x_56 = !lean_is_exclusive(x_39); if (x_56 == 0) { -return x_42; +return x_39; } else { lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_42, 0); -x_58 = lean_ctor_get(x_42, 1); +x_57 = lean_ctor_get(x_39, 0); +x_58 = lean_ctor_get(x_39, 1); lean_inc(x_58); lean_inc(x_57); -lean_dec(x_42); +lean_dec(x_39); x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_57); lean_ctor_set(x_59, 1, x_58); @@ -3719,30 +3807,29 @@ return x_59; else { uint8_t x_60; -lean_dec(x_32); -lean_dec(x_26); -lean_dec(x_18); -lean_dec(x_17); +lean_dec(x_29); +lean_dec(x_23); lean_dec(x_15); +lean_dec(x_14); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_60 = !lean_is_exclusive(x_33); +x_60 = !lean_is_exclusive(x_30); if (x_60 == 0) { -return x_33; +return x_30; } else { lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_33, 0); -x_62 = lean_ctor_get(x_33, 1); +x_61 = lean_ctor_get(x_30, 0); +x_62 = lean_ctor_get(x_30, 1); lean_inc(x_62); lean_inc(x_61); -lean_dec(x_33); +lean_dec(x_30); x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); @@ -3752,21 +3839,67 @@ return x_63; } } } -lean_object* l___private_Lean_Elab_MutualDef_6__elabHeaders(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_elabHeaders(lean_object* x_1, lean_object* x_2, 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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__7(x_1, x_1, x_9, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_11; +lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_array_get_size(x_1); +x_10 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_11 = 0; +x_12 = l_Array_empty___closed__1; +x_13 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7(x_1, x_10, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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) { +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___lambda__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_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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); @@ -3776,11 +3909,11 @@ lean_dec(x_3); return x_11; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4___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_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4___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); @@ -3790,11 +3923,11 @@ lean_dec(x_3); return x_11; } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___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: { lean_object* x_9; -x_9 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_0__Lean_Elab_Term_elabHeaders___spec__4(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); @@ -3803,13 +3936,13 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___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: { uint8_t x_10; lean_object* x_11; x_10 = lean_unbox(x_1); lean_dec(x_1); -x_11 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__3(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l_Lean_Elab_applyVisibility___at___private_0__Lean_Elab_Term_elabHeaders___spec__3(x_10, 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); @@ -3818,11 +3951,11 @@ lean_dec(x_4); return x_11; } } -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; -x_12 = l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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 = l_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3833,11 +3966,11 @@ lean_dec(x_3); return x_12; } } -lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_mkDeclName___at___private_0__Lean_Elab_Term_elabHeaders___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); @@ -3847,11 +3980,11 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_0__Lean_Elab_Term_elabHeaders___spec__5(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); @@ -3860,11 +3993,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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 = l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_elabHeaders___spec__6(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_8); lean_dec(x_7); @@ -3874,11 +4007,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_13; -x_13 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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 = l_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -3888,11 +4021,11 @@ lean_dec(x_1); return x_13; } } -lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___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) { _start: { lean_object* x_12; -x_12 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_6__elabHeaders___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_Lean_Elab_expandDeclId___at___private_0__Lean_Elab_Term_elabHeaders___spec__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_8); lean_dec(x_7); @@ -3902,39 +4035,51 @@ lean_dec(x_3); return x_12; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___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* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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, lean_object* x_15) { _start: { -lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__elabHeaders___spec__7(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_9); +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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, x_15); +lean_dec(x_7); +return x_16; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_elabHeaders___spec__7(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_9); lean_dec(x_1); -return x_12; +return x_14; } } -lean_object* l___private_Lean_Elab_MutualDef_6__elabHeaders___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_elabHeaders___boxed(lean_object* x_1, lean_object* x_2, 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_Elab_MutualDef_6__elabHeaders(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_0__Lean_Elab_Term_elabHeaders(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_6); lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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* l___private_0__Lean_Elab_Term_withFunLocalDecls_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) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_unsigned_to_nat(1u); x_14 = lean_nat_add(x_1, x_13); x_15 = lean_array_push(x_2, x_5); -x_16 = l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main___rarg(x_3, x_4, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_16 = l___private_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg(x_3, x_4, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_16; } } -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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_0__Lean_Elab_Term_withFunLocalDecls_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; @@ -3958,69 +4103,53 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 6); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main___rarg___lambda__1___boxed), 12, 4); +x_18 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___lambda__1___boxed), 12, 4); lean_closure_set(x_18, 0, x_3); lean_closure_set(x_18, 1, x_4); lean_closure_set(x_18, 2, x_1); lean_closure_set(x_18, 3, x_2); x_19 = 4; -x_20 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(x_16, x_19, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_20 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_16, x_19, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_20; } } } -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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* l___private_0__Lean_Elab_Term_withFunLocalDecls_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) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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 = l___private_0__Lean_Elab_Term_withFunLocalDecls_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); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___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_Elab_MutualDef_7__withFunLocalDeclsAux___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_Elab_MutualDef_7__withFunLocalDeclsAux(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___rarg), 11, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_MutualDef_8__withFunLocalDecls___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_0__Lean_Elab_Term_withFunLocalDecls___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; x_10 = lean_unsigned_to_nat(0u); x_11 = l_Array_empty___closed__1; -x_12 = l___private_Lean_Elab_MutualDef_7__withFunLocalDeclsAux___main___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } } -lean_object* l___private_Lean_Elab_MutualDef_8__withFunLocalDecls(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_withFunLocalDecls(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_8__withFunLocalDecls___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_withFunLocalDecls___rarg), 9, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1() { +static lean_object* _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__1() { _start: { lean_object* x_1; @@ -4028,17 +4157,17 @@ x_1 = lean_mk_string("declValEqns"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1; +x_2 = l___private_0__Lean_Elab_Term_declValToTerm___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__3() { _start: { lean_object* x_1; @@ -4046,7 +4175,7 @@ x_1 = lean_mk_string("unexpected definition value"); return x_1; } } -lean_object* l___private_Lean_Elab_MutualDef_9__declValToTerm(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_declValToTerm(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4056,13 +4185,13 @@ x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); if (x_5 == 0) { lean_object* x_6; uint8_t x_7; -x_6 = l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2; +x_6 = l___private_0__Lean_Elab_Term_declValToTerm___closed__2; lean_inc(x_1); x_7 = l_Lean_Syntax_isOfKind(x_1, x_6); if (x_7 == 0) { lean_object* x_8; lean_object* x_9; -x_8 = l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3; +x_8 = l___private_0__Lean_Elab_Term_declValToTerm___closed__3; x_9 = l_Lean_Macro_throwError___rarg(x_1, x_8, x_2, x_3); lean_dec(x_2); return x_9; @@ -4092,70 +4221,7 @@ return x_16; } } } -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_10__elabFunValues___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, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_4); -lean_closure_set(x_11, 2, x_5); -x_12 = l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(x_1, x_2, x_11, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -return x_12; -} -else -{ -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_12, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -else -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) -{ -return x_12; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_12); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -} -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_10__elabFunValues___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_MutualDef_10__elabFunValues___spec__1___rarg), 10, 0); -return x_2; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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) { _start: { lean_object* x_7; uint8_t x_8; @@ -4189,7 +4255,7 @@ return x_14; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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; 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; @@ -4223,7 +4289,7 @@ lean_ctor_set(x_22, 1, x_21); lean_ctor_set(x_22, 2, x_11); lean_ctor_set(x_22, 3, x_13); lean_ctor_set(x_22, 4, x_14); -x_23 = l___private_Lean_Elab_MutualDef_9__declValToTerm(x_1, x_22, x_18); +x_23 = l___private_0__Lean_Elab_Term_declValToTerm(x_1, x_22, x_18); 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; uint8_t x_29; @@ -4323,7 +4389,7 @@ x_47 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_47, 0, x_46); x_48 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_45, x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +x_49 = l_Lean_throwErrorAt___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(x_45, x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_17); lean_dec(x_45); return x_49; } @@ -4332,13 +4398,13 @@ else lean_object* x_50; lean_dec(x_7); lean_dec(x_3); -x_50 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__2___rarg(x_17); +x_50 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__2___rarg(x_17); return x_50; } } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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) { _start: { lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; @@ -4361,7 +4427,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_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +x_17 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_16); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -4400,7 +4466,7 @@ return x_21; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -4411,31 +4477,31 @@ lean_inc(x_11); lean_dec(x_1); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__3), 10, 1); +x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__3), 10, 1); lean_closure_set(x_13, 0, x_2); -x_14 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__1___rarg(x_10, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_10, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_14; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1; +x_1 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1; x_2 = lean_alloc_closure((void*)(l_ReaderT_lift___rarg___boxed), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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_0__Lean_Elab_Term_elabFunValues___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; @@ -4471,13 +4537,13 @@ x_19 = lean_ctor_get(x_17, 4); lean_inc(x_19); x_20 = lean_ctor_get(x_17, 7); lean_inc(x_20); -x_21 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__2___boxed), 9, 1); +x_21 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__2___boxed), 9, 1); lean_closure_set(x_21, 0, x_20); -x_22 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2; +x_22 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2; x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 9, 2); lean_closure_set(x_23, 0, x_22); lean_closure_set(x_23, 1, x_21); -x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__4), 9, 1); +x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__4), 9, 1); lean_closure_set(x_24, 0, x_17); x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 9, 2); lean_closure_set(x_25, 0, x_23); @@ -4543,13 +4609,13 @@ return x_38; } } } -lean_object* l___private_Lean_Elab_MutualDef_10__elabFunValues(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_elabFunValues(lean_object* x_1, lean_object* x_2, 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; x_9 = x_1; x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2), 9, 2); +x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1), 9, 2); lean_closure_set(x_11, 0, x_10); lean_closure_set(x_11, 1, x_9); x_12 = x_11; @@ -4557,11 +4623,11 @@ x_13 = lean_apply_7(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_13; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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) { _start: { lean_object* x_7; -x_7 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___lambda__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); @@ -4570,11 +4636,11 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___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_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___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_6); lean_dec(x_5); @@ -4582,7 +4648,7 @@ lean_dec(x_4); return x_10; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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; @@ -4619,7 +4685,7 @@ goto _start; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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; @@ -4653,7 +4719,7 @@ goto _start; } } } -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___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_1) == 0) @@ -4692,28 +4758,28 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_11__collectUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_collectUsed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__1(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Array_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___spec__1(x_1, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__2(x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_15 = l_Array_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___spec__2(x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__3(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_17 = l_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___spec__3(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); return x_17; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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); @@ -4725,11 +4791,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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_forMAux___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_forMAux___main___at___private_0__Lean_Elab_Term_collectUsed___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); @@ -4741,11 +4807,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___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_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___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_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_forM___main___at___private_0__Lean_Elab_Term_collectUsed___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); @@ -4756,11 +4822,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_11__collectUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_collectUsed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Elab_MutualDef_11__collectUsed(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___private_0__Lean_Elab_Term_collectUsed(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); @@ -4773,7 +4839,28 @@ lean_dec(x_1); return x_12; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1() { +lean_object* l___private_0__Lean_Elab_Term_removeUnusedVars_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_0__Lean_Elab_Term_removeUnusedVars_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_removeUnusedVars_match__1___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4785,18 +4872,18 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_12__removeUnusedVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_removeUnusedVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_12 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; +x_12 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; x_13 = lean_st_mk_ref(x_12, 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 = l___private_Lean_Elab_MutualDef_11__collectUsed(x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_16 = l___private_0__Lean_Elab_Term_collectUsed(x_2, x_3, x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_15); x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); @@ -4811,11 +4898,11 @@ x_21 = l_Lean_Elab_Term_removeUnused(x_1, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x return x_21; } } -lean_object* l___private_Lean_Elab_MutualDef_12__removeUnusedVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_removeUnusedVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Elab_MutualDef_12__removeUnusedVars(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___private_0__Lean_Elab_Term_removeUnusedVars(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); lean_dec(x_3); @@ -4824,7 +4911,33 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(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* x_12, lean_object* x_13) { +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen_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___private_0__Lean_Elab_Term_withUsedWhen_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_withUsedWhen_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen___rarg(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* x_12, lean_object* x_13) { _start: { if (x_5 == 0) @@ -4841,7 +4954,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_15 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_0__Lean_Elab_Term_removeUnusedVars(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_1); if (lean_obj_tag(x_15) == 0) { @@ -4862,7 +4975,7 @@ x_21 = lean_ctor_get(x_17, 1); lean_inc(x_21); lean_dec(x_17); x_22 = lean_apply_1(x_6, x_21); -x_23 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_19, x_20, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +x_23 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_19, x_20, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_18); return x_23; } else @@ -4897,27 +5010,27 @@ return x_27; } } } -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg___boxed), 13, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_withUsedWhen___rarg___boxed), 13, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_0__Lean_Elab_Term_withUsedWhen___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_5); lean_dec(x_5); -x_15 = l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_0__Lean_Elab_Term_withUsedWhen___rarg(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_3); lean_dec(x_2); return x_15; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isExample___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_0__Lean_Elab_Term_isExample___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -4953,22 +5066,22 @@ return x_9; } } } -uint8_t l___private_Lean_Elab_MutualDef_14__isExample(lean_object* x_1) { +uint8_t l___private_0__Lean_Elab_Term_isExample(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; x_2 = lean_array_get_size(x_1); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isExample___spec__1(x_1, x_1, x_2, x_3); +x_4 = l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isExample___spec__1(x_1, x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isExample___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_0__Lean_Elab_Term_isExample___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_Elab_MutualDef_14__isExample___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isExample___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -4976,17 +5089,17 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_Elab_MutualDef_14__isExample___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_isExample___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_MutualDef_14__isExample(x_1); +x_2 = l___private_0__Lean_Elab_Term_isExample(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_15__isTheorem___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_0__Lean_Elab_Term_isTheorem___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -5022,22 +5135,22 @@ return x_9; } } } -uint8_t l___private_Lean_Elab_MutualDef_15__isTheorem(lean_object* x_1) { +uint8_t l___private_0__Lean_Elab_Term_isTheorem(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; x_2 = lean_array_get_size(x_1); x_3 = lean_unsigned_to_nat(0u); -x_4 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_15__isTheorem___spec__1(x_1, x_1, x_2, x_3); +x_4 = l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isTheorem___spec__1(x_1, x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_15__isTheorem___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_0__Lean_Elab_Term_isTheorem___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_Elab_MutualDef_15__isTheorem___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_0__Lean_Elab_Term_isTheorem___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -5045,17 +5158,17 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_Elab_MutualDef_15__isTheorem___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_isTheorem___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_MutualDef_15__isTheorem(x_1); +x_2 = l___private_0__Lean_Elab_Term_isTheorem(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtHeader(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_instantiateMVarsAtHeader(lean_object* x_1, lean_object* x_2, 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; @@ -5064,7 +5177,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = lean_ctor_get(x_1, 6); -x_11 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { @@ -5110,7 +5223,7 @@ lean_inc(x_20); lean_inc(x_18); lean_inc(x_17); lean_dec(x_1); -x_26 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_26 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -5144,11 +5257,11 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_instantiateMVarsAtHeader___boxed(lean_object* x_1, lean_object* x_2, 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_Elab_MutualDef_16__instantiateMVarsAtHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_0__Lean_Elab_Term_instantiateMVarsAtHeader(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); @@ -5158,7 +5271,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(lean_object* x_1, lean_object* x_2, 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; @@ -5168,13 +5281,13 @@ 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; uint8_t x_16; x_10 = lean_ctor_get(x_1, 7); x_11 = lean_ctor_get(x_1, 8); -x_12 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); 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_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +x_15 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_14); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -5225,13 +5338,13 @@ lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_dec(x_1); -x_31 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_31 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_28, x_2, x_3, 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_ctor_get(x_31, 1); lean_inc(x_33); lean_dec(x_31); -x_34 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_33); +x_34 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_33); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -5266,11 +5379,11 @@ return x_39; } } } -lean_object* l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift___boxed(lean_object* x_1, lean_object* x_2, 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_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(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); @@ -5280,7 +5393,86 @@ lean_dec(x_2); return x_9; } } -uint8_t l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_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_0__Lean_Elab_Term_typeHasRecFun_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_typeHasRecFun_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_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; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_5, sizeof(void*)*1); +lean_dec(x_5); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_2(x_2, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +} +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_typeHasRecFun_match__2___rarg), 3, 0); +return x_2; +} +} +uint8_t l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5292,7 +5484,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; x_4 = lean_ctor_get(x_3, 0); x_5 = lean_ctor_get(x_3, 1); -x_6 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1(x_1, x_2, x_5); +x_6 = l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_2, x_5); x_7 = lean_ctor_get(x_4, 1); x_8 = lean_name_eq(x_7, x_1); if (x_8 == 0) @@ -5308,7 +5500,7 @@ return x_9; } } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; size_t x_107; size_t x_108; lean_object* x_109; size_t x_110; uint8_t x_111; @@ -5351,7 +5543,7 @@ if (x_95 == 0) { uint8_t x_96; uint8_t x_97; x_96 = 0; -x_97 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1(x_94, x_96, x_2); +x_97 = l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_94, x_96, x_2); lean_dec(x_94); if (x_97 == 0) { @@ -5413,7 +5605,7 @@ lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); lean_inc(x_10); lean_dec(x_4); -x_11 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_3, x_9, x_7); +x_11 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_3, x_9, x_7); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); if (lean_obj_tag(x_12) == 0) @@ -5489,7 +5681,7 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_4, 2); lean_inc(x_26); lean_dec(x_4); -x_27 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_3, x_25, x_7); +x_27 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_3, x_25, x_7); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); if (lean_obj_tag(x_28) == 0) @@ -5565,7 +5757,7 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_4, 2); lean_inc(x_42); lean_dec(x_4); -x_43 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_3, x_41, x_7); +x_43 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_3, x_41, x_7); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); if (lean_obj_tag(x_44) == 0) @@ -5643,7 +5835,7 @@ lean_inc(x_58); x_59 = lean_ctor_get(x_4, 3); lean_inc(x_59); lean_dec(x_4); -x_60 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_3, x_57, x_7); +x_60 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_3, x_57, x_7); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); if (lean_obj_tag(x_61) == 0) @@ -5652,7 +5844,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64; x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_63 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_3, x_58, x_62); +x_63 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_3, x_58, x_62); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); if (lean_obj_tag(x_64) == 0) @@ -5811,13 +6003,13 @@ return x_92; } } } -lean_object* l___private_Lean_Elab_MutualDef_18__typeHasRecFun(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = 8192; x_5 = l_Lean_Expr_FindImpl_initCache; -x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_2, x_3, x_4, x_1, x_5); +x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_2, x_3, x_4, x_1, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); lean_dec(x_6); @@ -5880,42 +6072,104 @@ return x_16; } } } -lean_object* l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l_List_foldr___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__1(x_1, x_4, x_3); +x_5 = l_List_foldr___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__1(x_1, x_4, x_3); lean_dec(x_3); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___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* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2___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; lean_object* x_7; x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_MutualDef_18__typeHasRecFun___spec__2(x_1, x_2, x_6, x_4, x_5); +x_7 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_0__Lean_Elab_Term_typeHasRecFun___spec__2(x_1, x_2, x_6, x_4, x_5); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_MutualDef_18__typeHasRecFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_typeHasRecFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_MutualDef_18__typeHasRecFun(x_1, x_2, x_3); +x_4 = l___private_0__Lean_Elab_Term_typeHasRecFun(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___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___private_0__Lean_Elab_Term_getFunName_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___private_0__Lean_Elab_Term_getFunName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_getFunName_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_getFunName_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_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_0__Lean_Elab_Term_getFunName_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_getFunName_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -5929,7 +6183,7 @@ lean_ctor_set(x_11, 1, x_8); return x_11; } } -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_getFunName___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -5952,7 +6206,7 @@ return x_7; } } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_19__getFunName___closed__1() { +static lean_object* _init_l___private_0__Lean_Elab_Term_getFunName___closed__1() { _start: { lean_object* x_1; @@ -5960,33 +6214,33 @@ x_1 = lean_mk_string("unknown function"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_19__getFunName___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_getFunName___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_19__getFunName___closed__1; +x_1 = l___private_0__Lean_Elab_Term_getFunName___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_Elab_MutualDef_19__getFunName___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_getFunName___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_19__getFunName___closed__2; +x_1 = l___private_0__Lean_Elab_Term_getFunName___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_Elab_MutualDef_19__getFunName(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_getFunName(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_inc(x_5); lean_inc(x_1); -x_10 = l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_11) == 0) @@ -5999,15 +6253,15 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_10, 1); x_14 = lean_ctor_get(x_10, 0); lean_dec(x_14); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1___boxed), 2, 1); +x_15 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_getFunName___lambda__1___boxed), 2, 1); lean_closure_set(x_15, 0, x_1); x_16 = l_List_findSome_x3f___main___rarg(x_15, x_2); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_free_object(x_10); -x_17 = l___private_Lean_Elab_MutualDef_19__getFunName___closed__3; -x_18 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_17 = l___private_0__Lean_Elab_Term_getFunName___closed__3; +x_18 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_13); lean_dec(x_5); return x_18; } @@ -6029,14 +6283,14 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); lean_dec(x_10); -x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1___boxed), 2, 1); +x_21 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_getFunName___lambda__1___boxed), 2, 1); lean_closure_set(x_21, 0, x_1); x_22 = l_List_findSome_x3f___main___rarg(x_21, x_2); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Lean_Elab_MutualDef_19__getFunName___closed__3; -x_24 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_23 = l___private_0__Lean_Elab_Term_getFunName___closed__3; +x_24 = l_Lean_throwError___at_Lean_Elab_Term_quoteAutoTactic___spec__2___rarg(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_20); lean_dec(x_5); return x_24; } @@ -6095,11 +6349,11 @@ return x_34; } } } -lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___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_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___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_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_findLocalDecl_x3f___at___private_0__Lean_Elab_Term_getFunName___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); @@ -6108,21 +6362,21 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_MutualDef_19__getFunName___lambda__1(x_1, x_2); +x_3 = l___private_0__Lean_Elab_Term_getFunName___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_19__getFunName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_getFunName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_19__getFunName(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_getFunName(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); @@ -6130,7 +6384,38 @@ lean_dec(x_4); return x_10; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__1() { +lean_object* l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes_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___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1() { _start: { lean_object* x_1; @@ -6138,27 +6423,16 @@ x_1 = lean_mk_string("invalid type in 'let rec', it uses '"); return x_1; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__2() { +static lean_object* _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___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___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__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_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4() { +static lean_object* _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3() { _start: { lean_object* x_1; @@ -6166,27 +6440,16 @@ x_1 = lean_mk_string("' which is being defined simultaneously"); return x_1; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__5() { +static lean_object* _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__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_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___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_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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: { if (lean_obj_tag(x_3) == 0) @@ -6212,7 +6475,7 @@ lean_inc(x_14); lean_dec(x_3); x_15 = lean_ctor_get(x_13, 7); lean_inc(x_15); -x_16 = l___private_Lean_Elab_MutualDef_18__typeHasRecFun(x_15, x_1, x_2); +x_16 = l___private_0__Lean_Elab_Term_typeHasRecFun(x_15, x_1, x_2); if (lean_obj_tag(x_16) == 0) { lean_dec(x_13); @@ -6228,7 +6491,7 @@ lean_inc(x_18); lean_dec(x_16); lean_inc(x_6); lean_inc(x_4); -x_19 = l___private_Lean_Elab_MutualDef_19__getFunName(x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l___private_0__Lean_Elab_Term_getFunName(x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); 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; uint8_t x_29; @@ -6242,15 +6505,15 @@ lean_inc(x_22); lean_dec(x_13); x_23 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_23, 0, x_20); -x_24 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3; +x_24 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___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_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6; +x_26 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4; 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_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_22, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_28 = l_Lean_throwErrorAt___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(x_22, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_21); lean_dec(x_6); lean_dec(x_22); x_29 = !lean_is_exclusive(x_28); @@ -6302,20 +6565,20 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_checkLetRecsToLiftTypes(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_inc(x_2); -x_10 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1(x_1, x_2, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1(x_1, x_2, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___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_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___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_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___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_7); lean_dec(x_5); @@ -6323,11 +6586,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_checkLetRecsToLiftTypes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes(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_6); lean_dec(x_4); @@ -6335,64 +6598,87 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _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) +if (lean_obj_tag(x_1) == 0) { -lean_dec(x_3); -return x_4; -} -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; -x_7 = lean_array_fget(x_2, x_3); -x_8 = l_Lean_Expr_fvarId_x21(x_7); -lean_dec(x_7); -x_9 = lean_box(0); -x_10 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_8, x_9); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -lean_dec(x_3); -x_3 = x_12; -x_4 = x_10; -goto _start; -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; 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_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_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 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_5, x_8, x_2); -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; +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_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = x_3 < x_2; +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; +x_6 = lean_array_uget(x_1, x_3); +x_7 = l_Lean_Expr_fvarId_x21(x_6); +lean_dec(x_6); +x_8 = lean_box(0); +x_9 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_4, x_7, x_8); +x_10 = 1; +x_11 = x_3 + x_10; +x_3 = x_11; +x_4 = x_9; goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 < x_3; +if (x_6 == 0) +{ +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; +x_7 = lean_array_uget(x_2, x_4); +lean_inc(x_1); +x_8 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_5, x_7, x_1); +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +x_5 = x_8; +goto _start; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -6417,165 +6703,207 @@ return x_9; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___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_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_4); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) +uint8_t x_7; +x_7 = x_5 < x_4; +if (x_7 == 0) { -lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_array_fget(x_4, x_5); +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_array_uget(x_3, x_5); lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1___boxed), 3, 2); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_9); +x_9 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed), 3, 2); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_8); lean_inc(x_2); -x_11 = l_List_findSome_x3f___main___rarg(x_10, x_2); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_5, x_12); -lean_dec(x_5); -if (lean_obj_tag(x_11) == 0) +x_10 = l_List_findSome_x3f___main___rarg(x_9, x_2); +if (lean_obj_tag(x_10) == 0) { -x_5 = x_13; +size_t x_11; size_t x_12; +x_11 = 1; +x_12 = x_5 + x_11; +x_5 = x_12; goto _start; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_11, 0); -lean_inc(x_15); -lean_dec(x_11); -x_16 = lean_box(0); -x_17 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_6, x_15, x_16); -x_5 = x_13; -x_6 = x_17; +lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_box(0); +x_16 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_6, x_14, x_15); +x_17 = 1; +x_18 = x_5 + x_17; +x_5 = x_18; +x_6 = x_16; goto _start; } } } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_4) == 0) { lean_dec(x_2); lean_dec(x_1); -return x_3; +return x_5; } 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_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_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); +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; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); lean_dec(x_4); -x_7 = lean_ctor_get(x_5, 8); -lean_inc(x_7); -x_8 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; -lean_inc(x_7); -x_9 = l_Lean_CollectFVars_main___main(x_7, x_8); -x_10 = lean_ctor_get(x_5, 7); -lean_inc(x_10); -x_11 = l_Lean_CollectFVars_main___main(x_10, x_9); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_Meta_getMVarsImp___closed__1; -x_14 = l_Lean_Expr_collectMVars(x_13, x_7); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_unsigned_to_nat(0u); +x_8 = lean_ctor_get(x_6, 8); +lean_inc(x_8); +x_9 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; +lean_inc(x_8); +x_10 = l_Lean_CollectFVars_main___main(x_8, x_9); +x_11 = lean_ctor_get(x_6, 7); +lean_inc(x_11); +x_12 = l_Lean_CollectFVars_main___main(x_11, x_10); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_Meta_getMVarsImp___closed__1; +x_15 = l_Lean_Expr_collectMVars(x_14, x_8); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_array_get_size(x_16); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); lean_inc(x_2); lean_inc(x_1); -x_17 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_5, x_15, x_16, x_12); -lean_dec(x_15); -x_18 = lean_ctor_get(x_5, 1); -lean_inc(x_18); -lean_dec(x_5); -x_19 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_18, x_17); -x_3 = x_19; -x_4 = x_6; +x_19 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_16, x_18, x_3, x_13); +lean_dec(x_16); +x_20 = lean_ctor_get(x_6, 1); +lean_inc(x_20); +lean_dec(x_6); +x_21 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_5, x_20, x_19); +x_4 = x_7; +x_5 = x_21; goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(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; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_NameSet_empty; -x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1(x_2, x_2, x_5, x_6); -x_8 = lean_box(0); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__2(x_3, x_7, x_3, x_5, x_8); +lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_5 = lean_array_get_size(x_2); +x_6 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_7 = 0; +x_8 = l_Lean_NameSet_empty; +x_9 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(x_2, x_6, x_7, x_8); +x_10 = lean_box(0); +x_11 = lean_array_get_size(x_3); +x_12 = lean_usize_of_nat(x_11); +lean_dec(x_11); +x_13 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_9, x_3, x_12, x_7, x_10); lean_inc(x_4); -x_10 = l_List_foldl___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__4(x_1, x_4, x_9, x_4); -return x_10; +x_14 = l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_4, x_7, x_4, x_13); +return x_14; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__1(x_1, x_2, x_3, x_4); +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(x_1, x_5, x_6, x_4); lean_dec(x_1); -return x_5; +return x_7; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___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* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___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___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__2(x_1, x_2, x_3, x_4, x_5); +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -lean_dec(x_1); -return x_6; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +return x_8; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1(x_1, x_2, x_3); +x_4 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3___lambda__1(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___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_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_4); lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_Array_forInUnsafe_loop___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__3(x_1, x_2, x_3, x_7, x_8, x_6); lean_dec(x_3); +return x_9; +} +} +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___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; lean_object* x_7; +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4(x_1, x_2, x_6, x_4, x_5); return x_7; } } -lean_object* l___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___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_Elab_MutualDef_21__mkInitialUsedFVarsMap(x_1, x_2, x_3, x_4); +x_5 = l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Elab_MutualDef_22__isModified___rarg(lean_object* x_1) { +static lean_object* _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +static uint8_t _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; lean_object* x_4; @@ -6587,24 +6915,24 @@ lean_ctor_set(x_4, 1, x_1); return x_4; } } -lean_object* l___private_Lean_Elab_MutualDef_22__isModified(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_22__isModified___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg), 1, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_22__isModified___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_22__isModified(x_1); +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified___rarg(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___rarg(lean_object* x_1) { _start: { uint8_t x_2; @@ -6638,24 +6966,24 @@ return x_10; } } } -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_23__resetModified___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___rarg), 1, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_23__resetModified___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_23__resetModified(x_1); +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_24__markModified___rarg(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(lean_object* x_1) { _start: { uint8_t x_2; @@ -6689,24 +7017,24 @@ return x_10; } } } -lean_object* l___private_Lean_Elab_MutualDef_24__markModified(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_24__markModified___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg), 1, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_24__markModified___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_24__markModified(x_1); +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap___rarg(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -6718,24 +7046,24 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap___rarg), 1, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg), 1, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap(x_1); +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_26__modifyUsedFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -6771,16 +7099,16 @@ return x_14; } } } -lean_object* l___private_Lean_Elab_MutualDef_26__modifyUsedFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_MutualDef_26__modifyUsedFVars(x_1, x_2, x_3); +x_4 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -6801,7 +7129,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_2, 3); lean_inc(x_8); lean_dec(x_2); -x_9 = l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(x_1, x_6, x_3, x_4); +x_9 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_6, x_3, x_4); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -6811,7 +7139,7 @@ x_12 = l_Lean_NameSet_contains(x_10, x_7); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = l___private_Lean_Elab_MutualDef_24__markModified___rarg(x_11); +x_13 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___rarg(x_11); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); @@ -6833,33 +7161,95 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_27__merge(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(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_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__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_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l___private_Lean_Elab_MutualDef_27__merge___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___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_Elab_MutualDef_27__merge(x_1, x_2, x_3, x_4); +x_5 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_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___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_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___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6902,7 +7292,7 @@ goto _start; } } } -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___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_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___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: { if (lean_obj_tag(x_4) == 0) @@ -6919,7 +7309,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_ctor_get(x_4, 0); x_9 = lean_ctor_get(x_4, 1); x_10 = lean_ctor_get(x_4, 3); -x_11 = l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_8, x_5, x_6); +x_11 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_8, x_5, x_6); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -6929,7 +7319,7 @@ x_14 = lean_name_eq(x_1, x_9); if (x_14 == 0) { lean_object* x_15; -x_15 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(x_2, x_9); +x_15 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_2, x_9); if (lean_obj_tag(x_15) == 0) { x_3 = x_12; @@ -6943,7 +7333,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__merge___spec__1(x_12, x_17, x_5, x_13); +x_18 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___spec__1(x_12, x_17, x_5, x_13); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -6965,7 +7355,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -6973,18 +7363,18 @@ x_4 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_1, x_ return x_4; } } -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; -x_4 = l___private_Lean_Elab_MutualDef_25__getUsedFVarsMap___rarg(x_3); +x_4 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg(x_3); x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_4, 1); -x_8 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(x_6, x_1); +x_8 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_6, x_1); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; @@ -7002,7 +7392,7 @@ x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); lean_dec(x_8); lean_inc(x_10); -x_11 = l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2(x_1, x_6, x_10, x_10, x_2, x_7); +x_11 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_6, x_10, x_10, x_2, x_7); lean_dec(x_10); lean_dec(x_6); x_12 = lean_ctor_get(x_11, 0); @@ -7010,10 +7400,10 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___lambda__1), 3, 2); +x_14 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_12); -x_15 = l___private_Lean_Elab_MutualDef_26__modifyUsedFVars(x_14, x_2, x_13); +x_15 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_14, x_2, x_13); return x_15; } } @@ -7025,7 +7415,7 @@ x_17 = lean_ctor_get(x_4, 1); lean_inc(x_17); lean_inc(x_16); lean_dec(x_4); -x_18 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(x_16, x_1); +x_18 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_16, x_1); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; @@ -7044,7 +7434,7 @@ x_21 = lean_ctor_get(x_18, 0); lean_inc(x_21); lean_dec(x_18); lean_inc(x_21); -x_22 = l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2(x_1, x_16, x_21, x_21, x_2, x_17); +x_22 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(x_1, x_16, x_21, x_21, x_2, x_17); lean_dec(x_21); lean_dec(x_16); x_23 = lean_ctor_get(x_22, 0); @@ -7052,30 +7442,30 @@ 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___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___lambda__1), 3, 2); +x_25 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___lambda__1), 3, 2); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_23); -x_26 = l___private_Lean_Elab_MutualDef_26__modifyUsedFVars(x_25, x_2, x_24); +x_26 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_modifyUsedFVars(x_25, x_2, x_24); return x_26; } } } } -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(x_1, x_2); +x_3 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___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_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___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_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Std_RBNode_foldM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___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_2); @@ -7083,16 +7473,32 @@ lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf(x_1, x_2, x_3); +x_4 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7112,7 +7518,7 @@ lean_inc(x_6); x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); lean_dec(x_1); -x_8 = l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf(x_6, x_2, x_3); +x_8 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(x_6, x_2, x_3); x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); @@ -7122,20 +7528,20 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___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; lean_object* x_8; uint8_t x_9; -x_3 = l___private_Lean_Elab_MutualDef_23__resetModified___rarg(x_2); +x_3 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___rarg(x_2); x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); lean_inc(x_1); -x_5 = l_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1(x_1, x_1, x_4); +x_5 = l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1(x_1, x_1, x_4); x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); -x_7 = l___private_Lean_Elab_MutualDef_22__isModified___rarg(x_6); +x_7 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg(x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_unbox(x_8); @@ -7178,54 +7584,50 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_29__fixpoint___main___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___rarg), 2, 0); return x_2; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_forM___main___at___private_Lean_Elab_MutualDef_29__fixpoint___main___spec__1(x_1, x_2, x_3); +x_4 = l_List_forM___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___spec__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___main___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_29__fixpoint___main(x_1); +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l___private_Lean_Elab_MutualDef_29__fixpoint___main___rarg(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_29__fixpoint___rarg), 2, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_29__fixpoint(x_1); +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_Elab_Term_MutualClosure_FixPoint_run_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1___rarg), 2, 0); return x_2; } } @@ -7237,7 +7639,7 @@ x_3 = 0; x_4 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_4, 0, x_2); lean_ctor_set_uint8(x_4, sizeof(void*)*1, x_3); -x_5 = l___private_Lean_Elab_MutualDef_29__fixpoint___main___rarg(x_1, x_4); +x_5 = l___private_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___rarg(x_1, x_4); x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); @@ -7247,7 +7649,7 @@ lean_dec(x_6); return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7268,7 +7670,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__1(x_5); +x_7 = l_List_map___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -7284,7 +7686,7 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__1(x_9); +x_11 = l_List_map___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(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); @@ -7293,7 +7695,7 @@ return x_12; } } } -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -7312,7 +7714,7 @@ x_7 = lean_ctor_get(x_4, 3); lean_inc(x_7); lean_dec(x_4); lean_inc(x_2); -x_8 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2(x_1, x_2, x_3, x_5); +x_8 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(x_1, x_2, x_3, x_5); lean_inc(x_2); x_9 = l_Lean_LocalContext_contains(x_2, x_6); if (x_9 == 0) @@ -7345,7 +7747,7 @@ goto _start; } } } -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -7364,7 +7766,7 @@ x_7 = lean_ctor_get(x_4, 3); lean_inc(x_7); lean_dec(x_4); lean_inc(x_2); -x_8 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3(x_1, x_2, x_3, x_5); +x_8 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_2, x_3, x_5); lean_inc(x_2); x_9 = l_Lean_LocalContext_contains(x_2, x_6); if (x_9 == 0) @@ -7397,27 +7799,27 @@ goto _start; } } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_3) == 0) { -return x_3; +return x_4; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = lean_ctor_get(x_4, 0); +x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); +x_6 = lean_ctor_get(x_3, 1); lean_inc(x_6); -lean_dec(x_4); +lean_dec(x_3); x_7 = lean_ctor_get(x_5, 5); lean_inc(x_7); x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); lean_dec(x_5); -x_9 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_28__updateUsedVarsOf___spec__1(x_2, x_8); +x_9 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__1(x_2, x_8); if (lean_obj_tag(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; @@ -7425,10 +7827,10 @@ x_10 = l_Lean_NameSet_Inhabited; x_11 = l_Option_get_x21___rarg___closed__3; x_12 = lean_panic_fn(x_10, x_11); x_13 = l_Array_empty___closed__1; -x_14 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2(x_1, x_7, x_13, x_12); -x_15 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_8, x_14); -x_3 = x_15; -x_4 = x_6; +x_14 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(x_1, x_7, x_13, x_12); +x_15 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_8, x_14); +x_3 = x_6; +x_4 = x_15; goto _start; } else @@ -7438,70 +7840,102 @@ x_17 = lean_ctor_get(x_9, 0); lean_inc(x_17); lean_dec(x_9); x_18 = l_Array_empty___closed__1; -x_19 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3(x_1, x_7, x_18, x_17); -x_20 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_3, x_8, x_19); -x_3 = x_20; -x_4 = x_6; +x_19 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_7, x_18, x_17); +x_20 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_4, x_8, x_19); +x_3 = x_6; +x_4 = x_20; goto _start; } } } } -lean_object* l___private_Lean_Elab_MutualDef_30__mkFreeVarMap(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap(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; lean_object* x_10; lean_inc(x_5); -x_6 = l___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap(x_1, x_2, x_3, x_5); +x_6 = l___private_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap(x_1, x_2, x_3, x_5); lean_inc(x_5); -x_7 = l_List_map___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__1(x_5); +x_7 = l_List_map___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(x_5); x_8 = l_Lean_Elab_Term_MutualClosure_FixPoint_run(x_7, x_6); x_9 = lean_box(0); -x_10 = l_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4(x_4, x_8, x_9, x_5); +x_10 = l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_4, x_8, x_5, x_9); lean_dec(x_8); return x_10; } } -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___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_RBNode_fold___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_foldl___main___at___private_Lean_Elab_MutualDef_30__mkFreeVarMap___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_List_forInAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_MutualDef_30__mkFreeVarMap___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_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___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_Elab_MutualDef_30__mkFreeVarMap(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +static lean_object* _init_l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +lean_object* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -7550,7 +7984,7 @@ goto _start; } } } -lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -7570,54 +8004,54 @@ else lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_4); x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__2(x_1, x_2, x_2, x_8, x_7); +x_9 = l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2(x_1, x_2, x_2, x_8, x_7); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; } } } -lean_object* l___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1(x_1, x_2); +x_3 = l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(x_1, x_2); return x_3; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___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* l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___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___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1(x_1, x_2); +x_3 = l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f(x_1, x_2); +x_3 = l___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_32__preprocess(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_MutualClosure_preprocess(lean_object* x_1, lean_object* x_2, 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; -x_9 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_1, x_2, x_3, 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); @@ -7674,17 +8108,17 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_MutualDef_32__preprocess___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_0__Lean_Elab_Term_MutualClosure_preprocess___boxed(lean_object* x_1, lean_object* x_2, 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_Elab_MutualDef_32__preprocess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_0__Lean_Elab_Term_MutualClosure_preprocess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } -lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_33__pushNewVars___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7701,7 +8135,7 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_2, 3); lean_inc(x_5); lean_dec(x_2); -x_6 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_33__pushNewVars___spec__1(x_1, x_3); +x_6 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(x_1, x_3); x_7 = l_Array_contains___at___private_Lean_Class_1__checkOutParam___main___spec__1(x_6, x_4); if (x_7 == 0) { @@ -7721,22 +8155,22 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_MutualDef_33__pushNewVars(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; x_3 = lean_ctor_get(x_2, 1); lean_inc(x_3); lean_dec(x_2); -x_4 = l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_33__pushNewVars___spec__1(x_1, x_3); +x_4 = l_Std_RBNode_fold___main___at___private_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(x_1, x_3); return x_4; } } -lean_object* l___private_Lean_Elab_MutualDef_34__pushLocalDecl(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* x_12, lean_object* x_13) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(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* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_MutualDef_32__preprocess(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_0__Lean_Elab_Term_MutualClosure_preprocess(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -7778,9 +8212,9 @@ if (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_28, 0); lean_dec(x_30); -x_31 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; +x_31 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; x_32 = l_Lean_CollectFVars_main___main(x_15, x_31); -x_33 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_1, x_32); +x_33 = l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(x_1, x_32); lean_ctor_set(x_28, 0, x_33); return x_28; } @@ -7790,9 +8224,9 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean x_34 = lean_ctor_get(x_28, 1); lean_inc(x_34); lean_dec(x_28); -x_35 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; +x_35 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; x_36 = l_Lean_CollectFVars_main___main(x_15, x_35); -x_37 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_1, x_36); +x_37 = l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(x_1, 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); @@ -7839,9 +8273,9 @@ if (lean_is_exclusive(x_49)) { lean_dec_ref(x_49); x_51 = lean_box(0); } -x_52 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; +x_52 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; x_53 = l_Lean_CollectFVars_main___main(x_15, x_52); -x_54 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_1, x_53); +x_54 = l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(x_1, x_53); if (lean_is_scalar(x_51)) { x_55 = lean_alloc_ctor(0, 2, 0); } else { @@ -7879,20 +8313,118 @@ return x_59; } } } -lean_object* l___private_Lean_Elab_MutualDef_34__pushLocalDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; lean_object* x_15; x_14 = lean_unbox(x_5); lean_dec(x_5); -x_15 = l___private_Lean_Elab_MutualDef_34__pushLocalDecl(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); return x_15; } } -lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_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___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_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___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -7914,7 +8446,7 @@ return x_6; } } } -lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___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, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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; lean_object* x_11; @@ -7944,7 +8476,7 @@ return x_14; } } } -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___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; @@ -7978,15 +8510,15 @@ return x_12; } } } -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = lean_alloc_closure((void*)(l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg___boxed), 4, 0); +x_5 = lean_alloc_closure((void*)(l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg___boxed), 4, 0); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(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; @@ -8021,7 +8553,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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; @@ -8056,260 +8588,187 @@ goto _start; } } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__8(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_9, 3); -x_13 = l_Lean_replaceRef(x_1, x_12); -x_14 = l_Lean_Syntax_getPos(x_13); -lean_dec(x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_15 = lean_ctor_get(x_5, 0); -x_16 = lean_ctor_get(x_5, 1); -x_17 = lean_ctor_get(x_5, 2); -x_18 = lean_ctor_get(x_5, 5); -x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_16, x_22); -x_24 = lean_box(0); -lean_inc(x_18); +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; uint8_t x_19; +x_11 = lean_ctor_get(x_8, 3); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +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_take(x_9, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 3); lean_inc(x_17); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_18); -x_26 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_20); -x_27 = l_String_splitAux___main___closed__1; -lean_inc(x_15); -x_28 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_23); -lean_ctor_set(x_28, 2, x_24); -lean_ctor_set(x_28, 3, x_27); -lean_ctor_set(x_28, 4, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*5, x_3); -x_29 = lean_st_ref_take(x_6, x_21); -x_30 = lean_ctor_get(x_29, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_16, 3); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_13); +lean_inc(x_11); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_PersistentArray_push___rarg(x_22, x_24); +lean_ctor_set(x_17, 0, x_25); +x_26 = lean_st_ref_set(x_9, x_16, x_18); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = !lean_is_exclusive(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = lean_ctor_get(x_30, 2); -x_34 = l_Std_PersistentArray_push___rarg(x_33, x_28); -lean_ctor_set(x_30, 2, x_34); -x_35 = lean_st_ref_set(x_6, x_30, x_31); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -x_38 = lean_box(0); -lean_ctor_set(x_35, 0, x_38); -return x_35; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_35, 1); -lean_inc(x_39); -lean_dec(x_35); -x_40 = lean_box(0); -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; +lean_dec(x_26); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; } } 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; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_42 = lean_ctor_get(x_30, 0); -x_43 = lean_ctor_get(x_30, 1); -x_44 = lean_ctor_get(x_30, 2); -x_45 = lean_ctor_get(x_30, 3); +uint8_t 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; +x_33 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_34 = lean_ctor_get(x_17, 0); +lean_inc(x_34); +lean_dec(x_17); +x_35 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_13); +lean_inc(x_11); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_11); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Std_PersistentArray_push___rarg(x_34, x_36); +x_38 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_33); +lean_ctor_set(x_16, 3, x_38); +x_39 = lean_st_ref_set(x_9, x_16, x_18); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_44 = lean_ctor_get(x_16, 0); +x_45 = lean_ctor_get(x_16, 1); +x_46 = lean_ctor_get(x_16, 2); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_30); -x_46 = l_Std_PersistentArray_push___rarg(x_44, x_28); -x_47 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_43); -lean_ctor_set(x_47, 2, x_46); -lean_ctor_set(x_47, 3, x_45); -x_48 = lean_st_ref_set(x_6, x_47, x_31); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_50 = x_48; +lean_dec(x_16); +x_47 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_48 = lean_ctor_get(x_17, 0); +lean_inc(x_48); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_49 = x_17; } else { - lean_dec_ref(x_48); - x_50 = lean_box(0); + lean_dec_ref(x_17); + x_49 = lean_box(0); } -x_51 = lean_box(0); -if (lean_is_scalar(x_50)) { - x_52 = lean_alloc_ctor(0, 2, 0); +x_50 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_50, 0, x_1); +lean_ctor_set(x_50, 1, x_13); +lean_inc(x_11); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_11); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Std_PersistentArray_push___rarg(x_48, x_51); +if (lean_is_scalar(x_49)) { + x_53 = lean_alloc_ctor(0, 1, 1); } else { - x_52 = x_50; + x_53 = x_49; } -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_49); -return x_52; -} -} -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_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; uint8_t x_70; -x_53 = lean_ctor_get(x_14, 0); -lean_inc(x_53); -lean_dec(x_14); -x_54 = lean_ctor_get(x_5, 0); -x_55 = lean_ctor_get(x_5, 1); -x_56 = lean_ctor_get(x_5, 2); -x_57 = lean_ctor_get(x_5, 5); -x_58 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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); -x_61 = l_Lean_FileMap_toPosition(x_55, x_53); -x_62 = lean_box(0); -lean_inc(x_57); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_47); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_44); +lean_ctor_set(x_54, 1, x_45); +lean_ctor_set(x_54, 2, x_46); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_9, x_54, x_18); +x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_56); -lean_ctor_set(x_63, 1, x_57); -x_64 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_59); -x_65 = l_String_splitAux___main___closed__1; -lean_inc(x_54); -x_66 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_66, 0, x_54); -lean_ctor_set(x_66, 1, x_61); -lean_ctor_set(x_66, 2, x_62); -lean_ctor_set(x_66, 3, x_65); -lean_ctor_set(x_66, 4, x_64); -lean_ctor_set_uint8(x_66, sizeof(void*)*5, x_3); -x_67 = lean_st_ref_take(x_6, x_60); -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_is_exclusive(x_68); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_71 = lean_ctor_get(x_68, 2); -x_72 = l_Std_PersistentArray_push___rarg(x_71, x_66); -lean_ctor_set(x_68, 2, x_72); -x_73 = lean_st_ref_set(x_6, x_68, x_69); -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_73, 0); -lean_dec(x_75); -x_76 = lean_box(0); -lean_ctor_set(x_73, 0, x_76); -return x_73; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_73, 1); -lean_inc(x_77); -lean_dec(x_73); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -return x_79; -} -} -else -{ -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; -x_80 = lean_ctor_get(x_68, 0); -x_81 = lean_ctor_get(x_68, 1); -x_82 = lean_ctor_get(x_68, 2); -x_83 = lean_ctor_get(x_68, 3); -lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_68); -x_84 = l_Std_PersistentArray_push___rarg(x_82, x_66); -x_85 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_85, 0, x_80); -lean_ctor_set(x_85, 1, x_81); -lean_ctor_set(x_85, 2, x_84); -lean_ctor_set(x_85, 3, x_83); -x_86 = lean_st_ref_set(x_6, x_85, x_69); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_88 = x_86; +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_86); - x_88 = lean_box(0); + lean_dec_ref(x_55); + x_57 = lean_box(0); } -x_89 = lean_box(0); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 2, 0); +x_58 = lean_box(0); +if (lean_is_scalar(x_57)) { + x_59 = lean_alloc_ctor(0, 2, 0); } else { - x_90 = x_88; + x_59 = x_57; } -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -return x_90; +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_56); +return x_59; } } } -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__7(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, lean_object* x_10) { +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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_11; lean_object* x_12; -x_11 = lean_ctor_get(x_8, 3); -x_12 = l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__8(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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) { -_start: -{ -lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_11 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_2); -x_12 = 0; -x_13 = l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__7(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = l_Lean_checkTraceOption(x_10, x_1); +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); return x_13; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1() { _start: { lean_object* x_1; @@ -8317,17 +8776,17 @@ x_1 = lean_mk_string("mkClosure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_0__Lean_Elab_Command_regTraceClasses___closed__2; -x_2 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1; +x_2 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3() { _start: { lean_object* x_1; @@ -8335,27 +8794,16 @@ x_1 = lean_mk_string("toProcess: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__4() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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_Elab_MutualDef_35__mkClosureForAux___main___closed__6() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5() { _start: { lean_object* x_1; @@ -8363,33 +8811,22 @@ x_1 = lean_mk_string(", maxVar: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__7() { +static lean_object* _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__6; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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_Elab_MutualDef_35__mkClosureForAux___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_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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 = lean_ctor_get(x_5, 1); lean_inc(x_10); -x_11 = l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_31__pickMaxFVar_x3f___spec__1(x_10, x_1); +x_11 = l_Array_getMax_x3f___at___private_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(x_10, x_1); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; @@ -8406,60 +8843,55 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_170; lean_object* x_171; uint8_t x_172; +lean_object* x_14; lean_object* x_15; uint8_t x_118; lean_object* x_119; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; x_14 = lean_ctor_get(x_11, 0); lean_inc(x_14); lean_dec(x_11); -x_170 = lean_ctor_get(x_7, 0); -lean_inc(x_170); -x_171 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2; -x_172 = l_Lean_checkTraceOption(x_170, x_171); -lean_dec(x_170); -if (x_172 == 0) +x_140 = lean_st_ref_get(x_8, x_9); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_141, 3); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_ctor_get_uint8(x_142, sizeof(void*)*1); +lean_dec(x_142); +if (x_143 == 0) { -x_15 = x_9; -goto block_169; +lean_object* x_144; uint8_t x_145; +x_144 = lean_ctor_get(x_140, 1); +lean_inc(x_144); +lean_dec(x_140); +x_145 = 0; +x_118 = x_145; +x_119 = x_144; +goto block_139; } else { -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_inc(x_1); -x_173 = x_1; -x_174 = lean_unsigned_to_nat(0u); -x_175 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_174, x_173); -x_176 = x_175; -x_177 = l_Lean_MessageData_hasCoeOfArrayExpr___closed__2; -x_178 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_176, x_174, x_177); -lean_dec(x_176); -x_179 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5; -x_180 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_178); -x_181 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__8; -x_182 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -lean_inc(x_14); -x_183 = l_Lean_mkFVar(x_14); -x_184 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_184, 0, x_183); -x_185 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_184); -x_186 = l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__6(x_171, x_185, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_187 = lean_ctor_get(x_186, 1); -lean_inc(x_187); -lean_dec(x_186); -x_15 = x_187; -goto block_169; +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_146 = lean_ctor_get(x_140, 1); +lean_inc(x_146); +lean_dec(x_140); +x_147 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2; +x_148 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__7(x_147, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_146); +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_unbox(x_149); +lean_dec(x_149); +x_118 = x_151; +x_119 = x_150; +goto block_139; } -block_169: +block_117: { lean_object* x_16; lean_object* x_17; -x_16 = l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1(x_1, x_14); +x_16 = l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(x_1, x_14); lean_inc(x_5); lean_inc(x_14); -x_17 = l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_17 = l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; @@ -8481,7 +8913,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_23 = l___private_Lean_Elab_MutualDef_34__pushLocalDecl(x_16, x_14, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_23 = l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(x_16, x_14, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; @@ -8523,259 +8955,293 @@ return x_30; } else { -lean_object* x_31; uint8_t x_32; +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; uint8_t x_39; uint8_t x_110; x_31 = lean_ctor_get(x_17, 1); lean_inc(x_31); lean_dec(x_17); -x_32 = !lean_is_exclusive(x_18); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_33 = lean_ctor_get(x_18, 2); -x_34 = lean_ctor_get(x_18, 3); -x_35 = lean_ctor_get(x_18, 4); -x_36 = lean_ctor_get(x_18, 1); +x_32 = lean_ctor_get(x_18, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_18, 3); +lean_inc(x_33); +x_34 = lean_ctor_get(x_18, 4); +lean_inc(x_34); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + lean_ctor_release(x_18, 2); + lean_ctor_release(x_18, 3); + lean_ctor_release(x_18, 4); + x_35 = x_18; +} else { + lean_dec_ref(x_18); + x_35 = lean_box(0); +} +x_36 = l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg(x_6, x_7, x_8, x_31); +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_37 = lean_ctor_get(x_18, 0); +x_110 = l_Lean_NameSet_contains(x_37, x_14); lean_dec(x_37); -x_38 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(x_6, x_7, x_8, x_31); -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); -x_41 = l_Lean_NameSet_contains(x_39, x_14); -lean_dec(x_39); -if (x_41 == 0) +if (x_110 == 0) { -uint8_t x_42; lean_object* x_43; -lean_free_object(x_18); -lean_dec(x_35); -x_42 = 0; +uint8_t x_111; +x_111 = 1; +x_39 = x_111; +goto block_109; +} +else +{ +uint8_t x_112; +x_112 = 0; +x_39 = x_112; +goto block_109; +} +block_109: +{ +if (x_39 == 0) +{ +lean_object* x_40; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_43 = l___private_Lean_Elab_MutualDef_34__pushLocalDecl(x_16, x_14, x_33, x_34, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_40 = l___private_0__Lean_Elab_Term_MutualClosure_preprocess(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_38); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_43 = l___private_0__Lean_Elab_Term_MutualClosure_preprocess(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_42); if (lean_obj_tag(x_43) == 0) { -lean_object* x_44; lean_object* x_45; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; 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); -x_1 = x_44; -x_9 = x_45; +x_46 = lean_st_ref_take(x_2, x_45); +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_is_exclusive(x_47); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_50 = lean_ctor_get(x_47, 0); +x_51 = lean_ctor_get(x_47, 1); +x_52 = lean_ctor_get(x_47, 2); +x_53 = x_50; +x_54 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_55 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(x_14, x_44, x_54, x_53); +x_56 = x_55; +x_57 = x_51; +lean_inc(x_14); +x_58 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(x_14, x_44, x_54, x_57); +x_59 = x_58; +x_60 = 0; +lean_inc(x_44); +lean_inc(x_41); +if (lean_is_scalar(x_35)) { + x_61 = lean_alloc_ctor(1, 5, 1); +} else { + x_61 = x_35; +} +lean_ctor_set(x_61, 0, x_54); +lean_ctor_set(x_61, 1, x_14); +lean_ctor_set(x_61, 2, x_32); +lean_ctor_set(x_61, 3, x_41); +lean_ctor_set(x_61, 4, x_44); +lean_ctor_set_uint8(x_61, sizeof(void*)*5, x_60); +x_62 = lean_array_push(x_52, x_61); +lean_ctor_set(x_47, 2, x_62); +lean_ctor_set(x_47, 1, x_59); +lean_ctor_set(x_47, 0, x_56); +x_63 = lean_st_ref_set(x_2, x_47, x_48); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; +x_66 = l_Lean_CollectFVars_main___main(x_41, x_65); +x_67 = l_Lean_CollectFVars_main___main(x_44, x_66); +x_68 = l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(x_16, x_67); +x_1 = x_68; +x_9 = x_64; goto _start; } else { -uint8_t x_47; +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_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; +x_70 = lean_ctor_get(x_47, 0); +x_71 = lean_ctor_get(x_47, 1); +x_72 = lean_ctor_get(x_47, 2); +x_73 = lean_ctor_get(x_47, 3); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_47); +x_74 = x_70; +x_75 = lean_unsigned_to_nat(0u); +lean_inc(x_14); +x_76 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(x_14, x_44, x_75, x_74); +x_77 = x_76; +x_78 = x_71; +lean_inc(x_14); +x_79 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(x_14, x_44, x_75, x_78); +x_80 = x_79; +x_81 = 0; +lean_inc(x_44); +lean_inc(x_41); +if (lean_is_scalar(x_35)) { + x_82 = lean_alloc_ctor(1, 5, 1); +} else { + x_82 = x_35; +} +lean_ctor_set(x_82, 0, x_75); +lean_ctor_set(x_82, 1, x_14); +lean_ctor_set(x_82, 2, x_32); +lean_ctor_set(x_82, 3, x_41); +lean_ctor_set(x_82, 4, x_44); +lean_ctor_set_uint8(x_82, sizeof(void*)*5, x_81); +x_83 = lean_array_push(x_72, x_82); +x_84 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_84, 0, x_77); +lean_ctor_set(x_84, 1, x_80); +lean_ctor_set(x_84, 2, x_83); +lean_ctor_set(x_84, 3, x_73); +x_85 = lean_st_ref_set(x_2, x_84, x_48); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1; +x_88 = l_Lean_CollectFVars_main___main(x_41, x_87); +x_89 = l_Lean_CollectFVars_main___main(x_44, x_88); +x_90 = l___private_0__Lean_Elab_Term_MutualClosure_pushNewVars(x_16, x_89); +x_1 = x_90; +x_9 = x_86; +goto _start; +} +} +else +{ +uint8_t x_92; +lean_dec(x_41); +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_16); +lean_dec(x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_47 = !lean_is_exclusive(x_43); -if (x_47 == 0) +x_92 = !lean_is_exclusive(x_43); +if (x_92 == 0) { return x_43; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_43, 0); -x_49 = lean_ctor_get(x_43, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_43, 0); +x_94 = lean_ctor_get(x_43, 1); +lean_inc(x_94); +lean_inc(x_93); lean_dec(x_43); -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_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } else { -lean_object* x_51; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_51 = l___private_Lean_Elab_MutualDef_32__preprocess(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_40); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -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_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_54 = l___private_Lean_Elab_MutualDef_32__preprocess(x_35, x_3, x_4, x_5, x_6, x_7, x_8, 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; -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 = lean_st_ref_take(x_2, x_56); -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_is_exclusive(x_58); -if (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; uint8_t 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; -x_61 = lean_ctor_get(x_58, 0); -x_62 = lean_ctor_get(x_58, 1); -x_63 = lean_ctor_get(x_58, 2); -x_64 = x_61; -x_65 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_66 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(x_14, x_55, x_65, x_64); -x_67 = x_66; -x_68 = x_62; -lean_inc(x_14); -x_69 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(x_14, x_55, x_65, x_68); -x_70 = x_69; -x_71 = 0; -lean_inc(x_55); -lean_inc(x_52); -lean_ctor_set(x_18, 4, x_55); -lean_ctor_set(x_18, 3, x_52); -lean_ctor_set(x_18, 1, x_14); -lean_ctor_set(x_18, 0, x_65); -lean_ctor_set_uint8(x_18, sizeof(void*)*5, x_71); -x_72 = lean_array_push(x_63, x_18); -lean_ctor_set(x_58, 2, x_72); -lean_ctor_set(x_58, 1, x_70); -lean_ctor_set(x_58, 0, x_67); -x_73 = lean_st_ref_set(x_2, x_58, x_59); -x_74 = lean_ctor_get(x_73, 1); -lean_inc(x_74); -lean_dec(x_73); -x_75 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; -x_76 = l_Lean_CollectFVars_main___main(x_52, x_75); -x_77 = l_Lean_CollectFVars_main___main(x_55, x_76); -x_78 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_16, x_77); -x_1 = x_78; -x_9 = x_74; -goto _start; -} -else -{ -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; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_80 = lean_ctor_get(x_58, 0); -x_81 = lean_ctor_get(x_58, 1); -x_82 = lean_ctor_get(x_58, 2); -x_83 = lean_ctor_get(x_58, 3); -lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_58); -x_84 = x_80; -x_85 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_86 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(x_14, x_55, x_85, x_84); -x_87 = x_86; -x_88 = x_81; -lean_inc(x_14); -x_89 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(x_14, x_55, x_85, x_88); -x_90 = x_89; -x_91 = 0; -lean_inc(x_55); -lean_inc(x_52); -lean_ctor_set(x_18, 4, x_55); -lean_ctor_set(x_18, 3, x_52); -lean_ctor_set(x_18, 1, x_14); -lean_ctor_set(x_18, 0, x_85); -lean_ctor_set_uint8(x_18, sizeof(void*)*5, x_91); -x_92 = lean_array_push(x_82, x_18); -x_93 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_93, 0, x_87); -lean_ctor_set(x_93, 1, x_90); -lean_ctor_set(x_93, 2, x_92); -lean_ctor_set(x_93, 3, x_83); -x_94 = lean_st_ref_set(x_2, x_93, x_59); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; -x_97 = l_Lean_CollectFVars_main___main(x_52, x_96); -x_98 = l_Lean_CollectFVars_main___main(x_55, x_97); -x_99 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_16, x_98); -x_1 = x_99; -x_9 = x_95; -goto _start; -} -} -else -{ -uint8_t x_101; -lean_dec(x_52); -lean_free_object(x_18); -lean_dec(x_33); +uint8_t x_96; +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_32); lean_dec(x_16); lean_dec(x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_101 = !lean_is_exclusive(x_54); -if (x_101 == 0) +x_96 = !lean_is_exclusive(x_40); +if (x_96 == 0) { -return x_54; +return x_40; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_54, 0); -x_103 = lean_ctor_get(x_54, 1); -lean_inc(x_103); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_40, 0); +x_98 = lean_ctor_get(x_40, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_40); +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 +{ +uint8_t x_100; lean_object* x_101; +lean_dec(x_35); +lean_dec(x_34); +x_100 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_101 = l___private_0__Lean_Elab_Term_MutualClosure_pushLocalDecl(x_16, x_14, x_32, x_33, x_100, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_38); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); -lean_dec(x_54); -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; -} -} +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); +x_1 = x_102; +x_9 = x_103; +goto _start; } else { uint8_t x_105; -lean_free_object(x_18); -lean_dec(x_35); -lean_dec(x_33); -lean_dec(x_16); -lean_dec(x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_105 = !lean_is_exclusive(x_51); +x_105 = !lean_is_exclusive(x_101); if (x_105 == 0) { -return x_51; +return x_101; } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_51, 0); -x_107 = lean_ctor_get(x_51, 1); +x_106 = lean_ctor_get(x_101, 0); +x_107 = lean_ctor_get(x_101, 1); lean_inc(x_107); lean_inc(x_106); -lean_dec(x_51); +lean_dec(x_101); x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_106); lean_ctor_set(x_108, 1, x_107); @@ -8784,284 +9250,102 @@ return x_108; } } } -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_109 = lean_ctor_get(x_18, 2); -x_110 = lean_ctor_get(x_18, 3); -x_111 = lean_ctor_get(x_18, 4); -lean_inc(x_111); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_18); -x_112 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(x_6, x_7, x_8, x_31); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = l_Lean_NameSet_contains(x_113, x_14); -lean_dec(x_113); -if (x_115 == 0) -{ -uint8_t x_116; lean_object* x_117; -lean_dec(x_111); -x_116 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_117 = l___private_Lean_Elab_MutualDef_34__pushLocalDecl(x_16, x_14, x_109, x_110, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_114); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -lean_dec(x_117); -x_1 = x_118; -x_9 = x_119; -goto _start; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_121 = lean_ctor_get(x_117, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_117, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_123 = x_117; -} else { - lean_dec_ref(x_117); - 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(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; } } else { -lean_object* x_125; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_125 = l___private_Lean_Elab_MutualDef_32__preprocess(x_110, x_3, x_4, x_5, x_6, x_7, x_8, x_114); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_128 = l___private_Lean_Elab_MutualDef_32__preprocess(x_111, x_3, x_4, x_5, x_6, x_7, x_8, x_127); -if (lean_obj_tag(x_128) == 0) -{ -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; uint8_t x_146; lean_object* x_147; lean_object* x_148; 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; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = lean_st_ref_take(x_2, x_130); -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); -x_134 = lean_ctor_get(x_132, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_132, 1); -lean_inc(x_135); -x_136 = lean_ctor_get(x_132, 2); -lean_inc(x_136); -x_137 = lean_ctor_get(x_132, 3); -lean_inc(x_137); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - lean_ctor_release(x_132, 2); - lean_ctor_release(x_132, 3); - x_138 = x_132; -} else { - lean_dec_ref(x_132); - x_138 = lean_box(0); -} -x_139 = x_134; -x_140 = lean_unsigned_to_nat(0u); -lean_inc(x_14); -x_141 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(x_14, x_129, x_140, x_139); -x_142 = x_141; -x_143 = x_135; -lean_inc(x_14); -x_144 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(x_14, x_129, x_140, x_143); -x_145 = x_144; -x_146 = 0; -lean_inc(x_129); -lean_inc(x_126); -x_147 = lean_alloc_ctor(1, 5, 1); -lean_ctor_set(x_147, 0, x_140); -lean_ctor_set(x_147, 1, x_14); -lean_ctor_set(x_147, 2, x_109); -lean_ctor_set(x_147, 3, x_126); -lean_ctor_set(x_147, 4, x_129); -lean_ctor_set_uint8(x_147, sizeof(void*)*5, x_146); -x_148 = lean_array_push(x_136, x_147); -if (lean_is_scalar(x_138)) { - x_149 = lean_alloc_ctor(0, 4, 0); -} else { - x_149 = x_138; -} -lean_ctor_set(x_149, 0, x_142); -lean_ctor_set(x_149, 1, x_145); -lean_ctor_set(x_149, 2, x_148); -lean_ctor_set(x_149, 3, x_137); -x_150 = lean_st_ref_set(x_2, x_149, x_133); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); -x_152 = l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1; -x_153 = l_Lean_CollectFVars_main___main(x_126, x_152); -x_154 = l_Lean_CollectFVars_main___main(x_129, x_153); -x_155 = l___private_Lean_Elab_MutualDef_33__pushNewVars(x_16, x_154); -x_1 = x_155; -x_9 = x_151; -goto _start; -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_126); -lean_dec(x_109); +uint8_t x_113; lean_dec(x_16); lean_dec(x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_157 = lean_ctor_get(x_128, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_128, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_159 = x_128; -} else { - lean_dec_ref(x_128); - x_159 = lean_box(0); -} -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); -} else { - x_160 = x_159; -} -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; -} -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_111); -lean_dec(x_109); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_161 = lean_ctor_get(x_125, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_125, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_163 = x_125; -} else { - lean_dec_ref(x_125); - x_163 = lean_box(0); -} -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; -} -} -} -} -} -else -{ -uint8_t x_165; -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_165 = !lean_is_exclusive(x_17); -if (x_165 == 0) +x_113 = !lean_is_exclusive(x_17); +if (x_113 == 0) { return x_17; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_17, 0); -x_167 = lean_ctor_get(x_17, 1); -lean_inc(x_167); -lean_inc(x_166); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_17, 0); +x_115 = lean_ctor_get(x_17, 1); +lean_inc(x_115); +lean_inc(x_114); lean_dec(x_17); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_167); -return x_168; +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; +} +} +} +block_139: +{ +if (x_118 == 0) +{ +x_15 = x_119; +goto block_117; +} +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; 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_inc(x_1); +x_120 = x_1; +x_121 = lean_unsigned_to_nat(0u); +x_122 = l_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(x_121, x_120); +x_123 = x_122; +x_124 = l_Array_toList___rarg(x_123); +lean_dec(x_123); +x_125 = l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(x_124); +x_126 = l_Lean_MessageData_ofList(x_125); +lean_dec(x_125); +x_127 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4; +x_128 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; +x_130 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +lean_inc(x_14); +x_131 = l_Lean_mkFVar(x_14); +x_132 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_132, 0, x_131); +x_133 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_133, 0, x_130); +lean_ctor_set(x_133, 1, x_132); +x_134 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; +x_135 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +x_136 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2; +x_137 = l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__6(x_136, x_135, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_119); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +x_15 = x_138; +goto block_117; } } } } } -} -lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1(x_1, x_2); +x_3 = l_Array_erase___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___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, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_getLocalDecl___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__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); @@ -9071,22 +9355,22 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___rarg(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3___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_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_getZetaFVarIds___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -9094,64 +9378,29 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__5(x_1, x_2, x_3, x_4); +x_5 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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) { -_start: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_3); -lean_dec(x_3); -x_13 = l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__8(x_1, x_2, x_12, 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); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_13; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_2); -lean_dec(x_2); -x_12 = l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__7(x_1, x_11, 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); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___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* l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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) { _start: { lean_object* x_11; -x_11 = l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_addTrace___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__6(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); @@ -9162,37 +9411,54 @@ lean_dec(x_3); return x_11; } } -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___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_Util_Trace_3__checkTraceOptionM___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___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___private_Lean_Elab_MutualDef_35__mkClosureForAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_35__mkClosureForAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_36__mkClosureFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkClosureFor_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_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -9208,7 +9474,7 @@ 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_Elab_MutualDef_35__mkClosureForAux___main(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_15 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -9333,17 +9599,17 @@ return x_53; } } } -lean_object* l___private_Lean_Elab_MutualDef_36__mkClosureFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkClosureFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_36__mkClosureFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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_Lean_Meta_instantiateForall___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; @@ -9352,7 +9618,7 @@ x_11 = l___private_Lean_Meta_Basic_37__instantiateForallAux___main(x_2, x_10, x_ return x_11; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -9389,7 +9655,7 @@ goto _start; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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* l_Lean_Meta_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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) { _start: { lean_object* x_10; uint8_t x_11; lean_object* x_12; @@ -9445,15 +9711,15 @@ return x_20; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__3(lean_object* x_1) { +lean_object* l_Lean_Meta_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__3___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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; @@ -9476,13 +9742,13 @@ lean_dec(x_16); x_19 = lean_ctor_get(x_9, 1); lean_inc(x_19); x_20 = x_5; -x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__2(x_19, x_15, x_20); +x_21 = l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2(x_19, x_15, x_20); x_22 = x_21; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_23 = l___private_Lean_Elab_MutualDef_36__mkClosureFor(x_2, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +x_23 = l___private_0__Lean_Elab_Term_MutualClosure_mkClosureFor(x_2, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_18); 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; 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; uint8_t x_40; @@ -9520,7 +9786,7 @@ x_38 = lean_ctor_get(x_1, 9); lean_inc(x_38); lean_inc(x_37); lean_inc(x_38); -x_39 = l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(x_38, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_25); +x_39 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4(x_38, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_25); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -9658,7 +9924,7 @@ return x_63; } } } -lean_object* l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -9670,41 +9936,41 @@ x_12 = lean_ctor_get(x_1, 8); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___lambda__1___boxed), 13, 4); +x_13 = lean_alloc_closure((void*)(l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__1___boxed), 13, 4); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_2); lean_closure_set(x_13, 2, x_10); lean_closure_set(x_13, 3, x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__3___rarg), 9, 2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__3___rarg), 9, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_15; } } -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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_Lean_Meta_instantiateForall___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_instantiateForall___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_Elab_MutualDef_37__mkLetRecClosureFor___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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_8); lean_dec(x_7); lean_dec(x_6); return x_14; } } -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9747,7 +10013,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___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_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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: { if (lean_obj_tag(x_2) == 0) @@ -9776,7 +10042,7 @@ x_13 = lean_ctor_get(x_2, 0); x_14 = lean_ctor_get(x_2, 1); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_16 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1(x_1, x_15); +x_16 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(x_1, x_15); lean_dec(x_15); if (lean_obj_tag(x_16) == 0) { @@ -9790,7 +10056,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_20 = l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(x_13, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_20 = l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(x_13, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -9799,7 +10065,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +x_23 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_22); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -9897,7 +10163,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_38 = l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(x_13, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_38 = l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(x_13, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -9906,7 +10172,7 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); lean_dec(x_38); -x_41 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_41 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_40); if (lean_obj_tag(x_41) == 0) { uint8_t x_42; @@ -10003,7 +10269,7 @@ lean_inc(x_55); lean_dec(x_2); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1(x_1, x_57); +x_58 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(x_1, x_57); lean_dec(x_57); if (lean_obj_tag(x_58) == 0) { @@ -10017,7 +10283,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_62 = l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(x_55, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_62 = l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(x_55, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; lean_object* x_64; lean_object* x_65; @@ -10026,7 +10292,7 @@ lean_inc(x_63); x_64 = lean_ctor_get(x_62, 1); lean_inc(x_64); lean_dec(x_62); -x_65 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_64); +x_65 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_64); 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; @@ -10124,7 +10390,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_80 = l___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor(x_55, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_80 = l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor(x_55, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_80) == 0) { lean_object* x_81; lean_object* x_82; lean_object* x_83; @@ -10133,7 +10399,7 @@ lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); lean_dec(x_80); -x_83 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_82); +x_83 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_82); if (lean_obj_tag(x_83) == 0) { lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; @@ -10223,38 +10489,38 @@ return x_96; } } } -lean_object* l___private_Lean_Elab_MutualDef_38__mkLetRecClosures(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__1(x_1, x_2); +x_3 = l_Std_RBNode_find___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___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_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___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_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_38__mkLetRecClosures___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_MutualDef_38__mkLetRecClosures(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(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; } @@ -10369,6 +10635,68 @@ x_3 = l_List_foldl___main___at_Lean_Elab_Term_MutualClosure_insertReplacementFor return x_3; } } +lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_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_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_Elab_Term_MutualClosure_Replacement_apply_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_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_Elab_Term_MutualClosure_Replacement_apply_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l_Std_RBNode_find___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -10967,7 +11295,7 @@ x_23 = lean_array_get(x_22, x_3, x_19); lean_dec(x_19); lean_inc(x_9); lean_inc(x_1); -x_24 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_1, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_24 = l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabFun___spec__1(x_1, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -10980,7 +11308,7 @@ x_27 = lean_ctor_get(x_21, 6); lean_inc(x_27); lean_inc(x_9); lean_inc(x_1); -x_28 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_MutualDef_5__elabFunType___spec__1(x_1, x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_28 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_26); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; @@ -11660,7 +11988,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_19 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_13, x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_19 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabBinders___spec__2___rarg(x_13, x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; @@ -11727,7 +12055,7 @@ x_14 = lean_array_fget(x_2, x_1); x_15 = lean_unsigned_to_nat(0u); x_16 = lean_array_fset(x_2, x_1, x_15); x_17 = x_14; -x_18 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_17, x_3, x_4, 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); @@ -11769,7 +12097,7 @@ x_14 = lean_array_fget(x_2, x_1); x_15 = lean_unsigned_to_nat(0u); x_16 = lean_array_fset(x_2, x_1, x_15); x_17 = x_14; -x_18 = l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtHeader(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_18 = l___private_0__Lean_Elab_Term_instantiateMVarsAtHeader(x_17, x_3, x_4, 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); @@ -11813,7 +12141,7 @@ if (x_13 == 0) 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; x_14 = lean_ctor_get(x_1, 1); x_15 = lean_ctor_get(x_12, 2); -x_16 = l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_16 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -11856,7 +12184,7 @@ lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_dec(x_12); -x_29 = l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_29 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); @@ -11914,7 +12242,7 @@ if (lean_is_exclusive(x_38)) { lean_dec_ref(x_38); x_43 = lean_box(0); } -x_44 = l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_44 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -12096,94 +12424,111 @@ lean_dec(x_8); x_9 = !lean_is_exclusive(x_4); if (x_9 == 0) { -lean_object* x_10; uint8_t x_11; +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; x_10 = lean_ctor_get(x_4, 2); lean_dec(x_10); -x_11 = !lean_is_exclusive(x_5); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_5, 7); -x_13 = lean_ctor_get(x_5, 8); -x_14 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_12); -x_15 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_13); -lean_ctor_set(x_5, 8, x_15); -lean_ctor_set(x_5, 7, x_14); -x_16 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); -lean_ctor_set(x_2, 1, x_16); -return x_2; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_17 = lean_ctor_get(x_5, 0); -x_18 = lean_ctor_get(x_5, 1); -x_19 = lean_ctor_get(x_5, 2); -x_20 = lean_ctor_get(x_5, 3); -x_21 = lean_ctor_get(x_5, 4); -x_22 = lean_ctor_get(x_5, 5); -x_23 = lean_ctor_get(x_5, 6); -x_24 = lean_ctor_get(x_5, 7); -x_25 = lean_ctor_get(x_5, 8); -x_26 = lean_ctor_get(x_5, 9); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); +x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_5, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_5, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_5, 4); +lean_inc(x_15); +x_16 = lean_ctor_get(x_5, 5); +lean_inc(x_16); +x_17 = lean_ctor_get(x_5, 6); lean_inc(x_17); +x_18 = lean_ctor_get(x_5, 9); +lean_inc(x_18); +x_19 = lean_ctor_get(x_5, 7); +lean_inc(x_19); +x_20 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_19); +x_21 = !lean_is_exclusive(x_5); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_22 = lean_ctor_get(x_5, 8); +x_23 = lean_ctor_get(x_5, 9); +lean_dec(x_23); +x_24 = lean_ctor_get(x_5, 7); +lean_dec(x_24); +x_25 = lean_ctor_get(x_5, 6); +lean_dec(x_25); +x_26 = lean_ctor_get(x_5, 5); +lean_dec(x_26); +x_27 = lean_ctor_get(x_5, 4); +lean_dec(x_27); +x_28 = lean_ctor_get(x_5, 3); +lean_dec(x_28); +x_29 = lean_ctor_get(x_5, 2); +lean_dec(x_29); +x_30 = lean_ctor_get(x_5, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_5, 0); +lean_dec(x_31); +x_32 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_22); +lean_ctor_set(x_5, 8, x_32); +lean_ctor_set(x_5, 7, x_20); +x_33 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +lean_ctor_set(x_2, 1, x_33); +return x_2; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_5, 8); +lean_inc(x_34); lean_dec(x_5); -x_27 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_24); -x_28 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_25); -x_29 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_29, 0, x_17); -lean_ctor_set(x_29, 1, x_18); -lean_ctor_set(x_29, 2, x_19); -lean_ctor_set(x_29, 3, x_20); -lean_ctor_set(x_29, 4, x_21); -lean_ctor_set(x_29, 5, x_22); -lean_ctor_set(x_29, 6, x_23); -lean_ctor_set(x_29, 7, x_27); -lean_ctor_set(x_29, 8, x_28); -lean_ctor_set(x_29, 9, x_26); -lean_ctor_set(x_4, 2, x_29); -x_30 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); -lean_ctor_set(x_2, 1, x_30); +x_35 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_34); +x_36 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_36, 0, x_11); +lean_ctor_set(x_36, 1, x_12); +lean_ctor_set(x_36, 2, x_13); +lean_ctor_set(x_36, 3, x_14); +lean_ctor_set(x_36, 4, x_15); +lean_ctor_set(x_36, 5, x_16); +lean_ctor_set(x_36, 6, x_17); +lean_ctor_set(x_36, 7, x_20); +lean_ctor_set(x_36, 8, x_35); +lean_ctor_set(x_36, 9, x_18); +lean_ctor_set(x_4, 2, x_36); +x_37 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +lean_ctor_set(x_2, 1, x_37); return x_2; } } 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_4, 0); -x_32 = lean_ctor_get(x_4, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_4); -x_33 = lean_ctor_get(x_5, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_5, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_5, 2); -lean_inc(x_35); -x_36 = lean_ctor_get(x_5, 3); -lean_inc(x_36); -x_37 = lean_ctor_get(x_5, 4); -lean_inc(x_37); -x_38 = lean_ctor_get(x_5, 5); -lean_inc(x_38); -x_39 = lean_ctor_get(x_5, 6); +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; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_38 = lean_ctor_get(x_4, 0); +x_39 = lean_ctor_get(x_4, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_5, 7); +lean_inc(x_38); +lean_dec(x_4); +x_40 = lean_ctor_get(x_5, 0); lean_inc(x_40); -x_41 = lean_ctor_get(x_5, 8); +x_41 = lean_ctor_get(x_5, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_5, 9); +x_42 = lean_ctor_get(x_5, 2); lean_inc(x_42); +x_43 = lean_ctor_get(x_5, 3); +lean_inc(x_43); +x_44 = lean_ctor_get(x_5, 4); +lean_inc(x_44); +x_45 = lean_ctor_get(x_5, 5); +lean_inc(x_45); +x_46 = lean_ctor_get(x_5, 6); +lean_inc(x_46); +x_47 = lean_ctor_get(x_5, 9); +lean_inc(x_47); +x_48 = lean_ctor_get(x_5, 7); +lean_inc(x_48); +x_49 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_48); +x_50 = lean_ctor_get(x_5, 8); +lean_inc(x_50); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); @@ -12195,77 +12540,77 @@ if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 7); lean_ctor_release(x_5, 8); lean_ctor_release(x_5, 9); - x_43 = x_5; + x_51 = x_5; } else { lean_dec_ref(x_5); - x_43 = lean_box(0); + x_51 = lean_box(0); } -x_44 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_40); -x_45 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_41); -if (lean_is_scalar(x_43)) { - x_46 = lean_alloc_ctor(0, 10, 0); +x_52 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_50); +if (lean_is_scalar(x_51)) { + x_53 = lean_alloc_ctor(0, 10, 0); } else { - x_46 = x_43; + x_53 = x_51; } -lean_ctor_set(x_46, 0, x_33); -lean_ctor_set(x_46, 1, x_34); -lean_ctor_set(x_46, 2, x_35); -lean_ctor_set(x_46, 3, x_36); -lean_ctor_set(x_46, 4, x_37); -lean_ctor_set(x_46, 5, x_38); -lean_ctor_set(x_46, 6, x_39); -lean_ctor_set(x_46, 7, x_44); -lean_ctor_set(x_46, 8, x_45); -lean_ctor_set(x_46, 9, x_42); -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_31); -lean_ctor_set(x_47, 1, x_32); -lean_ctor_set(x_47, 2, x_46); -x_48 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); -lean_ctor_set(x_2, 1, x_48); -lean_ctor_set(x_2, 0, x_47); +lean_ctor_set(x_53, 0, x_40); +lean_ctor_set(x_53, 1, x_41); +lean_ctor_set(x_53, 2, x_42); +lean_ctor_set(x_53, 3, x_43); +lean_ctor_set(x_53, 4, x_44); +lean_ctor_set(x_53, 5, x_45); +lean_ctor_set(x_53, 6, x_46); +lean_ctor_set(x_53, 7, x_49); +lean_ctor_set(x_53, 8, x_52); +lean_ctor_set(x_53, 9, x_47); +x_54 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_54, 0, x_38); +lean_ctor_set(x_54, 1, x_39); +lean_ctor_set(x_54, 2, x_53); +x_55 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_7); +lean_ctor_set(x_2, 1, x_55); +lean_ctor_set(x_2, 0, x_54); return x_2; } } 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; 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; -x_49 = lean_ctor_get(x_2, 1); -lean_inc(x_49); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_56 = lean_ctor_get(x_2, 1); +lean_inc(x_56); lean_dec(x_2); -x_50 = lean_ctor_get(x_4, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); +x_57 = lean_ctor_get(x_4, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_4, 1); +lean_inc(x_58); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); lean_ctor_release(x_4, 2); - x_52 = x_4; + x_59 = x_4; } else { lean_dec_ref(x_4); - x_52 = lean_box(0); + x_59 = lean_box(0); } -x_53 = lean_ctor_get(x_5, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_5, 1); -lean_inc(x_54); -x_55 = lean_ctor_get(x_5, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_5, 3); -lean_inc(x_56); -x_57 = lean_ctor_get(x_5, 4); -lean_inc(x_57); -x_58 = lean_ctor_get(x_5, 5); -lean_inc(x_58); -x_59 = lean_ctor_get(x_5, 6); -lean_inc(x_59); -x_60 = lean_ctor_get(x_5, 7); +x_60 = lean_ctor_get(x_5, 0); lean_inc(x_60); -x_61 = lean_ctor_get(x_5, 8); +x_61 = lean_ctor_get(x_5, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_5, 9); +x_62 = lean_ctor_get(x_5, 2); lean_inc(x_62); +x_63 = lean_ctor_get(x_5, 3); +lean_inc(x_63); +x_64 = lean_ctor_get(x_5, 4); +lean_inc(x_64); +x_65 = lean_ctor_get(x_5, 5); +lean_inc(x_65); +x_66 = lean_ctor_get(x_5, 6); +lean_inc(x_66); +x_67 = lean_ctor_get(x_5, 9); +lean_inc(x_67); +x_68 = lean_ctor_get(x_5, 7); +lean_inc(x_68); +x_69 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_68); +x_70 = lean_ctor_get(x_5, 8); +lean_inc(x_70); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); @@ -12277,41 +12622,40 @@ if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 7); lean_ctor_release(x_5, 8); lean_ctor_release(x_5, 9); - x_63 = x_5; + x_71 = x_5; } else { lean_dec_ref(x_5); - x_63 = lean_box(0); + x_71 = lean_box(0); } -x_64 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_60); -x_65 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_61); -if (lean_is_scalar(x_63)) { - x_66 = lean_alloc_ctor(0, 10, 0); +x_72 = l_Lean_Elab_Term_MutualClosure_Replacement_apply(x_1, x_70); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 10, 0); } else { - x_66 = x_63; + x_73 = x_71; } -lean_ctor_set(x_66, 0, x_53); -lean_ctor_set(x_66, 1, x_54); -lean_ctor_set(x_66, 2, x_55); -lean_ctor_set(x_66, 3, x_56); -lean_ctor_set(x_66, 4, x_57); -lean_ctor_set(x_66, 5, x_58); -lean_ctor_set(x_66, 6, x_59); -lean_ctor_set(x_66, 7, x_64); -lean_ctor_set(x_66, 8, x_65); -lean_ctor_set(x_66, 9, x_62); -if (lean_is_scalar(x_52)) { - x_67 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_73, 0, x_60); +lean_ctor_set(x_73, 1, x_61); +lean_ctor_set(x_73, 2, x_62); +lean_ctor_set(x_73, 3, x_63); +lean_ctor_set(x_73, 4, x_64); +lean_ctor_set(x_73, 5, x_65); +lean_ctor_set(x_73, 6, x_66); +lean_ctor_set(x_73, 7, x_69); +lean_ctor_set(x_73, 8, x_72); +lean_ctor_set(x_73, 9, x_67); +if (lean_is_scalar(x_59)) { + x_74 = lean_alloc_ctor(0, 3, 0); } else { - x_67 = x_52; + x_74 = x_59; } -lean_ctor_set(x_67, 0, x_50); -lean_ctor_set(x_67, 1, x_51); -lean_ctor_set(x_67, 2, x_66); -x_68 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_49); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_ctor_set(x_74, 0, x_57); +lean_ctor_set(x_74, 1, x_58); +lean_ctor_set(x_74, 2, x_73); +x_75 = l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9(x_1, x_56); +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; } } } @@ -12344,7 +12688,7 @@ x_27 = lean_ctor_get(x_25, 0); lean_inc(x_27); lean_dec(x_25); lean_inc(x_5); -x_28 = l___private_Lean_Elab_MutualDef_30__mkFreeVarMap(x_27, x_1, x_16, x_23, x_5); +x_28 = l___private_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap(x_27, x_1, x_16, x_23, x_5); lean_dec(x_23); lean_dec(x_16); x_29 = l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2___rarg(x_9, x_10, x_11, x_26); @@ -12385,7 +12729,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_38 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +x_38 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_37); lean_dec(x_28); if (lean_obj_tag(x_38) == 0) { @@ -12688,7 +13032,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_106 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_105); +x_106 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_105); lean_dec(x_28); if (lean_obj_tag(x_106) == 0) { @@ -13021,7 +13365,7 @@ lean_inc(x_9); lean_inc(x_175); lean_inc(x_7); lean_inc(x_6); -x_178 = l_List_mapM___main___at___private_Lean_Elab_MutualDef_38__mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_175, x_9, x_10, x_11, x_177); +x_178 = l_List_mapM___main___at___private_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2(x_28, x_5, x_6, x_7, x_175, x_9, x_10, x_11, x_177); lean_dec(x_28); if (lean_obj_tag(x_178) == 0) { @@ -13408,7 +13752,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_39__getAllUserLevelNames(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_getAllUserLevelNames(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -13433,11 +13777,11 @@ return x_7; } } } -lean_object* l___private_Lean_Elab_MutualDef_39__getAllUserLevelNames___boxed(lean_object* x_1) { +lean_object* l___private_0__Lean_Elab_Term_getAllUserLevelNames___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_39__getAllUserLevelNames(x_1); +x_2 = l___private_0__Lean_Elab_Term_getAllUserLevelNames(x_1); lean_dec(x_1); return x_2; } @@ -13463,7 +13807,7 @@ if (x_11 == 0) lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_12 = lean_ctor_get(x_1, 0); x_13 = lean_ctor_get(x_1, 1); -x_14 = l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -13504,7 +13848,7 @@ x_24 = lean_ctor_get(x_1, 1); lean_inc(x_24); lean_inc(x_23); lean_dec(x_1); -x_25 = l___private_Lean_Elab_MutualDef_17__instantiateMVarsAtLetRecToLift(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_25 = l___private_0__Lean_Elab_Term_instantiateMVarsAtLetRecToLift(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -13735,7 +14079,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_14 = l___private_Lean_Elab_MutualDef_10__elabFunValues(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_0__Lean_Elab_Term_elabFunValues(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; @@ -13763,7 +14107,7 @@ lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 1); x_22 = lean_ctor_get(x_19, 0); lean_dec(x_22); -x_23 = l___private_Lean_Elab_MutualDef_14__isExample(x_2); +x_23 = l___private_0__Lean_Elab_Term_isExample(x_2); if (x_23 == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -13825,14 +14169,14 @@ lean_inc(x_11); lean_inc(x_9); lean_inc(x_7); lean_inc_n(x_41, 2); -x_43 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1(x_6, x_41, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_42); +x_43 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1(x_6, x_41, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_42); if (lean_obj_tag(x_43) == 0) { lean_object* x_44; uint8_t x_45; lean_object* x_46; x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l___private_Lean_Elab_MutualDef_15__isTheorem(x_2); +x_45 = l___private_0__Lean_Elab_Term_isTheorem(x_2); lean_inc(x_41); lean_inc(x_29); lean_inc(x_35); @@ -13847,7 +14191,7 @@ if (x_45 == 0) { uint8_t x_47; lean_object* x_48; x_47 = 1; -x_48 = l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(x_5, x_35, x_29, x_41, x_47, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_44); +x_48 = l___private_0__Lean_Elab_Term_withUsedWhen___rarg(x_5, x_35, x_29, x_41, x_47, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_44); lean_dec(x_29); lean_dec(x_35); return x_48; @@ -13855,7 +14199,7 @@ return x_48; else { lean_object* x_49; -x_49 = l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(x_5, x_35, x_29, x_41, x_17, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_44); +x_49 = l___private_0__Lean_Elab_Term_withUsedWhen___rarg(x_5, x_35, x_29, x_41, x_17, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_44); lean_dec(x_29); lean_dec(x_35); return x_49; @@ -13989,7 +14333,7 @@ lean_object* x_62; uint8_t x_63; x_62 = lean_ctor_get(x_19, 1); lean_inc(x_62); lean_dec(x_19); -x_63 = l___private_Lean_Elab_MutualDef_14__isExample(x_2); +x_63 = l___private_0__Lean_Elab_Term_isExample(x_2); if (x_63 == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; @@ -14050,14 +14394,14 @@ lean_inc(x_11); lean_inc(x_9); lean_inc(x_7); lean_inc_n(x_81, 2); -x_83 = l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1(x_6, x_81, x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_82); +x_83 = l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1(x_6, x_81, x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_82); if (lean_obj_tag(x_83) == 0) { lean_object* x_84; uint8_t x_85; lean_object* x_86; x_84 = lean_ctor_get(x_83, 1); lean_inc(x_84); lean_dec(x_83); -x_85 = l___private_Lean_Elab_MutualDef_15__isTheorem(x_2); +x_85 = l___private_0__Lean_Elab_Term_isTheorem(x_2); lean_inc(x_81); lean_inc(x_69); lean_inc(x_75); @@ -14072,7 +14416,7 @@ if (x_85 == 0) { uint8_t x_87; lean_object* x_88; x_87 = 1; -x_88 = l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(x_5, x_75, x_69, x_81, x_87, x_86, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +x_88 = l___private_0__Lean_Elab_Term_withUsedWhen___rarg(x_5, x_75, x_69, x_81, x_87, x_86, x_7, x_8, x_9, x_10, x_11, x_12, x_84); lean_dec(x_69); lean_dec(x_75); return x_88; @@ -14080,7 +14424,7 @@ return x_88; else { lean_object* x_89; -x_89 = l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(x_5, x_75, x_69, x_81, x_17, x_86, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +x_89 = l___private_0__Lean_Elab_Term_withUsedWhen___rarg(x_5, x_75, x_69, x_81, x_17, x_86, x_7, x_8, x_9, x_10, x_11, x_12, x_84); lean_dec(x_69); lean_dec(x_75); return x_89; @@ -14303,7 +14647,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_13 = l___private_Lean_Elab_MutualDef_6__elabHeaders(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_13 = l___private_0__Lean_Elab_Term_elabHeaders(x_2, x_3, x_4, 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; lean_object* x_17; lean_object* x_18; @@ -14312,7 +14656,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l___private_Lean_Elab_MutualDef_39__getAllUserLevelNames(x_14); +x_16 = l___private_0__Lean_Elab_Term_getAllUserLevelNames(x_14); lean_inc(x_14); x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed), 13, 5); lean_closure_set(x_17, 0, x_14); @@ -14320,7 +14664,7 @@ lean_closure_set(x_17, 1, x_2); lean_closure_set(x_17, 2, x_11); lean_closure_set(x_17, 3, x_16); lean_closure_set(x_17, 4, x_1); -x_18 = l___private_Lean_Elab_MutualDef_8__withFunLocalDecls___rarg(x_14, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_18 = l___private_0__Lean_Elab_Term_withFunLocalDecls___rarg(x_14, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_15); return x_18; } else @@ -14379,6 +14723,68 @@ lean_dec(x_2); return x_14; } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +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_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg___boxed), 4, 0); +return x_2; +} +} lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___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) { _start: { @@ -14448,7 +14854,7 @@ x_14 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__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_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_15, x_3, x_4, x_8); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_15, x_3, x_4, x_8); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { @@ -14505,7 +14911,7 @@ x_13 = lean_ctor_get(x_2, 6); lean_dec(x_13); lean_ctor_set(x_2, 6, x_11); x_14 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_15 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_14, x_2, x_3, x_10); +x_15 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_14, x_2, x_3, x_10); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -14550,7 +14956,7 @@ lean_ctor_set(x_26, 4, x_24); lean_ctor_set(x_26, 5, x_25); lean_ctor_set(x_26, 6, x_11); x_27 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_28 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_27, x_26, x_3, x_10); +x_28 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_27, x_26, x_3, x_10); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -14587,7 +14993,7 @@ return x_36; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -14661,7 +15067,7 @@ x_7 = lean_usize_of_nat(x_6); lean_dec(x_6); x_8 = 0; x_9 = l_Array_empty___closed__1; -x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(x_5, x_7, x_8, x_9, x_2, x_3, x_4); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6(x_5, x_7, x_8, x_9, x_2, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_10) == 0) { @@ -14720,6 +15126,65 @@ lean_dec(x_6); return x_7; } } +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +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 = l_Lean_replaceRef(x_1, x_7); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_3, 6); +lean_dec(x_11); +lean_ctor_set(x_3, 6, x_9); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_2, x_3, x_4, x_8); +return x_12; +} +else +{ +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_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_15); +lean_ctor_set(x_19, 3, x_16); +lean_ctor_set(x_19, 4, x_17); +lean_ctor_set(x_19, 5, x_18); +lean_ctor_set(x_19, 6, x_9); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_2, x_19, x_4, x_8); +return x_20; +} +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg___boxed), 5, 0); +return x_2; +} +} lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___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) { _start: { @@ -14975,7 +15440,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_dec(x_6); x_19 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; -x_20 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_13, x_19, x_7, x_8, x_9); +x_20 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg(x_13, x_19, x_7, x_8, x_9); lean_dec(x_13); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -15097,7 +15562,7 @@ x_31 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; 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 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_21, x_32, x_2, x_3, x_4); +x_33 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg(x_21, x_32, x_2, x_3, x_4); lean_dec(x_21); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) @@ -15167,7 +15632,7 @@ x_49 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__5; 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_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_38, x_50, x_2, x_3, x_4); +x_51 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg(x_38, x_50, x_2, x_3, x_4); lean_dec(x_38); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); @@ -15194,7 +15659,7 @@ return x_55; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__6(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_Elab_Command_elabMutualDef___spec__8(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; @@ -15326,7 +15791,7 @@ _start: lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_5 = x_1; x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__6___boxed), 5, 2); +x_7 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__8___boxed), 5, 2); lean_closure_set(x_7, 0, x_6); lean_closure_set(x_7, 1, x_5); x_8 = x_7; @@ -15385,6 +15850,15 @@ return x_23; } } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__5___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___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) { _start: { @@ -15428,7 +15902,7 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___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* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___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) { _start: { size_t x_8; size_t x_9; lean_object* x_10; @@ -15436,7 +15910,7 @@ x_8 = lean_unbox_usize(x_2); lean_dec(x_2); x_9 = lean_unbox_usize(x_3); lean_dec(x_3); -x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__6(x_1, x_8, x_9, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_1); return x_10; @@ -15462,6 +15936,16 @@ lean_dec(x_1); return x_5; } } +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___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: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__7___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -15516,11 +16000,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___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* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__8___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_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__6(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__8(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } @@ -15558,136 +16042,137 @@ l_Lean_Elab_DefViewElabHeader_inhabited___closed__1 = _init_l_Lean_Elab_DefViewE lean_mark_persistent(l_Lean_Elab_DefViewElabHeader_inhabited___closed__1); l_Lean_Elab_DefViewElabHeader_inhabited = _init_l_Lean_Elab_DefViewElabHeader_inhabited(); lean_mark_persistent(l_Lean_Elab_DefViewElabHeader_inhabited); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__1); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__3); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__4 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__4); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__8); -l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9 = _init_l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__9); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__2); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__4 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__4); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5); -l___private_Lean_Elab_MutualDef_2__checkKinds___closed__6 = _init_l___private_Lean_Elab_MutualDef_2__checkKinds___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_2__checkKinds___closed__6); -l___private_Lean_Elab_MutualDef_3__check___closed__1 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__1); -l___private_Lean_Elab_MutualDef_3__check___closed__2 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__2); -l___private_Lean_Elab_MutualDef_3__check___closed__3 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__3); -l___private_Lean_Elab_MutualDef_3__check___closed__4 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__4); -l___private_Lean_Elab_MutualDef_3__check___closed__5 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__5); -l___private_Lean_Elab_MutualDef_3__check___closed__6 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__6); -l___private_Lean_Elab_MutualDef_3__check___closed__7 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__7); -l___private_Lean_Elab_MutualDef_3__check___closed__8 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__8); -l___private_Lean_Elab_MutualDef_3__check___closed__9 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__9); -l___private_Lean_Elab_MutualDef_3__check___closed__10 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__10); -l___private_Lean_Elab_MutualDef_3__check___closed__11 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__11); -l___private_Lean_Elab_MutualDef_3__check___closed__12 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__12); -l___private_Lean_Elab_MutualDef_3__check___closed__13 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__13); -l___private_Lean_Elab_MutualDef_3__check___closed__14 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__14); -l___private_Lean_Elab_MutualDef_3__check___closed__15 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__15); -l___private_Lean_Elab_MutualDef_3__check___closed__16 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__16); -l___private_Lean_Elab_MutualDef_3__check___closed__17 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__17); -l___private_Lean_Elab_MutualDef_3__check___closed__18 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__18); -l___private_Lean_Elab_MutualDef_3__check___closed__19 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__19(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__19); -l___private_Lean_Elab_MutualDef_3__check___closed__20 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__20(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__20); -l___private_Lean_Elab_MutualDef_3__check___closed__21 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__21(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__21); -l___private_Lean_Elab_MutualDef_3__check___closed__22 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__22(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__22); -l___private_Lean_Elab_MutualDef_3__check___closed__23 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__23(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__23); -l___private_Lean_Elab_MutualDef_3__check___closed__24 = _init_l___private_Lean_Elab_MutualDef_3__check___closed__24(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_3__check___closed__24); -l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1 = _init_l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__1); -l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2 = _init_l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__2); -l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3 = _init_l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_4__registerFailedToInferDefTypeInfo___closed__3); -l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1 = _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__1); -l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2 = _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__2); -l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3 = _init_l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_9__declValToTerm___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__2___closed__2); -l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1 = _init_l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_12__removeUnusedVars___closed__1); -l___private_Lean_Elab_MutualDef_19__getFunName___closed__1 = _init_l___private_Lean_Elab_MutualDef_19__getFunName___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_19__getFunName___closed__1); -l___private_Lean_Elab_MutualDef_19__getFunName___closed__2 = _init_l___private_Lean_Elab_MutualDef_19__getFunName___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_19__getFunName___closed__2); -l___private_Lean_Elab_MutualDef_19__getFunName___closed__3 = _init_l___private_Lean_Elab_MutualDef_19__getFunName___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_19__getFunName___closed__3); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__1 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__1(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__1); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__2 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__2(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__2); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__3); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__4); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__5 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__5(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__5); -l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6(); -lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetRecsToLiftTypes___spec__1___closed__6); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__1); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__3); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__4 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__4); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__6 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__6); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__7 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__7); -l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__8 = _init_l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__8); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__1); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__2); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__1___closed__3); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__1 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__1); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__2); +l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3 = _init_l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___lambda__2___closed__3); +l___private_0__Lean_Elab_Term_checkModifiers___closed__1 = _init_l___private_0__Lean_Elab_Term_checkModifiers___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___closed__1); +l___private_0__Lean_Elab_Term_checkModifiers___closed__2 = _init_l___private_0__Lean_Elab_Term_checkModifiers___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___closed__2); +l___private_0__Lean_Elab_Term_checkModifiers___closed__3 = _init_l___private_0__Lean_Elab_Term_checkModifiers___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkModifiers___closed__3); +l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1 = _init_l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1); +l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2 = _init_l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__2); +l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3 = _init_l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3); +l___private_0__Lean_Elab_Term_checkKinds___closed__1 = _init_l___private_0__Lean_Elab_Term_checkKinds___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___closed__1); +l___private_0__Lean_Elab_Term_checkKinds___closed__2 = _init_l___private_0__Lean_Elab_Term_checkKinds___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___closed__2); +l___private_0__Lean_Elab_Term_checkKinds___closed__3 = _init_l___private_0__Lean_Elab_Term_checkKinds___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_checkKinds___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__2___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__2___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__2___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__2___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__2___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__2___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__2___closed__4 = _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__4(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__2___closed__4); +l___private_0__Lean_Elab_Term_check___lambda__2___closed__5 = _init_l___private_0__Lean_Elab_Term_check___lambda__2___closed__5(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__2___closed__5); +l___private_0__Lean_Elab_Term_check___lambda__3___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__3___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__3___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__3___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__3___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__3___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__3___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__4___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__4___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__4___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__4___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__4___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__4___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__4___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__5___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__5___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__5___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__5___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__5___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__5___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__5___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__6___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__6___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__6___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__6___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__6___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__6___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__6___closed__3); +l___private_0__Lean_Elab_Term_check___lambda__7___closed__1 = _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__7___closed__1); +l___private_0__Lean_Elab_Term_check___lambda__7___closed__2 = _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__7___closed__2); +l___private_0__Lean_Elab_Term_check___lambda__7___closed__3 = _init_l___private_0__Lean_Elab_Term_check___lambda__7___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___lambda__7___closed__3); +l___private_0__Lean_Elab_Term_check___closed__1 = _init_l___private_0__Lean_Elab_Term_check___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___closed__1); +l___private_0__Lean_Elab_Term_check___closed__2 = _init_l___private_0__Lean_Elab_Term_check___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___closed__2); +l___private_0__Lean_Elab_Term_check___closed__3 = _init_l___private_0__Lean_Elab_Term_check___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_check___closed__3); +l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1 = _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__1); +l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2 = _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2); +l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3 = _init_l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3); +l___private_0__Lean_Elab_Term_declValToTerm___closed__1 = _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_declValToTerm___closed__1); +l___private_0__Lean_Elab_Term_declValToTerm___closed__2 = _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_declValToTerm___closed__2); +l___private_0__Lean_Elab_Term_declValToTerm___closed__3 = _init_l___private_0__Lean_Elab_Term_declValToTerm___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_declValToTerm___closed__3); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__1); +l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_0__Lean_Elab_Term_elabFunValues___spec__1___closed__2); +l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1 = _init_l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_removeUnusedVars___closed__1); +l___private_0__Lean_Elab_Term_getFunName___closed__1 = _init_l___private_0__Lean_Elab_Term_getFunName___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_getFunName___closed__1); +l___private_0__Lean_Elab_Term_getFunName___closed__2 = _init_l___private_0__Lean_Elab_Term_getFunName___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_getFunName___closed__2); +l___private_0__Lean_Elab_Term_getFunName___closed__3 = _init_l___private_0__Lean_Elab_Term_getFunName___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_getFunName___closed__3); +l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1 = _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1(); +lean_mark_persistent(l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__1); +l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2 = _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2(); +lean_mark_persistent(l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__2); +l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3 = _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3(); +lean_mark_persistent(l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__3); +l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4 = _init_l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4(); +lean_mark_persistent(l_List_forM___main___at___private_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__1___closed__4); +l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default = _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default(); +lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default); +l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default = _init_l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default(); +l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default(); +lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_ClosureState_newLocalDecls___default); +l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default(); +lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default); +l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default(); +lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default); +l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default = _init_l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default(); +lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_ClosureState_exprArgs___default); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__1); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__2); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__4); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__5); +l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6 = _init_l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6(); +lean_mark_persistent(l___private_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6); l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___closed__1 = _init_l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___closed__1(); lean_mark_persistent(l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2___closed__1); return lean_io_result_mk_ok(lean_box(0));