diff --git a/stage0/src/Init/Data/Array/Basic.lean b/stage0/src/Init/Data/Array/Basic.lean index 15d1298b9a..c6ad928274 100644 --- a/stage0/src/Init/Data/Array/Basic.lean +++ b/stage0/src/Init/Data/Array/Basic.lean @@ -818,4 +818,39 @@ else @[inline] def partition {α : Type u} (p : α → Bool) (as : Array α) : Array α × Array α := partitionAux p as 0 #[] #[] +partial def isPrefixOfAux {α : Type u} [HasBeq α] (as bs : Array α) (hle : as.size ≤ bs.size) : Nat → Bool +| i => + if h : i < as.size then + let a := as.get ⟨i, h⟩; + let b := bs.get ⟨i, Nat.ltOfLtOfLe h hle⟩; + if a == b then + isPrefixOfAux (i+1) + else + false + else + true + +/- Return true iff `as` is a prefix of `bs` -/ +def isPrefixOf {α : Type u} [HasBeq α] (as bs : Array α) : Bool := +if h : as.size ≤ bs.size then + isPrefixOfAux as bs h 0 +else + false + +private def allDiffAuxAux {α} [HasBeq α] (as : Array α) (a : α) : forall (i : Nat), i < as.size → Bool +| 0, h => true +| i+1, h => + have i < as.size from Nat.ltTrans (Nat.ltSuccSelf _) h; + a != as.get ⟨i, this⟩ && allDiffAuxAux i this + +private partial def allDiffAux {α} [HasBeq α] (as : Array α) : Nat → Bool +| i => + if h : i < as.size then + allDiffAuxAux as (as.get ⟨i, h⟩) i h && allDiffAux (i+1) + else + true + +def allDiff {α} [HasBeq α] (as : Array α) : Bool := +allDiffAux as 0 + end Array diff --git a/stage0/src/Init/Data/FloatArray/Basic.lean b/stage0/src/Init/Data/FloatArray/Basic.lean index 5056e9f54e..8840cd937d 100644 --- a/stage0/src/Init/Data/FloatArray/Basic.lean +++ b/stage0/src/Init/Data/FloatArray/Basic.lean @@ -63,8 +63,8 @@ s.size == 0 partial def toListAux (ds : FloatArray) : Nat → List Float → List Float | i, r => - if i < ds.size then - toListAux (i+1) (ds.get! i :: r) + if h : i < ds.size then + toListAux (i+1) (ds.get ⟨i, h⟩ :: r) else r.reverse diff --git a/stage0/src/Init/LeanInit.lean b/stage0/src/Init/LeanInit.lean index e412cb7fd2..790759176b 100644 --- a/stage0/src/Init/LeanInit.lean +++ b/stage0/src/Init/LeanInit.lean @@ -327,6 +327,15 @@ private def eraseMacroScopesAux : Name → Name def Name.eraseMacroScopes (n : Name) : Name := if n.hasMacroScopes then eraseMacroScopesAux n else n +private def simpMacroScopesAux : Name → Name +| Name.num p i _ => mkNameNum (simpMacroScopesAux p) i +| n => eraseMacroScopesAux n + +/- Helper function we use to create binder names that do not need to be unique. -/ +@[export lean_simp_macro_scopes] +def Name.simpMacroScopes (n : Name) : Name := +if n.hasMacroScopes then simpMacroScopesAux n else n + structure MacroScopesView := (name : Name) (imported : Name) diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 0bff49dde6..5ba3c8cf85 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -613,7 +613,7 @@ else else withRef f $ mergeFailures candidates -private partial def expandApp (stx : Syntax) : TermElabM (Syntax × Array NamedArg × Array Arg) := do +partial def expandApp (stx : Syntax) : TermElabM (Syntax × Array NamedArg × Array Arg) := do let f := stx.getArg 0; (namedArgs, args) ← (stx.getArg 1).getArgs.foldlM (fun (acc : Array NamedArg × Array Arg) (stx : Syntax) => do diff --git a/stage0/src/Lean/Elab/Binders.lean b/stage0/src/Lean/Elab/Binders.lean index 609bfbfd07..0532b3fa34 100644 --- a/stage0/src/Lean/Elab/Binders.lean +++ b/stage0/src/Lean/Elab/Binders.lean @@ -17,9 +17,9 @@ open Meta a) (`:` term)? b) `:` term return `term` if it is present, or a hole if not. -/ -private def expandBinderType (stx : Syntax) : Syntax := +private def expandBinderType (ref : Syntax) (stx : Syntax) : Syntax := if stx.getNumArgs == 0 then - mkHole stx + mkHole ref else stx.getArg 1 @@ -108,14 +108,14 @@ match stx with else if k == `Lean.Parser.Term.explicitBinder then do -- `(` binderIdent+ binderType (binderDefault <|> binderTactic)? `)` ids ← getBinderIds (args.get! 1); - let type := expandBinderType (args.get! 2); + let type := expandBinderType stx (args.get! 2); let optModifier := args.get! 3; type ← expandBinderModifier type optModifier; ids.mapM $ fun id => do id ← expandBinderIdent id; pure { id := id, type := type, bi := BinderInfo.default } else if k == `Lean.Parser.Term.implicitBinder then do -- `{` binderIdent+ binderType `}` ids ← getBinderIds (args.get! 1); - let type := expandBinderType (args.get! 2); + let type := expandBinderType stx (args.get! 2); ids.mapM $ fun id => do id ← expandBinderIdent id; pure { id := id, type := type, bi := BinderInfo.implicit } else if k == `Lean.Parser.Term.instBinder then do -- `[` optIdent type `]` @@ -390,7 +390,7 @@ private def expandMatchAltsIntoMatchAux (ref : Syntax) (matchAlts : Syntax) (mat if matchTactic then `(tactic| intro $x:term; $body:tactic) else - `(fun $x => $body) + `(@fun $x => $body) /-- Expand `matchAlts` syntax into a full `match`-expression. diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index 5c8ef92802..de5dfc938c 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -6,6 +6,7 @@ Authors: Leonardo de Moura import Lean.Meta.Match.MatchPatternAttr import Lean.Meta.Match.Match import Lean.Elab.SyntheticMVars +import Lean.Elab.App namespace Lean namespace Elab @@ -144,7 +145,7 @@ fun stx expectedType? => do Patterns define new local variables. This module collect them and preprocess `_` occurring in patterns. Recall that an `_` may represent anonymous variables or inaccessible terms - that implied by typing constraints. Thus, we represent them with fresh named holes `?x`. + that are implied by typing constraints. Thus, we represent them with fresh named holes `?x`. After we elaborate the pattern, if the metavariable remains unassigned, we transform it into a regular pattern variable. Otherwise, it becomes an inaccessible term. @@ -183,70 +184,176 @@ forallBoundedTelescope ctorVal.type ctorVal.nparams fun ps _ => private def throwAmbiguous {α} (fs : List Expr) : M α := throwError ("ambiguous pattern, use fully qualified name, possible interpretations " ++ fs) -private def processVar (id : Name) (mustBeCtor : Bool := false) : M Unit := do -when mustBeCtor $ throwCtorExpected; -unless id.eraseMacroScopes.isAtomic $ throwError "invalid pattern variable, must be atomic"; -s ← get; -when (s.found.contains id) $ throwError ("invalid pattern, variable '" ++ id ++ "' occurred more than once"); -modify fun s => { s with vars := s.vars.push (PatternVar.localVar id), found := s.found.insert id } - --- HACK: inlining this function crashes the compiler --- It produces "unknown free variable: _kernel_fresh." at step `csimp.cpp` -def processIdAuxAux (stx : Syntax) (mustBeCtor : Bool) (env : Environment) (f : Expr) : M Nat := -match f with -| Expr.const fName _ _ => do - match env.find? fName with - | some $ ConstantInfo.ctorInfo val => liftM $ getNumExplicitCtorParams val - | some $ info => - if hasMatchPatternAttribute env fName then pure 0 - else do processVar stx.getId mustBeCtor; pure 0 - | none => throwCtorExpected -| _ => do processVar stx.getId mustBeCtor; pure 0 - -/- Check whether `stx` is a pattern variable or constructor-like (i.e., constructor or constant tagged with `[matchPattern]` attribute) - If `mustBeCtor == true`, then `stx` cannot be a pattern variable. - - If `stx` is a constructor, then return the number of explicit arguments that are inductive type parameters. -/ -private def processIdAux (stx : Syntax) (mustBeCtor : Bool) : M Nat := -withRef stx do -env ← getEnv; +def resolveId? (stx : Syntax) : M (Option Expr) := match stx with | Syntax.ident _ _ val preresolved => do rs ← liftM $ catch (resolveName val preresolved []) (fun _ => pure []); let rs := rs.filter fun ⟨f, projs⟩ => projs.isEmpty; let fs := rs.map fun ⟨f, _⟩ => f; match fs with - | [] => do processVar stx.getId mustBeCtor; pure 0 - | [f] => processIdAuxAux stx mustBeCtor env f + | [] => pure none + | [f] => pure (some f) | _ => throwAmbiguous fs -| _ => - if stx.isOfKind `Lean.Parser.Term.explicit then - throwError "identifier expected, '@' is not allowed in patterns" - else - throwError "identifier expected" - -private def processCtor (stx : Syntax) : M Nat := -processIdAux stx true - -private def processId (stx : Syntax) : M Unit := do -_ ← processIdAux stx false; pure () +| _ => throwError "identifier expected" private def throwInvalidPattern {α} : M α := throwError "invalid pattern" +namespace CtorApp + +/- +An application in a pattern can be + +1- A constructor application + The elaborator assumes fields are accessible and inductive parameters are not accessible. + +2- A regular application `(f ...)` where `f` is tagged with `[matchPattern]`. + The elaborator assumes implicit arguments are not accessible and explicit ones are accessible. +-/ + +structure Context := +(funId : Syntax) +(ctorVal? : Option ConstructorVal) -- It is `some`, if constructor application +(explicit : Bool) +(paramDecls : Array LocalDecl) +(paramDeclIdx : Nat := 0) +(namedArgs : Array NamedArg) +(args : List Arg) +(newArgs : Array Syntax := #[]) + +instance Context.inhabited : Inhabited Context := +⟨⟨arbitrary _, none, true, #[], 0, #[], [], #[]⟩⟩ + +private def isDone (ctx : Context) : Bool := +ctx.paramDeclIdx ≥ ctx.paramDecls.size + +private def finalize (ctx : Context) : M Syntax := +if ctx.namedArgs.isEmpty && ctx.args.isEmpty then do + fStx ← `(@$(ctx.funId):ident); + pure $ mkAppStx fStx ctx.newArgs +else + throwError "too many arguments" + +private def isNextArgAccessible (ctx : Context) : Bool := +let i := ctx.paramDeclIdx; +match ctx.ctorVal? with +| some ctorVal => i ≥ ctorVal.nparams -- For constructor applications only fields are accessible +| none => + if h : i < ctx.paramDecls.size then + -- For `[matchPattern]` applications, only explicit parameters are accessible. + let d := ctx.paramDecls.get ⟨i, h⟩; + d.binderInfo.isExplicit + else + false + +private def getNextParam (ctx : Context) : LocalDecl × Context := +let i := ctx.paramDeclIdx; +let d := ctx.paramDecls.get! i; +(d, { ctx with paramDeclIdx := ctx.paramDeclIdx + 1 }) + +private def pushNewArg (collect : Syntax → M Syntax) (accessible : Bool) (ctx : Context) (arg : Arg) : M Context := +match arg with +| Arg.stx stx => do + stx ← if accessible then collect stx else pure stx; + pure { ctx with newArgs := ctx.newArgs.push stx } +| _ => unreachable! + +private def processExplicitArg (collect : Syntax → M Syntax) (accessible : Bool) (ctx : Context) : M Context := +match ctx.args with +| [] => + -- TODO: add support for `..` + throwError ("explicit parameter is missing, unused named arguments " ++ toString (ctx.namedArgs.map $ fun narg => narg.name)) +| arg::args => do + let ctx := { ctx with args := args }; + pushNewArg collect accessible ctx arg + +private def processImplicitArg (collect : Syntax → M Syntax) (accessible : Bool) (ctx : Context) : M Context := +if ctx.explicit then + processExplicitArg collect accessible ctx +else do + hole ← `(_); + pushNewArg collect accessible ctx (Arg.stx hole) + +private partial def processCtorAppAux (collect : Syntax → M Syntax) : Context → M Syntax +| ctx => + if isDone ctx then finalize ctx + else + let accessible := isNextArgAccessible ctx; + let (d, ctx) := getNextParam ctx; + match ctx.namedArgs.findIdx? (fun namedArg => namedArg.name == d.userName) with + | some idx => do + let arg := ctx.namedArgs.get! idx; + let ctx := { ctx with namedArgs := ctx.namedArgs.eraseIdx idx }; + ctx ← pushNewArg collect accessible ctx arg.val; + processCtorAppAux ctx + | none => do + ctx ← match d.binderInfo with + | BinderInfo.implicit => processImplicitArg collect accessible ctx + | BinderInfo.instImplicit => processImplicitArg collect accessible ctx + | _ => processExplicitArg collect accessible ctx; + processCtorAppAux ctx + +def processCtorApp (collect : Syntax → M Syntax) (f : Syntax) (namedArgs : Array NamedArg) (args : Array Arg) : M Syntax := do +let args := args.toList; +(fId, explicit) ← match_syntax f with +| `($fId:ident) => pure (fId, false) +| `(@$fId:ident) => pure (fId, true) +| _ => throwError "identifier expected"; +some (Expr.const fName _ _) ← resolveId? fId | throwCtorExpected; +fInfo ← getConstInfo fName; +forallTelescopeReducing fInfo.type fun xs _ => do +paramDecls ← xs.mapM getFVarLocalDecl; +match fInfo with +| ConstantInfo.ctorInfo val => + processCtorAppAux collect { funId := fId, explicit := explicit, ctorVal? := val, paramDecls := paramDecls, namedArgs := namedArgs, args := args } +| _ => do + env ← getEnv; + if hasMatchPatternAttribute env fName then + processCtorAppAux collect { funId := fId, explicit := explicit, ctorVal? := none, paramDecls := paramDecls, namedArgs := namedArgs, args := args } + else + throwCtorExpected + +end CtorApp + +def processCtorApp (collect : Syntax → M Syntax) (stx : Syntax) : M Syntax := do +(f, namedArgs, args) ← liftM $ expandApp stx; +CtorApp.processCtorApp collect f namedArgs args + +def processCtor (collect : Syntax → M Syntax) (stx : Syntax) : M Syntax := do +CtorApp.processCtorApp collect stx #[] #[] + +private def processVar (idStx : Syntax) : M Syntax := do +unless idStx.isIdent $ + throwErrorAt idStx "identifier expected"; +let id := idStx.getId; +unless id.eraseMacroScopes.isAtomic $ throwError "invalid pattern variable, must be atomic"; +s ← get; +when (s.found.contains id) $ throwError ("invalid pattern, variable '" ++ id ++ "' occurred more than once"); +modify fun s => { s with vars := s.vars.push (PatternVar.localVar id), found := s.found.insert id }; +pure idStx + +/- Check whether `stx` is a pattern variable or constructor-like (i.e., constructor or constant tagged with `[matchPattern]` attribute) -/ +private def processId (collect : Syntax → M Syntax) (stx : Syntax) : M Syntax := do +env ← getEnv; +f? ← resolveId? stx; +match f? with +| none => processVar stx +| some f => match f with + | Expr.const fName _ _ => do + match env.find? fName with + | some (ConstantInfo.ctorInfo _) => processCtor collect stx + | some _ => + if hasMatchPatternAttribute env fName then + processCtor collect stx + else + processVar stx + | none => throwCtorExpected + | _ => processVar stx + private partial def collect : Syntax → M Syntax | stx@(Syntax.node k args) => withRef stx $ withFreshMacroScope $ if k == `Lean.Parser.Term.app then do - let appFn := args.get! 0; - let appArgs := (args.get! 1).getArgs; - appArgs.forM fun appArg => - when (appArg.isOfKind `Lean.Parser.Term.namedPattern) $ - throwErrorAt appArg "named parameters are not allowed in patterns"; - /- We must skip explict inducitve datatype parameters since they are by defaul inaccessible. - Example: `A` is inaccessible term at `Sum.inl A b` -/ - numArgsToSkip ← processCtor appFn; - appArgs ← appArgs.mapIdxM fun i arg => if i < numArgsToSkip then pure arg else collect arg; - pure $ Syntax.node k $ args.set! 1 (mkNullNode appArgs) + processCtorApp collect stx else if k == `Lean.Parser.Term.anonymousCtor then do elems ← (args.get! 1).getArgs.mapSepElemsM $ collect; pure $ Syntax.node k $ args.set! 1 $ mkNullNode elems @@ -290,13 +397,12 @@ private partial def collect : Syntax → M Syntax let arg := arg.setArg 1 s; pure $ Syntax.node k $ args.set! 1 arg else if k == `Lean.Parser.Term.explicitUniv then do - _ ← processCtor (stx.getArg 0); - pure stx + processCtor collect (stx.getArg 0) else if k == `Lean.Parser.Term.namedPattern then do /- Recall that def namedPattern := check... >> tparser! "@" >> termParser -/ let id := stx.getArg 0; - processVar id.getId; + processVar id; let pat := stx.getArg 2; pat ← collect pat; `(namedPattern $id $pat) @@ -312,9 +418,8 @@ private partial def collect : Syntax → M Syntax throwError "invalid pattern, notation is ambiguous" else throwInvalidPattern -| stx@(Syntax.ident _ _ _ _) => do - processId stx; - pure stx +| stx@(Syntax.ident _ _ _ _) => + processId collect stx | stx => throwInvalidPattern @@ -353,7 +458,7 @@ private partial def withPatternVarsAux {α} (pVars : Array PatternVar) (k : Arra withPatternVarsAux (i+1) (decls.push (PatternVarDecl.localVar x.fvarId!)) else do /- We must create the metavariables for `PatternVar.anonymousVar` AFTER we create the new local decls using `withLocalDecl`. - Reason: their scope must include the new local decls since some of them will be assigned by typing constraints. -/ + Reason: their scope must include the new local decls since some of them are assigned by typing constraints. -/ decls.forM fun decl => match decl with | PatternVarDecl.anonymousVar mvarId fvarId => do type ← inferType (mkFVar fvarId); @@ -388,7 +493,7 @@ patternVarDecls.foldlM pure $ decls.push decl | PatternVarDecl.anonymousVar mvarId fvarId => do e ← instantiateMVars (mkMVar mvarId); - trace `Elab.match fun _ => "finalizePatternDecls: mvarId: " ++ mkMVar mvarId ++ " := " ++ e ++ ", fvarId: " ++ mkFVar fvarId; + trace `Elab.match fun _ => "finalizePatternDecls: mvarId: " ++ mvarId ++ " := " ++ e ++ ", fvarId: " ++ mkFVar fvarId; match e with | Expr.mvar newMVarId _ => do /- Metavariable was not assigned, or assigned to another metavariable. So, @@ -422,14 +527,6 @@ modify $ fun s => { s with found := s.found.insert fvarId } private def throwInvalidPattern {α} (e : Expr) : M α := throwError ("invalid pattern " ++ indentExpr e) -private def getFieldsBinderInfoAux (ctorVal : ConstructorVal) : Nat → Expr → Array BinderInfo → Array BinderInfo -| i, Expr.forallE _ d b c, bis => - if i < ctorVal.nparams then - getFieldsBinderInfoAux (i+1) b bis - else - getFieldsBinderInfoAux (i+1) b (bis.push c.binderInfo) -| _, _, bis => bis - /- Create a new LocalDecl `x` for the metavariable `mvar`, and return `Pattern.var x` -/ private def mkLocalDeclFor (mvar : Expr) : M Pattern := do let mvarId := mvar.mvarId!; @@ -454,9 +551,6 @@ match val? with | some i => s.localDecls.insertAt i newDecl }; pure $ Pattern.var fvarId -private def getFieldsBinderInfo (ctorVal : ConstructorVal) : Array BinderInfo := -getFieldsBinderInfoAux ctorVal 0 ctorVal.type #[] - partial def main : Expr → M Pattern | e => let isLocalDecl (fvarId : FVarId) : M Bool := do { @@ -507,14 +601,7 @@ partial def main : Expr → M Pattern unless (args.size == v.nparams + v.nfields) $ throwInvalidPattern e; let params := args.extract 0 v.nparams; let fields := args.extract v.nparams args.size; - let binderInfos := getFieldsBinderInfo v; - fields ← fields.mapIdxM fun i field => do { - let binderInfo := binderInfos.get! i; - if binderInfo.isExplicit then - main field - else - mkInaccessible field - }; + fields ← fields.mapM main; pure $ Pattern.ctor v.name us params.toList fields.toList end ToDepElimPattern @@ -546,7 +633,6 @@ withPatternVars patternVars fun patternVarDecls => do let xs := altLHS.fvarDecls.toArray.map LocalDecl.toExpr; rhs ← if xs.isEmpty then pure $ mkThunk rhs else mkLambdaFVars xs rhs; trace `Elab.match fun _ => "rhs: " ++ rhs; - -- TODO: we should promote `.(?m ...)` to pattern variables too. This can happen when users misuse `{}` in constructors -- TODO: check whether altLHS still has metavariables pure (altLHS, rhs) diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index 348f608cb5..08f1e4098b 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.lean @@ -74,7 +74,7 @@ if h : 0 < prevHeaders.size then else pure () -private def elabFunType (xs : Array Expr) (view : DefView) : TermElabM Expr := +private def elabFunType (ref : Syntax) (xs : Array Expr) (view : DefView) : TermElabM Expr := match view.type? with | some typeStx => do type ← elabType typeStx; @@ -82,7 +82,8 @@ match view.type? with type ← instantiateMVars type; mkForallFVars xs type | none => do - type ← withRef view.binders $ mkFreshTypeMVar; + let hole := mkHole ref; + type ← elabType hole; mkForallFVars xs type private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHeader) := @@ -93,7 +94,8 @@ views.foldlM ⟨shortDeclName, declName, levelNames⟩ ← expandDeclId currNamespace currLevelNames view.declId view.modifiers; applyAttributes declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration; withLevelNames levelNames $ elabBinders view.binders.getArgs fun xs => do - type ← elabFunType xs view; + let refForElabFunType := view.value; + type ← elabFunType refForElabFunType xs view; let newHeader : DefViewElabHeader := { ref := view.ref, modifiers := view.modifiers, @@ -423,6 +425,7 @@ private partial def mkClosureForAux : Array FVarId → StateRefT ClosureState Te 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; match localDecl with @@ -448,6 +451,13 @@ private partial def mkClosureForAux : Array FVarId → StateRefT ClosureState Te }; 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 }; +pure { s with + newLocalDecls := s.newLocalDecls.reverse, + newLetDecls := s.newLetDecls.reverse, + exprArgs := s.exprArgs.reverse } + structure LetRecClosure := (localDecls : Array LocalDecl) (closed : Expr) -- expression used to replace occurrences of the let-rec FVarId @@ -459,7 +469,7 @@ withLCtx lctx toLift.localInstances do lambdaTelescope toLift.val fun xs val => do type ← instantiateForall toLift.type xs; lctx ← getLCtx; - (_, s) ← (mkClosureForAux freeVars).run { localDecls := xs.map fun x => lctx.get! x.fvarId! }; + 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; diff --git a/stage0/src/Lean/Elab/PreDefinition.lean b/stage0/src/Lean/Elab/PreDefinition.lean index 934be19217..eb4b66cd93 100644 --- a/stage0/src/Lean/Elab/PreDefinition.lean +++ b/stage0/src/Lean/Elab/PreDefinition.lean @@ -3,195 +3,6 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -import Lean.Util.SCC -import Lean.Elab.MkInhabitant -import Lean.Elab.Term -import Lean.Elab.DefView - -namespace Lean -namespace Elab -open Meta -open Term - -/- -A (potentially recursive) definition. -The elaborator converts it into Kernel definitions using many different strategies. --/ -structure PreDefinition := -(kind : DefKind) -(lparams : List Name) -(modifiers : Modifiers) -(declName : Name) -(type : Expr) -(value : Expr) - -instance PreDefinition.inhabited : Inhabited PreDefinition := -⟨⟨DefKind.«def», [], {}, arbitrary _, arbitrary _, arbitrary _⟩⟩ - -def instantiateMVarsAtPreDecls (preDefs : Array PreDefinition) : TermElabM (Array PreDefinition) := -preDefs.mapM fun preDef => do - type ← instantiateMVars preDef.type; - value ← instantiateMVars preDef.value; - pure { preDef with type := type, value := value } - -private def levelMVarToParamExpr (e : Expr) : StateRefT Nat TermElabM Expr := do -nextIdx ← get; -(e, nextIdx) ← liftM $ levelMVarToParam e nextIdx; -set nextIdx; -pure e - -private def levelMVarToParamPreDeclsAux (preDefs : Array PreDefinition) : StateRefT Nat TermElabM (Array PreDefinition) := -preDefs.mapM fun preDef => do - type ← levelMVarToParamExpr preDef.type; - value ← levelMVarToParamExpr preDef.value; - pure { preDef with type := type, value := value } - -def levelMVarToParamPreDecls (preDefs : Array PreDefinition) : TermElabM (Array PreDefinition) := -(levelMVarToParamPreDeclsAux preDefs).run' 1 - -private def collectLevelParamsExpr (e : Expr) : StateM CollectLevelParams.State Unit := do -modify fun s => collectLevelParams s e - -private def getLevelParamsPreDecls (preDefs : Array PreDefinition) (scopeLevelNames allUserLevelNames : List Name) : TermElabM (List Name) := -let (_, s) := StateT.run - (preDefs.forM fun preDef => do { - collectLevelParamsExpr preDef.type; - collectLevelParamsExpr preDef.value }) - {}; -match sortDeclLevelParams scopeLevelNames allUserLevelNames s.params with -| Except.error msg => throwError msg -| Except.ok levelParams => pure levelParams - -private def shareCommon (preDefs : Array PreDefinition) : Array PreDefinition := -let result : Std.ShareCommonM (Array PreDefinition) := - preDefs.mapM fun preDef => do { - type ← Std.withShareCommon preDef.type; - value ← Std.withShareCommon preDef.value; - pure { preDef with type := type, value := value } - }; -result.run - -def fixLevelParams (preDefs : Array PreDefinition) (scopeLevelNames allUserLevelNames : List Name) : TermElabM (Array PreDefinition) := do -let preDefs := shareCommon preDefs; -lparams ← getLevelParamsPreDecls preDefs scopeLevelNames allUserLevelNames; -let us := lparams.map mkLevelParam; -let fixExpr (e : Expr) : Expr := - e.replace fun c => match c with - | Expr.const declName _ _ => if preDefs.any fun preDef => preDef.declName == declName then some $ Lean.mkConst declName us else none - | _ => none; -pure $ preDefs.map fun preDef => - { preDef with - type := fixExpr preDef.type, - value := fixExpr preDef.value, - lparams := lparams } - -private def applyAttributesOf (preDefs : Array PreDefinition) (applicationTime : AttributeApplicationTime) : TermElabM Unit := do -preDefs.forM fun preDef => applyAttributes preDef.declName preDef.modifiers.attrs applicationTime - -private def addNonRecAux (preDef : PreDefinition) (compile : Bool) : TermElabM Unit := do -env ← getEnv; -let decl := - match preDef.kind with - | DefKind.«example» => unreachable! - | DefKind.«theorem» => - Declaration.thmDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value } - | DefKind.«opaque» => - Declaration.opaqueDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, - isUnsafe := preDef.modifiers.isUnsafe } - | DefKind.«abbrev» => - Declaration.defnDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, - hints := ReducibilityHints.«abbrev», isUnsafe := preDef.modifiers.isUnsafe } - | DefKind.«def» => - Declaration.defnDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, - hints := ReducibilityHints.regular (getMaxHeight env preDef.value + 1), - isUnsafe := preDef.modifiers.isUnsafe }; -ensureNoUnassignedMVars decl; -addDecl decl; -applyAttributesOf #[preDef] AttributeApplicationTime.afterTypeChecking; -when compile $ - compileDecl decl; -applyAttributesOf #[preDef] AttributeApplicationTime.afterCompilation; -pure () - -private def addAndCompileNonRec (preDef : PreDefinition) : TermElabM Unit := do -addNonRecAux preDef true - -private def addNonRec (preDef : PreDefinition) : TermElabM Unit := do -addNonRecAux preDef false - -private def addAndCompileUnsafe (preDefs : Array PreDefinition) : TermElabM Unit := do -let decl := Declaration.mutualDefnDecl $ preDefs.toList.map fun preDef => { - name := preDef.declName, - lparams := preDef.lparams, - type := preDef.type, - value := preDef.value, - isUnsafe := true, - hints := ReducibilityHints.opaque - }; -ensureNoUnassignedMVars decl; -addDecl decl; -applyAttributesOf preDefs AttributeApplicationTime.afterTypeChecking; -compileDecl decl; -applyAttributesOf preDefs AttributeApplicationTime.afterCompilation; -pure () - -private def addAndCompileUnsafeRec (preDefs : Array PreDefinition) : TermElabM Unit := do -addAndCompileUnsafe $ preDefs.map fun preDef => - { preDef with - declName := Compiler.mkUnsafeRecName preDef.declName, - value := preDef.value.replace fun e => match e with - | Expr.const declName us _ => - if preDefs.any fun preDef => preDef.declName == declName then - some $ mkConst (Compiler.mkUnsafeRecName declName) us - else - none - | _ => none, - modifiers := {} } - -private def addAndCompilePartial (preDefs : Array PreDefinition) : TermElabM Unit := do -preDefs.forM fun preDef => - forallTelescopeReducing preDef.type fun xs type => do - inh ← liftM $ mkInhabitantFor preDef.declName xs type; - addNonRec { preDef with - kind := DefKind.«opaque», - value := inh }; -addAndCompileUnsafeRec preDefs - -private def isNonRecursive (preDef : PreDefinition) : Bool := -Option.isNone $ preDef.value.find? fun c => match c with - | Expr.const declName _ _ => preDef.declName == declName - | _ => false - -private def partitionPreDefs (preDefs : Array PreDefinition) : Array (Array PreDefinition) := -let getPreDef := fun declName => (preDefs.find? fun preDef => preDef.declName == declName).get!; -let vertices := preDefs.toList.map fun preDef => preDef.declName; -let successorsOf := fun declName => (getPreDef declName).value.foldConsts [] fun declName successors => - if preDefs.any fun preDef => preDef.declName == declName then - declName :: successors - else - successors; -let sccs := SCC.scc vertices successorsOf; -sccs.toArray.map fun scc => scc.toArray.map getPreDef - -private def tryStructuralRecursion? (preDef : PreDefinition) : TermElabM (Option PreDefinition) := do -trace `Elab.definition fun _ => preDef.declName ++ ":=\n" ++ preDef.value; -throwError "WIP" - -def addPreDefinitions (preDefs : Array PreDefinition) : TermElabM Unit := do -preDefs.forM fun preDef => trace `Elab.definition.body fun _ => preDef.declName ++ " : " ++ preDef.type ++ " :=" ++ Format.line ++ preDef.value; -(partitionPreDefs preDefs).forM fun preDefs => do - if preDefs.size == 1 && isNonRecursive (preDefs.get! 0) then - addAndCompileNonRec (preDefs.get! 0) - else if preDefs.any fun preDef => preDef.modifiers.isUnsafe then - addAndCompileUnsafe preDefs - else if preDefs.any fun preDef => preDef.modifiers.isPartial then - addAndCompilePartial preDefs - else if preDefs.size == 1 then do - tryStructuralRecursion? (preDefs.get! 0); - pure () - else - -- TODO - throwError "WIP" - -end Elab -end Lean +import Lean.Elab.PreDefinition.Basic +import Lean.Elab.PreDefinition.Structural +import Lean.Elab.PreDefinition.Main diff --git a/stage0/src/Lean/Elab/PreDefinition/Basic.lean b/stage0/src/Lean/Elab/PreDefinition/Basic.lean new file mode 100644 index 0000000000..a48966db6e --- /dev/null +++ b/stage0/src/Lean/Elab/PreDefinition/Basic.lean @@ -0,0 +1,158 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Util.SCC +import Lean.Meta.AbstractNestedProofs +import Lean.Elab.MkInhabitant +import Lean.Elab.Term +import Lean.Elab.DefView + +namespace Lean +namespace Elab +open Meta +open Term + +/- +A (potentially recursive) definition. +The elaborator converts it into Kernel definitions using many different strategies. +-/ +structure PreDefinition := +(kind : DefKind) +(lparams : List Name) +(modifiers : Modifiers) +(declName : Name) +(type : Expr) +(value : Expr) + +instance PreDefinition.inhabited : Inhabited PreDefinition := +⟨⟨DefKind.«def», [], {}, arbitrary _, arbitrary _, arbitrary _⟩⟩ + +def instantiateMVarsAtPreDecls (preDefs : Array PreDefinition) : TermElabM (Array PreDefinition) := +preDefs.mapM fun preDef => do + type ← instantiateMVars preDef.type; + value ← instantiateMVars preDef.value; + pure { preDef with type := type, value := value } + +private def levelMVarToParamExpr (e : Expr) : StateRefT Nat TermElabM Expr := do +nextIdx ← get; +(e, nextIdx) ← liftM $ levelMVarToParam e nextIdx; +set nextIdx; +pure e + +private def levelMVarToParamPreDeclsAux (preDefs : Array PreDefinition) : StateRefT Nat TermElabM (Array PreDefinition) := +preDefs.mapM fun preDef => do + type ← levelMVarToParamExpr preDef.type; + value ← levelMVarToParamExpr preDef.value; + pure { preDef with type := type, value := value } + +def levelMVarToParamPreDecls (preDefs : Array PreDefinition) : TermElabM (Array PreDefinition) := +(levelMVarToParamPreDeclsAux preDefs).run' 1 + +private def collectLevelParamsExpr (e : Expr) : StateM CollectLevelParams.State Unit := do +modify fun s => collectLevelParams s e + +private def getLevelParamsPreDecls (preDefs : Array PreDefinition) (scopeLevelNames allUserLevelNames : List Name) : TermElabM (List Name) := +let (_, s) := StateT.run + (preDefs.forM fun preDef => do { + collectLevelParamsExpr preDef.type; + collectLevelParamsExpr preDef.value }) + {}; +match sortDeclLevelParams scopeLevelNames allUserLevelNames s.params with +| Except.error msg => throwError msg +| Except.ok levelParams => pure levelParams + +private def shareCommon (preDefs : Array PreDefinition) : Array PreDefinition := +let result : Std.ShareCommonM (Array PreDefinition) := + preDefs.mapM fun preDef => do { + type ← Std.withShareCommon preDef.type; + value ← Std.withShareCommon preDef.value; + pure { preDef with type := type, value := value } + }; +result.run + +def fixLevelParams (preDefs : Array PreDefinition) (scopeLevelNames allUserLevelNames : List Name) : TermElabM (Array PreDefinition) := do +let preDefs := shareCommon preDefs; +lparams ← getLevelParamsPreDecls preDefs scopeLevelNames allUserLevelNames; +let us := lparams.map mkLevelParam; +let fixExpr (e : Expr) : Expr := + e.replace fun c => match c with + | Expr.const declName _ _ => if preDefs.any fun preDef => preDef.declName == declName then some $ Lean.mkConst declName us else none + | _ => none; +pure $ preDefs.map fun preDef => + { preDef with + type := fixExpr preDef.type, + value := fixExpr preDef.value, + lparams := lparams } + +def applyAttributesOf (preDefs : Array PreDefinition) (applicationTime : AttributeApplicationTime) : TermElabM Unit := do +preDefs.forM fun preDef => applyAttributes preDef.declName preDef.modifiers.attrs applicationTime + +def abstractNestedProofs (preDef : PreDefinition) : MetaM PreDefinition := +if preDef.kind.isTheorem || preDef.kind.isExample then pure preDef +else do + value ← Meta.abstractNestedProofs preDef.declName preDef.value; + pure { preDef with value := value } + +private def addNonRecAux (preDef : PreDefinition) (compile : Bool) : TermElabM Unit := do +preDef ← liftM $ abstractNestedProofs preDef; +env ← getEnv; +let decl := + match preDef.kind with + | DefKind.«example» => unreachable! + | DefKind.«theorem» => + Declaration.thmDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value } + | DefKind.«opaque» => + Declaration.opaqueDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, + isUnsafe := preDef.modifiers.isUnsafe } + | DefKind.«abbrev» => + Declaration.defnDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, + hints := ReducibilityHints.«abbrev», isUnsafe := preDef.modifiers.isUnsafe } + | DefKind.«def» => + Declaration.defnDecl { name := preDef.declName, lparams := preDef.lparams, type := preDef.type, value := preDef.value, + hints := ReducibilityHints.regular (getMaxHeight env preDef.value + 1), + isUnsafe := preDef.modifiers.isUnsafe }; +addDecl decl; +applyAttributesOf #[preDef] AttributeApplicationTime.afterTypeChecking; +when (compile && !preDef.kind.isTheorem) $ + compileDecl decl; +applyAttributesOf #[preDef] AttributeApplicationTime.afterCompilation; +pure () + +def addAndCompileNonRec (preDef : PreDefinition) : TermElabM Unit := do +addNonRecAux preDef true + +def addNonRec (preDef : PreDefinition) : TermElabM Unit := do +addNonRecAux preDef false + +def addAndCompileUnsafe (preDefs : Array PreDefinition) : TermElabM Unit := do +let decl := Declaration.mutualDefnDecl $ preDefs.toList.map fun preDef => { + name := preDef.declName, + lparams := preDef.lparams, + type := preDef.type, + value := preDef.value, + isUnsafe := true, + hints := ReducibilityHints.opaque + }; +addDecl decl; +applyAttributesOf preDefs AttributeApplicationTime.afterTypeChecking; +compileDecl decl; +applyAttributesOf preDefs AttributeApplicationTime.afterCompilation; +pure () + +def addAndCompileUnsafeRec (preDefs : Array PreDefinition) : TermElabM Unit := do +addAndCompileUnsafe $ preDefs.map fun preDef => + { preDef with + declName := Compiler.mkUnsafeRecName preDef.declName, + value := preDef.value.replace fun e => match e with + | Expr.const declName us _ => + if preDefs.any fun preDef => preDef.declName == declName then + some $ mkConst (Compiler.mkUnsafeRecName declName) us + else + none + | _ => none, + modifiers := {} } + +end Elab +end Lean diff --git a/stage0/src/Lean/Elab/PreDefinition/Main.lean b/stage0/src/Lean/Elab/PreDefinition/Main.lean new file mode 100644 index 0000000000..8c87db1321 --- /dev/null +++ b/stage0/src/Lean/Elab/PreDefinition/Main.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Elab.PreDefinition.Basic +import Lean.Elab.PreDefinition.Structural +import Lean.Elab.PreDefinition.WF + +namespace Lean +namespace Elab +open Meta +open Term + +private def addAndCompilePartial (preDefs : Array PreDefinition) : TermElabM Unit := do +preDefs.forM fun preDef => + forallTelescopeReducing preDef.type fun xs type => do + inh ← liftM $ mkInhabitantFor preDef.declName xs type; + addNonRec { preDef with + kind := DefKind.«opaque», + value := inh }; +addAndCompileUnsafeRec preDefs + +private def isNonRecursive (preDef : PreDefinition) : Bool := +Option.isNone $ preDef.value.find? fun c => match c with + | Expr.const declName _ _ => preDef.declName == declName + | _ => false + +private def partitionPreDefs (preDefs : Array PreDefinition) : Array (Array PreDefinition) := +let getPreDef := fun declName => (preDefs.find? fun preDef => preDef.declName == declName).get!; +let vertices := preDefs.toList.map fun preDef => preDef.declName; +let successorsOf := fun declName => (getPreDef declName).value.foldConsts [] fun declName successors => + if preDefs.any fun preDef => preDef.declName == declName then + declName :: successors + else + successors; +let sccs := SCC.scc vertices successorsOf; +sccs.toArray.map fun scc => scc.toArray.map getPreDef + +private def collectMVarsAtPreDef (preDef : PreDefinition) : StateRefT CollectMVars.State MetaM Unit := do +collectMVars preDef.value; +collectMVars preDef.type + +private def getMVarsAtPreDef (preDef : PreDefinition) : MetaM (Array MVarId) := do +(_, s) ← (collectMVarsAtPreDef preDef).run {}; +pure s.result + +private def ensureNoUnassignedMVarsAtPreDef (preDef : PreDefinition) : TermElabM Unit := do +pendingMVarIds ← liftMetaM $ getMVarsAtPreDef preDef; +foundError ← logUnassignedUsingErrorContext pendingMVarIds; +when foundError throwAbort + +def addPreDefinitions (preDefs : Array PreDefinition) : TermElabM Unit := do +preDefs.forM fun preDef => trace `Elab.definition.body fun _ => preDef.declName ++ " : " ++ preDef.type ++ " :=" ++ Format.line ++ preDef.value; +preDefs.forM ensureNoUnassignedMVarsAtPreDef; +(partitionPreDefs preDefs).forM fun preDefs => do + if preDefs.size == 1 && isNonRecursive (preDefs.get! 0) then + addAndCompileNonRec (preDefs.get! 0) + else if preDefs.any fun preDef => preDef.modifiers.isUnsafe then + addAndCompileUnsafe preDefs + else if preDefs.any fun preDef => preDef.modifiers.isPartial then + addAndCompilePartial preDefs + else unlessM (structuralRecursion preDefs) do + WFRecursion preDefs + +end Elab +end Lean diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural.lean b/stage0/src/Lean/Elab/PreDefinition/Structural.lean new file mode 100644 index 0000000000..7bdc2cdb2c --- /dev/null +++ b/stage0/src/Lean/Elab/PreDefinition/Structural.lean @@ -0,0 +1,143 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Util.ForEachExpr +import Lean.Meta.RecursorInfo +import Lean.Elab.PreDefinition.Basic + +namespace Lean +namespace Elab +open Meta + +private def getFixedPrefix (declName : Name) (xs : Array Expr) (value : Expr) : Nat := +let visitor {ω} : StateRefT Nat (ST ω) Unit := + value.forEach' fun e => + if e.isAppOf declName then do + let args := e.getAppArgs; + modify fun numFixed => if args.size < numFixed then args.size else numFixed; + -- we continue searching if the e's arguments are not a prefix of `xs` + pure !args.isPrefixOf xs + else + pure true; +runST fun _ => do (_, numFixed) ← visitor.run xs.size; pure numFixed + +structure RecArgInfo := +/- `fixedParams ++ ys` are the arguments of the function we are trying to justify termination using structural recursion. -/ +(fixedParams : Array Expr) +(ys : Array Expr) -- recursion arguments +(pos : Nat) -- position in `ys` of the argument we are recursing on +(indicesPos : Array Nat) -- position in `ys` of the inductive datatype indices we are recursing on +(reflexive : Bool) -- true if we are recursing over a reflexive inductive datatype + +private def getIndexMinPos (xs : Array Expr) (indices : Array Expr) : Nat := +indices.foldl + (fun minPos index => match xs.indexOf index with + | some pos => if pos.val < minPos then pos.val else minPos + | _ => minPos) + xs.size + +-- Indices can only depend on other indices +private def hasBadIndexDep? (ys : Array Expr) (indices : Array Expr) : TermElabM (Option (Expr × Expr)) := +indices.findSomeM? fun index => do + indexType ← inferType index; + ys.findSomeM? fun y => + if indices.contains y then pure none + else condM (dependsOn indexType y.fvarId!) + (pure (some (index, y))) + (pure none) + +-- Inductive datatype parameters cannot depend on ys +private def hasBadParamDep? (ys : Array Expr) (indParams : Array Expr) : TermElabM (Option (Expr × Expr)) := +indParams.findSomeM? fun p => do + pType ← inferType p; + ys.findSomeM? fun y => + condM (dependsOn pType y.fvarId!) + (pure (some (p, y))) + (pure none) + +private partial def findRecArgAux? {α} (numFixed : Nat) (xs : Array Expr) (k? : RecArgInfo → TermElabM (Option α)) : Nat → TermElabM (Option α) +| i => + if h : i < xs.size then do + let x := xs.get ⟨i, h⟩; + localDecl ← getFVarLocalDecl x; + if localDecl.isLet then pure none + else do + xType ← whnfD localDecl.type; + matchConstInduct xType.getAppFn (fun _ => findRecArgAux? (i+1)) fun indInfo us => do + condM (not <$> hasConst (mkBRecOnFor indInfo.name)) (findRecArgAux? (i+1)) do + condM (do hasBInductionOn ← hasConst (mkBInductionOnFor indInfo.name); pure $ indInfo.isReflexive && !hasBInductionOn) (findRecArgAux? (i+1)) do + let indArgs := xType.getAppArgs; + let indParams := indArgs.extract 0 indInfo.nparams; + let indIndices := indArgs.extract indInfo.nparams indArgs.size; + if !indIndices.all Expr.isFVar then do + trace `Elab.definition.structural fun _ => + "argument #" ++ toString (i+1) ++ " was not used because its type is an inductive family and indices are not variables" ++ indentExpr xType; + findRecArgAux? (i+1) + else if !indIndices.allDiff then do + trace `Elab.definition.structural fun _ => + "argument #" ++ toString (i+1) ++ " was not used because its type is an inductive family and indices are not pairwise distinct" ++ indentExpr xType; + findRecArgAux? (i+1) + else do + let indexMinPos := getIndexMinPos xs indIndices; + let numFixed := if indexMinPos < numFixed then indexMinPos else numFixed; + let fixedParams := xs.extract 0 numFixed; + let ys := xs.extract numFixed xs.size; + badDep? ← hasBadIndexDep? ys indIndices; + match badDep? with + | some (index, y) => do + trace `Elab.definition.structural fun _ => + "argument #" ++ toString (i+1) ++ " was not used because its type is an inductive family" ++ indentExpr xType ++ + Format.line ++ "and index" ++ indentExpr index ++ + Format.line ++ "depends on the non index" ++ indentExpr y; + findRecArgAux? (i+1) + | none => do + badDep? ← hasBadParamDep? ys indParams; + match badDep? with + | some (indParam, y) => do + trace `Elab.definition.structural fun _ => + "argument #" ++ toString (i+1) ++ " was not used because its type is an inductive datatype" ++ indentExpr xType ++ + Format.line ++ "and parameter" ++ indentExpr indParam ++ + Format.line ++ "depends on" ++ indentExpr y; + findRecArgAux? (i+1) + | none => do + let indicesPos := indIndices.map fun index => match ys.indexOf index with | some i => i.val | none => unreachable!; + a? ← k? { fixedParams := fixedParams, ys := ys, pos := i - fixedParams.size, indicesPos := indicesPos, reflexive := indInfo.isReflexive }; + match a? with + | some a => pure a + | none => findRecArgAux? (i+1) + else + pure none + +@[inline] private def findRecArg? {α} (numFixed : Nat) (xs : Array Expr) (k? : RecArgInfo → TermElabM (Option α)) : TermElabM (Option α) := +findRecArgAux? numFixed xs k? numFixed + +private def elimRecursion? (preDef : PreDefinition) : TermElabM (Option PreDefinition) := +lambdaLetTelescope preDef.value fun xs value => do + trace `Elab.definition.structural fun _ => preDef.declName ++ " " ++ xs ++ " :=\n" ++ value; + let numFixed := getFixedPrefix preDef.declName xs value; + findRecArg? numFixed xs fun argInfo => do + -- TODO + trace `Elab.definition.structural fun _ => + "try " ++ argInfo.fixedParams ++ " " ++ argInfo.ys ++ " " ++ toString argInfo.pos ++ ", " ++ toString argInfo.indicesPos; + pure none + +def structuralRecursion (preDefs : Array PreDefinition) : TermElabM Bool := +if preDefs.size != 1 then + pure false +else do + preDefNonRec? ← elimRecursion? (preDefs.get! 0); + match preDefNonRec? with + | none => pure false + | some preDefNonRec => do + addNonRec preDefNonRec; + addAndCompileUnsafeRec preDefs; + pure true + +@[init] private def regTraceClasses : IO Unit := do +registerTraceClass `Elab.definition.structural; +pure () + +end Elab +end Lean diff --git a/stage0/src/Lean/Elab/PreDefinition/WF.lean b/stage0/src/Lean/Elab/PreDefinition/WF.lean new file mode 100644 index 0000000000..8d15ee678c --- /dev/null +++ b/stage0/src/Lean/Elab/PreDefinition/WF.lean @@ -0,0 +1,16 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Elab.PreDefinition.Basic + +namespace Lean +namespace Elab +open Meta + +def WFRecursion (preDefs : Array PreDefinition) : TermElabM Unit := +throwError "WIP" + +end Elab +end Lean diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 29b04c7463..45ba40fd0b 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -939,20 +939,11 @@ u ← mkFreshLevelMVar; type ← elabTerm stx (mkSort u); withRef stx $ ensureType type -private partial def mkAuxNameAux (env : Environment) (base : Name) : Nat → Name -| i => - let candidate := base.appendIndexAfter i; - if env.contains candidate then - mkAuxNameAux (i+1) - else - candidate - def mkAuxName (suffix : Name) : TermElabM Name := do -env ← getEnv; ctx ← read; match ctx.declName? with | none => throwError "auxiliary declaration cannot be created when declaration name is not available" -| some declName => pure $ mkAuxNameAux env (declName ++ suffix) 1 +| some declName => Lean.mkAuxName (declName ++ suffix) 1 /- ======================================= Builtin elaboration functions diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index 5c146406fe..bde632e56e 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -302,7 +302,7 @@ Expr.app f a $ mkData (mixHash 29 $ mixHash (hash f) (hash a)) (f.hasLevelParam || a.hasLevelParam) def mkLambda (x : Name) (bi : BinderInfo) (t : Expr) (b : Expr) : Expr := -let x := x.eraseMacroScopes; +-- let x := x.eraseMacroScopes; Expr.lam x t b $ mkDataForBinder (mixHash 31 $ mixHash (hash t) (hash b)) (Nat.max t.looseBVarRange (b.looseBVarRange - 1)) (t.hasFVar || b.hasFVar) @@ -312,7 +312,7 @@ Expr.lam x t b $ mkDataForBinder (mixHash 31 $ mixHash (hash t) (hash b)) bi def mkForall (x : Name) (bi : BinderInfo) (t : Expr) (b : Expr) : Expr := -let x := x.eraseMacroScopes; +-- let x := x.eraseMacroScopes; Expr.forallE x t b $ mkDataForBinder (mixHash 37 $ mixHash (hash t) (hash b)) (Nat.max t.looseBVarRange (b.looseBVarRange - 1)) (t.hasFVar || b.hasFVar) @@ -330,7 +330,7 @@ def mkThunk (type : Expr) : Expr := mkLambda `_ BinderInfo.default (Lean.mkConst `Unit) type def mkLet (x : Name) (t : Expr) (v : Expr) (b : Expr) (nonDep : Bool := false) : Expr := -let x := x.eraseMacroScopes; +-- let x := x.eraseMacroScopes; Expr.letE x t v b $ mkDataForLet (mixHash 41 $ mixHash (hash t) $ mixHash (hash v) (hash b)) (Nat.max (Nat.max t.looseBVarRange v.looseBVarRange) (b.looseBVarRange - 1)) (t.hasFVar || v.hasFVar || b.hasFVar) @@ -680,6 +680,15 @@ instance : HasToString Expr := instance : HasRepr Expr := ⟨Expr.dbgToString⟩ +def isAtomic : Expr → Bool +| Expr.const _ _ _ => true +| Expr.sort _ _ => true +| Expr.bvar _ _ => true +| Expr.lit _ _ => true +| Expr.mvar _ _ => true +| Expr.fvar _ _ => true +| _ => false + end Expr def mkAppB (f a b : Expr) := mkApp (mkApp f a) b diff --git a/stage0/src/Lean/LocalContext.lean b/stage0/src/Lean/LocalContext.lean index 66ee4d5b79..83c6c76a54 100644 --- a/stage0/src/Lean/LocalContext.lean +++ b/stage0/src/Lean/LocalContext.lean @@ -51,6 +51,10 @@ def type : LocalDecl → Expr | cdecl _ _ _ t _ => t | ldecl _ _ _ t _ _ => t +def setType : LocalDecl → Expr → LocalDecl +| cdecl idx id n _ bi, t => cdecl idx id n t bi +| ldecl idx id n _ v nd, t => ldecl idx id n t v nd + def binderInfo : LocalDecl → BinderInfo | cdecl _ _ _ _ bi => bi | ldecl _ _ _ _ _ _ => BinderInfo.default @@ -63,6 +67,10 @@ def value : LocalDecl → Expr | cdecl _ _ _ _ _ => panic! "let declaration expected" | ldecl _ _ _ _ v _ => v +def setValue : LocalDecl → Expr → LocalDecl +| ldecl idx id n t _ nd, v => ldecl idx id n t v nd +| d, _ => d + def updateUserName : LocalDecl → Name → LocalDecl | cdecl index id _ type bi, userName => cdecl index id userName type bi | ldecl index id _ type val nd, userName => ldecl index id userName type val nd @@ -214,16 +222,23 @@ match lctx with { fvarIdToDecl := map.insert decl.fvarId decl, decls := decls.set decl.index decl } -def updateBinderInfo (lctx : LocalContext) (fvarId : FVarId) (bi : BinderInfo) : LocalContext := +/-- + Low-level function for updating the local context. + Assumptions about `f`, the resulting nested expressions must be definitionally equal to their original values, + the `index` nor `fvarId` are modified. -/ +@[inline] def modifyLocalDecl (lctx : LocalContext) (fvarId : FVarId) (f : LocalDecl → LocalDecl) : LocalContext := match lctx with | { fvarIdToDecl := map, decls := decls } => match lctx.find? fvarId with | none => lctx | some decl => - let decl := decl.updateBinderInfo bi; + let decl := f decl; { fvarIdToDecl := map.insert decl.fvarId decl, decls := decls.set decl.index decl } +def updateBinderInfo (lctx : LocalContext) (fvarId : FVarId) (bi : BinderInfo) : LocalContext := +modifyLocalDecl lctx fvarId fun decl => decl.updateBinderInfo bi + @[export lean_local_ctx_num_indices] def numIndices (lctx : LocalContext) : Nat := lctx.decls.size diff --git a/stage0/src/Lean/Meta.lean b/stage0/src/Lean/Meta.lean index 817caedb61..a7840d3d4c 100644 --- a/stage0/src/Lean/Meta.lean +++ b/stage0/src/Lean/Meta.lean @@ -22,3 +22,4 @@ import Lean.Meta.GeneralizeTelescope import Lean.Meta.Match import Lean.Meta.ReduceEval import Lean.Meta.Closure +import Lean.Meta.AbstractNestedProofs diff --git a/stage0/src/Lean/Meta/AbstractNestedProofs.lean b/stage0/src/Lean/Meta/AbstractNestedProofs.lean new file mode 100644 index 0000000000..e543bcbd6e --- /dev/null +++ b/stage0/src/Lean/Meta/AbstractNestedProofs.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Meta.Closure + +namespace Lean +namespace Meta +namespace AbstractNestedProofs + +def isNonTrivialProof (e : Expr) : MetaM Bool := +condM (not <$> isProof e) (pure false) $ e.withApp fun f args => + pure $ !f.isAtomic || args.any fun arg => !arg.isAtomic + +structure Context := +(baseName : Name) + +structure State := +(nextIdx : Nat := 1) + +abbrev M := ReaderT Context $ MonadCacheT Expr Expr $ StateRefT State $ MetaM + +private def mkAuxLemma (e : Expr) : M Expr := do +ctx ← read; +s ← get; +lemmaName ← mkAuxName (ctx.baseName ++ `proof) s.nextIdx; +modify fun s => { s with nextIdx := s.nextIdx + 1 }; +mkAuxDefinitionFor lemmaName e + +partial def visit : Expr → M Expr +| e => + if e.isAtomic then pure e + else do + let visitBinders (xs : Array Expr) (k : M Expr) : M Expr := do { + localInstances ← getLocalInstances; + lctx ← getLCtx; + lctx ← xs.foldlM + (fun (lctx : LocalContext) x => do + let xFVarId := x.fvarId!; + localDecl ← getLocalDecl xFVarId; + type ← visit localDecl.type; + let localDecl := localDecl.setType type; + localDecl ← match localDecl.value? with + | some value => do value ← visit value; pure $ localDecl.setValue value + | none => pure localDecl; + pure $ lctx.modifyLocalDecl xFVarId fun _ => localDecl) + lctx; + withLCtx lctx localInstances k + }; + checkCache e fun e => condM (liftM $ isNonTrivialProof e) (mkAuxLemma e) $ match e with + | Expr.lam _ _ _ _ => lambdaLetTelescope e fun xs b => visitBinders xs do b ← visit b; mkLambdaFVars xs b + | Expr.letE _ _ _ _ _ => lambdaLetTelescope e fun xs b => visitBinders xs do b ← visit b; mkLambdaFVars xs b + | Expr.forallE _ _ _ _ => forallTelescope e fun xs b => visitBinders xs do b ← visit b; mkForallFVars xs b + | Expr.mdata _ b _ => do b ← visit b; pure $ e.updateMData! b + | Expr.proj _ _ b _ => do b ← visit b; pure $ e.updateProj! b + | Expr.app _ _ _ => e.withApp fun f args => do args ← args.mapM visit; pure $ mkAppN f args + | _ => pure e + +end AbstractNestedProofs + +/-- Replace proofs nested in `e` with new lemmas. The new lemmas have names of the form `mainDeclName.proof_` -/ +def abstractNestedProofs (mainDeclName : Name) (e : Expr) : MetaM Expr := +(((AbstractNestedProofs.visit e).run { baseName := mainDeclName }).run).run' { nextIdx := 1 } + +end Meta +end Lean diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index 20fc8b2b4c..e40718bd11 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -953,6 +953,11 @@ private partial def instantiateForallAux (ps : Array Expr) : Nat → Expr → Me def instantiateForall (e : Expr) (ps : Array Expr) : m Expr := liftMetaM $ instantiateForallAux ps 0 e +/-- Return true iff `e` depends on the free variable `fvarId` -/ +def dependsOn (e : Expr) (fvarId : FVarId) : m Bool := liftMetaM do +mctx ← getMCtx; +pure $ mctx.exprDependsOn e fvarId + end Methods end Meta diff --git a/stage0/src/Lean/Meta/RecursorInfo.lean b/stage0/src/Lean/Meta/RecursorInfo.lean index 531b0a67e1..18fd61ac58 100644 --- a/stage0/src/Lean/Meta/RecursorInfo.lean +++ b/stage0/src/Lean/Meta/RecursorInfo.lean @@ -10,13 +10,15 @@ import Lean.Meta.ExprDefEq namespace Lean namespace Meta -def casesOnSuffix := "casesOn" -def recOnSuffix := "recOn" -def brecOnSuffix := "brecOn" +def casesOnSuffix := "casesOn" +def recOnSuffix := "recOn" +def brecOnSuffix := "brecOn" +def binductionOnSuffix := "binductionOn" def mkCasesOnFor (indDeclName : Name) : Name := mkNameStr indDeclName casesOnSuffix def mkRecOnFor (indDeclName : Name) : Name := mkNameStr indDeclName recOnSuffix def mkBRecOnFor (indDeclName : Name) : Name := mkNameStr indDeclName brecOnSuffix +def mkBInductionOnFor (indDeclName : Name) : Name := mkNameStr indDeclName binductionOnSuffix inductive RecursorUnivLevelPos | motive -- marks where the universe of the motive should go diff --git a/stage0/src/Lean/MonadEnv.lean b/stage0/src/Lean/MonadEnv.lean index c660437bf4..c679520db9 100644 --- a/stage0/src/Lean/MonadEnv.lean +++ b/stage0/src/Lean/MonadEnv.lean @@ -43,7 +43,25 @@ matchConst e failK fun cinfo us => | _ => failK () section -variables [Monad m] [MonadError m] +variables [Monad m] + +def hasConst (constName : Name) : m Bool := do +env ← getEnv; +pure $ env.contains constName + +private partial def mkAuxNameAux (env : Environment) (base : Name) : Nat → Name +| i => + let candidate := base.appendIndexAfter i; + if env.contains candidate then + mkAuxNameAux (i+1) + else + candidate + +def mkAuxName (baseName : Name) (idx : Nat) : m Name := do +env ← getEnv; +pure $ mkAuxNameAux env baseName idx + +variables [MonadError m] def getConstInfo (constName : Name) : m ConstantInfo := do env ← getEnv; diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index 5adce61ef5..0c24264dc2 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -157,7 +157,8 @@ def bracketedDoSeq := parser! "{" >> doSeq >> "}" @[builtinTermParser] def uminus := parser!:65 "-" >> termParser 100 def namedArgument := parser! try ("(" >> ident >> " := ") >> termParser >> ")" -@[builtinTermParser] def app := tparser!:(maxPrec-1) many1 (checkWsBefore "expected space" >> (namedArgument <|> termParser maxPrec)) +def ellipsis := parser! ".." +@[builtinTermParser] def app := tparser!:(maxPrec-1) many1 (checkWsBefore "expected space" >> (namedArgument <|> termParser maxPrec <|> ellipsis)) @[builtinTermParser] def proj := tparser! symbolNoWs "." >> (fieldIdx <|> ident) @[builtinTermParser] def arrow := tparser! unicodeInfixR " → " " -> " 25 diff --git a/stage0/src/Lean/Util.lean b/stage0/src/Lean/Util.lean index a9a1e90039..24177c3f0f 100644 --- a/stage0/src/Lean/Util.lean +++ b/stage0/src/Lean/Util.lean @@ -17,6 +17,7 @@ import Lean.Util.Sorry import Lean.Util.Trace import Lean.Util.FindExpr import Lean.Util.ReplaceExpr +import Lean.Util.ForEachExpr import Lean.Util.ReplaceLevel import Lean.Util.FoldConsts import Lean.Util.Constructions diff --git a/stage0/src/Lean/Util/ForEachExpr.lean b/stage0/src/Lean/Util/ForEachExpr.lean new file mode 100644 index 0000000000..7221b7f9fd --- /dev/null +++ b/stage0/src/Lean/Util/ForEachExpr.lean @@ -0,0 +1,39 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Expr +import Lean.Util.MonadCache + +namespace Lean +/- +Remark: we cannot use the caching trick used at `FindExpr` and `ReplaceExpr` because they +may visit the same expression multiple times if they are stored in different memory +addresses. Note that the following code is parametric in a monad `m`. +-/ + +variables {ω : Type} {m : Type → Type} [STWorld ω m] [MonadLiftT (ST ω) m] [Monad m] +namespace ForEachExpr +@[specialize] partial def visit (f : Expr → m Bool) : Expr → MonadCacheT Expr Unit m Unit +| e => checkCache e fun e => + condM (not <$> liftM (f e)) (pure ()) do + match e with + | Expr.forallE _ d b _ => do visit d; visit b + | Expr.lam _ d b _ => do visit d; visit b + | Expr.letE _ t v b _ => do visit t; visit v; visit b + | Expr.app f a _ => do visit f; visit a + | Expr.mdata _ b _ => visit b + | Expr.proj _ _ b _ => visit b + | _ => pure () + +end ForEachExpr + +/-- Apply `f` to each sub-expression of `e`. If `f t` return true, then t's children are not visited. -/ +@[inline] def Expr.forEach' (e : Expr) (f : Expr → m Bool) : m Unit := +(ForEachExpr.visit f e).run + +@[inline] def Expr.forEach (e : Expr) (f : Expr → m Unit) : m Unit := +e.forEach' fun e => do f e; pure true + +end Lean diff --git a/stage0/src/Lean/Util/MonadCache.lean b/stage0/src/Lean/Util/MonadCache.lean index a4f96c7888..661121ca2d 100644 --- a/stage0/src/Lean/Util/MonadCache.lean +++ b/stage0/src/Lean/Util/MonadCache.lean @@ -52,6 +52,28 @@ instance {α β : Type} {m : Type → Type} [HasBeq α] [Hashable α] [Monad m] end MonadHashMapCacheAdapter +def MonadCacheT {ω} (α β : Type) (m : Type → Type) [STWorld ω m] [HasBeq α] [Hashable α] := StateRefT (HashMap α β) m + +namespace MonadCacheT + +variables {ω α β : Type} {m : Type → Type} [STWorld ω m] [HasBeq α] [Hashable α] [MonadLiftT (ST ω) m] [Monad m] + +instance : MonadHashMapCacheAdapter α β (MonadCacheT α β m) := +{ getCache := (get : StateRefT _ _ _), + modifyCache := fun f => (modify f : StateRefT _ _ _) } + +@[inline] def run {σ} (x : MonadCacheT α β m σ) : m σ := +x.run' Std.mkHashMap + +instance : Monad (MonadCacheT α β m) := inferInstanceAs (Monad (StateRefT _ _)) +instance : MonadLift m (MonadCacheT α β m) := inferInstanceAs (MonadLift m (StateRefT _ _)) +instance [MonadIO m] : MonadIO (MonadCacheT α β m) := inferInstanceAs (MonadIO (StateRefT _ _)) +instance (ε) [MonadExceptOf ε m] : MonadExceptOf ε (MonadCacheT α β m) := inferInstanceAs (MonadExceptOf ε (StateRefT _ _)) +instance : MonadControl m (MonadCacheT α β m) := inferInstanceAs (MonadControl m (StateRefT _ _)) +instance [MonadFinally m] : MonadFinally (MonadCacheT α β m) := inferInstanceAs (MonadFinally (StateRefT _ _)) + +end MonadCacheT + /-- Auxiliary structure for "adding" a `HashMap` to a state object. -/ structure WithHashMapCache (α β σ : Type) [HasBeq α] [Hashable α] := (state : σ) diff --git a/stage0/src/frontends/lean/pp.cpp b/stage0/src/frontends/lean/pp.cpp index 1e35faa2ea..57eb9298c8 100644 --- a/stage0/src/frontends/lean/pp.cpp +++ b/stage0/src/frontends/lean/pp.cpp @@ -654,10 +654,18 @@ auto pretty_fn::pp_meta(expr const & e) -> result { */ } + +extern "C" object * lean_simp_macro_scopes(object * n); + +name simp_macro_scopes(name const & n) { + return name(lean_simp_macro_scopes(n.to_obj_arg())); +} + auto pretty_fn::pp_fvar(expr const & e) -> result { if (optional n0 = m_ctx.get_local_pp_name(e)) { name n = sanitize_if_fresh(*n0); n = sanitize_name_generator_name(n); + n = simp_macro_scopes(n); if (m_locals_full_names) return result(format("<") + format(n + local_name(e)) + format(">")); else @@ -666,8 +674,12 @@ auto pretty_fn::pp_fvar(expr const & e) -> result { return format(fvar_name(e)); } +name s_local_pp_name(expr const & e) { + return simp_macro_scopes(local_pp_name(e)); +} + auto pretty_fn::pp_local(expr const & e) -> result { - name n = sanitize_if_fresh(local_pp_name(e)); + name n = sanitize_if_fresh(s_local_pp_name(e)); n = sanitize_name_generator_name(n); if (m_locals_full_names) return result(format("<") + format(n + local_name(e)) + format(">")); @@ -788,7 +800,7 @@ format pretty_fn::pp_binder(expr const & local) { auto bi = local_info(local); if (!is_default(bi)) r += format(open_binder_string(bi, m_unicode)); - r += escape(local_pp_name(local)); + r += escape(s_local_pp_name(local)); if (m_binder_types) { r += space(); r += compose(format(":"), nest(m_indent, compose(line(), pp_child(local_type(local), 0).fmt()))); @@ -820,18 +832,18 @@ format pretty_fn::pp_binders(buffer const & locals) { expr local = locals[0]; expr type = local_type(local); binder_info bi = local_info(local); - names.push_back(local_pp_name(local)); + names.push_back(s_local_pp_name(local)); format r; for (unsigned i = 1; i < num; i++) { expr local = locals[i]; if (!is_inst_implicit(bi) && local_type(local) == type && local_info(local) == bi) { - names.push_back(local_pp_name(local)); + names.push_back(s_local_pp_name(local)); } else { r += group(compose(line(), pp_binder_block(names, type, bi))); names.clear(); type = local_type(local); bi = local_info(local); - names.push_back(local_pp_name(local)); + names.push_back(s_local_pp_name(local)); } } r += group(compose(line(), pp_binder_block(names, type, bi))); @@ -897,7 +909,7 @@ auto pretty_fn::pp_have(expr const & e) -> result { auto p = binding_body_fresh(binding, true); expr local = p.second; expr body = p.first; - name const & n = local_pp_name(local); + name const & n = s_local_pp_name(local); format type_fmt = pp_child(local_type(local), 0).fmt(); format proof_fmt = pp_child(proof, 0).fmt(); format body_fmt = pp_child(body, 0).fmt(); @@ -1052,7 +1064,7 @@ auto pretty_fn::pp_let(expr e) -> result { for (unsigned i = 0; i < sz; i++) { expr l, t, v; std::tie(l, t, v) = decls[i]; - name const & n = local_pp_name(l); + name const & n = s_local_pp_name(l); format beg = i == 0 ? space() : line(); format sep = i < sz - 1 ? format(",") : format(); format entry = format(n); @@ -1480,7 +1492,7 @@ auto pretty_fn::pp_subtype(expr const & e) -> result { auto p = binding_body_fresh(pred, true); expr body = p.first; expr local = p.second; - format r = bracket("{", format(local_pp_name(local)) + space() + format("//") + space() + pp_child(body, 0).fmt(), "}"); + format r = bracket("{", format(s_local_pp_name(local)) + space() + format("//") + space() + pp_child(body, 0).fmt(), "}"); return result(r); } @@ -1568,7 +1580,7 @@ auto pretty_fn::pp_sep(expr const & e) -> result { expr local = p.second; format in = format(m_unicode ? "∈" : "in"); format r = bracket("{", - format(local_pp_name(local)) + space() + in + space() + + format(s_local_pp_name(local)) + space() + in + space() + pp_child(s, 0).fmt() + space() + format("|") + space() + pp_child(body, 0).fmt(), "}"); return result(r); diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 6eefcdff3b..00f58eb8b4 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/MonadRun.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/QSort.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Instances.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/HasCoe.c ./Init/LeanInit.c ./Init/Notation.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/Alias.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/DoNotation.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MkInhabitant.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/ResolveName.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/Linter.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/Exception.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/LocalDecl.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Target.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Extension.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/MonadRun.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/QSort.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Instances.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/HasCoe.c ./Init/LeanInit.c ./Init/Notation.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/Alias.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/DoNotation.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MkInhabitant.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/ResolveName.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/Linter.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/Exception.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/LocalDecl.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Target.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Extension.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/Runtime.c ./Lean/Scopes.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Init/Data/Array/Basic.c b/stage0/stdlib/Init/Data/Array/Basic.c index fe58fb67d7..5843c3300d 100644 --- a/stage0/stdlib/Init/Data/Array/Basic.c +++ b/stage0/stdlib/Init/Data/Array/Basic.c @@ -23,6 +23,7 @@ lean_object* l_Array_anyRangeM___rarg(lean_object*, lean_object*, lean_object*, lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Array_toListLitAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_getMax_x3f___rarg(lean_object*, lean_object*); +lean_object* l_Array_isPrefixOf(lean_object*); lean_object* l_Array_foldl_u2082___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateM_u2082Aux___main(lean_object*, lean_object*); lean_object* l_Array_iterate_u2082(lean_object*, lean_object*, lean_object*); @@ -51,6 +52,7 @@ lean_object* l_Array_anyRangeMAux___main___at_Array_allRangeM___spec__2(lean_obj lean_object* l_Array_findSome_x3f___rarg(lean_object*, lean_object*); lean_object* l_Array_mapIdxM(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_mapM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_anyRange___spec__2(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_allM___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_toListLitAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,12 +88,14 @@ lean_object* l_Array_iterateMAux___main___at_Array_foldlFromM___spec__1___rarg(l lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___at_Array_foldrRange___spec__2(lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Array_umapM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_isPrefixOfAux___main(lean_object*); lean_object* l_Array_findSomeMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filter(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Array_foldr___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___rarg___closed__3; lean_object* l_Array_insertAtAux___main(lean_object*); lean_object* l_Array_filterMapMAux___main___at_Array_filterMap___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux(lean_object*); lean_object* l_Array_findIdxM_x3f(lean_object*, lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_foldlM_u2082___spec__1(lean_object*, lean_object*); lean_object* l_Array_empty___closed__1; @@ -104,6 +108,7 @@ lean_object* l_Array_foldlStepMAux___main___at_Array_getEvenElems___spec__1___ra lean_object* l_Array_uget___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_foldlStep___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_foldlFrom___spec__1(lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlFrom(lean_object*, lean_object*); lean_object* l_Array_foldl___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -128,6 +133,7 @@ uint8_t l_Array_isEqvAux___rarg(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Array_findIdxMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Array_findRev_x3f___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main(lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_getEvenElems___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -212,6 +218,7 @@ lean_object* l_Array_indexOfAux___main(lean_object*); lean_object* l_Array_getLit___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toListLitAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_getLit(lean_object*, lean_object*); +uint8_t l_Array_isPrefixOf___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_foldlFrom___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_HasRepr___rarg___closed__1; uint8_t l_Array_anyRange___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -236,6 +243,7 @@ lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Arr lean_object* l_Array_iterateM_u2082Aux(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Array_toList___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterMapMAux(lean_object*); +lean_object* l_Array_isPrefixOfAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_getMax_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toArrayLit___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -254,6 +262,7 @@ lean_object* l_Array_findIdx_x3f___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_mapM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Array_findRev_x3f(lean_object*); +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_indexOf(lean_object*); lean_object* l_Array_foldrRangeM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,6 +273,7 @@ lean_object* l_Array_iterateFrom___rarg___boxed(lean_object*, lean_object*, lean lean_object* l_Array_anyRangeMAux___main___at_Array_any___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_allM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_foldlStep___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_allDiff(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Array_anyFrom___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_pop___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -291,6 +301,7 @@ uint8_t l_Array_anyRangeMAux___main___at_Array_anyRange___spec__1___rarg(lean_ob lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Array_umapMAux___main___at_Array_mapIdx___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux(lean_object*); lean_object* l_Array_erase___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_toArrayLit(lean_object*); lean_object* l_Array_shrink___rarg___boxed(lean_object*, lean_object*); @@ -307,6 +318,7 @@ lean_object* l_Array_iterateM(lean_object*, lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_iterate_u2082___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_foldlM_u2082___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_isPrefixOfAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); lean_object* l_Array_filterMap(lean_object*, lean_object*); lean_object* l_Array_findSomeM_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -331,12 +343,15 @@ lean_object* l_Array_iterateMAux___main___at_Array_iterate___spec__1___rarg___bo lean_object* l_Array_indexOfAux(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Array_toList___spec__1(lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_foldl_u2082___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_append(lean_object*); lean_object* l_Array_umapIdxM(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevM_x3f(lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_foldl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toListLitAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg___boxed(lean_object*); @@ -354,12 +369,14 @@ lean_object* l_Array_HasEmptyc(lean_object*); lean_object* l_Array_findSomeMAux(lean_object*, lean_object*); lean_object* l_List_toArrayAux___main(lean_object*); lean_object* l_Array_foldlStepMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isPrefixOfAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Array_foldr___spec__1(lean_object*, lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_foldl_u2082___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_isPrefixOfAux(lean_object*); lean_object* l_Array_foldr___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapIdxM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forRevMAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -367,6 +384,7 @@ lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_ lean_object* l_Array_anyRangeMAux(lean_object*, lean_object*); lean_object* l_Array_size___boxed(lean_object*, lean_object*); lean_object* l_Array_extract(lean_object*); +lean_object* l_Array_allDiff___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_eraseIdx_x27(lean_object*); lean_object* l_Array_partitionAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlFromM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -470,6 +488,7 @@ lean_object* l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___at_Array_swa lean_object* l_Array_eraseIdxAux(lean_object*); lean_object* l_Array_isEmpty___rarg___boxed(lean_object*); lean_object* l_Array_erase(lean_object*); +lean_object* l_Array_isPrefixOf___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_all___spec__1(lean_object*); lean_object* l_Array_forFromM(lean_object*, lean_object*); lean_object* l_Array_findMAux(lean_object*, lean_object*); @@ -498,6 +517,7 @@ lean_object* l_Array_iterateMAux___main___at_Array_mapM___spec__1(lean_object*, lean_object* l_Array_findMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_allM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___rarg___closed__2; lean_object* l_Array_findSomeRev_x3f___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeM(lean_object*, lean_object*); @@ -534,7 +554,9 @@ lean_object* l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___rarg(lean_ob lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_reverseAux___rarg(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Array_anyRange___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main(lean_object*); lean_object* l_Array_findSomeMAux___main(lean_object*, lean_object*); +uint8_t l_Array_isPrefixOfAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_filterMapM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -554,6 +576,7 @@ lean_object* l_Array_findIdx_x21___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_findSomeRev_x21(lean_object*, lean_object*); lean_object* l_Array_partition___rarg(lean_object*, lean_object*); lean_object* l_Array_findIdx_x21___rarg___closed__1; +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forRevMAux(lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at_Array_getIdx_x3f___spec__1(lean_object*); lean_object* l_Array_iterate(lean_object*, lean_object*); @@ -585,6 +608,7 @@ lean_object* l_Array_filterM(lean_object*); lean_object* l_Array_empty(lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Array_contains___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux(lean_object*); +uint8_t l_Array_allDiff___rarg(lean_object*, lean_object*); lean_object* l_Array_isEqv___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSome_x3f___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Array_foldrM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -8806,6 +8830,343 @@ lean_dec(x_2); return x_3; } } +uint8_t l_Array_isPrefixOfAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_2); +x_7 = lean_nat_dec_lt(x_5, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +lean_dec(x_1); +x_8 = 1; +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_array_fget(x_3, x_5); +lean_inc(x_1); +x_11 = lean_apply_2(x_1, x_9, x_10); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_5); +lean_dec(x_1); +x_13 = 0; +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_5, x_14); +lean_dec(x_5); +x_4 = lean_box(0); +x_5 = x_15; +goto _start; +} +} +} +} +lean_object* l_Array_isPrefixOfAux___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_isPrefixOfAux___main___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_isPrefixOfAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Array_isPrefixOfAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l_Array_isPrefixOfAux___rarg(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; +x_6 = l_Array_isPrefixOfAux___main___rarg(x_1, x_2, x_3, lean_box(0), x_5); +return x_6; +} +} +lean_object* l_Array_isPrefixOfAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_isPrefixOfAux___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_isPrefixOfAux___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Array_isPrefixOfAux___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l_Array_isPrefixOf___rarg(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; +x_4 = lean_array_get_size(x_2); +x_5 = lean_array_get_size(x_3); +x_6 = lean_nat_dec_le(x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_1); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_isPrefixOfAux___main___rarg(x_1, x_2, x_3, lean_box(0), x_8); +return x_9; +} +} +} +lean_object* l_Array_isPrefixOf(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_isPrefixOf___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Array_isPrefixOf___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l_Array_isPrefixOf___rarg(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_4, x_6); +if (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 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_4, x_8); +lean_dec(x_4); +x_10 = lean_array_fget(x_2, x_9); +lean_inc(x_1); +lean_inc(x_3); +x_11 = lean_apply_2(x_1, x_3, x_10); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +x_4 = x_9; +x_5 = lean_box(0); +goto _start; +} +else +{ +uint8_t x_14; +lean_dec(x_9); +lean_dec(x_3); +lean_dec(x_1); +x_14 = 0; +return x_14; +} +} +else +{ +uint8_t x_15; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = 1; +return x_15; +} +} +} +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg(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; +x_6 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg(x_1, x_2, x_3, x_4, lean_box(0)); +return x_6; +} +} +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +x_7 = lean_box(x_6); +return x_7; +} +} +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +lean_dec(x_1); +x_6 = 1; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +lean_inc(x_3); +lean_inc(x_1); +x_8 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___rarg(x_1, x_2, x_7, x_3, lean_box(0)); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_3); +lean_dec(x_1); +x_9 = 0; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +} +} +} +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg(x_1, x_2, x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_9__allDiffAux___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l___private_Init_Data_Array_Basic_9__allDiffAux___rarg(x_1, x_2, x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +uint8_t l_Array_allDiff___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___rarg(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Array_allDiff(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_allDiff___rarg___boxed), 2, 0); +return x_2; +} +} +lean_object* l_Array_allDiff___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_allDiff___rarg(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} lean_object* initialize_Init_Data_Nat_Basic(lean_object*); lean_object* initialize_Init_Data_Fin_Basic(lean_object*); lean_object* initialize_Init_Data_UInt(lean_object*); diff --git a/stage0/stdlib/Init/Data/FloatArray/Basic.c b/stage0/stdlib/Init/Data/FloatArray/Basic.c index 701f7ada65..3a457f31b8 100644 --- a/stage0/stdlib/Init/Data/FloatArray/Basic.c +++ b/stage0/stdlib/Init/Data/FloatArray/Basic.c @@ -250,7 +250,7 @@ else lean_object* x_7; lean_object* x_8; double x_9; lean_object* x_10; lean_object* x_11; x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_add(x_2, x_7); -x_9 = lean_float_array_get(x_1, x_2); +x_9 = lean_float_array_fget(x_1, x_2); lean_dec(x_2); x_10 = lean_box_float(x_9); x_11 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Init/LeanInit.c b/stage0/stdlib/Init/LeanInit.c index 0efc7583d1..3e07f2621a 100644 --- a/stage0/stdlib/Init/LeanInit.c +++ b/stage0/stdlib/Init/LeanInit.c @@ -15,90 +15,88 @@ extern "C" { #endif lean_object* l_Array_getSepElems___rarg___boxed(lean_object*); lean_object* l_Lean_mkHole___closed__3; -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_updateKind(lean_object*, lean_object*); lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f___boxed(lean_object*); lean_object* l_Lean_mkAppStx(lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Syntax_isNatLit_x3f___boxed(lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Syntax_getHeadInfo___main___spec__1(lean_object*, lean_object*); -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux___main___closed__1; lean_object* l_Lean_MacroM_monadQuotation; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1; lean_object* l_Lean_MacroScopesView_inhabited; -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_nullKind; lean_object* l_Lean_Name_HasAppend; -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_2__assembleParts___main(lean_object*, lean_object*); lean_object* l_Lean_Syntax_identToAtom___boxed(lean_object*); lean_object* l_Lean_Macro_throwUnsupported___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_identKind___closed__1; lean_object* l_Lean_fieldIdxKind___closed__2; lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); lean_object* l_Lean_MacroM_monadQuotation___lambda__2(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_8__decodeHexDigit___boxed(lean_object*, lean_object*); uint32_t l_Lean_idBeginEscape; -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_4__extractMainModule(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_5__extractMainModule(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Array_filterSepElemsM___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__3; lean_object* l_Lean_Syntax_isAtom___boxed(lean_object*); lean_object* l_Lean_monadNameGeneratorLift(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3; lean_object* l_Array_mapSepElemsM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_maxRecDepthErrorMessage; +lean_object* l___private_Init_LeanInit_9__decodeHexDigit(lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat___boxed(lean_object*); lean_object* l_Lean_identKind___closed__2; -lean_object* l___private_Init_LeanInit_8__decodeHexDigit(lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux___main(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux(lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux(lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Syntax_findAux___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l___private_Init_LeanInit_6__extractMacroScopesAux(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isOfKind___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_HasBeq; +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_fieldIdxKind___closed__1; +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main(lean_object*); uint8_t l_Char_isDigit(uint32_t); lean_object* l_Lean_charLitKind___closed__2; +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isGreek___boxed(lean_object*); uint32_t l_Lean_idEndEscape; -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main(lean_object*); +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isIdRest___boxed(lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); uint8_t l_Lean_isIdBeginEscape(uint32_t); lean_object* l_Lean_Macro_withFreshMacroScope(lean_object*); -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_HasToString___closed__1; lean_object* l_Lean_mkNameSimple(lean_object*); lean_object* l_Lean_isIdFirst___boxed(lean_object*); lean_object* l_Lean_mkHole___boxed(lean_object*); -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Syntax_findAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_charLitKind___closed__1; -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4; lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_inhabited; extern lean_object* l_String_splitAux___main___closed__1; +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_identToStrLit(lean_object*); -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_hashable___closed__1; lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Syntax_getHeadInfo___main___boxed(lean_object*); lean_object* l_Lean_mkAppStx___closed__4; @@ -109,24 +107,25 @@ lean_object* l_Lean_monadQuotationTrans___rarg(lean_object*, lean_object*, lean_ lean_object* l_Lean_NameGenerator_Inhabited; lean_object* l_Lean_nameLitKind; lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_maxRecDepthErrorMessage___closed__1; lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_isSubScriptAlnum___boxed(lean_object*); lean_object* l_Array_mapSepElems(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_4__extractMainModule___main(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_getSepElems___spec__1(lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_getSepElems___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_monadQuotationTrans___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind___closed__2; lean_object* l_Lean_Syntax_getKind___closed__1; +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_hashable; lean_object* lean_string_utf8_next(lean_object*, lean_object*); lean_object* l_Lean_Syntax_strLitToAtom(lean_object*); lean_object* l_Lean_Syntax_isLit_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeNatLitVal(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_5__extractMainModule___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_hasArgs___boxed(lean_object*); lean_object* l_Lean_mkStxNumLit(lean_object*, lean_object*); lean_object* l_Lean_Name_HasAppend___closed__1; @@ -134,37 +133,36 @@ lean_object* l_Array_mapSepElems___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkSepStx___boxed(lean_object*, lean_object*); uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* l_Lean_Syntax_isLit_x3f(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6; lean_object* l_Array_foldlStepMAux___main___at_Array_getSepElems___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_findAux___main(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_numLitKind; lean_object* l_Lean_choiceKind___closed__1; -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_choiceKind___closed__2; lean_object* l_Lean_mkFreshId___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___lambda__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_strLitKind; lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Array_getSepElems(lean_object*); lean_object* l_Lean_monadNameGeneratorLift___rarg(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId___boxed(lean_object*); +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*); +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_addMacroScope(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Macro_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux(lean_object*); lean_object* l_Lean_firstFrontendMacroScope___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___rarg(lean_object*, lean_object*); @@ -172,16 +170,16 @@ lean_object* l_Lean_numLitKind___closed__1; lean_object* l_Lean_NameGenerator_next(lean_object*); lean_object* l_Lean_Syntax_decodeCharLit___boxed(lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux(lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_strLitKind___closed__1; +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5; lean_object* l_Lean_Syntax_isNatLitAux___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_4__extractImported___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameGenerator_Inhabited___closed__2; lean_object* l_Lean_Syntax_getArgs___boxed(lean_object*); -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux(lean_object*); lean_object* l_Array_getSepElems___rarg(lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux___boxed(lean_object*); lean_object* l_Lean_reservedMacroScope; -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError(lean_object*); lean_object* l_Lean_mkNullNode(lean_object*); lean_object* l_Lean_monadQuotationTrans(lean_object*, lean_object*); @@ -189,37 +187,32 @@ lean_object* l_Lean_MonadQuotation_addMacroScope___rarg___lambda__2(lean_object* lean_object* l_Lean_strLitKind___closed__2; lean_object* l_Lean_NameGenerator_Inhabited___closed__1; size_t l_Lean_Name_hash(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_HasToString; +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_choiceKind; lean_object* l_Lean_charLitKind; -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___main___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findSomeMAux___main___at_Lean_Syntax_getHeadInfo___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_3__assembleParts(lean_object*, lean_object*); lean_object* l_Lean_mkFreshId(lean_object*); lean_object* l_Lean_mkCIdent(lean_object*); lean_object* l_Lean_numLitKind___closed__2; uint32_t lean_string_utf8_get(lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__6; +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkOptionalNode(lean_object*); lean_object* l_Nat_pred(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Name_toStringWithSep___boxed(lean_object*, lean_object*); lean_object* l_Array_filterSepElemsM(lean_object*); lean_object* l_Lean_firstFrontendMacroScope; -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5; lean_object* l_Lean_ParserDescr_inhabited___closed__1; lean_object* l_Lean_NameGenerator_mkChild(lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f___boxed(lean_object*); -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_2__assembleParts(lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_inhabited; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_nullKind___closed__1; @@ -231,7 +224,6 @@ lean_object* l_Lean_MacroScopesView_inhabited___closed__1; uint8_t l_Char_isAlpha(uint32_t); uint8_t l_Lean_Syntax_isAtom(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___closed__3; @@ -250,17 +242,17 @@ lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__5; lean_object* l_Lean_Macro_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_6__extractMacroScopesAux___main(lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar(lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_3__extractImported(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux___main(lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_4__extractImported(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_withIncRecDepth(lean_object*); lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_String_quote(lean_object*); uint8_t l_Char_isAlphanum(uint32_t); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); uint8_t l_Lean_isGreek(uint32_t); @@ -275,21 +267,24 @@ lean_object* l_Lean_Name_Name_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHeadInfo___boxed(lean_object*); lean_object* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); lean_object* l_Lean_Macro_throwUnsupported___rarg(lean_object*); -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameGenerator_curr(lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNameLit_x3f___boxed(lean_object*); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2; lean_object* l_Lean_mkHole___closed__1; +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6; lean_object* l_Lean_Name_hasMacroScopes___boxed(lean_object*); lean_object* l_Lean_MonadQuotation_addMacroScope___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isIdBeginEscape___boxed(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main(lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkSepStx___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkCAppStx(lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Lean_Name_HasBeq___closed__1; -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main___boxed(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Syntax_decodeNameLit(lean_object*); @@ -298,13 +293,12 @@ lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Syntax_isNameLit_x3f(lean_object*); lean_object* l_Lean_isIdEndEscape___boxed(lean_object*); lean_object* l_Lean_Syntax_getOptionalIdent_x3f___boxed(lean_object*); -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLit(lean_object*); uint8_t l_Lean_isIdFirst(uint32_t); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); size_t lean_usize_mix_hash(size_t, size_t); lean_object* l_Lean_Syntax_isNone___boxed(lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1; +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkCIdentFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_mkCIdentFrom___closed__1; @@ -314,67 +308,76 @@ lean_object* lean_string_length(lean_object*); lean_object* l_Lean_MacroM_monadQuotation___closed__1; lean_object* l_Lean_Macro_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_nameLitKind___closed__2; -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isSubScriptAlnum(uint32_t); lean_object* l_List_foldl___main___at_Lean_MacroScopesView_review___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Macro_throwUnsupported(lean_object*, lean_object*); lean_object* lean_mk_syntax_ident(lean_object*); lean_object* l_Lean_mkStxLit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat(lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main(lean_object*); lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Syntax_getOptional_x3f___boxed(lean_object*); lean_object* l_Lean_mkCIdentFrom___closed__2; lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l_Lean_Name_eraseMacroScopes___boxed(lean_object*); +lean_object* l___private_Init_LeanInit_2__simpMacroScopesAux(lean_object*); +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux(lean_object*, lean_object*, lean_object*); +lean_object* lean_simp_macro_scopes(lean_object*); +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_ReaderT_Monad___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_strLitToAtom___boxed(lean_object*); lean_object* l_Lean_Syntax_find_x3f(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4; lean_object* l_Lean_Syntax_decodeStrLitAux___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_mkAtomFrom___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Syntax_decodeNatLitVal___boxed(lean_object*); lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_monadNameGeneratorLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeNatLitVal___closed__1; -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux(lean_object*, lean_object*, lean_object*); -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___lambda__1(lean_object*, lean_object*); uint8_t l_UInt32_decLe(uint32_t, uint32_t); +lean_object* l___private_Init_LeanInit_2__simpMacroScopesAux___main(lean_object*); lean_object* l_Lean_MonadQuotation_addMacroScope(lean_object*); -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_Name_hasMacroScopes___main___boxed(lean_object*); lean_object* l_Lean_Name_hasMacroScopes___main___closed__1; lean_object* l_Lean_Syntax_findAux(lean_object*, lean_object*); lean_object* l_Lean_Name_hash___boxed(lean_object*); +lean_object* l___private_Init_LeanInit_3__assembleParts___main(lean_object*, lean_object*); lean_object* l_Lean_defaultMaxRecDepth; lean_object* l_Lean_Syntax_decodeStrLitAux(lean_object*, lean_object*, lean_object*); uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___closed__2; lean_object* lean_uint32_to_nat(uint32_t); +lean_object* l___private_Init_LeanInit_9__decodeHexDigit___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLitAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isFieldIdx_x3f___boxed(lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__1; lean_object* l_Lean_MonadQuotation_addMacroScope___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_3__extractImported___main(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_string_hash(lean_object*); +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux___main___boxed(lean_object*); lean_object* l_Lean_Name_append___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isIdRest(uint32_t); lean_object* l_Lean_NameGenerator_Inhabited___closed__3; lean_object* l_Lean_Syntax_isIdent___boxed(lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroM_monadQuotation___closed__4; lean_object* l_Lean_nameLitKind___closed__1; uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint32_t l_Char_ofNat(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3; +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isGreek(uint32_t x_1) { _start: { @@ -2309,6 +2312,55 @@ lean_dec(x_1); return x_2; } } +lean_object* l___private_Init_LeanInit_2__simpMacroScopesAux___main(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l___private_Init_LeanInit_2__simpMacroScopesAux___main(x_2); +x_5 = lean_name_mk_numeral(x_4, x_3); +return x_5; +} +else +{ +lean_object* x_6; +x_6 = l___private_Init_LeanInit_1__eraseMacroScopesAux___main(x_1); +lean_dec(x_1); +return x_6; +} +} +} +lean_object* l___private_Init_LeanInit_2__simpMacroScopesAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Init_LeanInit_2__simpMacroScopesAux___main(x_1); +return x_2; +} +} +lean_object* lean_simp_macro_scopes(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Name_hasMacroScopes___main(x_1); +if (x_2 == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; +x_3 = l___private_Init_LeanInit_2__simpMacroScopesAux___main(x_1); +return x_3; +} +} +} lean_object* _init_l_Lean_MacroScopesView_inhabited___closed__1() { _start: { @@ -2392,7 +2444,7 @@ return x_14; } } } -lean_object* l___private_Init_LeanInit_2__assembleParts___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_3__assembleParts___main(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2446,15 +2498,15 @@ goto _start; } } } -lean_object* l___private_Init_LeanInit_2__assembleParts(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_3__assembleParts(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_LeanInit_2__assembleParts___main(x_1, x_2); +x_3 = l___private_Init_LeanInit_3__assembleParts___main(x_1, x_2); return x_3; } } -lean_object* l___private_Init_LeanInit_3__extractImported___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_4__extractImported___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { switch (lean_obj_tag(x_3)) { @@ -2493,7 +2545,7 @@ else lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_dec(x_3); x_13 = lean_box(0); -x_14 = l___private_Init_LeanInit_2__assembleParts___main(x_4, x_13); +x_14 = l___private_Init_LeanInit_3__assembleParts___main(x_4, x_13); x_15 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_15, 0, x_7); lean_ctor_set(x_15, 1, x_14); @@ -2517,15 +2569,15 @@ goto _start; } } } -lean_object* l___private_Init_LeanInit_3__extractImported(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_4__extractImported(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_Init_LeanInit_3__extractImported___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_LeanInit_4__extractImported___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Init_LeanInit_4__extractMainModule___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_5__extractMainModule___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -2563,7 +2615,7 @@ else lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_2); x_12 = lean_box(0); -x_13 = l___private_Init_LeanInit_2__assembleParts___main(x_3, x_12); +x_13 = l___private_Init_LeanInit_3__assembleParts___main(x_3, x_12); x_14 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_14, 0, x_6); lean_ctor_set(x_14, 1, x_12); @@ -2576,23 +2628,23 @@ default: { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_15 = lean_box(0); -x_16 = l___private_Init_LeanInit_2__assembleParts___main(x_3, x_15); +x_16 = l___private_Init_LeanInit_3__assembleParts___main(x_3, x_15); x_17 = lean_box(0); -x_18 = l___private_Init_LeanInit_3__extractImported___main(x_1, x_16, x_2, x_17); +x_18 = l___private_Init_LeanInit_4__extractImported___main(x_1, x_16, x_2, x_17); return x_18; } } } } -lean_object* l___private_Init_LeanInit_4__extractMainModule(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_5__extractMainModule(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_4__extractMainModule___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_5__extractMainModule___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_6__extractMacroScopesAux___main(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -2611,7 +2663,7 @@ x_5 = lean_ctor_get(x_1, 0); lean_inc(x_5); lean_dec(x_1); x_6 = lean_box(0); -x_7 = l___private_Init_LeanInit_4__extractMainModule___main(x_2, x_5, x_6); +x_7 = l___private_Init_LeanInit_5__extractMainModule___main(x_2, x_5, x_6); return x_7; } default: @@ -2632,11 +2684,11 @@ goto _start; } } } -lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_6__extractMacroScopesAux(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_LeanInit_5__extractMacroScopesAux___main(x_1, x_2); +x_3 = l___private_Init_LeanInit_6__extractMacroScopesAux___main(x_1, x_2); return x_3; } } @@ -2661,7 +2713,7 @@ else { lean_object* x_6; lean_object* x_7; x_6 = lean_box(0); -x_7 = l___private_Init_LeanInit_5__extractMacroScopesAux___main(x_1, x_6); +x_7 = l___private_Init_LeanInit_6__extractMacroScopesAux___main(x_1, x_6); return x_7; } } @@ -3764,7 +3816,7 @@ x_4 = l_Lean_mkStxLit(x_3, x_1, x_2); return x_4; } } -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -3827,33 +3879,33 @@ return x_21; } } } -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_6__decodeBinLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_7__decodeBinLitAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_6__decodeBinLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_7__decodeBinLitAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_6__decodeBinLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_7__decodeBinLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_6__decodeBinLitAux(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_7__decodeBinLitAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -3916,33 +3968,33 @@ return x_20; } } } -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_7__decodeOctalLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_8__decodeOctalLitAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_7__decodeOctalLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_8__decodeOctalLitAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_7__decodeOctalLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_8__decodeOctalLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_7__decodeOctalLitAux(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_8__decodeOctalLitAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_8__decodeHexDigit(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_9__decodeHexDigit(lean_object* x_1, lean_object* x_2) { _start: { uint32_t x_3; lean_object* x_4; lean_object* x_5; uint32_t x_44; uint8_t x_45; @@ -4102,17 +4154,17 @@ return x_42; } } } -lean_object* l___private_Init_LeanInit_8__decodeHexDigit___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_9__decodeHexDigit___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_2); +x_3 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -4120,7 +4172,7 @@ x_4 = lean_string_utf8_at_end(x_1, x_2); if (x_4 == 0) { lean_object* x_5; -x_5 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_2); +x_5 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_2); lean_dec(x_2); if (lean_obj_tag(x_5) == 0) { @@ -4161,33 +4213,33 @@ return x_14; } } } -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_9__decodeHexLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_10__decodeHexLitAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_9__decodeHexLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_10__decodeHexLitAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_9__decodeHexLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_10__decodeHexLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_9__decodeHexLitAux(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_10__decodeHexLitAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -4250,28 +4302,28 @@ return x_20; } } } -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_10__decodeDecimalLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_11__decodeDecimalLitAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_10__decodeDecimalLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_11__decodeDecimalLitAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_11__decodeDecimalLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_10__decodeDecimalLitAux(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_11__decodeDecimalLitAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -4313,7 +4365,7 @@ return x_9; else { lean_object* x_10; -x_10 = l___private_Init_LeanInit_10__decodeDecimalLitAux___main(x_1, x_3, x_3); +x_10 = l___private_Init_LeanInit_11__decodeDecimalLitAux___main(x_1, x_3, x_3); return x_10; } } @@ -4383,7 +4435,7 @@ return x_27; else { lean_object* x_28; -x_28 = l___private_Init_LeanInit_10__decodeDecimalLitAux___main(x_1, x_3, x_3); +x_28 = l___private_Init_LeanInit_11__decodeDecimalLitAux___main(x_1, x_3, x_3); return x_28; } } @@ -4391,7 +4443,7 @@ else { lean_object* x_29; lean_object* x_30; x_29 = lean_unsigned_to_nat(2u); -x_30 = l___private_Init_LeanInit_7__decodeOctalLitAux___main(x_1, x_29, x_3); +x_30 = l___private_Init_LeanInit_8__decodeOctalLitAux___main(x_1, x_29, x_3); return x_30; } } @@ -4399,7 +4451,7 @@ else { lean_object* x_31; lean_object* x_32; x_31 = lean_unsigned_to_nat(2u); -x_32 = l___private_Init_LeanInit_7__decodeOctalLitAux___main(x_1, x_31, x_3); +x_32 = l___private_Init_LeanInit_8__decodeOctalLitAux___main(x_1, x_31, x_3); return x_32; } } @@ -4407,7 +4459,7 @@ else { lean_object* x_33; lean_object* x_34; x_33 = lean_unsigned_to_nat(2u); -x_34 = l___private_Init_LeanInit_6__decodeBinLitAux___main(x_1, x_33, x_3); +x_34 = l___private_Init_LeanInit_7__decodeBinLitAux___main(x_1, x_33, x_3); return x_34; } } @@ -4415,7 +4467,7 @@ else { lean_object* x_35; lean_object* x_36; x_35 = lean_unsigned_to_nat(2u); -x_36 = l___private_Init_LeanInit_6__decodeBinLitAux___main(x_1, x_35, x_3); +x_36 = l___private_Init_LeanInit_7__decodeBinLitAux___main(x_1, x_35, x_3); return x_36; } } @@ -4424,7 +4476,7 @@ else { lean_object* x_41; lean_object* x_42; x_41 = lean_unsigned_to_nat(2u); -x_42 = l___private_Init_LeanInit_9__decodeHexLitAux___main(x_1, x_41, x_3); +x_42 = l___private_Init_LeanInit_10__decodeHexLitAux___main(x_1, x_41, x_3); return x_42; } } @@ -4432,7 +4484,7 @@ else { lean_object* x_43; lean_object* x_44; x_43 = lean_unsigned_to_nat(2u); -x_44 = l___private_Init_LeanInit_9__decodeHexLitAux___main(x_1, x_43, x_3); +x_44 = l___private_Init_LeanInit_10__decodeHexLitAux___main(x_1, x_43, x_3); return x_44; } } @@ -4677,7 +4729,7 @@ lean_dec(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1() { _start: { uint32_t x_1; lean_object* x_2; @@ -4686,7 +4738,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2() { _start: { uint32_t x_1; lean_object* x_2; @@ -4695,7 +4747,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3() { _start: { uint32_t x_1; lean_object* x_2; @@ -4704,7 +4756,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4() { _start: { uint32_t x_1; lean_object* x_2; @@ -4713,7 +4765,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5() { _start: { uint32_t x_1; lean_object* x_2; @@ -4722,7 +4774,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6() { +lean_object* _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6() { _start: { uint32_t x_1; lean_object* x_2; @@ -4731,7 +4783,7 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar(lean_object* x_1, lean_object* x_2) { _start: { uint32_t x_3; lean_object* x_4; uint32_t x_5; uint8_t x_6; @@ -4784,7 +4836,7 @@ return x_21; else { lean_object* x_22; -x_22 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_4); +x_22 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_4); lean_dec(x_4); if (lean_obj_tag(x_22) == 0) { @@ -4803,7 +4855,7 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); -x_27 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_26); +x_27 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_26); lean_dec(x_26); if (lean_obj_tag(x_27) == 0) { @@ -4823,7 +4875,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_31); +x_32 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_31); lean_dec(x_31); if (lean_obj_tag(x_32) == 0) { @@ -4844,7 +4896,7 @@ lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -x_37 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_36); +x_37 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_36); lean_dec(x_36); if (lean_obj_tag(x_37) == 0) { @@ -4978,7 +5030,7 @@ return x_78; else { lean_object* x_79; -x_79 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_4); +x_79 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_4); lean_dec(x_4); if (lean_obj_tag(x_79) == 0) { @@ -4997,7 +5049,7 @@ lean_inc(x_82); x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); lean_dec(x_81); -x_84 = l___private_Init_LeanInit_8__decodeHexDigit(x_1, x_83); +x_84 = l___private_Init_LeanInit_9__decodeHexDigit(x_1, x_83); lean_dec(x_83); if (lean_obj_tag(x_84) == 0) { @@ -5097,7 +5149,7 @@ return x_113; else { lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1; +x_114 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1; x_115 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_115, 0, x_114); lean_ctor_set(x_115, 1, x_4); @@ -5109,7 +5161,7 @@ return x_116; else { lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2; +x_117 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2; x_118 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_118, 0, x_117); lean_ctor_set(x_118, 1, x_4); @@ -5121,7 +5173,7 @@ return x_119; else { lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3; +x_120 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3; x_121 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_121, 0, x_120); lean_ctor_set(x_121, 1, x_4); @@ -5133,7 +5185,7 @@ return x_122; else { lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4; +x_123 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4; x_124 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_124, 0, x_123); lean_ctor_set(x_124, 1, x_4); @@ -5145,7 +5197,7 @@ return x_125; else { lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5; +x_126 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5; x_127 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_127, 0, x_126); lean_ctor_set(x_127, 1, x_4); @@ -5157,7 +5209,7 @@ return x_128; else { lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6; +x_129 = l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6; x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_129); lean_ctor_set(x_130, 1, x_4); @@ -5167,11 +5219,11 @@ return x_131; } } } -lean_object* l___private_Init_LeanInit_11__decodeQuotedChar___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_LeanInit_12__decodeQuotedChar___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_LeanInit_11__decodeQuotedChar(x_1, x_2); +x_3 = l___private_Init_LeanInit_12__decodeQuotedChar(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -5202,7 +5254,7 @@ goto _start; else { lean_object* x_12; -x_12 = l___private_Init_LeanInit_11__decodeQuotedChar(x_1, x_5); +x_12 = l___private_Init_LeanInit_12__decodeQuotedChar(x_1, x_5); lean_dec(x_5); if (lean_obj_tag(x_12) == 0) { @@ -5339,7 +5391,7 @@ else { lean_object* x_8; lean_object* x_9; x_8 = lean_unsigned_to_nat(2u); -x_9 = l___private_Init_LeanInit_11__decodeQuotedChar(x_1, x_8); +x_9 = l___private_Init_LeanInit_12__decodeQuotedChar(x_1, x_8); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -5419,7 +5471,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5448,7 +5500,7 @@ return x_3; } } } -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5478,7 +5530,7 @@ return x_3; } } } -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint32_t x_15; uint32_t x_16; uint8_t x_17; @@ -5502,7 +5554,7 @@ else lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_string_utf8_byte_size(x_1); lean_inc(x_2); -x_21 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1(x_1, x_20, x_2); +x_21 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1(x_1, x_20, x_2); lean_dec(x_20); x_22 = lean_string_utf8_extract(x_1, x_2, x_21); lean_dec(x_2); @@ -5519,7 +5571,7 @@ x_24 = lean_string_utf8_next(x_1, x_2); lean_dec(x_2); x_25 = lean_string_utf8_byte_size(x_1); lean_inc(x_24); -x_26 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2(x_1, x_25, x_24); +x_26 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2(x_1, x_25, x_24); lean_dec(x_25); x_27 = lean_string_utf8_get(x_1, x_26); x_28 = l_Lean_idEndEscape; @@ -5584,48 +5636,48 @@ goto _start; } } } -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__1(x_1, x_2, x_3); +x_4 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_12__decodeNameLitAux___main___spec__2(x_1, x_2, x_3); +x_4 = l_Substring_takeWhileAux___main___at___private_Init_LeanInit_13__decodeNameLitAux___main___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_12__decodeNameLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_13__decodeNameLitAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_12__decodeNameLitAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_13__decodeNameLitAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_LeanInit_12__decodeNameLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_LeanInit_13__decodeNameLitAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_LeanInit_12__decodeNameLitAux(x_1, x_2, x_3); +x_4 = l___private_Init_LeanInit_13__decodeNameLitAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -5649,7 +5701,7 @@ else lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_unsigned_to_nat(1u); x_8 = lean_box(0); -x_9 = l___private_Init_LeanInit_12__decodeNameLitAux___main(x_1, x_7, x_8); +x_9 = l___private_Init_LeanInit_13__decodeNameLitAux___main(x_1, x_7, x_8); return x_9; } } @@ -6231,7 +6283,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___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, uint8_t x_7) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___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, uint8_t x_7) { _start: { if (x_7 == 0) @@ -6241,7 +6293,7 @@ lean_dec(x_6); x_8 = lean_unsigned_to_nat(2u); x_9 = lean_nat_add(x_1, x_8); lean_dec(x_1); -x_10 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_9, x_5); +x_10 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_9, x_5); return x_10; } else @@ -6265,7 +6317,7 @@ x_17 = lean_nat_add(x_1, x_16); lean_dec(x_1); x_18 = lean_array_push(x_5, x_15); x_19 = lean_array_push(x_18, x_6); -x_20 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_17, x_19); +x_20 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_17, x_19); return x_20; } else @@ -6275,7 +6327,7 @@ x_21 = lean_unsigned_to_nat(2u); x_22 = lean_nat_add(x_1, x_21); lean_dec(x_1); x_23 = lean_array_push(x_5, x_6); -x_24 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_22, x_23); +x_24 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_22, x_23); return x_24; } } @@ -6286,13 +6338,13 @@ x_25 = lean_unsigned_to_nat(2u); x_26 = lean_nat_add(x_1, x_25); lean_dec(x_1); x_27 = lean_array_push(x_5, x_6); -x_28 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_26, x_27); +x_28 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_2, x_3, x_4, x_26, x_27); return x_28; } } } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -6323,7 +6375,7 @@ lean_inc(x_12); lean_inc(x_3); lean_inc(x_11); x_13 = lean_apply_1(x_3, x_11); -x_14 = lean_alloc_closure((void*)(l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg___lambda__1___boxed), 7, 6); +x_14 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg___lambda__1___boxed), 7, 6); lean_closure_set(x_14, 0, x_4); lean_closure_set(x_14, 1, x_1); lean_closure_set(x_14, 2, x_2); @@ -6335,37 +6387,37 @@ return x_15; } } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main(lean_object* x_1) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg), 5, 0); return x_2; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___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* l___private_Init_LeanInit_14__filterSepElemsMAux___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) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_7); lean_dec(x_7); -x_9 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_8); +x_9 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_8); return x_9; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___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; -x_6 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux(lean_object* x_1) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_13__filterSepElemsMAux___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__filterSepElemsMAux___rarg), 5, 0); return x_2; } } @@ -6375,7 +6427,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_unsigned_to_nat(0u); x_5 = l_Array_empty___closed__1; -x_6 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); return x_6; } } @@ -6387,7 +6439,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_filterSepElemsM___rarg), 3, 0); return x_2; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -6477,7 +6529,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Array_empty___closed__1; -x_5 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(x_1, x_2, x_3, x_4); return x_5; } } @@ -6489,11 +6541,11 @@ x_3 = l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1(x_1, x_2); return x_3; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___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___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Array_filterSepElems___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } @@ -6516,18 +6568,18 @@ lean_dec(x_1); return x_3; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___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* l___private_Init_LeanInit_15__mapSepElemsMAux___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) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_add(x_1, x_7); x_9 = lean_array_push(x_2, x_6); -x_10 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg(x_3, x_4, x_5, x_8, x_9); +x_10 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg(x_3, x_4, x_5, x_8, x_9); return x_10; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -6576,7 +6628,7 @@ x_20 = lean_ctor_get(x_1, 1); lean_inc(x_20); lean_inc(x_3); x_21 = lean_apply_1(x_3, x_11); -x_22 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg___lambda__1___boxed), 6, 5); +x_22 = lean_alloc_closure((void*)(l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg___lambda__1___boxed), 6, 5); lean_closure_set(x_22, 0, x_4); lean_closure_set(x_22, 1, x_5); lean_closure_set(x_22, 2, x_1); @@ -6588,36 +6640,36 @@ return x_23; } } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main(lean_object* x_1) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg), 5, 0); return x_2; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___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* l___private_Init_LeanInit_15__mapSepElemsMAux___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) { _start: { lean_object* x_7; -x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___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; -x_6 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux(lean_object* x_1) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_14__mapSepElemsMAux___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_LeanInit_15__mapSepElemsMAux___rarg), 5, 0); return x_2; } } @@ -6627,7 +6679,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_unsigned_to_nat(0u); x_5 = l_Array_empty___closed__1; -x_6 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___rarg(x_1, x_2, x_3, x_4, x_5); return x_6; } } @@ -6639,7 +6691,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_mapSepElemsM___rarg), 3, 0); return x_2; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -6694,7 +6746,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Array_empty___closed__1; -x_5 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(x_1, x_2, x_3, x_4); return x_5; } } @@ -6706,11 +6758,11 @@ x_3 = l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1(x_1, x_2); return x_3; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Array_mapSepElems___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } @@ -6930,18 +6982,18 @@ l_Lean_mkHole___closed__3 = _init_l_Lean_mkHole___closed__3(); lean_mark_persistent(l_Lean_mkHole___closed__3); l_Lean_Syntax_decodeNatLitVal___closed__1 = _init_l_Lean_Syntax_decodeNatLitVal___closed__1(); lean_mark_persistent(l_Lean_Syntax_decodeNatLitVal___closed__1); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__1); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__2); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__3); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__4); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__5); -l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6 = _init_l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6(); -lean_mark_persistent(l___private_Init_LeanInit_11__decodeQuotedChar___boxed__const__6); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__1); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__2); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__3); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__4); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__5); +l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6 = _init_l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6(); +lean_mark_persistent(l___private_Init_LeanInit_12__decodeQuotedChar___boxed__const__6); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 549c5f5e39..57be6a49c9 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -77,7 +77,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__1; lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_21__elabAppFnId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_14__resolveLValAux___closed__17; lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_27__expandApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_App_9__nextArgIsHole(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -126,6 +125,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_inhabited; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -193,8 +193,6 @@ lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__6; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_21__elabAppFnId___spec__1___rarg(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___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_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1; lean_object* l___private_Lean_Elab_App_5__getForallBody___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfForall___at_Lean_Elab_Term_useImplicitLambda_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__5; @@ -215,7 +213,6 @@ extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; lean_object* l_Lean_Elab_Term_NamedArg_inhabited___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_21__elabAppFnId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__8; extern lean_object* l_Std_PersistentArray_Stats_toString___closed__4; lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,6 +257,7 @@ lean_object* l_Lean_Elab_Term_elabApp(lean_object*, lean_object*, lean_object*, lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_24__toMessageData___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__9; lean_object* l___private_Lean_Meta_WHNF_12__whnfEasyCases___main___at___private_Lean_Meta_WHNF_17__whnfCoreImp___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__3; @@ -280,7 +278,6 @@ lean_object* l___private_Lean_Elab_App_21__elabAppFnId___boxed(lean_object*, lea lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__1; extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; extern lean_object* l_Lean_importModules___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_formatEntry___closed__1; lean_object* l___private_Lean_Elab_App_16__resolveLVal(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*); @@ -301,14 +298,13 @@ lean_object* l___private_Lean_Elab_App_19__elabAppLValsAux___boxed(lean_object*, lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__19; lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_18__addLValArg___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*, lean_object*); +lean_object* l___private_Lean_Elab_App_27__regTraceClasses(lean_object*); lean_object* l___private_Lean_Elab_App_26__elabAppAux___closed__3; extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l___private_Lean_Elab_App_28__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofArray(lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_27__expandApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_24__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__mkBaseProjections___closed__3; lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -352,6 +348,7 @@ lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppA lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1; lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__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_Lean_Elab_Term_expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; lean_object* l___private_Lean_Elab_App_14__resolveLValAux___closed__10; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; @@ -384,6 +381,7 @@ extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l___private_Lean_Elab_App_18__addLValArg___main___closed__7; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_20__elabAppLVals___closed__1; +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; lean_object* l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData___main(lean_object*); @@ -444,6 +442,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object* l___private_Lean_Elab_App_18__addLValArg___main___closed__5; lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; lean_object* l_List_map___main___at___private_Lean_Elab_App_22__elabAppFn___main___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_elabRawIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__8; @@ -485,6 +484,7 @@ lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__7; lean_object* l_Lean_Exception_toMessageData(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___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*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_inhabited; lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1077,7 +1077,6 @@ lean_object* x_12; uint8_t x_13; lean_object* x_14; x_12 = lean_ctor_get(x_10, 0); x_13 = 0; x_14 = l_Lean_mkForall(x_12, x_13, x_1, x_2); -lean_dec(x_12); lean_ctor_set(x_10, 0, x_14); return x_10; } @@ -1091,7 +1090,6 @@ lean_inc(x_15); lean_dec(x_10); x_17 = 0; x_18 = l_Lean_mkForall(x_15, x_17, x_1, x_2); -lean_dec(x_15); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_16); @@ -29415,7 +29413,7 @@ return x_68; } } } -lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1() { +lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1() { _start: { lean_object* x_1; @@ -29423,17 +29421,17 @@ x_1 = lean_mk_string("namedArgument"); return x_1; } } -lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2() { +lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1; +x_2 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___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_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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; uint8_t x_13; @@ -29465,7 +29463,7 @@ x_19 = lean_ctor_get(x_4, 0); x_20 = lean_ctor_get(x_4, 1); lean_inc(x_15); x_21 = l_Lean_Syntax_getKind(x_15); -x_22 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; +x_22 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; x_23 = lean_name_eq(x_21, x_22); lean_dec(x_21); if (x_23 == 0) @@ -29547,7 +29545,7 @@ lean_inc(x_42); lean_dec(x_4); lean_inc(x_15); x_44 = l_Lean_Syntax_getKind(x_15); -x_45 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; +x_45 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; x_46 = lean_name_eq(x_44, x_45); lean_dec(x_44); if (x_46 == 0) @@ -29629,7 +29627,7 @@ return x_66; } } } -lean_object* l___private_Lean_Elab_App_27__expandApp(lean_object* x_1, lean_object* x_2, lean_object* 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_Term_expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -29640,7 +29638,7 @@ x_12 = l_Lean_Syntax_getArg(x_1, x_11); x_13 = l_Lean_Syntax_getArgs(x_12); lean_dec(x_12); x_14 = l_Lean_importModules___closed__1; -x_15 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1(x_1, x_13, x_9, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_15 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1(x_1, x_13, x_9, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_13); if (lean_obj_tag(x_15) == 0) { @@ -29698,11 +29696,11 @@ return x_26; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___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_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___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_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_9); lean_dec(x_8); @@ -29713,11 +29711,11 @@ lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_App_27__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_Term_expandApp___boxed(lean_object* x_1, lean_object* x_2, 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_App_27__expandApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_Term_expandApp(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); @@ -29732,7 +29730,7 @@ _start: { lean_object* x_10; lean_inc(x_3); -x_10 = l___private_Lean_Elab_App_27__expandApp(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_Term_expandApp(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -30278,7 +30276,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_App_28__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_27__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -30593,10 +30591,10 @@ l___private_Lean_Elab_App_26__elabAppAux___closed__2 = _init_l___private_Lean_El lean_mark_persistent(l___private_Lean_Elab_App_26__elabAppAux___closed__2); l___private_Lean_Elab_App_26__elabAppAux___closed__3 = _init_l___private_Lean_Elab_App_26__elabAppAux___closed__3(); lean_mark_persistent(l___private_Lean_Elab_App_26__elabAppAux___closed__3); -l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__1); -l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2); +l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1); +l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2); l___regBuiltin_Lean_Elab_Term_elabApp___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabApp___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabApp___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabApp(lean_io_mk_world()); @@ -30642,7 +30640,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRawIdent___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabRawIdent(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_App_28__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Elab_App_27__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index d275d21f00..acbbff4152 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -128,6 +128,7 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBi lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(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_Elab_Term_quoteAutoTactic___main___closed__15; +lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBinder___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_restoreSynthInstanceCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6; @@ -360,6 +361,7 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Term_mkLetIdDeclView(lean_object*); extern lean_object* l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe___closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__7; lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___closed__10; lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__9; @@ -384,10 +386,12 @@ lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Quotation_2__quoteSyntax___main___spec__1___closed__4; lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__14; +lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; +extern lean_object* l___private_Lean_Elab_Term_13__isExplicit___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_1__expandBinderType___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Binders_1__expandBinderType___boxed(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBinder___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_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*); @@ -396,7 +400,7 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__3; lean_object* l___private_Lean_Elab_Binders_17__expandLetEqnsDeclVal___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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___private_Lean_Elab_Binders_1__expandBinderType(lean_object*); +lean_object* l___private_Lean_Elab_Binders_1__expandBinderType(lean_object*, lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__1; extern lean_object* l_Lean_mkAppStx___closed__1; @@ -417,36 +421,37 @@ extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed_ lean_object* l_Lean_Elab_Term_elabBinder(lean_object*); lean_object* lean_add_decl(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_17__expandLetEqnsDeclVal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_1__expandBinderType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Binders_1__expandBinderType(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_Syntax_getNumArgs(x_1); -x_3 = lean_unsigned_to_nat(0u); -x_4 = lean_nat_dec_eq(x_2, x_3); -lean_dec(x_2); -if (x_4 == 0) +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Syntax_getNumArgs(x_2); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_nat_dec_eq(x_3, x_4); +lean_dec(x_3); +if (x_5 == 0) { -lean_object* x_5; lean_object* x_6; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -return x_6; +lean_object* x_6; lean_object* x_7; +x_6 = lean_unsigned_to_nat(1u); +x_7 = l_Lean_Syntax_getArg(x_2, x_6); +return x_7; } else { -lean_object* x_7; -x_7 = l_Lean_mkHole(x_1); -return x_7; +lean_object* x_8; +x_8 = l_Lean_mkHole(x_1); +return x_8; } } } -lean_object* l___private_Lean_Elab_Binders_1__expandBinderType___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Binders_1__expandBinderType___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = l___private_Lean_Elab_Binders_1__expandBinderType(x_1); +lean_object* x_3; +x_3 = l___private_Lean_Elab_Binders_1__expandBinderType(x_1, x_2); +lean_dec(x_2); lean_dec(x_1); -return x_2; +return x_3; } } lean_object* l___private_Lean_Elab_Binders_2__expandBinderIdent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -3839,7 +3844,7 @@ lean_inc(x_46); lean_dec(x_44); x_47 = lean_unsigned_to_nat(2u); x_48 = lean_array_get(x_41, x_10, x_47); -x_49 = l___private_Lean_Elab_Binders_1__expandBinderType(x_48); +x_49 = l___private_Lean_Elab_Binders_1__expandBinderType(x_1, x_48); lean_dec(x_48); x_50 = x_45; x_51 = lean_unsigned_to_nat(0u); @@ -3905,7 +3910,7 @@ lean_inc(x_64); lean_dec(x_62); x_65 = lean_unsigned_to_nat(2u); x_66 = lean_array_get(x_59, x_10, x_65); -x_67 = l___private_Lean_Elab_Binders_1__expandBinderType(x_66); +x_67 = l___private_Lean_Elab_Binders_1__expandBinderType(x_1, x_66); lean_dec(x_66); x_68 = lean_unsigned_to_nat(3u); x_69 = lean_array_get(x_59, x_10, x_68); @@ -15461,52 +15466,74 @@ return x_3; lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__4() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("intro"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; -x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__4; +x_2 = l_Lean_Elab_Term_MVarErrorContext_logError___closed__7; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7() { +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6; +x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; } } +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("intro"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__1; +x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__8() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__6; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__8; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string("match "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9() { +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11() { _start: { lean_object* x_1; @@ -15514,7 +15541,7 @@ x_1 = lean_mk_string(" with "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10() { +lean_object* _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -15566,19 +15593,19 @@ lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); if (x_22 == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = l_List_reprAux___main___rarg___closed__1; -x_90 = l_Lean_mkAtomFrom(x_1, x_89); -x_91 = lean_array_push(x_5, x_90); -x_27 = x_91; -goto block_88; +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = l_List_reprAux___main___rarg___closed__1; +x_98 = l_Lean_mkAtomFrom(x_1, x_97); +x_99 = lean_array_push(x_5, x_98); +x_27 = x_99; +goto block_96; } else { x_27 = x_5; -goto block_88; +goto block_96; } -block_88: +block_96: { lean_object* x_28; lean_object* x_29; x_28 = lean_array_push(x_27, x_26); @@ -15590,7 +15617,7 @@ uint8_t x_30; x_30 = !lean_is_exclusive(x_29); if (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; 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_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; x_31 = lean_ctor_get(x_29, 0); x_32 = l_Array_empty___closed__1; x_33 = lean_array_push(x_32, x_21); @@ -15607,285 +15634,303 @@ x_41 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; x_42 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); -lean_ctor_set(x_29, 0, x_42); +x_43 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_44 = lean_array_push(x_43, x_42); +x_45 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +lean_ctor_set(x_29, 0, x_46); return x_29; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); -lean_inc(x_43); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_47 = lean_ctor_get(x_29, 0); +x_48 = lean_ctor_get(x_29, 1); +lean_inc(x_48); +lean_inc(x_47); lean_dec(x_29); -x_45 = l_Array_empty___closed__1; -x_46 = lean_array_push(x_45, x_21); -x_47 = l_Lean_nullKind___closed__2; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_50 = lean_array_push(x_49, x_48); -x_51 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_52 = lean_array_push(x_50, x_51); -x_53 = lean_array_push(x_52, x_43); -x_54 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_44); -return x_56; +x_49 = l_Array_empty___closed__1; +x_50 = lean_array_push(x_49, x_21); +x_51 = l_Lean_nullKind___closed__2; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_54 = lean_array_push(x_53, x_52); +x_55 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_56 = lean_array_push(x_54, x_55); +x_57 = lean_array_push(x_56, x_47); +x_58 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_61 = lean_array_push(x_60, x_59); +x_62 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_48); +return x_64; } } else { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_29); -if (x_57 == 0) +uint8_t x_65; +x_65 = !lean_is_exclusive(x_29); +if (x_65 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_58 = lean_ctor_get(x_29, 0); -x_59 = l_Array_empty___closed__1; -x_60 = lean_array_push(x_59, x_21); -x_61 = l_Lean_nullKind___closed__2; -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; -x_64 = lean_array_push(x_63, x_62); -x_65 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = lean_array_push(x_59, x_66); -x_68 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_69 = lean_array_push(x_67, x_68); -x_70 = lean_array_push(x_69, x_58); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_61); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_29, 0, x_71); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_66 = lean_ctor_get(x_29, 0); +x_67 = l_Array_empty___closed__1; +x_68 = lean_array_push(x_67, x_21); +x_69 = l_Lean_nullKind___closed__2; +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; +x_72 = lean_array_push(x_71, x_70); +x_73 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = lean_array_push(x_67, x_74); +x_76 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_77 = lean_array_push(x_75, x_76); +x_78 = lean_array_push(x_77, x_66); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_69); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_29, 0, x_79); return x_29; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_72 = lean_ctor_get(x_29, 0); -x_73 = lean_ctor_get(x_29, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_80 = lean_ctor_get(x_29, 0); +x_81 = lean_ctor_get(x_29, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_29); -x_74 = l_Array_empty___closed__1; -x_75 = lean_array_push(x_74, x_21); -x_76 = l_Lean_nullKind___closed__2; -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; -x_79 = lean_array_push(x_78, x_77); -x_80 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = lean_array_push(x_74, x_81); -x_83 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_84 = lean_array_push(x_82, x_83); -x_85 = lean_array_push(x_84, x_72); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_76); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_73); -return x_87; +x_82 = l_Array_empty___closed__1; +x_83 = lean_array_push(x_82, x_21); +x_84 = l_Lean_nullKind___closed__2; +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; +x_87 = lean_array_push(x_86, x_85); +x_88 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_87); +x_90 = lean_array_push(x_82, x_89); +x_91 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_92 = lean_array_push(x_90, x_91); +x_93 = lean_array_push(x_92, x_80); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_84); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_81); +return x_95; } } } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_92 = lean_ctor_get(x_6, 0); -x_93 = lean_ctor_get(x_6, 2); -x_94 = lean_ctor_get(x_6, 3); -lean_inc(x_94); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_100 = lean_ctor_get(x_6, 0); +x_101 = lean_ctor_get(x_6, 2); +x_102 = lean_ctor_get(x_6, 3); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); lean_dec(x_6); lean_inc(x_7); -lean_inc(x_92); -x_95 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_7); -lean_ctor_set(x_95, 2, x_93); -lean_ctor_set(x_95, 3, x_94); -x_96 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_97 = l_Lean_addMacroScope(x_92, x_96, x_7); -x_98 = lean_box(0); -x_99 = l_Lean_SourceInfo_inhabited___closed__1; -x_100 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__2; -x_101 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -lean_ctor_set(x_101, 2, x_97); -lean_ctor_set(x_101, 3, x_98); -x_102 = l_Array_isEmpty___rarg(x_5); -x_103 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__3; -lean_inc(x_101); -x_104 = lean_array_push(x_103, x_101); -x_105 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -if (x_102 == 0) +lean_inc(x_100); +x_103 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_7); +lean_ctor_set(x_103, 2, x_101); +lean_ctor_set(x_103, 3, x_102); +x_104 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_105 = l_Lean_addMacroScope(x_100, x_104, x_7); +x_106 = lean_box(0); +x_107 = l_Lean_SourceInfo_inhabited___closed__1; +x_108 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__2; +x_109 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_109, 2, x_105); +lean_ctor_set(x_109, 3, x_106); +x_110 = l_Array_isEmpty___rarg(x_5); +x_111 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__3; +lean_inc(x_109); +x_112 = lean_array_push(x_111, x_109); +x_113 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_112); +if (x_110 == 0) { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = l_List_reprAux___main___rarg___closed__1; -x_144 = l_Lean_mkAtomFrom(x_1, x_143); -x_145 = lean_array_push(x_5, x_144); -x_107 = x_145; -goto block_142; +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = l_List_reprAux___main___rarg___closed__1; +x_156 = l_Lean_mkAtomFrom(x_1, x_155); +x_157 = lean_array_push(x_5, x_156); +x_115 = x_157; +goto block_154; } else { -x_107 = x_5; -goto block_142; +x_115 = x_5; +goto block_154; } -block_142: +block_154: { -lean_object* x_108; lean_object* x_109; -x_108 = lean_array_push(x_107, x_106); -x_109 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main(x_1, x_2, x_3, x_11, x_108, x_95, x_12); +lean_object* x_116; lean_object* x_117; +x_116 = lean_array_push(x_115, x_114); +x_117 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main(x_1, x_2, x_3, x_11, x_116, x_103, x_12); lean_dec(x_11); if (x_3 == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_112 = x_109; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_120 = x_117; } else { - lean_dec_ref(x_109); - x_112 = lean_box(0); -} -x_113 = l_Array_empty___closed__1; -x_114 = lean_array_push(x_113, x_101); -x_115 = l_Lean_nullKind___closed__2; -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -x_117 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_118 = lean_array_push(x_117, x_116); -x_119 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_120 = lean_array_push(x_118, x_119); -x_121 = lean_array_push(x_120, x_110); -x_122 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_121); -if (lean_is_scalar(x_112)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_112; + lean_dec_ref(x_117); + x_120 = lean_box(0); } +x_121 = l_Array_empty___closed__1; +x_122 = lean_array_push(x_121, x_109); +x_123 = l_Lean_nullKind___closed__2; +x_124 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_111); -return x_124; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_125 = lean_ctor_get(x_109, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_109, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_127 = x_109; -} else { - lean_dec_ref(x_109); - x_127 = lean_box(0); -} -x_128 = l_Array_empty___closed__1; -x_129 = lean_array_push(x_128, x_101); -x_130 = l_Lean_nullKind___closed__2; +lean_ctor_set(x_124, 1, x_122); +x_125 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_126 = lean_array_push(x_125, x_124); +x_127 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_128 = lean_array_push(x_126, x_127); +x_129 = lean_array_push(x_128, x_118); +x_130 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; x_131 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); -x_132 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_132 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; x_133 = lean_array_push(x_132, x_131); -x_134 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_134 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; x_135 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_135, 0, x_134); lean_ctor_set(x_135, 1, x_133); -x_136 = lean_array_push(x_128, x_135); -x_137 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; -x_138 = lean_array_push(x_136, x_137); -x_139 = lean_array_push(x_138, x_125); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_130); -lean_ctor_set(x_140, 1, x_139); -if (lean_is_scalar(x_127)) { - x_141 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_120)) { + x_136 = lean_alloc_ctor(0, 2, 0); } else { - x_141 = x_127; + x_136 = x_120; } -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_126); -return x_141; +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_119); +return x_136; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_137 = lean_ctor_get(x_117, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_117, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_139 = x_117; +} else { + lean_dec_ref(x_117); + x_139 = lean_box(0); +} +x_140 = l_Array_empty___closed__1; +x_141 = lean_array_push(x_140, x_109); +x_142 = l_Lean_nullKind___closed__2; +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; +x_145 = lean_array_push(x_144, x_143); +x_146 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_145); +x_148 = lean_array_push(x_140, x_147); +x_149 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; +x_150 = lean_array_push(x_148, x_149); +x_151 = lean_array_push(x_150, x_137); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_142); +lean_ctor_set(x_152, 1, x_151); +if (lean_is_scalar(x_139)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_139; +} +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_138); +return x_153; } } } } else { -lean_object* 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; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_dec(x_6); -x_146 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__8; -x_147 = l_Lean_mkAtomFrom(x_1, x_146); -x_148 = l_Lean_nullKind; -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_5); -x_150 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; -x_151 = l_Lean_mkAtomFrom(x_1, x_150); -x_152 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; -x_153 = lean_array_push(x_152, x_147); -x_154 = lean_array_push(x_153, x_149); -x_155 = l_Lean_mkOptionalNode___closed__1; -x_156 = lean_array_push(x_154, x_155); -x_157 = lean_array_push(x_156, x_151); -x_158 = lean_array_push(x_157, x_2); +x_158 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; +x_159 = l_Lean_mkAtomFrom(x_1, x_158); +x_160 = l_Lean_nullKind; +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_5); +x_162 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11; +x_163 = l_Lean_mkAtomFrom(x_1, x_162); +x_164 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +x_165 = lean_array_push(x_164, x_159); +x_166 = lean_array_push(x_165, x_161); +x_167 = l_Lean_mkOptionalNode___closed__1; +x_168 = lean_array_push(x_166, x_167); +x_169 = lean_array_push(x_168, x_163); +x_170 = lean_array_push(x_169, x_2); if (x_3 == 0) { -lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_158); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_7); -return x_161; +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_170); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_7); +return x_173; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_158); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_7); -return x_164; +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_170); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_7); +return x_176; } } } @@ -17226,13 +17271,13 @@ else { lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_dec(x_5); -x_139 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__8; +x_139 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; x_140 = l_Lean_mkAtomFrom(x_1, x_139); x_141 = l_Lean_nullKind; x_142 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_4); -x_143 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; +x_143 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11; x_144 = l_Lean_mkAtomFrom(x_1, x_143); x_145 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; x_146 = lean_array_push(x_145, x_140); @@ -18247,6 +18292,10 @@ l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9 lean_mark_persistent(l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9); l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10 = _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10(); lean_mark_persistent(l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10); +l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11 = _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11); +l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12 = _init_l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12); l___regBuiltin_Lean_Elab_Term_elabFun___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabFun___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabFun___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabFun(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index eb2ee81529..d8858e5441 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -19,7 +19,6 @@ lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___s lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); lean_object* l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__5; -lean_object* l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__3; @@ -94,6 +93,7 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp 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* lean_array_fset(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom___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_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___spec__1(lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; @@ -102,6 +102,7 @@ extern lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; 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*); +extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__9; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; lean_object* l_Lean_Elab_Command_elabCommand___main(lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,7 +143,6 @@ lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4; extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; -extern lean_object* l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -1883,7 +1883,7 @@ lean_dec(x_39); x_42 = lean_ctor_get(x_40, 0); lean_inc(x_42); lean_dec(x_40); -x_43 = l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1; +x_43 = l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1; lean_inc(x_42); x_44 = l_Lean_CollectLevelParams_main___main(x_42, x_43); x_45 = lean_ctor_get(x_44, 2); @@ -4678,19 +4678,6 @@ return x_146; } } } -lean_object* _init_l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_empty___closed__1; -x_2 = 0; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} lean_object* l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -4709,7 +4696,7 @@ x_10 = l_Lean_Syntax_getArg(x_1, x_9); x_11 = l_Lean_Syntax_getArgs(x_10); lean_dec(x_10); x_12 = lean_unsigned_to_nat(0u); -x_13 = l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1; +x_13 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___spec__2(x_1, x_8, x_11, x_12, x_13, x_2, x_3, x_7); lean_dec(x_11); lean_dec(x_8); @@ -6126,8 +6113,6 @@ l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__5 = _ini lean_mark_persistent(l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__5); l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__6 = _init_l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__6(); lean_mark_persistent(l___private_Lean_Elab_Declaration_8__expandMutualPreamble_x3f___closed__6); -l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1 = _init_l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Declaration_9__expandMutualElement_x3f___closed__1); l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_10__expandMutualNamespace_x3f___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_10__expandMutualNamespace_x3f___spec__1___closed__1(); lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_10__expandMutualNamespace_x3f___spec__1___closed__1); l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_10__expandMutualNamespace_x3f___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Declaration_10__expandMutualNamespace_x3f___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/DoNotation.c b/stage0/stdlib/Lean/Elab/DoNotation.c index 015b17d611..b7716ad3b7 100644 --- a/stage0/stdlib/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Lean/Elab/DoNotation.c @@ -76,7 +76,6 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___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_Term_elabTermEnsuringType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -106,6 +105,7 @@ lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main(lean_ lean_object* l___private_Lean_Elab_DoNotation_13__regTraceClasses(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_4__hasLiftMethod___main___closed__3; lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_8__expandDoElems(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_4__hasLiftMethod___boxed(lean_object*); @@ -5556,7 +5556,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_167 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_130); +x_167 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_130); x_168 = !lean_is_exclusive(x_167); if (x_168 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index a87b210e7c..a855632a45 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -133,7 +133,6 @@ lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1( lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_ibelow(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___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*); -extern lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; lean_object* l___private_Lean_Elab_Inductive_29__collectLevelParamsInInductive(lean_object*); lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -191,6 +190,7 @@ lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spe lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_find_x21___rarg___closed__2; +extern lean_object* l_Lean_MonadCacheT_MonadLift___closed__1; lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___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_Inductive_26__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -13206,7 +13206,7 @@ x_37 = l___private_Lean_Elab_Inductive_34__mkAuxConstructions(x_4, x_10, x_11, x x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; +x_39 = l_Lean_MonadCacheT_MonadLift___closed__1; x_40 = l_ReaderT_MonadLift___closed__1; x_41 = lean_unsigned_to_nat(0u); x_42 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_35__mkInductiveDecl___spec__3(x_39, x_40, x_39, x_40, x_4, x_41, x_10, x_11, x_12, x_13, x_14, x_15, x_38); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index e7406600d1..a1623c4a1d 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Match -// Imports: Init Lean.Meta.Match.MatchPatternAttr Lean.Meta.Match.Match Lean.Elab.SyntheticMVars +// Imports: Init Lean.Meta.Match.MatchPatternAttr Lean.Meta.Match.Match Lean.Elab.SyntheticMVars Lean.Elab.App #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,62 +16,79 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__8; +lean_object* l___private_Lean_Elab_Match_34__mkLocalDeclFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNoMatch___closed__1; +lean_object* l_Lean_mkAppStx(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_8__getMatchAlts(lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1; +lean_object* l___private_Lean_Elab_Match_21__processExplicitArg___closed__3; +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___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* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4; uint8_t l_Lean_Expr_isCharLit(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4(lean_object*); lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___closed__1; lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3; extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchCore___spec__1(lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_mkMotiveType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__4; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__1; +lean_object* l___private_Lean_Elab_Match_43__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_23__processCtorAppAux___main(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_Match_26__collect(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_Match_13__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4; +lean_object* l___private_Lean_Elab_Match_24__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_12__addAssignmentInfo___closed__4; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__9; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_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_LocalDecl_userName(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_nullKind; +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS___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_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__8; lean_object* l___private_Lean_Elab_Match_8__getMatchAlts___boxed(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2; +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__1; extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__2; -lean_object* l___private_Lean_Elab_Match_16__processIdAux(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_Match_38__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___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_elabNoMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; +lean_object* l___private_Lean_Elab_Match_22__processImplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__13; -lean_object* l___private_Lean_Elab_Match_34__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_17__finalize___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__9; +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__2; +lean_object* l___private_Lean_Elab_Match_22__processImplicitArg___closed__1; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2; lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__2; @@ -80,110 +97,110 @@ lean_object* l_Lean_Elab_Term_withDepElimPatterns(lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMotiveType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__processId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__12; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__5; lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_23__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_36__mkOptType(lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1; +lean_object* l___private_Lean_Elab_Match_16__isDone___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2; lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__2; -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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_Match_13__getNumExplicitCtorParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__2; +lean_object* l___private_Lean_Elab_Match_17__finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +lean_object* l___private_Lean_Elab_Match_24__processVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__3; -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___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_Match_28__withPatternVarsAux___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*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1; -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___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_Lean_Elab_Match_44__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_44__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithIdImpl(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_40__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2; lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l___private_Lean_Elab_Match_37__waitExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS___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* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___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_Match_35__withElaboratedLHS___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*); extern lean_object* l_List_repr___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_15__processVar(lean_object*, 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_withDepElimPatterns___spec__2___boxed(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_Match_22__withPatternVarsAux___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_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_23__processCtorAppAux(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_ToDepElimPattern_main___main___closed__1; +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__11; +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(lean_object*, 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_Match_39__mkMatchType___main___closed__5; lean_object* l_Lean_Meta_Match_mkMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_40__mkOptType(lean_object*); +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__3; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__4; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch(lean_object*, 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_Match_15__processVar___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1___boxed(lean_object**); +extern lean_object* l_Lean_Elab_Term_NamedArg_inhabited; +lean_object* l___private_Lean_Elab_Match_21__processExplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__processImplicitArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__7; extern lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__9; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1; -lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_17__processCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__9; -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___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_Match_19__throwInvalidPattern(lean_object*); +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4; lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams___lambda__1___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_Lean_Meta_Closure_mkBinding___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__2; -lean_object* l___private_Lean_Elab_Match_33__waitExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__alreadyVisited___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_Match_6__elabDiscrsAux___main___closed__4; -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___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_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern(lean_object*); lean_object* l_Lean_Meta_instantiateLocalDeclMVars___at_Lean_Elab_Term_finalizePatternDecls___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_Match_16__processIdAux___closed__5; +lean_object* l___private_Lean_Elab_Match_20__pushNewArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__8; lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__4; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__collectPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__12; +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__3; +uint8_t l___private_Lean_Elab_Match_16__isDone(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*); extern lean_object* l_Lean_Meta_Closure_mkNextUserName___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,59 +209,52 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__45; +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__collectPatternVars___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__14; -lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__4; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_42__regTraceClasses(lean_object*); -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__7; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__markAsVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__6; -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_46__regTraceClasses(lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_17__finalize___boxed(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_Lean_Elab_Term_CollectPatternVars_main___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; +lean_object* l___private_Lean_Elab_Match_17__finalize___closed__1; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkLocalDeclFor___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_Match_14__throwAmbiguous___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___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_Match_38__mkNewPatterns___main___closed__1; -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__1; -lean_object* l___private_Lean_Elab_Match_26__markAsVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2(uint8_t, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__alreadyVisited___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_Match_36__elabMatchAux___closed__5; +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__19; +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern(lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__11; -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__6; -lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__1; -lean_object* l___private_Lean_Elab_Match_26__markAsVisited___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_Match_30__elabPatternsAux___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_Match_45__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_16__processIdAux___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_Match_33__waitExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_17__finalize___closed__2; +lean_object* l___private_Lean_Elab_Match_27__collectPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -252,296 +262,312 @@ extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_CollectPatternVars_main___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(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_Lean_Elab_Term_CollectPatternVars_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l___private_Lean_Elab_Match_37__waitExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main(lean_object*); lean_object* l_Lean_Elab_Term_mkMatcher(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_Match_28__withPatternVarsAux___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_Match_9__registerAuxiliaryNodeKind(lean_object*); -lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__2; lean_object* l_Lean_Meta_instantiateLocalDeclMVars___at_Lean_Elab_Term_finalizePatternDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__1; lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__10; lean_object* l_Nat_repr(lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___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_Lean_Elab_Term_elabMatchAltView___closed__3; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(lean_object*, lean_object*, 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_Match_5__elabMatchOptType(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_Match_29__mkLocalDeclFor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_Elab_Term_expandMacrosInPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_inferTypeRef; -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabNoMatch___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__17; lean_object* l_Lean_Elab_Term_mkInaccessible___closed__2; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_34__elabMatchCore___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_inaccessible_x3f___boxed(lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__8; -lean_object* l___private_Lean_Elab_Match_30__getFieldsBinderInfo(lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__4; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___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_reportMatcherResultErrors___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2; lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; -lean_object* l___private_Lean_Elab_Match_39__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_charLitKind; -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___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_Lean_Elab_expandMacros___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l_Lean_Elab_Term_resolveName(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_Match_19__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_LocalDecl_Inhabited; lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___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_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1(lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__6; extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__7; -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1; extern lean_object* l_Lean_Elab_Term_elabForall___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___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_Lean_Elab_Match_3__expandMatchOptTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__1; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2; -lean_object* l___private_Lean_Elab_Match_25__alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp(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_mkAppStx___closed__6; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2___boxed(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; +lean_object* l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2; +lean_object* l_Lean_Elab_Term_expandApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__markAsVisited___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_Match_25__processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux(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_Match_20__collect___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_addMacroStack(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__2; extern lean_object* l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__3; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2; -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkLocalDeclFor(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___private_Lean_Elab_Match_22__withPatternVarsAux___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_Match_20__collect___main___closed__16; extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__11; lean_object* l_Lean_Elab_Term_inaccessible_x3f(lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux(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_mkInaccessible(lean_object*); lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_7__elabBinderViews___main___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__3; uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_34__elabMatchCore___spec__1(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; +lean_object* l_Lean_ConstantInfo_type(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__2; 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_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkLocalDeclFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_PatternVar_hasToString___closed__1; extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___lambda__1___closed__1; lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___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_Match_33__throwInvalidPattern___rarg___closed__3; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2; +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1; lean_object* l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1; +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__6; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkInaccessible___closed__1; +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtor(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_getLevel___at_Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__7; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__7; +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__4; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_43__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___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_Match_24__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern uint8_t l_Lean_BinderInfo_inhabited; +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__3; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__16; lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__11; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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* l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__6; -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5; lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__8; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3(lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__7; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__withPatternVars___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_Match_24__processVar___closed__3; +uint8_t l___private_Lean_Elab_Match_18__isNextArgAccessible(lean_object*); lean_object* l_Lean_mkHole(lean_object*); -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3; +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3; -lean_object* l___private_Lean_Elab_Match_30__getFieldsBinderInfo___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2; +lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__3; -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__5; +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___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_Expr_getRevArg_x21___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_40__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___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_Match_42__mkNewPatterns___main___closed__1; +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__1; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMotiveType___closed__1; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__13; lean_object* l_Lean_Elab_Term_elabInaccessible___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_Match_18__processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__3; lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_23__withPatternVars(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__2; uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1; -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux(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_Match_31__withElaboratedLHS___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__withPatternVars(lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; -lean_object* l___private_Lean_Elab_Match_20__collect___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_Match_37__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__8; +lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___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_Match_24__processVar___closed__7; extern lean_object* l___private_Lean_Elab_Binders_6__matchBinder___closed__2; lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabImplicitLambdaAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__7; +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___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_Match_12__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__5; uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___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_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__14; +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__7; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_whnfRef; lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4; +lean_object* l___private_Lean_Elab_Match_19__getNextParam(lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___main___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_Match_26__collect___main___closed__15; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__4; lean_object* l_Lean_Parser_registerBuiltinNodeKind(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1; lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___spec__1(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_Lean_Elab_Match_20__collect___main___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_39__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(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_ToDepElimPattern_main___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___spec__2___boxed(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_Match_20__collect___main___closed__6; -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___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* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__5; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1; uint8_t l_Lean_Expr_isFVar(lean_object*); -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__4; lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__3; +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l_Lean_Elab_Term_mkMotiveType___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_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1; +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_arrayLit_x3f(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__8; lean_object* l_Array_toList___rarg(lean_object*); uint8_t l_Lean_Expr_isStringLit(lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__4; lean_object* lean_mk_array(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; +lean_object* l___private_Lean_Elab_Match_38__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__3; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__11; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__2; +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__1; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__10; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2___rarg(lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Meta_instantiateLocalDeclMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__6; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__3; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__16; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2; +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__4; +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___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* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3; +lean_object* l___private_Lean_Elab_Match_20__pushNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__collectPatternVars___closed__1; lean_object* lean_nat_mod(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMatcher___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__pushNewArg___closed__1; +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__9; +lean_object* l___private_Lean_Elab_Match_26__collect___main___closed__13; +lean_object* l___private_Lean_Elab_Match_24__processVar___closed__5; +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux(lean_object*); +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp___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_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(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___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__5; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(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_Term_PatternVar_hasToString(lean_object*); @@ -549,69 +575,73 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1(lean_object*); +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__15; lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_occurs(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_7__elabDiscrs(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_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS(lean_object*); extern lean_object* l___private_Lean_Elab_Term_13__isExplicit___closed__2; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_Match_18__isNextArgAccessible___boxed(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(uint8_t, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___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_Term_reportMatcherResultErrors___closed__5; -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(lean_object*); +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4; 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_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__2; +lean_object* l___private_Lean_Elab_Match_21__processExplicitArg___closed__2; lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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_Match_26__collect___main___closed__2; lean_object* l_Lean_Meta_Match_counterExamplesToMessageData(lean_object*); -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux(lean_object*, 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_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__5; 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___private_Lean_Elab_Match_7__elabDiscrs___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_log___at_Lean_Elab_Term_CollectPatternVars_main___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_Match_24__processVar___closed__6; lean_object* lean_name_mk_numeral(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__3; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__18; -lean_object* l___private_Lean_Elab_Match_15__processVar___closed__5; +lean_object* l___private_Lean_Elab_Match_21__processExplicitArg___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_Match_41__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_object*); -lean_object* l___private_Lean_Elab_Match_17__processCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3; lean_object* l_Lean_Elab_Term_withDepElimPatterns___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___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_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__8; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__15; +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__6; lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__3; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9; -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabParen___closed__7; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__10; lean_object* l___private_Lean_Elab_Match_5__elabMatchOptType___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_Match_21__processExplicitArg___closed__1; +lean_object* l___private_Lean_Elab_Match_26__collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__10; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__1; -lean_object* l___private_Lean_Elab_Match_20__collect___main___closed__14; +lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_matchPatternAttr; extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch(lean_object*); lean_object* l_Lean_mkThunk(lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__6; @@ -3504,437 +3534,7 @@ lean_dec(x_2); return x_10; } } -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid pattern, variable '"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("' occurred more than once"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid pattern variable, must be atomic"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_15__processVar___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_Match_15__processVar(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) { -_start: -{ -lean_object* x_11; lean_object* x_12; -if (x_2 == 0) -{ -lean_object* x_41; uint8_t x_42; -x_41 = l_Lean_Name_eraseMacroScopes(x_1); -x_42 = l_Lean_Name_isAtomic(x_41); -lean_dec(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_dec(x_1); -x_43 = l___private_Lean_Elab_Match_15__processVar___closed__9; -x_44 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -return x_44; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_st_ref_get(x_3, x_10); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_11 = x_50; -x_12 = x_51; -goto block_40; -} -} -else -{ -lean_object* x_52; uint8_t x_53; -lean_dec(x_1); -x_52 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -return x_52; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_52, 0); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; -} -} -block_40: -{ -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_NameSet_contains(x_13, x_1); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_4); -x_15 = lean_st_ref_take(x_3, x_12); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = lean_box(0); -lean_inc(x_1); -x_20 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_18, x_1, x_19); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_1); -x_23 = lean_array_push(x_21, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_st_ref_set(x_3, x_24, x_17); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_19); -return x_25; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_19); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -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; uint8_t x_36; -x_30 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_30, 0, x_1); -x_31 = l___private_Lean_Elab_Match_15__processVar___closed__3; -x_32 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -x_33 = l___private_Lean_Elab_Match_15__processVar___closed__6; -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_12); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Match_15__processVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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___private_Lean_Elab_Match_15__processVar(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_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(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* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -if (lean_obj_tag(x_4) == 4) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_35; -x_27 = lean_ctor_get(x_4, 0); -lean_inc(x_27); -lean_dec(x_4); -lean_inc(x_27); -lean_inc(x_3); -x_35 = lean_environment_find(x_3, x_27); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; -lean_dec(x_27); -lean_dec(x_3); -x_36 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_36; -} -else -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -lean_dec(x_35); -if (lean_obj_tag(x_37) == 6) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_27); -lean_dec(x_3); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_39; -} -else -{ -lean_object* x_40; -lean_dec(x_37); -x_40 = lean_box(0); -x_28 = x_40; -goto block_34; -} -} -block_34: -{ -lean_object* x_29; uint8_t x_30; -lean_dec(x_28); -x_29 = l_Lean_matchPatternAttr; -x_30 = l_Lean_TagAttribute_hasTag(x_29, x_3, x_27); -lean_dec(x_27); -lean_dec(x_3); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = lean_box(0); -x_13 = x_31; -goto block_26; -} -else -{ -lean_object* x_32; lean_object* x_33; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_32 = lean_unsigned_to_nat(0u); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_12); -return x_33; -} -} -} -else -{ -lean_object* x_41; -lean_dec(x_4); -lean_dec(x_3); -x_41 = lean_box(0); -x_13 = x_41; -goto block_26; -} -block_26: -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_13); -x_14 = l_Lean_Syntax_getId(x_1); -x_15 = l___private_Lean_Elab_Match_15__processVar(x_14, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_unsigned_to_nat(0u); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_unsigned_to_nat(0u); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; -} -} -else -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -return x_15; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_15); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -} -} -lean_object* l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_2); -lean_dec(x_2); -x_14 = l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_5); -lean_dec(x_1); -return x_14; -} -} -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4007,7 +3607,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4025,7 +3625,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_5); +x_6 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_5); x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); lean_dec(x_4); @@ -4041,7 +3641,7 @@ x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); -x_10 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_9); +x_10 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_9); x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); lean_dec(x_8); @@ -4053,708 +3653,264 @@ return x_12; } } } -lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("identifier expected, '@' is not allowed in patterns"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_16__processIdAux___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_16__processIdAux___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__4() { +lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_box(0); -x_2 = l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__1(x_1, x_1); +x_2 = l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(x_1, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__5() { +lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_16__processIdAux___closed__4; -x_2 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_1); +x_1 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1; +x_2 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_16__processIdAux(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_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_8); -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; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_12 = lean_ctor_get(x_8, 3); -x_13 = l_Lean_replaceRef(x_1, x_12); -x_14 = l_Lean_replaceRef(x_13, x_12); -lean_dec(x_13); -x_15 = l_Lean_replaceRef(x_14, x_12); -lean_dec(x_12); -lean_dec(x_14); -lean_ctor_set(x_8, 3, x_15); -x_16 = lean_st_ref_get(x_9, x_10); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -lean_dec(x_17); if (lean_obj_tag(x_1) == 3) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_1, 2); -lean_inc(x_28); -x_29 = lean_ctor_get(x_1, 3); -lean_inc(x_29); -x_30 = lean_box(0); -lean_inc(x_6); -lean_inc(x_4); -x_31 = l_Lean_Elab_Term_resolveName(x_28, x_29, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -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_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__1(x_32, x_30); -x_35 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_19); -x_36 = l_Lean_Syntax_getId(x_1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_1, 2); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 3); +lean_inc(x_11); lean_dec(x_1); -x_37 = l___private_Lean_Elab_Match_15__processVar(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +x_12 = lean_box(0); +lean_inc(x_5); +lean_inc(x_3); +x_13 = l_Lean_Elab_Term_resolveName(x_10, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(x_15, x_12); +x_18 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_dec(x_5); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -x_40 = lean_unsigned_to_nat(0u); -lean_ctor_set(x_37, 0, x_40); -return x_37; +lean_dec(x_3); +x_19 = lean_box(0); +lean_ctor_set(x_13, 0, x_19); +return x_13; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_3); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_13, 0, x_22); +return x_13; +} +else +{ +lean_object* x_23; +lean_dec(x_20); +lean_free_object(x_13); +x_23 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +lean_dec(x_5); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +x_26 = l_List_filterAux___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__1(x_24, x_12); +x_27 = l_List_map___main___at_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___spec__2(x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_5); +lean_dec(x_3); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_25); +return x_29; +} +else +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_5); +lean_dec(x_3); +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +lean_dec(x_27); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_25); +return x_33; +} +else +{ +lean_object* x_34; +lean_dec(x_30); +x_34 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +lean_dec(x_5); +return x_34; +} +} +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_13); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_13, 1); +x_37 = lean_ctor_get(x_13, 0); lean_dec(x_37); -x_42 = lean_unsigned_to_nat(0u); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); +x_38 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2; +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +lean_dec(x_5); +lean_dec(x_3); +x_39 = lean_box(0); +lean_ctor_set_tag(x_13, 0); +lean_ctor_set(x_13, 0, x_39); +return x_13; +} +else +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_5); +lean_dec(x_3); +x_41 = lean_ctor_get(x_38, 0); +lean_inc(x_41); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set_tag(x_13, 0); +lean_ctor_set(x_13, 0, x_42); +return x_13; +} +else +{ +lean_object* x_43; +lean_dec(x_40); +lean_free_object(x_13); +x_43 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +lean_dec(x_5); return x_43; } } -else -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_37); -if (x_44 == 0) -{ -return x_37; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_37, 0); -x_46 = lean_ctor_get(x_37, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_37); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_13, 1); +lean_inc(x_44); +lean_dec(x_13); +x_45 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2; +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; +lean_dec(x_5); +lean_dec(x_3); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); return x_47; } -} -} else { lean_object* x_48; -x_48 = lean_ctor_get(x_35, 1); +x_48 = lean_ctor_get(x_45, 1); lean_inc(x_48); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_35, 0); -lean_inc(x_49); -lean_dec(x_35); -x_50 = l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(x_1, x_2, x_19, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); -lean_dec(x_1); -return x_50; -} -else -{ -lean_object* x_51; -lean_dec(x_48); -lean_dec(x_19); -lean_dec(x_1); -x_51 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_5); +lean_dec(x_3); +x_49 = lean_ctor_get(x_45, 0); +lean_inc(x_49); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_44); return x_51; } +else +{ +lean_object* x_52; +lean_dec(x_48); +x_52 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +lean_dec(x_5); +return x_52; +} +} +} } } else { -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_31, 1); -lean_inc(x_52); -lean_dec(x_31); -x_53 = l___private_Lean_Elab_Match_16__processIdAux___closed__5; -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; -lean_dec(x_19); -x_54 = l_Lean_Syntax_getId(x_1); +lean_object* x_53; lean_object* x_54; lean_dec(x_1); -x_55 = l___private_Lean_Elab_Match_15__processVar(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_52); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +x_53 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_54 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_53, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_5); -if (lean_obj_tag(x_55) == 0) -{ -uint8_t x_56; -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); -x_58 = lean_unsigned_to_nat(0u); -lean_ctor_set(x_55, 0, x_58); -return x_55; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_55, 1); -lean_inc(x_59); -lean_dec(x_55); -x_60 = lean_unsigned_to_nat(0u); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -} -else -{ -uint8_t x_62; -x_62 = !lean_is_exclusive(x_55); -if (x_62 == 0) -{ -return x_55; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_55, 0); -x_64 = lean_ctor_get(x_55, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_55); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +return x_54; } } } -else -{ -lean_object* x_66; -x_66 = lean_ctor_get(x_53, 1); -lean_inc(x_66); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_53, 0); -lean_inc(x_67); -x_68 = l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(x_1, x_2, x_19, x_67, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_52); -lean_dec(x_1); -return x_68; -} -else -{ -lean_object* x_69; -lean_dec(x_66); -lean_dec(x_19); -lean_dec(x_1); -x_69 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_52); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_69; -} -} -} -} -else -{ -lean_object* x_70; -lean_dec(x_19); -x_70 = lean_box(0); -x_20 = x_70; -goto block_27; -} -block_27: -{ -lean_object* x_21; uint8_t x_22; -lean_dec(x_20); -x_21 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; -x_22 = l_Lean_Syntax_isOfKind(x_1, x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_24 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_24; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = l___private_Lean_Elab_Match_16__processIdAux___closed__3; -x_26 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_26; -} -} -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_71 = lean_ctor_get(x_8, 0); -x_72 = lean_ctor_get(x_8, 1); -x_73 = lean_ctor_get(x_8, 2); -x_74 = lean_ctor_get(x_8, 3); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_8); -x_75 = l_Lean_replaceRef(x_1, x_74); -x_76 = l_Lean_replaceRef(x_75, x_74); -lean_dec(x_75); -x_77 = l_Lean_replaceRef(x_76, x_74); -lean_dec(x_74); -lean_dec(x_76); -x_78 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_78, 0, x_71); -lean_ctor_set(x_78, 1, x_72); -lean_ctor_set(x_78, 2, x_73); -lean_ctor_set(x_78, 3, x_77); -x_79 = lean_st_ref_get(x_9, x_10); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -lean_dec(x_80); -if (lean_obj_tag(x_1) == 3) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_1, 2); -lean_inc(x_91); -x_92 = lean_ctor_get(x_1, 3); -lean_inc(x_92); -x_93 = lean_box(0); -lean_inc(x_6); -lean_inc(x_4); -x_94 = l_Lean_Elab_Term_resolveName(x_91, x_92, x_93, x_4, x_5, x_6, x_7, x_78, x_9, x_81); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__1(x_95, x_93); -x_98 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_97); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; -lean_dec(x_82); -x_99 = l_Lean_Syntax_getId(x_1); -lean_dec(x_1); -x_100 = l___private_Lean_Elab_Match_15__processVar(x_99, x_2, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_96); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; -} else { - lean_dec_ref(x_100); - x_102 = lean_box(0); -} -x_103 = lean_unsigned_to_nat(0u); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_102; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_101); -return x_104; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_100, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_100, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_107 = x_100; -} else { - lean_dec_ref(x_100); - x_107 = lean_box(0); -} -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(1, 2, 0); -} else { - x_108 = x_107; -} -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; -} -} -else -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_98, 1); -lean_inc(x_109); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_98, 0); -lean_inc(x_110); -lean_dec(x_98); -x_111 = l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(x_1, x_2, x_82, x_110, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_96); -lean_dec(x_1); -return x_111; -} -else -{ -lean_object* x_112; -lean_dec(x_109); -lean_dec(x_82); -lean_dec(x_1); -x_112 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_98, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_96); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_112; -} -} -} -else -{ -lean_object* x_113; lean_object* x_114; -x_113 = lean_ctor_get(x_94, 1); -lean_inc(x_113); -lean_dec(x_94); -x_114 = l___private_Lean_Elab_Match_16__processIdAux___closed__5; -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_82); -x_115 = l_Lean_Syntax_getId(x_1); -lean_dec(x_1); -x_116 = l___private_Lean_Elab_Match_15__processVar(x_115, x_2, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_113); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_118 = x_116; -} else { - lean_dec_ref(x_116); - x_118 = lean_box(0); -} -x_119 = lean_unsigned_to_nat(0u); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 2, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_116, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_116, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_123 = x_116; -} else { - lean_dec_ref(x_116); - 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; -x_125 = lean_ctor_get(x_114, 1); -lean_inc(x_125); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_114, 0); -lean_inc(x_126); -x_127 = l_Lean_Elab_Term_CollectPatternVars_processIdAuxAux(x_1, x_2, x_82, x_126, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_113); -lean_dec(x_1); -return x_127; -} -else -{ -lean_object* x_128; -lean_dec(x_125); -lean_dec(x_82); -lean_dec(x_1); -x_128 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_114, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_113); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_128; -} -} -} -} -else -{ -lean_object* x_129; -lean_dec(x_82); -x_129 = lean_box(0); -x_83 = x_129; -goto block_90; -} -block_90: -{ -lean_object* x_84; uint8_t x_85; -lean_dec(x_83); -x_84 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; -x_85 = l_Lean_Syntax_isOfKind(x_1, x_84); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_87 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_86, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_81); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_87; -} -else -{ -lean_object* x_88; lean_object* x_89; -x_88 = l___private_Lean_Elab_Match_16__processIdAux___closed__3; -x_89 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_88, x_3, x_4, x_5, x_6, x_7, x_78, x_9, x_81); -lean_dec(x_9); -lean_dec(x_78); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_89; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Match_16__processIdAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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___private_Lean_Elab_Match_16__processIdAux(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Match_17__processCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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 = 1; -x_11 = l___private_Lean_Elab_Match_16__processIdAux(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l___private_Lean_Elab_Match_17__processCtor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Term_CollectPatternVars_resolveId_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_17__processCtor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(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_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_18__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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 = 0; -x_11 = l___private_Lean_Elab_Match_16__processIdAux(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -x_14 = lean_box(0); -lean_ctor_set(x_11, 0, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_11, 1); -lean_inc(x_15); -lean_dec(x_11); -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_15); -return x_17; -} -} -else -{ -uint8_t x_18; -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___private_Lean_Elab_Match_18__processId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_18__processId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_10; -} -} -lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1() { _start: { lean_object* x_1; @@ -4762,48 +3918,48 @@ x_1 = lean_mk_string("invalid pattern"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3; +x_9 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3; x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___boxed), 8, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -4813,7 +3969,2779 @@ lean_dec(x_1); return x_9; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___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* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_1 = lean_box(0); +x_2 = lean_box(0); +x_3 = lean_box(0); +x_4 = 1; +x_5 = l_Array_empty___closed__1; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_1); +lean_ctor_set(x_7, 2, x_5); +lean_ctor_set(x_7, 3, x_6); +lean_ctor_set(x_7, 4, x_5); +lean_ctor_set(x_7, 5, x_2); +lean_ctor_set(x_7, 6, x_5); +lean_ctor_set_uint8(x_7, sizeof(void*)*7, x_4); +return x_7; +} +} +lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1; +return x_1; +} +} +uint8_t l___private_Lean_Elab_Match_16__isDone(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = lean_ctor_get(x_1, 2); +x_3 = lean_array_get_size(x_2); +x_4 = lean_ctor_get(x_1, 3); +x_5 = lean_nat_dec_le(x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_16__isDone___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_Match_16__isDone(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_Match_17__finalize___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("too many arguments"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_17__finalize___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_17__finalize___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_17__finalize___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_17__finalize___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_Match_17__finalize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_1, 4); +lean_inc(x_10); +x_11 = l_Array_isEmpty___rarg(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = l___private_Lean_Elab_Match_17__finalize___closed__3; +x_13 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_13; +} +else +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_1, 5); +lean_inc(x_14); +x_15 = l_List_isEmpty___rarg(x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_1); +x_16 = l___private_Lean_Elab_Match_17__finalize___closed__3; +x_17 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_19); +x_21 = !lean_is_exclusive(x_20); +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; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_1, 0); +lean_inc(x_23); +x_24 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_25 = lean_array_push(x_24, x_23); +x_26 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = lean_ctor_get(x_1, 6); +lean_inc(x_28); +lean_dec(x_1); +x_29 = l_Lean_mkAppStx(x_27, x_28); +lean_ctor_set(x_20, 0, x_29); +return x_20; +} +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; lean_object* x_37; lean_object* x_38; +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_dec(x_20); +x_31 = lean_ctor_get(x_1, 0); +lean_inc(x_31); +x_32 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_33 = lean_array_push(x_32, x_31); +x_34 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_ctor_get(x_1, 6); +lean_inc(x_36); +lean_dec(x_1); +x_37 = l_Lean_mkAppStx(x_35, 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_30); +return x_38; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Match_17__finalize___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Match_17__finalize(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); +return x_10; +} +} +uint8_t l___private_Lean_Elab_Match_18__isNextArgAccessible(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 1); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_1, 3); +x_4 = lean_ctor_get(x_1, 2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +uint8_t x_7; +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; uint8_t x_10; +x_8 = lean_array_fget(x_4, x_3); +x_9 = l_Lean_LocalDecl_binderInfo(x_8); +lean_dec(x_8); +x_10 = l_Lean_BinderInfo_isExplicit(x_9); +return x_10; +} +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_1, 3); +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_12, 3); +x_14 = lean_nat_dec_le(x_13, x_11); +return x_14; +} +} +} +lean_object* l___private_Lean_Elab_Match_18__isNextArgAccessible___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_Match_18__isNextArgAccessible(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Match_19__getNextParam(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_1, 2); +x_4 = lean_ctor_get(x_1, 3); +x_5 = l_Lean_LocalDecl_Inhabited; +x_6 = lean_array_get(x_5, x_3, x_4); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_add(x_4, x_7); +lean_dec(x_4); +lean_ctor_set(x_1, 3, x_8); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_6); +lean_ctor_set(x_9, 1, x_1); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t 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; +x_10 = lean_ctor_get(x_1, 0); +x_11 = lean_ctor_get(x_1, 1); +x_12 = lean_ctor_get_uint8(x_1, sizeof(void*)*7); +x_13 = lean_ctor_get(x_1, 2); +x_14 = lean_ctor_get(x_1, 3); +x_15 = lean_ctor_get(x_1, 4); +x_16 = lean_ctor_get(x_1, 5); +x_17 = lean_ctor_get(x_1, 6); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_1); +x_18 = l_Lean_LocalDecl_Inhabited; +x_19 = lean_array_get(x_18, x_13, x_14); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_14, x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_11); +lean_ctor_set(x_22, 2, x_13); +lean_ctor_set(x_22, 3, x_21); +lean_ctor_set(x_22, 4, x_15); +lean_ctor_set(x_22, 5, x_16); +lean_ctor_set(x_22, 6, x_17); +lean_ctor_set_uint8(x_22, sizeof(void*)*7, x_12); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_19); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +lean_object* _init_l___private_Lean_Elab_Match_20__pushNewArg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___closed__1; +x_2 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited; +x_3 = l_monadInhabited___rarg(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Match_20__pushNewArg(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* x_11, lean_object* x_12) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +if (x_2 == 0) +{ +lean_object* x_13; uint8_t x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_13 = lean_ctor_get(x_4, 0); +lean_inc(x_13); +lean_dec(x_4); +x_14 = !lean_is_exclusive(x_3); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_3, 6); +x_16 = lean_array_push(x_15, x_13); +lean_ctor_set(x_3, 6, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_12); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t 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; +x_18 = lean_ctor_get(x_3, 0); +x_19 = lean_ctor_get(x_3, 1); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*7); +x_21 = lean_ctor_get(x_3, 2); +x_22 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 4); +x_24 = lean_ctor_get(x_3, 5); +x_25 = lean_ctor_get(x_3, 6); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_3); +x_26 = lean_array_push(x_25, x_13); +x_27 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_27, 0, x_18); +lean_ctor_set(x_27, 1, x_19); +lean_ctor_set(x_27, 2, x_21); +lean_ctor_set(x_27, 3, x_22); +lean_ctor_set(x_27, 4, x_23); +lean_ctor_set(x_27, 5, x_24); +lean_ctor_set(x_27, 6, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*7, x_20); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_12); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_4, 0); +lean_inc(x_29); +lean_dec(x_4); +x_30 = lean_apply_9(x_1, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_3); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_30, 0); +x_34 = lean_ctor_get(x_3, 6); +x_35 = lean_array_push(x_34, x_33); +lean_ctor_set(x_3, 6, x_35); +lean_ctor_set(x_30, 0, x_3); +return x_30; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_3, 0); +x_38 = lean_ctor_get(x_3, 1); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*7); +x_40 = lean_ctor_get(x_3, 2); +x_41 = lean_ctor_get(x_3, 3); +x_42 = lean_ctor_get(x_3, 4); +x_43 = lean_ctor_get(x_3, 5); +x_44 = lean_ctor_get(x_3, 6); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_3); +x_45 = lean_array_push(x_44, x_36); +x_46 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_46, 0, x_37); +lean_ctor_set(x_46, 1, x_38); +lean_ctor_set(x_46, 2, x_40); +lean_ctor_set(x_46, 3, x_41); +lean_ctor_set(x_46, 4, x_42); +lean_ctor_set(x_46, 5, x_43); +lean_ctor_set(x_46, 6, x_45); +lean_ctor_set_uint8(x_46, sizeof(void*)*7, x_39); +lean_ctor_set(x_30, 0, x_46); +return x_30; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_47 = lean_ctor_get(x_30, 0); +x_48 = lean_ctor_get(x_30, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_30); +x_49 = lean_ctor_get(x_3, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_3, 1); +lean_inc(x_50); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*7); +x_52 = lean_ctor_get(x_3, 2); +lean_inc(x_52); +x_53 = lean_ctor_get(x_3, 3); +lean_inc(x_53); +x_54 = lean_ctor_get(x_3, 4); +lean_inc(x_54); +x_55 = lean_ctor_get(x_3, 5); +lean_inc(x_55); +x_56 = lean_ctor_get(x_3, 6); +lean_inc(x_56); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + x_57 = x_3; +} else { + lean_dec_ref(x_3); + x_57 = lean_box(0); +} +x_58 = lean_array_push(x_56, x_47); +if (lean_is_scalar(x_57)) { + x_59 = lean_alloc_ctor(0, 7, 1); +} else { + x_59 = x_57; +} +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_50); +lean_ctor_set(x_59, 2, x_52); +lean_ctor_set(x_59, 3, x_53); +lean_ctor_set(x_59, 4, x_54); +lean_ctor_set(x_59, 5, x_55); +lean_ctor_set(x_59, 6, x_58); +lean_ctor_set_uint8(x_59, sizeof(void*)*7, x_51); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_48); +return x_60; +} +} +else +{ +uint8_t x_61; +lean_dec(x_3); +x_61 = !lean_is_exclusive(x_30); +if (x_61 == 0) +{ +return x_30; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_30, 0); +x_63 = lean_ctor_get(x_30, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_30); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_65 = l___private_Lean_Elab_Match_20__pushNewArg___closed__1; +x_66 = l_unreachable_x21___rarg(x_65); +x_67 = lean_apply_8(x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_67; +} +} +} +lean_object* l___private_Lean_Elab_Match_20__pushNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +lean_object* _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("explicit parameter is missing, unused named arguments "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_21__processExplicitArg___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_21__processExplicitArg___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_Match_21__processExplicitArg(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* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_3, 5); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_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_dec(x_1); +x_13 = lean_ctor_get(x_3, 4); +lean_inc(x_13); +lean_dec(x_3); +x_14 = x_13; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__4(x_15, x_14); +x_17 = x_16; +x_18 = l_Array_toList___rarg(x_17); +lean_dec(x_17); +x_19 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_18); +x_20 = l_Array_HasRepr___rarg___closed__1; +x_21 = lean_string_append(x_20, x_19); +lean_dec(x_19); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = l___private_Lean_Elab_Match_21__processExplicitArg___closed__3; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_25, 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_4); +return x_26; +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_3); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_3, 5); +lean_dec(x_28); +x_29 = lean_ctor_get(x_12, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_12, 1); +lean_inc(x_30); +lean_dec(x_12); +lean_ctor_set(x_3, 5, x_30); +x_31 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_2, x_3, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_32 = lean_ctor_get(x_3, 0); +x_33 = lean_ctor_get(x_3, 1); +x_34 = lean_ctor_get_uint8(x_3, sizeof(void*)*7); +x_35 = lean_ctor_get(x_3, 2); +x_36 = lean_ctor_get(x_3, 3); +x_37 = lean_ctor_get(x_3, 4); +x_38 = lean_ctor_get(x_3, 6); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_3); +x_39 = lean_ctor_get(x_12, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_12, 1); +lean_inc(x_40); +lean_dec(x_12); +x_41 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_41, 0, x_32); +lean_ctor_set(x_41, 1, x_33); +lean_ctor_set(x_41, 2, x_35); +lean_ctor_set(x_41, 3, x_36); +lean_ctor_set(x_41, 4, x_37); +lean_ctor_set(x_41, 5, x_40); +lean_ctor_set(x_41, 6, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*7, x_34); +x_42 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_2, x_41, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_42; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_21__processExplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_2); +lean_dec(x_2); +x_13 = l___private_Lean_Elab_Match_21__processExplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* _init_l___private_Lean_Elab_Match_22__processImplicitArg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__3; +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_Match_22__processImplicitArg(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* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_ctor_get_uint8(x_3, sizeof(void*)*7); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_13 = l_Lean_Elab_Term_getCurrMacroScope(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_Lean_Elab_Term_getMainModule___rarg(x_10, x_14); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l___private_Lean_Elab_Match_22__processImplicitArg___closed__1; +x_18 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_2, x_3, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = l___private_Lean_Elab_Match_21__processExplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_19; +} +} +} +lean_object* l___private_Lean_Elab_Match_22__processImplicitArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_2); +lean_dec(x_2); +x_13 = l___private_Lean_Elab_Match_22__processImplicitArg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_array_fget(x_2, x_3); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_LocalDecl_userName(x_1); +x_10 = lean_name_eq(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_3 = x_12; +goto _start; +} +else +{ +lean_object* x_14; +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_3); +return x_14; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_23__processCtorAppAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = l___private_Lean_Elab_Match_16__isDone(x_2); +if (x_11 == 0) +{ +uint8_t 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; 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; +x_12 = l___private_Lean_Elab_Match_18__isNextArgAccessible(x_2); +x_13 = l___private_Lean_Elab_Match_19__getNextParam(x_2); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +x_18 = lean_ctor_get_uint8(x_14, sizeof(void*)*7); +x_19 = lean_ctor_get(x_14, 2); +lean_inc(x_19); +x_20 = lean_ctor_get(x_14, 3); +lean_inc(x_20); +x_21 = lean_ctor_get(x_14, 4); +lean_inc(x_21); +x_22 = lean_ctor_get(x_14, 5); +lean_inc(x_22); +x_23 = lean_ctor_get(x_14, 6); +lean_inc(x_23); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1(x_15, x_21, x_24); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; lean_object* x_27; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +x_26 = l_Lean_LocalDecl_binderInfo(x_15); +lean_dec(x_15); +x_27 = lean_box(x_26); +switch (lean_obj_tag(x_27)) { +case 1: +{ +lean_object* x_28; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_28 = l___private_Lean_Elab_Match_22__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +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_2 = x_29; +x_10 = x_30; +goto _start; +} +else +{ +uint8_t x_32; +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_1); +x_32 = !lean_is_exclusive(x_28); +if (x_32 == 0) +{ +return x_28; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_28, 0); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_28); +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; +} +} +} +case 3: +{ +lean_object* x_36; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_36 = l___private_Lean_Elab_Match_22__processImplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +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_2 = x_37; +x_10 = x_38; +goto _start; +} +else +{ +uint8_t x_40; +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_1); +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) +{ +return x_36; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_36, 0); +x_42 = lean_ctor_get(x_36, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_36); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +default: +{ +lean_object* x_44; +lean_dec(x_27); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_44 = l___private_Lean_Elab_Match_21__processExplicitArg(x_1, x_12, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_2 = x_45; +x_10 = x_46; +goto _start; +} +else +{ +uint8_t x_48; +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_1); +x_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) +{ +return x_44; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_44, 0); +x_50 = lean_ctor_get(x_44, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_44); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_15); +x_52 = !lean_is_exclusive(x_14); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_53 = lean_ctor_get(x_14, 6); +lean_dec(x_53); +x_54 = lean_ctor_get(x_14, 5); +lean_dec(x_54); +x_55 = lean_ctor_get(x_14, 4); +lean_dec(x_55); +x_56 = lean_ctor_get(x_14, 3); +lean_dec(x_56); +x_57 = lean_ctor_get(x_14, 2); +lean_dec(x_57); +x_58 = lean_ctor_get(x_14, 1); +lean_dec(x_58); +x_59 = lean_ctor_get(x_14, 0); +lean_dec(x_59); +x_60 = lean_ctor_get(x_25, 0); +lean_inc(x_60); +lean_dec(x_25); +x_61 = l_Lean_Elab_Term_NamedArg_inhabited; +x_62 = lean_array_get(x_61, x_21, x_60); +x_63 = l_Array_eraseIdx___rarg(x_21, x_60); +lean_dec(x_60); +lean_ctor_set(x_14, 4, x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_65 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_12, x_14, x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_2 = x_66; +x_10 = x_67; +goto _start; +} +else +{ +uint8_t x_69; +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_1); +x_69 = !lean_is_exclusive(x_65); +if (x_69 == 0) +{ +return x_65; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_65, 0); +x_71 = lean_ctor_get(x_65, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_65); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +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_dec(x_14); +x_73 = lean_ctor_get(x_25, 0); +lean_inc(x_73); +lean_dec(x_25); +x_74 = l_Lean_Elab_Term_NamedArg_inhabited; +x_75 = lean_array_get(x_74, x_21, x_73); +x_76 = l_Array_eraseIdx___rarg(x_21, x_73); +lean_dec(x_73); +x_77 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_77, 0, x_16); +lean_ctor_set(x_77, 1, x_17); +lean_ctor_set(x_77, 2, x_19); +lean_ctor_set(x_77, 3, x_20); +lean_ctor_set(x_77, 4, x_76); +lean_ctor_set(x_77, 5, x_22); +lean_ctor_set(x_77, 6, x_23); +lean_ctor_set_uint8(x_77, sizeof(void*)*7, x_18); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_dec(x_75); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_79 = l___private_Lean_Elab_Match_20__pushNewArg(x_1, x_12, x_77, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_2 = x_80; +x_10 = x_81; +goto _start; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +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_1); +x_83 = lean_ctor_get(x_79, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_85 = x_79; +} else { + lean_dec_ref(x_79); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +} +} +else +{ +lean_object* x_87; +lean_dec(x_1); +x_87 = l___private_Lean_Elab_Match_17__finalize(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); +return x_87; +} +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_23__processCtorAppAux___main___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Match_23__processCtorAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Match_23__processCtorAppAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_1); +x_15 = lean_environment_find(x_14, x_1); +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_free_object(x_10); +x_16 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = l_Lean_getConstInfo___rarg___lambda__1___closed__3; +x_18 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l_Lean_getConstInfo___rarg___lambda__1___closed__5; +x_20 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_3); +lean_dec(x_1); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +lean_ctor_set(x_10, 0, x_22); +return x_10; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_1); +x_26 = lean_environment_find(x_25, x_1); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_27, 0, x_1); +x_28 = l_Lean_getConstInfo___rarg___lambda__1___closed__3; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Lean_getConstInfo___rarg___lambda__1___closed__5; +x_31 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_3); +lean_dec(x_1); +x_33 = lean_ctor_get(x_26, 0); +lean_inc(x_33); +lean_dec(x_26); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_24); +return x_34; +} +} +} +} +lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_10 = l_Lean_Expr_fvarId_x21(x_1); +x_11 = lean_st_ref_get(x_8, 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, 2); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_take(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_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_16, 2); +lean_dec(x_19); +x_20 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_16, 2, x_20); +x_21 = lean_st_ref_set(x_8, x_16, x_17); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +lean_inc(x_5); +x_23 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_10, x_5, x_6, x_7, x_8, x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +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 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +lean_dec(x_5); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_24); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_23, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_23, 1); +lean_inc(x_32); +lean_dec(x_23); +x_33 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_32); +lean_dec(x_5); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set_tag(x_33, 1); +lean_ctor_set(x_33, 0, x_31); +return x_33; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_16, 0); +x_39 = lean_ctor_get(x_16, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_16); +x_40 = l_Lean_TraceState_Inhabited___closed__1; +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_40); +x_42 = lean_st_ref_set(x_8, x_41, x_17); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +lean_inc(x_5); +x_44 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_10, x_5, x_6, x_7, x_8, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +lean_dec(x_5); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_45); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_51 = lean_ctor_get(x_44, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_44, 1); +lean_inc(x_52); +lean_dec(x_44); +x_53 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_52); +lean_dec(x_5); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; +} else { + lean_dec_ref(x_53); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; + lean_ctor_set_tag(x_56, 1); +} +lean_ctor_set(x_56, 0, x_51); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_1, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_13 = x_2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_array_fget(x_2, x_1); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_fset(x_2, x_1, x_16); +x_18 = x_15; +lean_inc(x_6); +lean_inc(x_4); +x_19 = l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__2(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_1, x_22); +x_24 = x_20; +x_25 = lean_array_fset(x_17, x_1, x_24); +lean_dec(x_1); +x_1 = x_23; +x_2 = x_25; +x_10 = x_21; +goto _start; +} +else +{ +uint8_t x_27; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_19); +if (x_27 == 0) +{ +return x_19; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___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) { +_start: +{ +lean_object* x_12; +x_12 = lean_apply_10(x_1, x_5, x_6, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg___lambda__1), 11, 4); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_3); +lean_closure_set(x_11, 2, x_4); +lean_closure_set(x_11, 3, x_5); +x_12 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, 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_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg), 10, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = x_8; +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3___boxed), 10, 2); +lean_closure_set(x_20, 0, x_19); +lean_closure_set(x_20, 1, x_18); +x_21 = x_20; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_22 = lean_apply_8(x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +if (lean_obj_tag(x_7) == 6) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_7, 0); +lean_inc(x_38); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = l_Array_empty___closed__1; +x_41 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_41, 0, x_2); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_23); +lean_ctor_set(x_41, 3, x_19); +lean_ctor_set(x_41, 4, x_4); +lean_ctor_set(x_41, 5, x_5); +lean_ctor_set(x_41, 6, x_40); +lean_ctor_set_uint8(x_41, sizeof(void*)*7, x_3); +x_42 = l___private_Lean_Elab_Match_23__processCtorAppAux___main(x_6, x_41, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_24); +return x_42; +} +else +{ +lean_object* x_43; +x_43 = lean_box(0); +x_25 = x_43; +goto block_37; +} +block_37: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_25); +x_26 = lean_st_ref_get(x_16, x_24); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_matchPatternAttr; +x_31 = l_Lean_TagAttribute_hasTag(x_30, x_29, x_1); +lean_dec(x_29); +if (x_31 == 0) +{ +lean_object* x_32; +lean_dec(x_23); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_32 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_28); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_box(0); +x_34 = l_Array_empty___closed__1; +x_35 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_35, 0, x_2); +lean_ctor_set(x_35, 1, x_33); +lean_ctor_set(x_35, 2, x_23); +lean_ctor_set(x_35, 3, x_19); +lean_ctor_set(x_35, 4, x_4); +lean_ctor_set(x_35, 5, x_5); +lean_ctor_set(x_35, 6, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*7, x_3); +x_36 = l___private_Lean_Elab_Match_23__processCtorAppAux___main(x_6, x_35, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_28); +return x_36; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_22); +if (x_44 == 0) +{ +return x_22; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_22, 0); +x_46 = lean_ctor_get(x_22, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_22); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_42; uint8_t x_43; +x_13 = l_Array_toList___rarg(x_4); +x_42 = l_Lean_identKind___closed__2; +lean_inc(x_2); +x_43 = l_Lean_Syntax_isOfKind(x_2, x_42); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = l___private_Lean_Elab_Term_13__isExplicit___closed__2; +lean_inc(x_2); +x_45 = l_Lean_Syntax_isOfKind(x_2, x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_47 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +return x_47; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = l_Lean_Syntax_getArgs(x_2); +x_53 = lean_array_get_size(x_52); +lean_dec(x_52); +x_54 = lean_unsigned_to_nat(2u); +x_55 = lean_nat_dec_eq(x_53, x_54); +lean_dec(x_53); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_56 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_57 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +return x_57; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_57); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_unsigned_to_nat(1u); +x_63 = l_Lean_Syntax_getArg(x_2, x_62); +lean_dec(x_2); +lean_inc(x_63); +x_64 = l_Lean_Syntax_isOfKind(x_63, x_42); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; uint8_t x_67; +lean_dec(x_63); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_65 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_66 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_65, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +return x_66; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_66, 0); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_66); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +else +{ +uint8_t x_71; lean_object* x_72; lean_object* x_73; +x_71 = 1; +x_72 = lean_box(x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_63); +lean_ctor_set(x_73, 1, x_72); +x_14 = x_73; +x_15 = x_12; +goto block_41; +} +} +} +} +else +{ +uint8_t x_74; lean_object* x_75; lean_object* x_76; +x_74 = 0; +x_75 = lean_box(x_74); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_2); +lean_ctor_set(x_76, 1, x_75); +x_14 = x_76; +x_15 = x_12; +goto block_41; +} +block_41: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +lean_inc(x_8); +lean_inc(x_6); +lean_inc(x_16); +x_18 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_21; +} +else +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +if (lean_obj_tag(x_22) == 4) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_6); +lean_inc(x_24); +x_25 = l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__1(x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_ConstantInfo_type(x_26); +x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1___boxed), 17, 7); +lean_closure_set(x_29, 0, x_24); +lean_closure_set(x_29, 1, x_16); +lean_closure_set(x_29, 2, x_17); +lean_closure_set(x_29, 3, x_3); +lean_closure_set(x_29, 4, x_13); +lean_closure_set(x_29, 5, x_1); +lean_closure_set(x_29, 6, x_26); +x_30 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__4___rarg(x_28, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_27); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 0) +{ +return x_25; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_25, 0); +x_33 = lean_ctor_get(x_25, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_25); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_22); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_1); +x_35 = lean_ctor_get(x_18, 1); +lean_inc(x_35); +lean_dec(x_18); +x_36 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_36; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_18); +if (x_37 == 0) +{ +return x_18; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_18, 0); +x_39 = lean_ctor_get(x_18, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_18); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +} +lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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_5); +lean_dec(x_4); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_Meta_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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_getFVarLocalDecl___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___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); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +uint8_t x_18; lean_object* x_19; +x_18 = lean_unbox(x_3); +lean_dec(x_3); +x_19 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1(x_1, x_2, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_1); +return x_19; +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Term_CollectPatternVars_CtorApp_processCtorApp(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_4); +return x_13; +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_inc(x_4); +x_11 = l_Lean_Elab_Term_expandApp(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(x_1, x_15, x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +lean_dec(x_17); +return x_18; +} +else +{ +uint8_t x_19; +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_1); +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +return x_11; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_11); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Term_CollectPatternVars_processCtorApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Array_empty___closed__1; +x_12 = l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(x_1, x_2, x_11, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___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; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_11 = lean_ctor_get(x_8, 3); +x_12 = l_Lean_replaceRef(x_1, x_11); +x_13 = lean_ctor_get(x_4, 6); +lean_inc(x_13); +lean_inc(x_13); +x_14 = l_Lean_Elab_getBetterRef(x_12, x_13); +lean_dec(x_12); +x_15 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +lean_dec(x_4); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +lean_dec(x_13); +x_16 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set_tag(x_16, 1); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_14); +lean_ctor_set(x_22, 1, x_20); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = l_Lean_Elab_addMacroStack(x_2, x_13); +x_25 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_24, x_6, x_7, x_8, x_9, x_10); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_14); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set_tag(x_25, 1); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_25, 0); +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_14); +lean_ctor_set(x_31, 1, x_29); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg___boxed), 10, 0); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid pattern, variable '"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' occurred more than once"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid pattern variable, must be atomic"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___closed__7; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_24__processVar___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_24__processVar___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_Match_24__processVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_54; +x_54 = l_Lean_Syntax_isIdent(x_1); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_56 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_1, x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +return x_56; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_56); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +else +{ +x_10 = x_9; +goto block_53; +} +block_53: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_42; uint8_t x_43; +x_11 = l_Lean_Syntax_getId(x_1); +x_42 = l_Lean_Name_eraseMacroScopes(x_11); +x_43 = l_Lean_Name_isAtomic(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +lean_dec(x_11); +lean_dec(x_1); +x_44 = l___private_Lean_Elab_Match_24__processVar___closed__9; +x_45 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +return x_45; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_45); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_st_ref_get(x_2, x_10); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_12 = x_51; +x_13 = x_52; +goto block_41; +} +block_41: +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_NameSet_contains(x_14, x_11); +lean_dec(x_14); +if (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; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_3); +x_16 = lean_st_ref_take(x_2, x_13); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = lean_box(0); +lean_inc(x_11); +x_21 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_19, x_11, x_20); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_23, 0, x_11); +x_24 = lean_array_push(x_22, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_st_ref_set(x_2, x_25, x_18); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set(x_26, 0, x_1); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_1); +x_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_11); +x_32 = l___private_Lean_Elab_Match_24__processVar___closed__3; +x_33 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l___private_Lean_Elab_Match_24__processVar___closed__6; +x_35 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(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_1); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Match_24__processVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_24__processVar(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); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Match_25__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_2); +x_15 = l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_14); +lean_dec(x_1); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l___private_Lean_Elab_Match_24__processVar(x_2, x_3, 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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +lean_dec(x_16); +if (lean_obj_tag(x_19) == 4) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_28; +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_dec(x_15); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_21); +lean_inc(x_14); +x_28 = lean_environment_find(x_14, x_21); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +lean_dec(x_21); +lean_dec(x_14); +lean_dec(x_2); +lean_dec(x_1); +x_29 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +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_29; +} +else +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +if (lean_obj_tag(x_30) == 6) +{ +lean_object* x_31; +lean_dec(x_30); +lean_dec(x_21); +lean_dec(x_14); +x_31 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_31; +} +else +{ +lean_object* x_32; +lean_dec(x_30); +x_32 = lean_box(0); +x_22 = x_32; +goto block_27; +} +} +block_27: +{ +lean_object* x_23; uint8_t x_24; +lean_dec(x_22); +x_23 = l_Lean_matchPatternAttr; +x_24 = l_Lean_TagAttribute_hasTag(x_23, x_14, x_21); +lean_dec(x_21); +lean_dec(x_14); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_1); +x_25 = l___private_Lean_Elab_Match_24__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +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_25; +} +else +{ +lean_object* x_26; +x_26 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_26; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_19); +lean_dec(x_14); +lean_dec(x_1); +x_33 = lean_ctor_get(x_15, 1); +lean_inc(x_33); +lean_dec(x_15); +x_34 = l___private_Lean_Elab_Match_24__processVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +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_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_14); +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_35 = !lean_is_exclusive(x_15); +if (x_35 == 0) +{ +return x_15; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_15, 0); +x_37 = lean_ctor_get(x_15, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_15); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___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* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -4922,327 +6850,23 @@ return x_35; } } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Array_empty___closed__1; -x_13 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(x_1, x_2, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___main___spec__2(x_1, x_2, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_11 = lean_ctor_get(x_8, 3); -x_12 = l_Lean_replaceRef(x_1, x_11); -x_13 = lean_ctor_get(x_4, 6); -lean_inc(x_13); -lean_inc(x_13); -x_14 = l_Lean_Elab_getBetterRef(x_12, x_13); -lean_dec(x_12); -x_15 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); -lean_dec(x_4); -if (x_15 == 0) -{ -lean_object* x_16; uint8_t x_17; -lean_dec(x_13); -x_16 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_18); -lean_ctor_set_tag(x_16, 1); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_16, 0); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_16); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_14); -lean_ctor_set(x_22, 1, x_20); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = l_Lean_Elab_addMacroStack(x_2, x_13); -x_25 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_24, x_6, x_7, x_8, x_9, x_10); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_14); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set_tag(x_25, 1); -lean_ctor_set(x_25, 0, x_28); -return x_25; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_14); -lean_ctor_set(x_31, 1, x_29); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -} -} -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg___boxed), 10, 0); -return x_2; -} -} -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("namedPattern"); -return x_1; -} -} -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("named parameters are not allowed in patterns"); -return x_1; -} -} -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* 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) -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -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_11); -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_2, x_3); -x_17 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; -lean_inc(x_1); -x_18 = lean_name_mk_string(x_1, x_17); -lean_inc(x_16); -x_19 = l_Lean_Syntax_isOfKind(x_16, x_18); -lean_dec(x_18); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_16); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_add(x_3, x_20); -lean_dec(x_3); -x_3 = x_21; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -lean_dec(x_3); -lean_dec(x_1); -x_23 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4; -x_24 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_16, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_16); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -return x_24; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_24); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_3); -x_13 = lean_nat_dec_lt(x_2, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -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_2); -x_14 = x_3; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_11); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_array_fget(x_3, x_2); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_array_fset(x_3, x_2, x_17); -x_19 = x_16; -x_20 = lean_nat_dec_lt(x_2, x_1); -if (x_20 == 0) -{ -lean_object* x_21; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_21 = l___private_Lean_Elab_Match_20__collect___main(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_2, x_24); -x_26 = x_22; -x_27 = lean_array_fset(x_18, x_2, x_26); -lean_dec(x_2); -x_2 = x_25; -x_3 = x_27; -x_11 = x_23; -goto _start; -} -else -{ -uint8_t x_29; -lean_dec(x_18); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) -{ -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_21); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_unsigned_to_nat(1u); -x_34 = lean_nat_add(x_2, x_33); -x_35 = x_19; -x_36 = lean_array_fset(x_18, x_2, x_35); -lean_dec(x_2); -x_2 = x_34; -x_3 = x_36; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_26__collect___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_unsigned_to_nat(3u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_12 = l___private_Lean_Elab_Match_20__collect___main(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_Match_26__collect___main(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -5295,7 +6919,7 @@ return x_23; } } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__1() { _start: { lean_object* x_1; @@ -5303,45 +6927,17 @@ x_1 = lean_mk_string("anonymousCtor"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_Match_20__collect___main___closed__1; +x_2 = l___private_Lean_Elab_Match_26__collect___main___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("explicitUniv"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_Match_20__collect___main___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__3() { _start: { lean_object* x_1; @@ -5349,42 +6945,42 @@ x_1 = lean_mk_string("invalid pattern, notation is ambiguous"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_20__collect___main___closed__6; +x_1 = l___private_Lean_Elab_Match_26__collect___main___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_20__collect___main___closed__7; +x_1 = l___private_Lean_Elab_Match_26__collect___main___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__9() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; +x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__10() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; +x_1 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_20__collect___main___closed__9; +x_3 = l___private_Lean_Elab_Match_26__collect___main___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5392,49 +6988,49 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__11() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1; +x_2 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__12() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_20__collect___main___closed__11; +x_2 = l___private_Lean_Elab_Match_26__collect___main___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__13() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_20__collect___main___closed__12; +x_2 = l___private_Lean_Elab_Match_26__collect___main___closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__14() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__11() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main), 9, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_26__collect___main), 9, 0); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__15() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__12() { _start: { lean_object* x_1; @@ -5442,35 +7038,35 @@ x_1 = lean_mk_string("invalid struct instance pattern, 'with' is not allowed in return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__16() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_20__collect___main___closed__15; +x_1 = l___private_Lean_Elab_Match_26__collect___main___closed__12; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__17() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_20__collect___main___closed__16; +x_1 = l___private_Lean_Elab_Match_26__collect___main___closed__13; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___closed__18() { +lean_object* _init_l___private_Lean_Elab_Match_26__collect___main___closed__15() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main___lambda__1), 9, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_26__collect___main___lambda__1), 9, 0); return x_1; } } -lean_object* l___private_Lean_Elab_Match_20__collect___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_26__collect___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) { _start: { switch (lean_obj_tag(x_1)) { @@ -5498,33 +7094,33 @@ lean_ctor_set(x_7, 3, x_18); x_19 = lean_st_ref_take(x_4, x_9); if (x_13 == 0) { -lean_object* x_1267; lean_object* x_1268; uint8_t x_1269; -x_1267 = lean_ctor_get(x_19, 0); -lean_inc(x_1267); -x_1268 = lean_ctor_get(x_19, 1); -lean_inc(x_1268); +lean_object* x_1049; lean_object* x_1050; uint8_t x_1051; +x_1049 = lean_ctor_get(x_19, 0); +lean_inc(x_1049); +x_1050 = lean_ctor_get(x_19, 1); +lean_inc(x_1050); lean_dec(x_19); -x_1269 = 0; -x_20 = x_1269; -x_21 = x_1267; -x_22 = x_1268; -goto block_1266; +x_1051 = 0; +x_20 = x_1051; +x_21 = x_1049; +x_22 = x_1050; +goto block_1048; } else { -lean_object* x_1270; lean_object* x_1271; uint8_t x_1272; -x_1270 = lean_ctor_get(x_19, 0); -lean_inc(x_1270); -x_1271 = lean_ctor_get(x_19, 1); -lean_inc(x_1271); +lean_object* x_1052; lean_object* x_1053; uint8_t x_1054; +x_1052 = lean_ctor_get(x_19, 0); +lean_inc(x_1052); +x_1053 = lean_ctor_get(x_19, 1); +lean_inc(x_1053); lean_dec(x_19); -x_1272 = 1; -x_20 = x_1272; -x_21 = x_1270; -x_22 = x_1271; -goto block_1266; +x_1054 = 1; +x_20 = x_1054; +x_21 = x_1052; +x_22 = x_1053; +goto block_1048; } -block_1266: +block_1048: { uint8_t x_23; x_23 = !lean_is_exclusive(x_21); @@ -5553,7 +7149,7 @@ lean_ctor_set(x_3, 7, x_24); if (x_20 == 0) { lean_object* x_33; uint8_t x_34; -x_33 = l___private_Lean_Elab_Match_20__collect___main___closed__2; +x_33 = l___private_Lean_Elab_Match_26__collect___main___closed__2; x_34 = lean_name_eq(x_10, x_33); if (x_34 == 0) { @@ -5574,12 +7170,12 @@ if (x_40 == 0) { lean_object* x_41; uint8_t x_42; lean_dec(x_11); -x_41 = l___private_Lean_Elab_Match_20__collect___main___closed__4; +x_41 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; x_42 = lean_name_eq(x_10, x_41); if (x_42 == 0) { lean_object* x_43; uint8_t x_44; -x_43 = l___private_Lean_Elab_Match_20__collect___main___closed__5; +x_43 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; x_44 = lean_name_eq(x_10, x_43); if (x_44 == 0) { @@ -5612,7 +7208,7 @@ lean_dec(x_10); if (x_54 == 0) { lean_object* x_55; -x_55 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_55 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5624,7 +7220,7 @@ return x_55; else { lean_object* x_56; lean_object* x_57; -x_56 = l___private_Lean_Elab_Match_20__collect___main___closed__8; +x_56 = l___private_Lean_Elab_Match_26__collect___main___closed__5; x_57 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); @@ -5693,126 +7289,125 @@ return x_27; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_free_object(x_27); lean_dec(x_10); x_58 = lean_unsigned_to_nat(0u); x_59 = l_Lean_Syntax_getArg(x_1, x_58); -x_60 = l_Lean_Syntax_getId(x_59); -x_61 = 0; lean_inc(x_3); -x_62 = l___private_Lean_Elab_Match_15__processVar(x_60, x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_62) == 0) +lean_inc(x_59); +x_60 = l___private_Lean_Elab_Match_24__processVar(x_59, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = lean_unsigned_to_nat(2u); -x_65 = l_Lean_Syntax_getArg(x_1, x_64); -x_66 = !lean_is_exclusive(x_1); -if (x_66 == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_unsigned_to_nat(2u); +x_63 = l_Lean_Syntax_getArg(x_1, x_62); +x_64 = !lean_is_exclusive(x_1); +if (x_64 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_1, 1); -lean_dec(x_67); -x_68 = lean_ctor_get(x_1, 0); -lean_dec(x_68); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_1, 1); +lean_dec(x_65); +x_66 = lean_ctor_get(x_1, 0); +lean_dec(x_66); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_69 = l___private_Lean_Elab_Match_20__collect___main(x_65, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_63); -if (lean_obj_tag(x_69) == 0) +x_67 = l___private_Lean_Elab_Match_26__collect___main(x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +if (lean_obj_tag(x_67) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_71); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +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 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_69); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_74); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_72); lean_dec(x_8); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_77 = lean_ctor_get(x_75, 0); -x_78 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_79 = l_Lean_addMacroScope(x_77, x_78, x_73); -x_80 = l_Lean_SourceInfo_inhabited___closed__1; -x_81 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_82 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_83 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -lean_ctor_set(x_83, 2, x_79); -lean_ctor_set(x_83, 3, x_82); -x_84 = l_Array_empty___closed__1; -x_85 = lean_array_push(x_84, x_83); -x_86 = lean_array_push(x_84, x_59); -x_87 = lean_array_push(x_86, x_70); -x_88 = l_Lean_nullKind___closed__2; -lean_ctor_set(x_1, 1, x_87); -lean_ctor_set(x_1, 0, x_88); -x_89 = lean_array_push(x_85, x_1); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_12); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_75, 0, x_90); -return x_75; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_75 = lean_ctor_get(x_73, 0); +x_76 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_77 = l_Lean_addMacroScope(x_75, x_76, x_71); +x_78 = l_Lean_SourceInfo_inhabited___closed__1; +x_79 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_80 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_81 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +lean_ctor_set(x_81, 2, x_77); +lean_ctor_set(x_81, 3, x_80); +x_82 = l_Array_empty___closed__1; +x_83 = lean_array_push(x_82, x_81); +x_84 = lean_array_push(x_82, x_59); +x_85 = lean_array_push(x_84, x_68); +x_86 = l_Lean_nullKind___closed__2; +lean_ctor_set(x_1, 1, x_85); +lean_ctor_set(x_1, 0, x_86); +x_87 = lean_array_push(x_83, x_1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_12); +lean_ctor_set(x_88, 1, x_87); +lean_ctor_set(x_73, 0, x_88); +return x_73; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_91 = lean_ctor_get(x_75, 0); -x_92 = lean_ctor_get(x_75, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_75); -x_93 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_94 = l_Lean_addMacroScope(x_91, x_93, x_73); -x_95 = l_Lean_SourceInfo_inhabited___closed__1; -x_96 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_97 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_98 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -lean_ctor_set(x_98, 2, x_94); -lean_ctor_set(x_98, 3, x_97); -x_99 = l_Array_empty___closed__1; -x_100 = lean_array_push(x_99, x_98); -x_101 = lean_array_push(x_99, x_59); -x_102 = lean_array_push(x_101, x_70); -x_103 = l_Lean_nullKind___closed__2; -lean_ctor_set(x_1, 1, x_102); -lean_ctor_set(x_1, 0, x_103); -x_104 = lean_array_push(x_100, x_1); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_12); -lean_ctor_set(x_105, 1, x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_92); -return x_106; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_89 = lean_ctor_get(x_73, 0); +x_90 = lean_ctor_get(x_73, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_73); +x_91 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_92 = l_Lean_addMacroScope(x_89, x_91, x_71); +x_93 = l_Lean_SourceInfo_inhabited___closed__1; +x_94 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_95 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_96 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +lean_ctor_set(x_96, 2, x_92); +lean_ctor_set(x_96, 3, x_95); +x_97 = l_Array_empty___closed__1; +x_98 = lean_array_push(x_97, x_96); +x_99 = lean_array_push(x_97, x_59); +x_100 = lean_array_push(x_99, x_68); +x_101 = l_Lean_nullKind___closed__2; +lean_ctor_set(x_1, 1, x_100); +lean_ctor_set(x_1, 0, x_101); +x_102 = lean_array_push(x_98, x_1); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_12); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_90); +return x_104; } } else { -uint8_t x_107; +uint8_t x_105; lean_free_object(x_1); lean_dec(x_59); lean_dec(x_3); @@ -5821,29 +7416,29 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_107 = !lean_is_exclusive(x_69); -if (x_107 == 0) +x_105 = !lean_is_exclusive(x_67); +if (x_105 == 0) { -return x_69; +return x_67; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_69, 0); -x_109 = lean_ctor_get(x_69, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_69); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_67, 0); +x_107 = lean_ctor_get(x_67, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_67); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; } } } else { -lean_object* x_111; +lean_object* x_109; lean_dec(x_1); lean_inc(x_8); lean_inc(x_7); @@ -5851,74 +7446,74 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_111 = l___private_Lean_Elab_Match_20__collect___main(x_65, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_63); -if (lean_obj_tag(x_111) == 0) +x_109 = l___private_Lean_Elab_Match_26__collect___main(x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; 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; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_113); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; 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; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_111); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -x_117 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_116); +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_Elab_Term_getMainModule___rarg(x_8, x_114); lean_dec(x_8); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_120 = x_117; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; } else { - lean_dec_ref(x_117); - x_120 = lean_box(0); + lean_dec_ref(x_115); + x_118 = lean_box(0); } -x_121 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_122 = l_Lean_addMacroScope(x_118, x_121, x_115); -x_123 = l_Lean_SourceInfo_inhabited___closed__1; -x_124 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_125 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_126 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_126, 0, x_123); -lean_ctor_set(x_126, 1, x_124); -lean_ctor_set(x_126, 2, x_122); -lean_ctor_set(x_126, 3, x_125); -x_127 = l_Array_empty___closed__1; -x_128 = lean_array_push(x_127, x_126); -x_129 = lean_array_push(x_127, x_59); -x_130 = lean_array_push(x_129, x_112); -x_131 = l_Lean_nullKind___closed__2; +x_119 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_120 = l_Lean_addMacroScope(x_116, x_119, x_113); +x_121 = l_Lean_SourceInfo_inhabited___closed__1; +x_122 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_123 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_124 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_124, 0, x_121); +lean_ctor_set(x_124, 1, x_122); +lean_ctor_set(x_124, 2, x_120); +lean_ctor_set(x_124, 3, x_123); +x_125 = l_Array_empty___closed__1; +x_126 = lean_array_push(x_125, x_124); +x_127 = lean_array_push(x_125, x_59); +x_128 = lean_array_push(x_127, x_110); +x_129 = l_Lean_nullKind___closed__2; +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +x_131 = lean_array_push(x_126, x_130); x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_130); -x_133 = lean_array_push(x_128, x_132); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_12); -lean_ctor_set(x_134, 1, x_133); -if (lean_is_scalar(x_120)) { - x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_12); +lean_ctor_set(x_132, 1, x_131); +if (lean_is_scalar(x_118)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_135 = x_120; + x_133 = x_118; } -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_119); -return x_135; +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_117); +return x_133; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_59); lean_dec(x_3); lean_dec(x_7); @@ -5926,32 +7521,32 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_136 = lean_ctor_get(x_111, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_111, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_138 = x_111; +x_134 = lean_ctor_get(x_109, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_109, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_136 = x_109; } else { - lean_dec_ref(x_111); - x_138 = lean_box(0); + lean_dec_ref(x_109); + x_136 = lean_box(0); } -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_139 = x_138; + x_137 = x_136; } -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } } else { -uint8_t x_140; +uint8_t x_138; lean_dec(x_59); lean_dec(x_3); lean_dec(x_7); @@ -5961,118 +7556,72 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_140 = !lean_is_exclusive(x_62); -if (x_140 == 0) +x_138 = !lean_is_exclusive(x_60); +if (x_138 == 0) { -return x_62; +return x_60; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_62, 0); -x_142 = lean_ctor_get(x_62, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_62); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_60, 0); +x_140 = lean_ctor_get(x_60, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_60); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } } else { -lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_free_object(x_27); lean_dec(x_10); -x_144 = lean_unsigned_to_nat(0u); -x_145 = l_Lean_Syntax_getArg(x_1, x_144); -x_146 = 1; -x_147 = l___private_Lean_Elab_Match_16__processIdAux(x_145, x_146, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_2); -if (lean_obj_tag(x_147) == 0) +x_142 = lean_unsigned_to_nat(0u); +x_143 = l_Lean_Syntax_getArg(x_1, x_142); +lean_dec(x_1); +x_144 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_145 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_144, x_143, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +return x_145; +} +} +else { -uint8_t x_148; -x_148 = !lean_is_exclusive(x_147); +lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_146 = l_Lean_Syntax_inhabited; +x_147 = lean_array_get(x_146, x_11, x_25); +x_148 = l_Lean_Syntax_isNone(x_147); if (x_148 == 0) { -lean_object* x_149; -x_149 = lean_ctor_get(x_147, 0); -lean_dec(x_149); -lean_ctor_set(x_147, 0, x_1); -return x_147; -} -else +uint8_t x_149; +lean_free_object(x_27); +x_149 = !lean_is_exclusive(x_1); +if (x_149 == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_147, 1); -lean_inc(x_150); -lean_dec(x_147); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_1); -lean_ctor_set(x_151, 1, x_150); -return x_151; -} -} -else -{ -uint8_t x_152; -lean_dec(x_1); -x_152 = !lean_is_exclusive(x_147); -if (x_152 == 0) -{ -return x_147; -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_147, 0); -x_154 = lean_ctor_get(x_147, 1); -lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_147); -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -return x_155; -} -} -} -} -else +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_ctor_get(x_1, 1); +lean_dec(x_150); +x_151 = lean_ctor_get(x_1, 0); +lean_dec(x_151); +x_152 = lean_unsigned_to_nat(0u); +x_153 = l_Lean_Syntax_getArg(x_147, x_152); +x_154 = l_Lean_Syntax_getArg(x_147, x_25); +x_155 = l_Lean_Syntax_isNone(x_154); +if (x_155 == 0) { lean_object* x_156; lean_object* x_157; uint8_t x_158; -x_156 = l_Lean_Syntax_inhabited; -x_157 = lean_array_get(x_156, x_11, x_25); -x_158 = l_Lean_Syntax_isNone(x_157); +x_156 = l_Lean_Syntax_getArg(x_154, x_152); +x_157 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_156); +x_158 = l_Lean_Syntax_isOfKind(x_156, x_157); if (x_158 == 0) { -uint8_t x_159; -lean_free_object(x_27); -x_159 = !lean_is_exclusive(x_1); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -x_160 = lean_ctor_get(x_1, 1); -lean_dec(x_160); -x_161 = lean_ctor_get(x_1, 0); -lean_dec(x_161); -x_162 = lean_unsigned_to_nat(0u); -x_163 = l_Lean_Syntax_getArg(x_157, x_162); -x_164 = l_Lean_Syntax_getArg(x_157, x_25); -x_165 = l_Lean_Syntax_isNone(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_166 = l_Lean_Syntax_getArg(x_164, x_162); -x_167 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_166); -x_168 = l_Lean_Syntax_isOfKind(x_166, x_167); -if (x_168 == 0) -{ -lean_object* x_169; +lean_object* x_159; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -6080,103 +7629,103 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_169 = l___private_Lean_Elab_Match_20__collect___main(x_163, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_169) == 0) +x_159 = l___private_Lean_Elab_Match_26__collect___main(x_153, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_159) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = l_Lean_Syntax_setArg(x_157, x_162, x_170); -x_173 = l_Lean_Syntax_getArg(x_166, x_25); -x_174 = l_Lean_Syntax_getArgs(x_173); -lean_dec(x_173); -x_175 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_176 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_174, x_175, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_171); -lean_dec(x_174); -if (lean_obj_tag(x_176) == 0) -{ -uint8_t x_177; -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) -{ -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; -x_178 = lean_ctor_get(x_176, 0); -x_179 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_178); -lean_ctor_set(x_1, 0, x_179); -x_180 = l_Lean_Syntax_setArg(x_166, x_25, x_1); -x_181 = l_Lean_Syntax_setArg(x_164, x_162, x_180); -x_182 = l_Lean_Syntax_setArg(x_172, x_25, x_181); -x_183 = lean_array_set(x_11, x_25, x_182); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_10); -lean_ctor_set(x_184, 1, x_183); -lean_ctor_set(x_176, 0, x_184); -return x_176; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_185 = lean_ctor_get(x_176, 0); -x_186 = lean_ctor_get(x_176, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_176); -x_187 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_185); -lean_ctor_set(x_1, 0, x_187); -x_188 = l_Lean_Syntax_setArg(x_166, x_25, x_1); -x_189 = l_Lean_Syntax_setArg(x_164, x_162, x_188); -x_190 = l_Lean_Syntax_setArg(x_172, x_25, x_189); -x_191 = lean_array_set(x_11, x_25, x_190); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_10); -lean_ctor_set(x_192, 1, x_191); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_186); -return x_193; -} -} -else -{ -uint8_t x_194; -lean_dec(x_172); -lean_dec(x_166); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = l_Lean_Syntax_setArg(x_147, x_152, x_160); +x_163 = l_Lean_Syntax_getArg(x_156, x_25); +x_164 = l_Lean_Syntax_getArgs(x_163); +lean_dec(x_163); +x_165 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_166 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_164, x_165, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_161); lean_dec(x_164); +if (lean_obj_tag(x_166) == 0) +{ +uint8_t x_167; +x_167 = !lean_is_exclusive(x_166); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_168 = lean_ctor_get(x_166, 0); +x_169 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_168); +lean_ctor_set(x_1, 0, x_169); +x_170 = l_Lean_Syntax_setArg(x_156, x_25, x_1); +x_171 = l_Lean_Syntax_setArg(x_154, x_152, x_170); +x_172 = l_Lean_Syntax_setArg(x_162, x_25, x_171); +x_173 = lean_array_set(x_11, x_25, x_172); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_10); +lean_ctor_set(x_174, 1, x_173); +lean_ctor_set(x_166, 0, x_174); +return x_166; +} +else +{ +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; +x_175 = lean_ctor_get(x_166, 0); +x_176 = lean_ctor_get(x_166, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_166); +x_177 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_175); +lean_ctor_set(x_1, 0, x_177); +x_178 = l_Lean_Syntax_setArg(x_156, x_25, x_1); +x_179 = l_Lean_Syntax_setArg(x_154, x_152, x_178); +x_180 = l_Lean_Syntax_setArg(x_162, x_25, x_179); +x_181 = lean_array_set(x_11, x_25, x_180); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_10); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_176); +return x_183; +} +} +else +{ +uint8_t x_184; +lean_dec(x_162); +lean_dec(x_156); +lean_dec(x_154); lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); -x_194 = !lean_is_exclusive(x_176); -if (x_194 == 0) +x_184 = !lean_is_exclusive(x_166); +if (x_184 == 0) { -return x_176; +return x_166; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_176, 0); -x_196 = lean_ctor_get(x_176, 1); -lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_176); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -return x_197; -} -} -} -else -{ -uint8_t x_198; +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_166, 0); +x_186 = lean_ctor_get(x_166, 1); +lean_inc(x_186); +lean_inc(x_185); lean_dec(x_166); -lean_dec(x_164); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; +} +} +} +else +{ +uint8_t x_188; +lean_dec(x_156); +lean_dec(x_154); lean_free_object(x_1); -lean_dec(x_157); +lean_dec(x_147); lean_dec(x_3); lean_dec(x_7); lean_dec(x_11); @@ -6186,173 +7735,173 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_198 = !lean_is_exclusive(x_169); -if (x_198 == 0) +x_188 = !lean_is_exclusive(x_159); +if (x_188 == 0) { -return x_169; +return x_159; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_169, 0); -x_200 = lean_ctor_get(x_169, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_169); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_159, 0); +x_190 = lean_ctor_get(x_159, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_159); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; +} +} +} +else +{ +lean_object* x_192; +lean_dec(x_156); +lean_dec(x_154); +x_192 = l___private_Lean_Elab_Match_26__collect___main(x_153, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_192) == 0) +{ +uint8_t x_193; +x_193 = !lean_is_exclusive(x_192); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_192, 0); +x_195 = l_Lean_Syntax_setArg(x_147, x_152, x_194); +x_196 = lean_array_set(x_11, x_25, x_195); +lean_ctor_set(x_1, 1, x_196); +lean_ctor_set(x_192, 0, x_1); +return x_192; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_197 = lean_ctor_get(x_192, 0); +x_198 = lean_ctor_get(x_192, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_192); +x_199 = l_Lean_Syntax_setArg(x_147, x_152, x_197); +x_200 = lean_array_set(x_11, x_25, x_199); +lean_ctor_set(x_1, 1, x_200); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_1); +lean_ctor_set(x_201, 1, x_198); return x_201; } } -} else { -lean_object* x_202; -lean_dec(x_166); -lean_dec(x_164); -x_202 = l___private_Lean_Elab_Match_20__collect___main(x_163, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_202) == 0) -{ -uint8_t x_203; -x_203 = !lean_is_exclusive(x_202); -if (x_203 == 0) -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_202, 0); -x_205 = l_Lean_Syntax_setArg(x_157, x_162, x_204); -x_206 = lean_array_set(x_11, x_25, x_205); -lean_ctor_set(x_1, 1, x_206); -lean_ctor_set(x_202, 0, x_1); -return x_202; -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_207 = lean_ctor_get(x_202, 0); -x_208 = lean_ctor_get(x_202, 1); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_202); -x_209 = l_Lean_Syntax_setArg(x_157, x_162, x_207); -x_210 = lean_array_set(x_11, x_25, x_209); -lean_ctor_set(x_1, 1, x_210); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_1); -lean_ctor_set(x_211, 1, x_208); -return x_211; -} -} -else -{ -uint8_t x_212; +uint8_t x_202; lean_free_object(x_1); -lean_dec(x_157); +lean_dec(x_147); lean_dec(x_11); lean_dec(x_10); -x_212 = !lean_is_exclusive(x_202); -if (x_212 == 0) +x_202 = !lean_is_exclusive(x_192); +if (x_202 == 0) { -return x_202; +return x_192; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_202, 0); -x_214 = lean_ctor_get(x_202, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_202); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_192, 0); +x_204 = lean_ctor_get(x_192, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_192); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +} +} +else +{ +lean_object* x_206; +lean_dec(x_154); +x_206 = l___private_Lean_Elab_Match_26__collect___main(x_153, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_206); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_206, 0); +x_209 = l_Lean_Syntax_setArg(x_147, x_152, x_208); +x_210 = lean_array_set(x_11, x_25, x_209); +lean_ctor_set(x_1, 1, x_210); +lean_ctor_set(x_206, 0, x_1); +return x_206; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_206, 0); +x_212 = lean_ctor_get(x_206, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_206); +x_213 = l_Lean_Syntax_setArg(x_147, x_152, x_211); +x_214 = lean_array_set(x_11, x_25, x_213); +lean_ctor_set(x_1, 1, x_214); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_1); +lean_ctor_set(x_215, 1, x_212); return x_215; } } -} -} else { -lean_object* x_216; -lean_dec(x_164); -x_216 = l___private_Lean_Elab_Match_20__collect___main(x_163, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_216) == 0) -{ -uint8_t x_217; -x_217 = !lean_is_exclusive(x_216); -if (x_217 == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_216, 0); -x_219 = l_Lean_Syntax_setArg(x_157, x_162, x_218); -x_220 = lean_array_set(x_11, x_25, x_219); -lean_ctor_set(x_1, 1, x_220); -lean_ctor_set(x_216, 0, x_1); -return x_216; -} -else -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_221 = lean_ctor_get(x_216, 0); -x_222 = lean_ctor_get(x_216, 1); -lean_inc(x_222); -lean_inc(x_221); -lean_dec(x_216); -x_223 = l_Lean_Syntax_setArg(x_157, x_162, x_221); -x_224 = lean_array_set(x_11, x_25, x_223); -lean_ctor_set(x_1, 1, x_224); -x_225 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_225, 0, x_1); -lean_ctor_set(x_225, 1, x_222); -return x_225; -} -} -else -{ -uint8_t x_226; +uint8_t x_216; lean_free_object(x_1); -lean_dec(x_157); +lean_dec(x_147); lean_dec(x_11); lean_dec(x_10); -x_226 = !lean_is_exclusive(x_216); +x_216 = !lean_is_exclusive(x_206); +if (x_216 == 0) +{ +return x_206; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_217 = lean_ctor_get(x_206, 0); +x_218 = lean_ctor_get(x_206, 1); +lean_inc(x_218); +lean_inc(x_217); +lean_dec(x_206); +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +return x_219; +} +} +} +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +lean_dec(x_1); +x_220 = lean_unsigned_to_nat(0u); +x_221 = l_Lean_Syntax_getArg(x_147, x_220); +x_222 = l_Lean_Syntax_getArg(x_147, x_25); +x_223 = l_Lean_Syntax_isNone(x_222); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; uint8_t x_226; +x_224 = l_Lean_Syntax_getArg(x_222, x_220); +x_225 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_224); +x_226 = l_Lean_Syntax_isOfKind(x_224, x_225); if (x_226 == 0) { -return x_216; -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_216, 0); -x_228 = lean_ctor_get(x_216, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_216); -x_229 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_229, 0, x_227); -lean_ctor_set(x_229, 1, x_228); -return x_229; -} -} -} -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; -lean_dec(x_1); -x_230 = lean_unsigned_to_nat(0u); -x_231 = l_Lean_Syntax_getArg(x_157, x_230); -x_232 = l_Lean_Syntax_getArg(x_157, x_25); -x_233 = l_Lean_Syntax_isNone(x_232); -if (x_233 == 0) -{ -lean_object* x_234; lean_object* x_235; uint8_t x_236; -x_234 = l_Lean_Syntax_getArg(x_232, x_230); -x_235 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_234); -x_236 = l_Lean_Syntax_isOfKind(x_234, x_235); -if (x_236 == 0) -{ -lean_object* x_237; +lean_object* x_227; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -6360,93 +7909,93 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_237 = l___private_Lean_Elab_Match_20__collect___main(x_231, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_237) == 0) +x_227 = l___private_Lean_Elab_Match_26__collect___main(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); -lean_dec(x_237); -x_240 = l_Lean_Syntax_setArg(x_157, x_230, x_238); -x_241 = l_Lean_Syntax_getArg(x_234, x_25); -x_242 = l_Lean_Syntax_getArgs(x_241); -lean_dec(x_241); -x_243 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_244 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_242, x_243, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_239); -lean_dec(x_242); -if (lean_obj_tag(x_244) == 0) +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +lean_dec(x_227); +x_230 = l_Lean_Syntax_setArg(x_147, x_220, x_228); +x_231 = l_Lean_Syntax_getArg(x_224, x_25); +x_232 = l_Lean_Syntax_getArgs(x_231); +lean_dec(x_231); +x_233 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_234 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_232, x_233, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_229); +lean_dec(x_232); +if (lean_obj_tag(x_234) == 0) { -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_247 = x_244; +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_237 = x_234; } else { - lean_dec_ref(x_244); - x_247 = lean_box(0); + lean_dec_ref(x_234); + x_237 = lean_box(0); } -x_248 = l_Lean_nullKind; -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_245); -x_250 = l_Lean_Syntax_setArg(x_234, x_25, x_249); -x_251 = l_Lean_Syntax_setArg(x_232, x_230, x_250); -x_252 = l_Lean_Syntax_setArg(x_240, x_25, x_251); -x_253 = lean_array_set(x_11, x_25, x_252); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_10); -lean_ctor_set(x_254, 1, x_253); -if (lean_is_scalar(x_247)) { - x_255 = lean_alloc_ctor(0, 2, 0); +x_238 = l_Lean_nullKind; +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_235); +x_240 = l_Lean_Syntax_setArg(x_224, x_25, x_239); +x_241 = l_Lean_Syntax_setArg(x_222, x_220, x_240); +x_242 = l_Lean_Syntax_setArg(x_230, x_25, x_241); +x_243 = lean_array_set(x_11, x_25, x_242); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_10); +lean_ctor_set(x_244, 1, x_243); +if (lean_is_scalar(x_237)) { + x_245 = lean_alloc_ctor(0, 2, 0); } else { - x_255 = x_247; + x_245 = x_237; } -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_246); -return x_255; +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_236); +return x_245; } else { -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_240); -lean_dec(x_234); -lean_dec(x_232); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_230); +lean_dec(x_224); +lean_dec(x_222); lean_dec(x_11); lean_dec(x_10); -x_256 = lean_ctor_get(x_244, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_244, 1); -lean_inc(x_257); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_258 = x_244; +x_246 = lean_ctor_get(x_234, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_234, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_248 = x_234; } else { - lean_dec_ref(x_244); - x_258 = lean_box(0); + lean_dec_ref(x_234); + x_248 = lean_box(0); } -if (lean_is_scalar(x_258)) { - x_259 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); } else { - x_259 = x_258; + x_249 = x_248; } -lean_ctor_set(x_259, 0, x_256); -lean_ctor_set(x_259, 1, x_257); -return x_259; +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_247); +return x_249; } } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -lean_dec(x_234); -lean_dec(x_232); -lean_dec(x_157); +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_224); +lean_dec(x_222); +lean_dec(x_147); lean_dec(x_3); lean_dec(x_7); lean_dec(x_11); @@ -6456,159 +8005,159 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_260 = lean_ctor_get(x_237, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_237, 1); -lean_inc(x_261); -if (lean_is_exclusive(x_237)) { - lean_ctor_release(x_237, 0); - lean_ctor_release(x_237, 1); - x_262 = x_237; +x_250 = lean_ctor_get(x_227, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_227, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_252 = x_227; } else { - lean_dec_ref(x_237); - x_262 = lean_box(0); + lean_dec_ref(x_227); + x_252 = lean_box(0); } -if (lean_is_scalar(x_262)) { - x_263 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); } else { - x_263 = x_262; + x_253 = x_252; } -lean_ctor_set(x_263, 0, x_260); -lean_ctor_set(x_263, 1, x_261); -return x_263; +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; } } else { -lean_object* x_264; -lean_dec(x_234); -lean_dec(x_232); -x_264 = l___private_Lean_Elab_Match_20__collect___main(x_231, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_264) == 0) +lean_object* x_254; +lean_dec(x_224); +lean_dec(x_222); +x_254 = l___private_Lean_Elab_Match_26__collect___main(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_254) == 0) { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_267 = x_264; +lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_255 = lean_ctor_get(x_254, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_254, 1); +lean_inc(x_256); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_257 = x_254; } else { - lean_dec_ref(x_264); - x_267 = lean_box(0); + lean_dec_ref(x_254); + x_257 = lean_box(0); } -x_268 = l_Lean_Syntax_setArg(x_157, x_230, x_265); -x_269 = lean_array_set(x_11, x_25, x_268); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_10); -lean_ctor_set(x_270, 1, x_269); -if (lean_is_scalar(x_267)) { - x_271 = lean_alloc_ctor(0, 2, 0); +x_258 = l_Lean_Syntax_setArg(x_147, x_220, x_255); +x_259 = lean_array_set(x_11, x_25, x_258); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_10); +lean_ctor_set(x_260, 1, x_259); +if (lean_is_scalar(x_257)) { + x_261 = lean_alloc_ctor(0, 2, 0); } else { - x_271 = x_267; + x_261 = x_257; } -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_266); -return x_271; +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_256); +return x_261; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec(x_157); +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_147); lean_dec(x_11); lean_dec(x_10); -x_272 = lean_ctor_get(x_264, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_264, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_274 = x_264; +x_262 = lean_ctor_get(x_254, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_254, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + x_264 = x_254; } else { - lean_dec_ref(x_264); - x_274 = lean_box(0); + lean_dec_ref(x_254); + x_264 = lean_box(0); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_264)) { + x_265 = lean_alloc_ctor(1, 2, 0); } else { - x_275 = x_274; + x_265 = x_264; } -lean_ctor_set(x_275, 0, x_272); -lean_ctor_set(x_275, 1, x_273); -return x_275; +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +return x_265; } } } else { -lean_object* x_276; -lean_dec(x_232); -x_276 = l___private_Lean_Elab_Match_20__collect___main(x_231, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_276) == 0) +lean_object* x_266; +lean_dec(x_222); +x_266 = l___private_Lean_Elab_Match_26__collect___main(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_266) == 0) { -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_279 = x_276; +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_269 = x_266; } else { - lean_dec_ref(x_276); - x_279 = lean_box(0); + lean_dec_ref(x_266); + x_269 = lean_box(0); } -x_280 = l_Lean_Syntax_setArg(x_157, x_230, x_277); -x_281 = lean_array_set(x_11, x_25, x_280); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_10); -lean_ctor_set(x_282, 1, x_281); -if (lean_is_scalar(x_279)) { - x_283 = lean_alloc_ctor(0, 2, 0); +x_270 = l_Lean_Syntax_setArg(x_147, x_220, x_267); +x_271 = lean_array_set(x_11, x_25, x_270); +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_10); +lean_ctor_set(x_272, 1, x_271); +if (lean_is_scalar(x_269)) { + x_273 = lean_alloc_ctor(0, 2, 0); } else { - x_283 = x_279; + x_273 = x_269; } -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_278); -return x_283; +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_268); +return x_273; } else { -lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -lean_dec(x_157); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_147); lean_dec(x_11); lean_dec(x_10); -x_284 = lean_ctor_get(x_276, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_276, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_286 = x_276; +x_274 = lean_ctor_get(x_266, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_266, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + x_276 = x_266; } else { - lean_dec_ref(x_276); - x_286 = lean_box(0); + lean_dec_ref(x_266); + x_276 = lean_box(0); } -if (lean_is_scalar(x_286)) { - x_287 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); } else { - x_287 = x_286; + x_277 = x_276; } -lean_ctor_set(x_287, 0, x_284); -lean_ctor_set(x_287, 1, x_285); -return x_287; +lean_ctor_set(x_277, 0, x_274); +lean_ctor_set(x_277, 1, x_275); +return x_277; } } } } else { -lean_dec(x_157); +lean_dec(x_147); lean_dec(x_3); lean_dec(x_7); lean_dec(x_11); @@ -6625,7 +8174,7 @@ return x_27; } else { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; lean_dec(x_3); lean_free_object(x_27); lean_dec(x_7); @@ -6635,326 +8184,326 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_288 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_29); +x_278 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_29); lean_dec(x_8); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); -x_291 = lean_st_ref_take(x_2, x_290); -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_294 = !lean_is_exclusive(x_292); -if (x_294 == 0) +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +lean_dec(x_278); +x_281 = lean_st_ref_take(x_2, x_280); +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +x_284 = !lean_is_exclusive(x_282); +if (x_284 == 0) { -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; -x_295 = lean_ctor_get(x_292, 1); -x_296 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_289); +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; +x_285 = lean_ctor_get(x_282, 1); +x_286 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_279); +x_287 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_287, 0, x_286); +x_288 = lean_array_push(x_285, x_287); +lean_ctor_set(x_282, 1, x_288); +x_289 = lean_st_ref_set(x_2, x_282, x_283); +lean_dec(x_2); +x_290 = !lean_is_exclusive(x_289); +if (x_290 == 0) +{ +lean_object* x_291; +x_291 = lean_ctor_get(x_289, 0); +lean_dec(x_291); +lean_ctor_set(x_289, 0, x_279); +return x_289; +} +else +{ +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_289, 1); +lean_inc(x_292); +lean_dec(x_289); +x_293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_293, 0, x_279); +lean_ctor_set(x_293, 1, x_292); +return x_293; +} +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_294 = lean_ctor_get(x_282, 0); +x_295 = lean_ctor_get(x_282, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_282); +x_296 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_279); x_297 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_297, 0, x_296); x_298 = lean_array_push(x_295, x_297); -lean_ctor_set(x_292, 1, x_298); -x_299 = lean_st_ref_set(x_2, x_292, x_293); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_294); +lean_ctor_set(x_299, 1, x_298); +x_300 = lean_st_ref_set(x_2, x_299, x_283); lean_dec(x_2); -x_300 = !lean_is_exclusive(x_299); -if (x_300 == 0) -{ -lean_object* x_301; -x_301 = lean_ctor_get(x_299, 0); -lean_dec(x_301); -lean_ctor_set(x_299, 0, x_289); -return x_299; +x_301 = lean_ctor_get(x_300, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_300)) { + lean_ctor_release(x_300, 0); + lean_ctor_release(x_300, 1); + x_302 = x_300; +} else { + lean_dec_ref(x_300); + x_302 = lean_box(0); } -else -{ -lean_object* x_302; lean_object* x_303; -x_302 = lean_ctor_get(x_299, 1); -lean_inc(x_302); -lean_dec(x_299); -x_303 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_303, 0, x_289); -lean_ctor_set(x_303, 1, x_302); +if (lean_is_scalar(x_302)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_302; +} +lean_ctor_set(x_303, 0, x_279); +lean_ctor_set(x_303, 1, x_301); return x_303; } } -else -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_304 = lean_ctor_get(x_292, 0); -x_305 = lean_ctor_get(x_292, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_292); -x_306 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_289); -x_307 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_307, 0, x_306); -x_308 = lean_array_push(x_305, x_307); -x_309 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_309, 0, x_304); -lean_ctor_set(x_309, 1, x_308); -x_310 = lean_st_ref_set(x_2, x_309, x_293); -lean_dec(x_2); -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - x_312 = x_310; -} else { - lean_dec_ref(x_310); - x_312 = lean_box(0); -} -if (lean_is_scalar(x_312)) { - x_313 = lean_alloc_ctor(0, 2, 0); -} else { - x_313 = x_312; -} -lean_ctor_set(x_313, 0, x_289); -lean_ctor_set(x_313, 1, x_311); -return x_313; -} -} } else { -uint8_t x_314; +uint8_t x_304; lean_free_object(x_27); -x_314 = !lean_is_exclusive(x_1); -if (x_314 == 0) +x_304 = !lean_is_exclusive(x_1); +if (x_304 == 0) { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; -x_315 = lean_ctor_get(x_1, 1); -lean_dec(x_315); -x_316 = lean_ctor_get(x_1, 0); -lean_dec(x_316); -x_317 = l_Lean_Syntax_inhabited; -x_318 = lean_array_get(x_317, x_11, x_25); -x_319 = l_Lean_Syntax_isNone(x_318); -if (x_319 == 0) +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; +x_305 = lean_ctor_get(x_1, 1); +lean_dec(x_305); +x_306 = lean_ctor_get(x_1, 0); +lean_dec(x_306); +x_307 = l_Lean_Syntax_inhabited; +x_308 = lean_array_get(x_307, x_11, x_25); +x_309 = l_Lean_Syntax_isNone(x_308); +if (x_309 == 0) { -lean_object* x_320; lean_object* x_321; uint8_t x_322; +lean_object* x_310; lean_object* x_311; uint8_t x_312; lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); -x_320 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_321 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_318, x_320, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_310 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_311 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_308, x_310, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); 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_318); -x_322 = !lean_is_exclusive(x_321); -if (x_322 == 0) +lean_dec(x_308); +x_312 = !lean_is_exclusive(x_311); +if (x_312 == 0) { -return x_321; +return x_311; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_321, 0); -x_324 = lean_ctor_get(x_321, 1); -lean_inc(x_324); -lean_inc(x_323); -lean_dec(x_321); +lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_313 = lean_ctor_get(x_311, 0); +x_314 = lean_ctor_get(x_311, 1); +lean_inc(x_314); +lean_inc(x_313); +lean_dec(x_311); +x_315 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_315, 0, x_313); +lean_ctor_set(x_315, 1, x_314); +return x_315; +} +} +else +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +lean_dec(x_308); +x_316 = lean_unsigned_to_nat(2u); +x_317 = lean_array_get(x_307, x_11, x_316); +x_318 = l_Lean_Syntax_getArgs(x_317); +lean_dec(x_317); +x_319 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_320 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_318, x_319, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_318); +if (lean_obj_tag(x_320) == 0) +{ +uint8_t x_321; +x_321 = !lean_is_exclusive(x_320); +if (x_321 == 0) +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_322 = lean_ctor_get(x_320, 0); +x_323 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_322); +lean_ctor_set(x_1, 0, x_323); +x_324 = lean_array_set(x_11, x_316, x_1); x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 0, x_10); lean_ctor_set(x_325, 1, x_324); -return x_325; +lean_ctor_set(x_320, 0, x_325); +return x_320; +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_326 = lean_ctor_get(x_320, 0); +x_327 = lean_ctor_get(x_320, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_320); +x_328 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_326); +lean_ctor_set(x_1, 0, x_328); +x_329 = lean_array_set(x_11, x_316, x_1); +x_330 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_330, 0, x_10); +lean_ctor_set(x_330, 1, x_329); +x_331 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_327); +return x_331; } } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -lean_dec(x_318); -x_326 = lean_unsigned_to_nat(2u); -x_327 = lean_array_get(x_317, x_11, x_326); -x_328 = l_Lean_Syntax_getArgs(x_327); -lean_dec(x_327); -x_329 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_330 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_328, x_329, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_328); -if (lean_obj_tag(x_330) == 0) +uint8_t x_332; +lean_free_object(x_1); +lean_dec(x_11); +lean_dec(x_10); +x_332 = !lean_is_exclusive(x_320); +if (x_332 == 0) { -uint8_t x_331; -x_331 = !lean_is_exclusive(x_330); -if (x_331 == 0) +return x_320; +} +else { -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -x_332 = lean_ctor_get(x_330, 0); -x_333 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_332); -lean_ctor_set(x_1, 0, x_333); -x_334 = lean_array_set(x_11, x_326, x_1); +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_320, 0); +x_334 = lean_ctor_get(x_320, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_320); x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_10); +lean_ctor_set(x_335, 0, x_333); lean_ctor_set(x_335, 1, x_334); -lean_ctor_set(x_330, 0, x_335); -return x_330; -} -else -{ -lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_336 = lean_ctor_get(x_330, 0); -x_337 = lean_ctor_get(x_330, 1); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_330); -x_338 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_336); -lean_ctor_set(x_1, 0, x_338); -x_339 = lean_array_set(x_11, x_326, x_1); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_10); -lean_ctor_set(x_340, 1, x_339); -x_341 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_337); -return x_341; -} -} -else -{ -uint8_t x_342; -lean_free_object(x_1); -lean_dec(x_11); -lean_dec(x_10); -x_342 = !lean_is_exclusive(x_330); -if (x_342 == 0) -{ -return x_330; -} -else -{ -lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_343 = lean_ctor_get(x_330, 0); -x_344 = lean_ctor_get(x_330, 1); -lean_inc(x_344); -lean_inc(x_343); -lean_dec(x_330); -x_345 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_345, 0, x_343); -lean_ctor_set(x_345, 1, x_344); -return x_345; +return x_335; } } } } else { -lean_object* x_346; lean_object* x_347; uint8_t x_348; +lean_object* x_336; lean_object* x_337; uint8_t x_338; lean_dec(x_1); -x_346 = l_Lean_Syntax_inhabited; -x_347 = lean_array_get(x_346, x_11, x_25); -x_348 = l_Lean_Syntax_isNone(x_347); -if (x_348 == 0) +x_336 = l_Lean_Syntax_inhabited; +x_337 = lean_array_get(x_336, x_11, x_25); +x_338 = l_Lean_Syntax_isNone(x_337); +if (x_338 == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_dec(x_11); lean_dec(x_10); -x_349 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_350 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_347, x_349, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_339 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_340 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_337, x_339, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); 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_337); +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 1); +lean_inc(x_342); +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + x_343 = x_340; +} else { + lean_dec_ref(x_340); + x_343 = lean_box(0); +} +if (lean_is_scalar(x_343)) { + x_344 = lean_alloc_ctor(1, 2, 0); +} else { + x_344 = x_343; +} +lean_ctor_set(x_344, 0, x_341); +lean_ctor_set(x_344, 1, x_342); +return x_344; +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +lean_dec(x_337); +x_345 = lean_unsigned_to_nat(2u); +x_346 = lean_array_get(x_336, x_11, x_345); +x_347 = l_Lean_Syntax_getArgs(x_346); +lean_dec(x_346); +x_348 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_349 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_347, x_348, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_347); -x_351 = lean_ctor_get(x_350, 0); +if (lean_obj_tag(x_349) == 0) +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_350 = lean_ctor_get(x_349, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_349, 1); lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - x_353 = x_350; +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_352 = x_349; } else { - lean_dec_ref(x_350); - x_353 = lean_box(0); + lean_dec_ref(x_349); + x_352 = lean_box(0); } -if (lean_is_scalar(x_353)) { - x_354 = lean_alloc_ctor(1, 2, 0); +x_353 = l_Lean_nullKind; +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_350); +x_355 = lean_array_set(x_11, x_345, x_354); +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_10); +lean_ctor_set(x_356, 1, x_355); +if (lean_is_scalar(x_352)) { + x_357 = lean_alloc_ctor(0, 2, 0); } else { - x_354 = x_353; + x_357 = x_352; } -lean_ctor_set(x_354, 0, x_351); -lean_ctor_set(x_354, 1, x_352); -return x_354; +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_351); +return x_357; } else { -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -lean_dec(x_347); -x_355 = lean_unsigned_to_nat(2u); -x_356 = lean_array_get(x_346, x_11, x_355); -x_357 = l_Lean_Syntax_getArgs(x_356); -lean_dec(x_356); -x_358 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_359 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_357, x_358, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_357); -if (lean_obj_tag(x_359) == 0) -{ -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_360 = lean_ctor_get(x_359, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_359, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - x_362 = x_359; -} else { - lean_dec_ref(x_359); - x_362 = lean_box(0); -} -x_363 = l_Lean_nullKind; -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_360); -x_365 = lean_array_set(x_11, x_355, x_364); -x_366 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_366, 0, x_10); -lean_ctor_set(x_366, 1, x_365); -if (lean_is_scalar(x_362)) { - x_367 = lean_alloc_ctor(0, 2, 0); -} else { - x_367 = x_362; -} -lean_ctor_set(x_367, 0, x_366); -lean_ctor_set(x_367, 1, x_361); -return x_367; -} -else -{ -lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_dec(x_11); lean_dec(x_10); -x_368 = lean_ctor_get(x_359, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_359, 1); -lean_inc(x_369); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - x_370 = x_359; +x_358 = lean_ctor_get(x_349, 0); +lean_inc(x_358); +x_359 = lean_ctor_get(x_349, 1); +lean_inc(x_359); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_360 = x_349; } else { - lean_dec_ref(x_359); - x_370 = lean_box(0); + lean_dec_ref(x_349); + x_360 = lean_box(0); } -if (lean_is_scalar(x_370)) { - x_371 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_360)) { + x_361 = lean_alloc_ctor(1, 2, 0); } else { - x_371 = x_370; + x_361 = x_360; } -lean_ctor_set(x_371, 0, x_368); -lean_ctor_set(x_371, 1, x_369); -return x_371; +lean_ctor_set(x_361, 0, x_358); +lean_ctor_set(x_361, 1, x_359); +return x_361; } } } @@ -6962,639 +8511,293 @@ return x_371; } else { -uint8_t x_372; +uint8_t x_362; lean_free_object(x_27); -x_372 = !lean_is_exclusive(x_1); -if (x_372 == 0) +x_362 = !lean_is_exclusive(x_1); +if (x_362 == 0) { -lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_373 = lean_ctor_get(x_1, 1); -lean_dec(x_373); -x_374 = lean_ctor_get(x_1, 0); -lean_dec(x_374); -x_375 = l_Lean_Syntax_inhabited; -x_376 = lean_array_get(x_375, x_11, x_25); -x_377 = l_Lean_Syntax_getArgs(x_376); -lean_dec(x_376); -x_378 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_379 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_377, x_378, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_377); -if (lean_obj_tag(x_379) == 0) +lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +x_363 = lean_ctor_get(x_1, 1); +lean_dec(x_363); +x_364 = lean_ctor_get(x_1, 0); +lean_dec(x_364); +x_365 = l_Lean_Syntax_inhabited; +x_366 = lean_array_get(x_365, x_11, x_25); +x_367 = l_Lean_Syntax_getArgs(x_366); +lean_dec(x_366); +x_368 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_369 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_367, x_368, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_367); +if (lean_obj_tag(x_369) == 0) { -uint8_t x_380; -x_380 = !lean_is_exclusive(x_379); -if (x_380 == 0) +uint8_t x_370; +x_370 = !lean_is_exclusive(x_369); +if (x_370 == 0) { -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_381 = lean_ctor_get(x_379, 0); -x_382 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_381); -lean_ctor_set(x_1, 0, x_382); -x_383 = lean_array_set(x_11, x_25, x_1); +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_371 = lean_ctor_get(x_369, 0); +x_372 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_371); +lean_ctor_set(x_1, 0, x_372); +x_373 = lean_array_set(x_11, x_25, x_1); +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_10); +lean_ctor_set(x_374, 1, x_373); +lean_ctor_set(x_369, 0, x_374); +return x_369; +} +else +{ +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_375 = lean_ctor_get(x_369, 0); +x_376 = lean_ctor_get(x_369, 1); +lean_inc(x_376); +lean_inc(x_375); +lean_dec(x_369); +x_377 = l_Lean_nullKind; +lean_ctor_set(x_1, 1, x_375); +lean_ctor_set(x_1, 0, x_377); +x_378 = lean_array_set(x_11, x_25, x_1); +x_379 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_379, 0, x_10); +lean_ctor_set(x_379, 1, x_378); +x_380 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_376); +return x_380; +} +} +else +{ +uint8_t x_381; +lean_free_object(x_1); +lean_dec(x_11); +lean_dec(x_10); +x_381 = !lean_is_exclusive(x_369); +if (x_381 == 0) +{ +return x_369; +} +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_382 = lean_ctor_get(x_369, 0); +x_383 = lean_ctor_get(x_369, 1); +lean_inc(x_383); +lean_inc(x_382); +lean_dec(x_369); x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_10); +lean_ctor_set(x_384, 0, x_382); lean_ctor_set(x_384, 1, x_383); -lean_ctor_set(x_379, 0, x_384); -return x_379; +return x_384; } -else -{ -lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_385 = lean_ctor_get(x_379, 0); -x_386 = lean_ctor_get(x_379, 1); -lean_inc(x_386); -lean_inc(x_385); -lean_dec(x_379); -x_387 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_385); -lean_ctor_set(x_1, 0, x_387); -x_388 = lean_array_set(x_11, x_25, x_1); -x_389 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_389, 0, x_10); -lean_ctor_set(x_389, 1, x_388); -x_390 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_390, 0, x_389); -lean_ctor_set(x_390, 1, x_386); -return x_390; } } else { -uint8_t x_391; -lean_free_object(x_1); -lean_dec(x_11); -lean_dec(x_10); -x_391 = !lean_is_exclusive(x_379); -if (x_391 == 0) +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +lean_dec(x_1); +x_385 = l_Lean_Syntax_inhabited; +x_386 = lean_array_get(x_385, x_11, x_25); +x_387 = l_Lean_Syntax_getArgs(x_386); +lean_dec(x_386); +x_388 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_389 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_387, x_388, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_387); +if (lean_obj_tag(x_389) == 0) { -return x_379; +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_390 = lean_ctor_get(x_389, 0); +lean_inc(x_390); +x_391 = lean_ctor_get(x_389, 1); +lean_inc(x_391); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_392 = x_389; +} else { + lean_dec_ref(x_389); + x_392 = lean_box(0); } -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_392 = lean_ctor_get(x_379, 0); -x_393 = lean_ctor_get(x_379, 1); -lean_inc(x_393); -lean_inc(x_392); -lean_dec(x_379); +x_393 = l_Lean_nullKind; x_394 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_394, 0, x_392); -lean_ctor_set(x_394, 1, x_393); -return x_394; -} +lean_ctor_set(x_394, 0, x_393); +lean_ctor_set(x_394, 1, x_390); +x_395 = lean_array_set(x_11, x_25, x_394); +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_10); +lean_ctor_set(x_396, 1, x_395); +if (lean_is_scalar(x_392)) { + x_397 = lean_alloc_ctor(0, 2, 0); +} else { + x_397 = x_392; } +lean_ctor_set(x_397, 0, x_396); +lean_ctor_set(x_397, 1, x_391); +return x_397; } else { -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; -lean_dec(x_1); -x_395 = l_Lean_Syntax_inhabited; -x_396 = lean_array_get(x_395, x_11, x_25); -x_397 = l_Lean_Syntax_getArgs(x_396); -lean_dec(x_396); -x_398 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_399 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_397, x_398, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_397); -if (lean_obj_tag(x_399) == 0) -{ -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 1); -lean_inc(x_401); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_402 = x_399; -} else { - lean_dec_ref(x_399); - x_402 = lean_box(0); -} -x_403 = l_Lean_nullKind; -x_404 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_400); -x_405 = lean_array_set(x_11, x_25, x_404); -x_406 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_406, 0, x_10); -lean_ctor_set(x_406, 1, x_405); -if (lean_is_scalar(x_402)) { - x_407 = lean_alloc_ctor(0, 2, 0); -} else { - x_407 = x_402; -} -lean_ctor_set(x_407, 0, x_406); -lean_ctor_set(x_407, 1, x_401); -return x_407; -} -else -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_dec(x_11); lean_dec(x_10); -x_408 = lean_ctor_get(x_399, 0); -lean_inc(x_408); -x_409 = lean_ctor_get(x_399, 1); -lean_inc(x_409); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_410 = x_399; +x_398 = lean_ctor_get(x_389, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_389, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_400 = x_389; } else { - lean_dec_ref(x_399); - x_410 = lean_box(0); + lean_dec_ref(x_389); + x_400 = lean_box(0); } -if (lean_is_scalar(x_410)) { - x_411 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_400)) { + x_401 = lean_alloc_ctor(1, 2, 0); } else { - x_411 = x_410; + x_401 = x_400; } -lean_ctor_set(x_411, 0, x_408); -lean_ctor_set(x_411, 1, x_409); -return x_411; +lean_ctor_set(x_401, 0, x_398); +lean_ctor_set(x_401, 1, x_399); +return x_401; } } } } else { -uint8_t x_412; +lean_object* x_402; lean_object* x_403; lean_free_object(x_27); -x_412 = !lean_is_exclusive(x_1); -if (x_412 == 0) -{ -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_413 = lean_ctor_get(x_1, 1); -lean_dec(x_413); -x_414 = lean_ctor_get(x_1, 0); -lean_dec(x_414); -x_415 = l_Lean_Syntax_inhabited; -x_416 = lean_unsigned_to_nat(0u); -x_417 = lean_array_get(x_415, x_11, x_416); -x_418 = lean_array_get(x_415, x_11, x_25); -x_419 = l_Lean_Syntax_getArgs(x_418); -lean_dec(x_418); -x_420 = l_Lean_mkAppStx___closed__6; -lean_inc(x_3); -x_421 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_420, x_419, x_416, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_421) == 0) -{ -lean_object* x_422; uint8_t x_423; lean_object* x_424; -x_422 = lean_ctor_get(x_421, 1); -lean_inc(x_422); -lean_dec(x_421); -x_423 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_424 = l___private_Lean_Elab_Match_16__processIdAux(x_417, x_423, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_422); -if (lean_obj_tag(x_424) == 0) -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_425 = lean_ctor_get(x_424, 0); -lean_inc(x_425); -x_426 = lean_ctor_get(x_424, 1); -lean_inc(x_426); -lean_dec(x_424); -x_427 = x_419; -x_428 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_428, 0, x_425); -lean_closure_set(x_428, 1, x_416); -lean_closure_set(x_428, 2, x_427); -x_429 = x_428; -x_430 = lean_apply_8(x_429, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_426); -if (lean_obj_tag(x_430) == 0) -{ -uint8_t x_431; -x_431 = !lean_is_exclusive(x_430); -if (x_431 == 0) -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_432 = lean_ctor_get(x_430, 0); -x_433 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_432); -lean_ctor_set(x_1, 0, x_433); -x_434 = lean_array_set(x_11, x_25, x_1); -x_435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_435, 0, x_10); -lean_ctor_set(x_435, 1, x_434); -lean_ctor_set(x_430, 0, x_435); -return x_430; -} -else -{ -lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_436 = lean_ctor_get(x_430, 0); -x_437 = lean_ctor_get(x_430, 1); -lean_inc(x_437); -lean_inc(x_436); -lean_dec(x_430); -x_438 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_436); -lean_ctor_set(x_1, 0, x_438); -x_439 = lean_array_set(x_11, x_25, x_1); -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_10); -lean_ctor_set(x_440, 1, x_439); -x_441 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_441, 0, x_440); -lean_ctor_set(x_441, 1, x_437); -return x_441; -} -} -else -{ -uint8_t x_442; -lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); -x_442 = !lean_is_exclusive(x_430); -if (x_442 == 0) -{ -return x_430; -} -else -{ -lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_443 = lean_ctor_get(x_430, 0); -x_444 = lean_ctor_get(x_430, 1); -lean_inc(x_444); -lean_inc(x_443); -lean_dec(x_430); -x_445 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_445, 0, x_443); -lean_ctor_set(x_445, 1, x_444); -return x_445; -} -} -} -else -{ -uint8_t x_446; -lean_dec(x_419); -lean_free_object(x_1); -lean_dec(x_3); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_446 = !lean_is_exclusive(x_424); -if (x_446 == 0) -{ -return x_424; -} -else -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_424, 0); -x_448 = lean_ctor_get(x_424, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_424); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_447); -lean_ctor_set(x_449, 1, x_448); -return x_449; -} -} -} -else -{ -uint8_t x_450; -lean_dec(x_419); -lean_dec(x_417); -lean_free_object(x_1); -lean_dec(x_3); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_450 = !lean_is_exclusive(x_421); -if (x_450 == 0) -{ -return x_421; -} -else -{ -lean_object* x_451; lean_object* x_452; lean_object* x_453; -x_451 = lean_ctor_get(x_421, 0); -x_452 = lean_ctor_get(x_421, 1); -lean_inc(x_452); -lean_inc(x_451); -lean_dec(x_421); -x_453 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_453, 0, x_451); -lean_ctor_set(x_453, 1, x_452); -return x_453; -} -} -} -else -{ -lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +x_402 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_403 = l_Lean_Elab_Term_CollectPatternVars_processCtorApp(x_402, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_1); -x_454 = l_Lean_Syntax_inhabited; -x_455 = lean_unsigned_to_nat(0u); -x_456 = lean_array_get(x_454, x_11, x_455); -x_457 = lean_array_get(x_454, x_11, x_25); -x_458 = l_Lean_Syntax_getArgs(x_457); -lean_dec(x_457); -x_459 = l_Lean_mkAppStx___closed__6; -lean_inc(x_3); -x_460 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_459, x_458, x_455, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_460) == 0) -{ -lean_object* x_461; uint8_t x_462; lean_object* x_463; -x_461 = lean_ctor_get(x_460, 1); -lean_inc(x_461); -lean_dec(x_460); -x_462 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_463 = l___private_Lean_Elab_Match_16__processIdAux(x_456, x_462, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_461); -if (lean_obj_tag(x_463) == 0) -{ -lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_464 = lean_ctor_get(x_463, 0); -lean_inc(x_464); -x_465 = lean_ctor_get(x_463, 1); -lean_inc(x_465); -lean_dec(x_463); -x_466 = x_458; -x_467 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_467, 0, x_464); -lean_closure_set(x_467, 1, x_455); -lean_closure_set(x_467, 2, x_466); -x_468 = x_467; -x_469 = lean_apply_8(x_468, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_465); -if (lean_obj_tag(x_469) == 0) -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; -x_470 = lean_ctor_get(x_469, 0); -lean_inc(x_470); -x_471 = lean_ctor_get(x_469, 1); -lean_inc(x_471); -if (lean_is_exclusive(x_469)) { - lean_ctor_release(x_469, 0); - lean_ctor_release(x_469, 1); - x_472 = x_469; -} else { - lean_dec_ref(x_469); - x_472 = lean_box(0); -} -x_473 = l_Lean_nullKind; -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_473); -lean_ctor_set(x_474, 1, x_470); -x_475 = lean_array_set(x_11, x_25, x_474); -x_476 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_476, 0, x_10); -lean_ctor_set(x_476, 1, x_475); -if (lean_is_scalar(x_472)) { - x_477 = lean_alloc_ctor(0, 2, 0); -} else { - x_477 = x_472; -} -lean_ctor_set(x_477, 0, x_476); -lean_ctor_set(x_477, 1, x_471); -return x_477; -} -else -{ -lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; -lean_dec(x_11); -lean_dec(x_10); -x_478 = lean_ctor_get(x_469, 0); -lean_inc(x_478); -x_479 = lean_ctor_get(x_469, 1); -lean_inc(x_479); -if (lean_is_exclusive(x_469)) { - lean_ctor_release(x_469, 0); - lean_ctor_release(x_469, 1); - x_480 = x_469; -} else { - lean_dec_ref(x_469); - x_480 = lean_box(0); -} -if (lean_is_scalar(x_480)) { - x_481 = lean_alloc_ctor(1, 2, 0); -} else { - x_481 = x_480; -} -lean_ctor_set(x_481, 0, x_478); -lean_ctor_set(x_481, 1, x_479); -return x_481; +return x_403; } } else { -lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; -lean_dec(x_458); +lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; uint8_t x_412; uint8_t x_413; lean_object* x_414; +x_404 = lean_ctor_get(x_3, 0); +x_405 = lean_ctor_get(x_3, 1); +x_406 = lean_ctor_get(x_3, 2); +x_407 = lean_ctor_get(x_3, 3); +x_408 = lean_ctor_get(x_3, 4); +x_409 = lean_ctor_get(x_3, 5); +x_410 = lean_ctor_get(x_3, 6); +x_411 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_412 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +x_413 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +lean_inc(x_410); +lean_inc(x_409); +lean_inc(x_408); +lean_inc(x_407); +lean_inc(x_406); +lean_inc(x_405); +lean_inc(x_404); lean_dec(x_3); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_482 = lean_ctor_get(x_463, 0); -lean_inc(x_482); -x_483 = lean_ctor_get(x_463, 1); -lean_inc(x_483); -if (lean_is_exclusive(x_463)) { - lean_ctor_release(x_463, 0); - lean_ctor_release(x_463, 1); - x_484 = x_463; -} else { - lean_dec_ref(x_463); - x_484 = lean_box(0); -} -if (lean_is_scalar(x_484)) { - x_485 = lean_alloc_ctor(1, 2, 0); -} else { - x_485 = x_484; -} -lean_ctor_set(x_485, 0, x_482); -lean_ctor_set(x_485, 1, x_483); -return x_485; -} -} -else -{ -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -lean_dec(x_458); -lean_dec(x_456); -lean_dec(x_3); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_486 = lean_ctor_get(x_460, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_460, 1); -lean_inc(x_487); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - x_488 = x_460; -} else { - lean_dec_ref(x_460); - x_488 = lean_box(0); -} -if (lean_is_scalar(x_488)) { - x_489 = lean_alloc_ctor(1, 2, 0); -} else { - x_489 = x_488; -} -lean_ctor_set(x_489, 0, x_486); -lean_ctor_set(x_489, 1, x_487); -return x_489; -} -} -} -} -else -{ -lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; uint8_t x_497; uint8_t x_498; uint8_t x_499; lean_object* x_500; -x_490 = lean_ctor_get(x_3, 0); -x_491 = lean_ctor_get(x_3, 1); -x_492 = lean_ctor_get(x_3, 2); -x_493 = lean_ctor_get(x_3, 3); -x_494 = lean_ctor_get(x_3, 4); -x_495 = lean_ctor_get(x_3, 5); -x_496 = lean_ctor_get(x_3, 6); -x_497 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_498 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_499 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); -lean_inc(x_496); -lean_inc(x_495); -lean_inc(x_494); -lean_inc(x_493); -lean_inc(x_492); -lean_inc(x_491); -lean_inc(x_490); -lean_dec(x_3); -x_500 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_500, 0, x_490); -lean_ctor_set(x_500, 1, x_491); -lean_ctor_set(x_500, 2, x_492); -lean_ctor_set(x_500, 3, x_493); -lean_ctor_set(x_500, 4, x_494); -lean_ctor_set(x_500, 5, x_495); -lean_ctor_set(x_500, 6, x_496); -lean_ctor_set(x_500, 7, x_24); -lean_ctor_set_uint8(x_500, sizeof(void*)*8, x_497); -lean_ctor_set_uint8(x_500, sizeof(void*)*8 + 1, x_498); -lean_ctor_set_uint8(x_500, sizeof(void*)*8 + 2, x_499); +x_414 = lean_alloc_ctor(0, 8, 3); +lean_ctor_set(x_414, 0, x_404); +lean_ctor_set(x_414, 1, x_405); +lean_ctor_set(x_414, 2, x_406); +lean_ctor_set(x_414, 3, x_407); +lean_ctor_set(x_414, 4, x_408); +lean_ctor_set(x_414, 5, x_409); +lean_ctor_set(x_414, 6, x_410); +lean_ctor_set(x_414, 7, x_24); +lean_ctor_set_uint8(x_414, sizeof(void*)*8, x_411); +lean_ctor_set_uint8(x_414, sizeof(void*)*8 + 1, x_412); +lean_ctor_set_uint8(x_414, sizeof(void*)*8 + 2, x_413); if (x_20 == 0) { -lean_object* x_501; uint8_t x_502; -x_501 = l___private_Lean_Elab_Match_20__collect___main___closed__2; -x_502 = lean_name_eq(x_10, x_501); -if (x_502 == 0) +lean_object* x_415; uint8_t x_416; +x_415 = l___private_Lean_Elab_Match_26__collect___main___closed__2; +x_416 = lean_name_eq(x_10, x_415); +if (x_416 == 0) { -lean_object* x_503; uint8_t x_504; -x_503 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; -x_504 = lean_name_eq(x_10, x_503); -if (x_504 == 0) +lean_object* x_417; uint8_t x_418; +x_417 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; +x_418 = lean_name_eq(x_10, x_417); +if (x_418 == 0) { -lean_object* x_505; uint8_t x_506; -x_505 = l_Lean_mkHole___closed__2; -x_506 = lean_name_eq(x_10, x_505); -if (x_506 == 0) +lean_object* x_419; uint8_t x_420; +x_419 = l_Lean_mkHole___closed__2; +x_420 = lean_name_eq(x_10, x_419); +if (x_420 == 0) { -lean_object* x_507; uint8_t x_508; -x_507 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; -x_508 = lean_name_eq(x_10, x_507); -if (x_508 == 0) +lean_object* x_421; uint8_t x_422; +x_421 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; +x_422 = lean_name_eq(x_10, x_421); +if (x_422 == 0) { -lean_object* x_509; uint8_t x_510; +lean_object* x_423; uint8_t x_424; lean_dec(x_11); -x_509 = l___private_Lean_Elab_Match_20__collect___main___closed__4; -x_510 = lean_name_eq(x_10, x_509); -if (x_510 == 0) +x_423 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; +x_424 = lean_name_eq(x_10, x_423); +if (x_424 == 0) { -lean_object* x_511; uint8_t x_512; -x_511 = l___private_Lean_Elab_Match_20__collect___main___closed__5; -x_512 = lean_name_eq(x_10, x_511); -if (x_512 == 0) +lean_object* x_425; uint8_t x_426; +x_425 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_426 = lean_name_eq(x_10, x_425); +if (x_426 == 0) { -lean_object* x_513; uint8_t x_514; -x_513 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; -x_514 = lean_name_eq(x_10, x_513); -if (x_514 == 0) +lean_object* x_427; uint8_t x_428; +x_427 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; +x_428 = lean_name_eq(x_10, x_427); +if (x_428 == 0) { -lean_object* x_515; uint8_t x_516; -x_515 = l_Lean_strLitKind; -x_516 = lean_name_eq(x_10, x_515); -if (x_516 == 0) +lean_object* x_429; uint8_t x_430; +x_429 = l_Lean_strLitKind; +x_430 = lean_name_eq(x_10, x_429); +if (x_430 == 0) { -lean_object* x_517; uint8_t x_518; -x_517 = l_Lean_numLitKind; -x_518 = lean_name_eq(x_10, x_517); -if (x_518 == 0) +lean_object* x_431; uint8_t x_432; +x_431 = l_Lean_numLitKind; +x_432 = lean_name_eq(x_10, x_431); +if (x_432 == 0) { -lean_object* x_519; uint8_t x_520; -x_519 = l_Lean_charLitKind; -x_520 = lean_name_eq(x_10, x_519); -if (x_520 == 0) +lean_object* x_433; uint8_t x_434; +x_433 = l_Lean_charLitKind; +x_434 = lean_name_eq(x_10, x_433); +if (x_434 == 0) { -lean_object* x_521; uint8_t x_522; +lean_object* x_435; uint8_t x_436; lean_free_object(x_27); lean_dec(x_1); -x_521 = l_Lean_choiceKind; -x_522 = lean_name_eq(x_10, x_521); +x_435 = l_Lean_choiceKind; +x_436 = lean_name_eq(x_10, x_435); lean_dec(x_10); -if (x_522 == 0) +if (x_436 == 0) { -lean_object* x_523; -x_523 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); +lean_object* x_437; +x_437 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_523; +return x_437; } else { -lean_object* x_524; lean_object* x_525; -x_524 = l___private_Lean_Elab_Match_20__collect___main___closed__8; -x_525 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_524, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); +lean_object* x_438; lean_object* x_439; +x_438 = l___private_Lean_Elab_Match_26__collect___main___closed__5; +x_439 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_438, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_525; +return x_439; } } else { -lean_dec(x_500); +lean_dec(x_414); lean_dec(x_7); lean_dec(x_10); lean_dec(x_8); @@ -7608,7 +8811,7 @@ return x_27; } else { -lean_dec(x_500); +lean_dec(x_414); lean_dec(x_7); lean_dec(x_10); lean_dec(x_8); @@ -7622,7 +8825,7 @@ return x_27; } else { -lean_dec(x_500); +lean_dec(x_414); lean_dec(x_7); lean_dec(x_10); lean_dec(x_8); @@ -7636,7 +8839,7 @@ return x_27; } else { -lean_dec(x_500); +lean_dec(x_414); lean_dec(x_7); lean_dec(x_10); lean_dec(x_8); @@ -7650,537 +8853,490 @@ return x_27; } else { -lean_object* x_526; lean_object* x_527; lean_object* x_528; uint8_t x_529; lean_object* x_530; +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_free_object(x_27); lean_dec(x_10); -x_526 = lean_unsigned_to_nat(0u); -x_527 = l_Lean_Syntax_getArg(x_1, x_526); -x_528 = l_Lean_Syntax_getId(x_527); -x_529 = 0; -lean_inc(x_500); -x_530 = l___private_Lean_Elab_Match_15__processVar(x_528, x_529, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_530) == 0) +x_440 = lean_unsigned_to_nat(0u); +x_441 = l_Lean_Syntax_getArg(x_1, x_440); +lean_inc(x_414); +lean_inc(x_441); +x_442 = l___private_Lean_Elab_Match_24__processVar(x_441, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_442) == 0) { -lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; -x_531 = lean_ctor_get(x_530, 1); -lean_inc(x_531); -lean_dec(x_530); -x_532 = lean_unsigned_to_nat(2u); -x_533 = l_Lean_Syntax_getArg(x_1, x_532); +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_443 = lean_ctor_get(x_442, 1); +lean_inc(x_443); +lean_dec(x_442); +x_444 = lean_unsigned_to_nat(2u); +x_445 = l_Lean_Syntax_getArg(x_1, x_444); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_534 = x_1; + x_446 = x_1; } else { lean_dec_ref(x_1); - x_534 = lean_box(0); + x_446 = lean_box(0); } lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_500); -x_535 = l___private_Lean_Elab_Match_20__collect___main(x_533, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_531); -if (lean_obj_tag(x_535) == 0) +lean_inc(x_414); +x_447 = l___private_Lean_Elab_Match_26__collect___main(x_445, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_443); +if (lean_obj_tag(x_447) == 0) { -lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_536 = lean_ctor_get(x_535, 0); -lean_inc(x_536); -x_537 = lean_ctor_get(x_535, 1); -lean_inc(x_537); -lean_dec(x_535); -x_538 = l_Lean_Elab_Term_getCurrMacroScope(x_500, x_4, x_5, x_6, x_7, x_8, x_537); +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; +x_448 = lean_ctor_get(x_447, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_447, 1); +lean_inc(x_449); +lean_dec(x_447); +x_450 = l_Lean_Elab_Term_getCurrMacroScope(x_414, x_4, x_5, x_6, x_7, x_8, x_449); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_500); -x_539 = lean_ctor_get(x_538, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_538, 1); -lean_inc(x_540); -lean_dec(x_538); -x_541 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_540); +lean_dec(x_414); +x_451 = lean_ctor_get(x_450, 0); +lean_inc(x_451); +x_452 = lean_ctor_get(x_450, 1); +lean_inc(x_452); +lean_dec(x_450); +x_453 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_452); lean_dec(x_8); -x_542 = lean_ctor_get(x_541, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_541, 1); -lean_inc(x_543); -if (lean_is_exclusive(x_541)) { - lean_ctor_release(x_541, 0); - lean_ctor_release(x_541, 1); - x_544 = x_541; +x_454 = lean_ctor_get(x_453, 0); +lean_inc(x_454); +x_455 = lean_ctor_get(x_453, 1); +lean_inc(x_455); +if (lean_is_exclusive(x_453)) { + lean_ctor_release(x_453, 0); + lean_ctor_release(x_453, 1); + x_456 = x_453; } else { - lean_dec_ref(x_541); + lean_dec_ref(x_453); + x_456 = lean_box(0); +} +x_457 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_458 = l_Lean_addMacroScope(x_454, x_457, x_451); +x_459 = l_Lean_SourceInfo_inhabited___closed__1; +x_460 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_461 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_462 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_462, 0, x_459); +lean_ctor_set(x_462, 1, x_460); +lean_ctor_set(x_462, 2, x_458); +lean_ctor_set(x_462, 3, x_461); +x_463 = l_Array_empty___closed__1; +x_464 = lean_array_push(x_463, x_462); +x_465 = lean_array_push(x_463, x_441); +x_466 = lean_array_push(x_465, x_448); +x_467 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_446)) { + x_468 = lean_alloc_ctor(1, 2, 0); +} else { + x_468 = x_446; +} +lean_ctor_set(x_468, 0, x_467); +lean_ctor_set(x_468, 1, x_466); +x_469 = lean_array_push(x_464, x_468); +x_470 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_470, 0, x_12); +lean_ctor_set(x_470, 1, x_469); +if (lean_is_scalar(x_456)) { + x_471 = lean_alloc_ctor(0, 2, 0); +} else { + x_471 = x_456; +} +lean_ctor_set(x_471, 0, x_470); +lean_ctor_set(x_471, 1, x_455); +return x_471; +} +else +{ +lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; +lean_dec(x_446); +lean_dec(x_441); +lean_dec(x_414); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_472 = lean_ctor_get(x_447, 0); +lean_inc(x_472); +x_473 = lean_ctor_get(x_447, 1); +lean_inc(x_473); +if (lean_is_exclusive(x_447)) { + lean_ctor_release(x_447, 0); + lean_ctor_release(x_447, 1); + x_474 = x_447; +} else { + lean_dec_ref(x_447); + x_474 = lean_box(0); +} +if (lean_is_scalar(x_474)) { + x_475 = lean_alloc_ctor(1, 2, 0); +} else { + x_475 = x_474; +} +lean_ctor_set(x_475, 0, x_472); +lean_ctor_set(x_475, 1, x_473); +return x_475; +} +} +else +{ +lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +lean_dec(x_441); +lean_dec(x_414); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_476 = lean_ctor_get(x_442, 0); +lean_inc(x_476); +x_477 = lean_ctor_get(x_442, 1); +lean_inc(x_477); +if (lean_is_exclusive(x_442)) { + lean_ctor_release(x_442, 0); + lean_ctor_release(x_442, 1); + x_478 = x_442; +} else { + lean_dec_ref(x_442); + x_478 = lean_box(0); +} +if (lean_is_scalar(x_478)) { + x_479 = lean_alloc_ctor(1, 2, 0); +} else { + x_479 = x_478; +} +lean_ctor_set(x_479, 0, x_476); +lean_ctor_set(x_479, 1, x_477); +return x_479; +} +} +} +else +{ +lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; +lean_free_object(x_27); +lean_dec(x_10); +x_480 = lean_unsigned_to_nat(0u); +x_481 = l_Lean_Syntax_getArg(x_1, x_480); +lean_dec(x_1); +x_482 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_483 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_482, x_481, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +return x_483; +} +} +else +{ +lean_object* x_484; lean_object* x_485; uint8_t x_486; +x_484 = l_Lean_Syntax_inhabited; +x_485 = lean_array_get(x_484, x_11, x_25); +x_486 = l_Lean_Syntax_isNone(x_485); +if (x_486 == 0) +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; uint8_t x_491; +lean_free_object(x_27); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_487 = x_1; +} else { + lean_dec_ref(x_1); + x_487 = lean_box(0); +} +x_488 = lean_unsigned_to_nat(0u); +x_489 = l_Lean_Syntax_getArg(x_485, x_488); +x_490 = l_Lean_Syntax_getArg(x_485, x_25); +x_491 = l_Lean_Syntax_isNone(x_490); +if (x_491 == 0) +{ +lean_object* x_492; lean_object* x_493; uint8_t x_494; +x_492 = l_Lean_Syntax_getArg(x_490, x_488); +x_493 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_492); +x_494 = l_Lean_Syntax_isOfKind(x_492, x_493); +if (x_494 == 0) +{ +lean_object* x_495; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_414); +lean_inc(x_2); +x_495 = l___private_Lean_Elab_Match_26__collect___main(x_489, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_495) == 0) +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +x_498 = l_Lean_Syntax_setArg(x_485, x_488, x_496); +x_499 = l_Lean_Syntax_getArg(x_492, x_25); +x_500 = l_Lean_Syntax_getArgs(x_499); +lean_dec(x_499); +x_501 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_502 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_500, x_501, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_497); +lean_dec(x_500); +if (lean_obj_tag(x_502) == 0) +{ +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +x_503 = lean_ctor_get(x_502, 0); +lean_inc(x_503); +x_504 = lean_ctor_get(x_502, 1); +lean_inc(x_504); +if (lean_is_exclusive(x_502)) { + lean_ctor_release(x_502, 0); + lean_ctor_release(x_502, 1); + x_505 = x_502; +} else { + lean_dec_ref(x_502); + x_505 = lean_box(0); +} +x_506 = l_Lean_nullKind; +if (lean_is_scalar(x_487)) { + x_507 = lean_alloc_ctor(1, 2, 0); +} else { + x_507 = x_487; +} +lean_ctor_set(x_507, 0, x_506); +lean_ctor_set(x_507, 1, x_503); +x_508 = l_Lean_Syntax_setArg(x_492, x_25, x_507); +x_509 = l_Lean_Syntax_setArg(x_490, x_488, x_508); +x_510 = l_Lean_Syntax_setArg(x_498, x_25, x_509); +x_511 = lean_array_set(x_11, x_25, x_510); +x_512 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_512, 0, x_10); +lean_ctor_set(x_512, 1, x_511); +if (lean_is_scalar(x_505)) { + x_513 = lean_alloc_ctor(0, 2, 0); +} else { + x_513 = x_505; +} +lean_ctor_set(x_513, 0, x_512); +lean_ctor_set(x_513, 1, x_504); +return x_513; +} +else +{ +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; +lean_dec(x_498); +lean_dec(x_492); +lean_dec(x_490); +lean_dec(x_487); +lean_dec(x_11); +lean_dec(x_10); +x_514 = lean_ctor_get(x_502, 0); +lean_inc(x_514); +x_515 = lean_ctor_get(x_502, 1); +lean_inc(x_515); +if (lean_is_exclusive(x_502)) { + lean_ctor_release(x_502, 0); + lean_ctor_release(x_502, 1); + x_516 = x_502; +} else { + lean_dec_ref(x_502); + x_516 = lean_box(0); +} +if (lean_is_scalar(x_516)) { + x_517 = lean_alloc_ctor(1, 2, 0); +} else { + x_517 = x_516; +} +lean_ctor_set(x_517, 0, x_514); +lean_ctor_set(x_517, 1, x_515); +return x_517; +} +} +else +{ +lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; +lean_dec(x_492); +lean_dec(x_490); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_414); +lean_dec(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_518 = lean_ctor_get(x_495, 0); +lean_inc(x_518); +x_519 = lean_ctor_get(x_495, 1); +lean_inc(x_519); +if (lean_is_exclusive(x_495)) { + lean_ctor_release(x_495, 0); + lean_ctor_release(x_495, 1); + x_520 = x_495; +} else { + lean_dec_ref(x_495); + x_520 = lean_box(0); +} +if (lean_is_scalar(x_520)) { + x_521 = lean_alloc_ctor(1, 2, 0); +} else { + x_521 = x_520; +} +lean_ctor_set(x_521, 0, x_518); +lean_ctor_set(x_521, 1, x_519); +return x_521; +} +} +else +{ +lean_object* x_522; +lean_dec(x_492); +lean_dec(x_490); +x_522 = l___private_Lean_Elab_Match_26__collect___main(x_489, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_522) == 0) +{ +lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_523 = lean_ctor_get(x_522, 0); +lean_inc(x_523); +x_524 = lean_ctor_get(x_522, 1); +lean_inc(x_524); +if (lean_is_exclusive(x_522)) { + lean_ctor_release(x_522, 0); + lean_ctor_release(x_522, 1); + x_525 = x_522; +} else { + lean_dec_ref(x_522); + x_525 = lean_box(0); +} +x_526 = l_Lean_Syntax_setArg(x_485, x_488, x_523); +x_527 = lean_array_set(x_11, x_25, x_526); +if (lean_is_scalar(x_487)) { + x_528 = lean_alloc_ctor(1, 2, 0); +} else { + x_528 = x_487; +} +lean_ctor_set(x_528, 0, x_10); +lean_ctor_set(x_528, 1, x_527); +if (lean_is_scalar(x_525)) { + x_529 = lean_alloc_ctor(0, 2, 0); +} else { + x_529 = x_525; +} +lean_ctor_set(x_529, 0, x_528); +lean_ctor_set(x_529, 1, x_524); +return x_529; +} +else +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_11); +lean_dec(x_10); +x_530 = lean_ctor_get(x_522, 0); +lean_inc(x_530); +x_531 = lean_ctor_get(x_522, 1); +lean_inc(x_531); +if (lean_is_exclusive(x_522)) { + lean_ctor_release(x_522, 0); + lean_ctor_release(x_522, 1); + x_532 = x_522; +} else { + lean_dec_ref(x_522); + x_532 = lean_box(0); +} +if (lean_is_scalar(x_532)) { + x_533 = lean_alloc_ctor(1, 2, 0); +} else { + x_533 = x_532; +} +lean_ctor_set(x_533, 0, x_530); +lean_ctor_set(x_533, 1, x_531); +return x_533; +} +} +} +else +{ +lean_object* x_534; +lean_dec(x_490); +x_534 = l___private_Lean_Elab_Match_26__collect___main(x_489, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_534) == 0) +{ +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_535 = lean_ctor_get(x_534, 0); +lean_inc(x_535); +x_536 = lean_ctor_get(x_534, 1); +lean_inc(x_536); +if (lean_is_exclusive(x_534)) { + lean_ctor_release(x_534, 0); + lean_ctor_release(x_534, 1); + x_537 = x_534; +} else { + lean_dec_ref(x_534); + x_537 = lean_box(0); +} +x_538 = l_Lean_Syntax_setArg(x_485, x_488, x_535); +x_539 = lean_array_set(x_11, x_25, x_538); +if (lean_is_scalar(x_487)) { + x_540 = lean_alloc_ctor(1, 2, 0); +} else { + x_540 = x_487; +} +lean_ctor_set(x_540, 0, x_10); +lean_ctor_set(x_540, 1, x_539); +if (lean_is_scalar(x_537)) { + x_541 = lean_alloc_ctor(0, 2, 0); +} else { + x_541 = x_537; +} +lean_ctor_set(x_541, 0, x_540); +lean_ctor_set(x_541, 1, x_536); +return x_541; +} +else +{ +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_11); +lean_dec(x_10); +x_542 = lean_ctor_get(x_534, 0); +lean_inc(x_542); +x_543 = lean_ctor_get(x_534, 1); +lean_inc(x_543); +if (lean_is_exclusive(x_534)) { + lean_ctor_release(x_534, 0); + lean_ctor_release(x_534, 1); + x_544 = x_534; +} else { + lean_dec_ref(x_534); x_544 = lean_box(0); } -x_545 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_546 = l_Lean_addMacroScope(x_542, x_545, x_539); -x_547 = l_Lean_SourceInfo_inhabited___closed__1; -x_548 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_549 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_550 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_550, 0, x_547); -lean_ctor_set(x_550, 1, x_548); -lean_ctor_set(x_550, 2, x_546); -lean_ctor_set(x_550, 3, x_549); -x_551 = l_Array_empty___closed__1; -x_552 = lean_array_push(x_551, x_550); -x_553 = lean_array_push(x_551, x_527); -x_554 = lean_array_push(x_553, x_536); -x_555 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_534)) { - x_556 = lean_alloc_ctor(1, 2, 0); -} else { - x_556 = x_534; -} -lean_ctor_set(x_556, 0, x_555); -lean_ctor_set(x_556, 1, x_554); -x_557 = lean_array_push(x_552, x_556); -x_558 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_558, 0, x_12); -lean_ctor_set(x_558, 1, x_557); if (lean_is_scalar(x_544)) { - x_559 = lean_alloc_ctor(0, 2, 0); + x_545 = lean_alloc_ctor(1, 2, 0); } else { - x_559 = x_544; + x_545 = x_544; } -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_543); -return x_559; -} -else -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; -lean_dec(x_534); -lean_dec(x_527); -lean_dec(x_500); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_560 = lean_ctor_get(x_535, 0); -lean_inc(x_560); -x_561 = lean_ctor_get(x_535, 1); -lean_inc(x_561); -if (lean_is_exclusive(x_535)) { - lean_ctor_release(x_535, 0); - lean_ctor_release(x_535, 1); - x_562 = x_535; -} else { - lean_dec_ref(x_535); - x_562 = lean_box(0); -} -if (lean_is_scalar(x_562)) { - x_563 = lean_alloc_ctor(1, 2, 0); -} else { - x_563 = x_562; -} -lean_ctor_set(x_563, 0, x_560); -lean_ctor_set(x_563, 1, x_561); -return x_563; -} -} -else -{ -lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; -lean_dec(x_527); -lean_dec(x_500); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_564 = lean_ctor_get(x_530, 0); -lean_inc(x_564); -x_565 = lean_ctor_get(x_530, 1); -lean_inc(x_565); -if (lean_is_exclusive(x_530)) { - lean_ctor_release(x_530, 0); - lean_ctor_release(x_530, 1); - x_566 = x_530; -} else { - lean_dec_ref(x_530); - x_566 = lean_box(0); -} -if (lean_is_scalar(x_566)) { - x_567 = lean_alloc_ctor(1, 2, 0); -} else { - x_567 = x_566; -} -lean_ctor_set(x_567, 0, x_564); -lean_ctor_set(x_567, 1, x_565); -return x_567; +lean_ctor_set(x_545, 0, x_542); +lean_ctor_set(x_545, 1, x_543); +return x_545; } } } else { -lean_object* x_568; lean_object* x_569; uint8_t x_570; lean_object* x_571; -lean_free_object(x_27); -lean_dec(x_10); -x_568 = lean_unsigned_to_nat(0u); -x_569 = l_Lean_Syntax_getArg(x_1, x_568); -x_570 = 1; -x_571 = l___private_Lean_Elab_Match_16__processIdAux(x_569, x_570, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_2); -if (lean_obj_tag(x_571) == 0) -{ -lean_object* x_572; lean_object* x_573; lean_object* x_574; -x_572 = lean_ctor_get(x_571, 1); -lean_inc(x_572); -if (lean_is_exclusive(x_571)) { - lean_ctor_release(x_571, 0); - lean_ctor_release(x_571, 1); - x_573 = x_571; -} else { - lean_dec_ref(x_571); - x_573 = lean_box(0); -} -if (lean_is_scalar(x_573)) { - x_574 = lean_alloc_ctor(0, 2, 0); -} else { - x_574 = x_573; -} -lean_ctor_set(x_574, 0, x_1); -lean_ctor_set(x_574, 1, x_572); -return x_574; -} -else -{ -lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; -lean_dec(x_1); -x_575 = lean_ctor_get(x_571, 0); -lean_inc(x_575); -x_576 = lean_ctor_get(x_571, 1); -lean_inc(x_576); -if (lean_is_exclusive(x_571)) { - lean_ctor_release(x_571, 0); - lean_ctor_release(x_571, 1); - x_577 = x_571; -} else { - lean_dec_ref(x_571); - x_577 = lean_box(0); -} -if (lean_is_scalar(x_577)) { - x_578 = lean_alloc_ctor(1, 2, 0); -} else { - x_578 = x_577; -} -lean_ctor_set(x_578, 0, x_575); -lean_ctor_set(x_578, 1, x_576); -return x_578; -} -} -} -else -{ -lean_object* x_579; lean_object* x_580; uint8_t x_581; -x_579 = l_Lean_Syntax_inhabited; -x_580 = lean_array_get(x_579, x_11, x_25); -x_581 = l_Lean_Syntax_isNone(x_580); -if (x_581 == 0) -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; uint8_t x_586; -lean_free_object(x_27); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_582 = x_1; -} else { - lean_dec_ref(x_1); - x_582 = lean_box(0); -} -x_583 = lean_unsigned_to_nat(0u); -x_584 = l_Lean_Syntax_getArg(x_580, x_583); -x_585 = l_Lean_Syntax_getArg(x_580, x_25); -x_586 = l_Lean_Syntax_isNone(x_585); -if (x_586 == 0) -{ -lean_object* x_587; lean_object* x_588; uint8_t x_589; -x_587 = l_Lean_Syntax_getArg(x_585, x_583); -x_588 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_587); -x_589 = l_Lean_Syntax_isOfKind(x_587, x_588); -if (x_589 == 0) -{ -lean_object* x_590; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_500); -lean_inc(x_2); -x_590 = l___private_Lean_Elab_Match_20__collect___main(x_584, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_590) == 0) -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; -x_591 = lean_ctor_get(x_590, 0); -lean_inc(x_591); -x_592 = lean_ctor_get(x_590, 1); -lean_inc(x_592); -lean_dec(x_590); -x_593 = l_Lean_Syntax_setArg(x_580, x_583, x_591); -x_594 = l_Lean_Syntax_getArg(x_587, x_25); -x_595 = l_Lean_Syntax_getArgs(x_594); -lean_dec(x_594); -x_596 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_597 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_595, x_596, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_592); -lean_dec(x_595); -if (lean_obj_tag(x_597) == 0) -{ -lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_598 = lean_ctor_get(x_597, 0); -lean_inc(x_598); -x_599 = lean_ctor_get(x_597, 1); -lean_inc(x_599); -if (lean_is_exclusive(x_597)) { - lean_ctor_release(x_597, 0); - lean_ctor_release(x_597, 1); - x_600 = x_597; -} else { - lean_dec_ref(x_597); - x_600 = lean_box(0); -} -x_601 = l_Lean_nullKind; -if (lean_is_scalar(x_582)) { - x_602 = lean_alloc_ctor(1, 2, 0); -} else { - x_602 = x_582; -} -lean_ctor_set(x_602, 0, x_601); -lean_ctor_set(x_602, 1, x_598); -x_603 = l_Lean_Syntax_setArg(x_587, x_25, x_602); -x_604 = l_Lean_Syntax_setArg(x_585, x_583, x_603); -x_605 = l_Lean_Syntax_setArg(x_593, x_25, x_604); -x_606 = lean_array_set(x_11, x_25, x_605); -x_607 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_607, 0, x_10); -lean_ctor_set(x_607, 1, x_606); -if (lean_is_scalar(x_600)) { - x_608 = lean_alloc_ctor(0, 2, 0); -} else { - x_608 = x_600; -} -lean_ctor_set(x_608, 0, x_607); -lean_ctor_set(x_608, 1, x_599); -return x_608; -} -else -{ -lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; -lean_dec(x_593); -lean_dec(x_587); -lean_dec(x_585); -lean_dec(x_582); -lean_dec(x_11); -lean_dec(x_10); -x_609 = lean_ctor_get(x_597, 0); -lean_inc(x_609); -x_610 = lean_ctor_get(x_597, 1); -lean_inc(x_610); -if (lean_is_exclusive(x_597)) { - lean_ctor_release(x_597, 0); - lean_ctor_release(x_597, 1); - x_611 = x_597; -} else { - lean_dec_ref(x_597); - x_611 = lean_box(0); -} -if (lean_is_scalar(x_611)) { - x_612 = lean_alloc_ctor(1, 2, 0); -} else { - x_612 = x_611; -} -lean_ctor_set(x_612, 0, x_609); -lean_ctor_set(x_612, 1, x_610); -return x_612; -} -} -else -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; -lean_dec(x_587); -lean_dec(x_585); -lean_dec(x_582); -lean_dec(x_580); -lean_dec(x_500); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_613 = lean_ctor_get(x_590, 0); -lean_inc(x_613); -x_614 = lean_ctor_get(x_590, 1); -lean_inc(x_614); -if (lean_is_exclusive(x_590)) { - lean_ctor_release(x_590, 0); - lean_ctor_release(x_590, 1); - x_615 = x_590; -} else { - lean_dec_ref(x_590); - x_615 = lean_box(0); -} -if (lean_is_scalar(x_615)) { - x_616 = lean_alloc_ctor(1, 2, 0); -} else { - x_616 = x_615; -} -lean_ctor_set(x_616, 0, x_613); -lean_ctor_set(x_616, 1, x_614); -return x_616; -} -} -else -{ -lean_object* x_617; -lean_dec(x_587); -lean_dec(x_585); -x_617 = l___private_Lean_Elab_Match_20__collect___main(x_584, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_617) == 0) -{ -lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; -x_618 = lean_ctor_get(x_617, 0); -lean_inc(x_618); -x_619 = lean_ctor_get(x_617, 1); -lean_inc(x_619); -if (lean_is_exclusive(x_617)) { - lean_ctor_release(x_617, 0); - lean_ctor_release(x_617, 1); - x_620 = x_617; -} else { - lean_dec_ref(x_617); - x_620 = lean_box(0); -} -x_621 = l_Lean_Syntax_setArg(x_580, x_583, x_618); -x_622 = lean_array_set(x_11, x_25, x_621); -if (lean_is_scalar(x_582)) { - x_623 = lean_alloc_ctor(1, 2, 0); -} else { - x_623 = x_582; -} -lean_ctor_set(x_623, 0, x_10); -lean_ctor_set(x_623, 1, x_622); -if (lean_is_scalar(x_620)) { - x_624 = lean_alloc_ctor(0, 2, 0); -} else { - x_624 = x_620; -} -lean_ctor_set(x_624, 0, x_623); -lean_ctor_set(x_624, 1, x_619); -return x_624; -} -else -{ -lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; -lean_dec(x_582); -lean_dec(x_580); -lean_dec(x_11); -lean_dec(x_10); -x_625 = lean_ctor_get(x_617, 0); -lean_inc(x_625); -x_626 = lean_ctor_get(x_617, 1); -lean_inc(x_626); -if (lean_is_exclusive(x_617)) { - lean_ctor_release(x_617, 0); - lean_ctor_release(x_617, 1); - x_627 = x_617; -} else { - lean_dec_ref(x_617); - x_627 = lean_box(0); -} -if (lean_is_scalar(x_627)) { - x_628 = lean_alloc_ctor(1, 2, 0); -} else { - x_628 = x_627; -} -lean_ctor_set(x_628, 0, x_625); -lean_ctor_set(x_628, 1, x_626); -return x_628; -} -} -} -else -{ -lean_object* x_629; -lean_dec(x_585); -x_629 = l___private_Lean_Elab_Match_20__collect___main(x_584, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_629) == 0) -{ -lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; -x_630 = lean_ctor_get(x_629, 0); -lean_inc(x_630); -x_631 = lean_ctor_get(x_629, 1); -lean_inc(x_631); -if (lean_is_exclusive(x_629)) { - lean_ctor_release(x_629, 0); - lean_ctor_release(x_629, 1); - x_632 = x_629; -} else { - lean_dec_ref(x_629); - x_632 = lean_box(0); -} -x_633 = l_Lean_Syntax_setArg(x_580, x_583, x_630); -x_634 = lean_array_set(x_11, x_25, x_633); -if (lean_is_scalar(x_582)) { - x_635 = lean_alloc_ctor(1, 2, 0); -} else { - x_635 = x_582; -} -lean_ctor_set(x_635, 0, x_10); -lean_ctor_set(x_635, 1, x_634); -if (lean_is_scalar(x_632)) { - x_636 = lean_alloc_ctor(0, 2, 0); -} else { - x_636 = x_632; -} -lean_ctor_set(x_636, 0, x_635); -lean_ctor_set(x_636, 1, x_631); -return x_636; -} -else -{ -lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; -lean_dec(x_582); -lean_dec(x_580); -lean_dec(x_11); -lean_dec(x_10); -x_637 = lean_ctor_get(x_629, 0); -lean_inc(x_637); -x_638 = lean_ctor_get(x_629, 1); -lean_inc(x_638); -if (lean_is_exclusive(x_629)) { - lean_ctor_release(x_629, 0); - lean_ctor_release(x_629, 1); - x_639 = x_629; -} else { - lean_dec_ref(x_629); - x_639 = lean_box(0); -} -if (lean_is_scalar(x_639)) { - x_640 = lean_alloc_ctor(1, 2, 0); -} else { - x_640 = x_639; -} -lean_ctor_set(x_640, 0, x_637); -lean_ctor_set(x_640, 1, x_638); -return x_640; -} -} -} -else -{ -lean_dec(x_580); -lean_dec(x_500); +lean_dec(x_485); +lean_dec(x_414); lean_dec(x_7); lean_dec(x_11); lean_dec(x_10); @@ -8196,8 +9352,8 @@ return x_27; } else { -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; -lean_dec(x_500); +lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; +lean_dec(x_414); lean_free_object(x_27); lean_dec(x_7); lean_dec(x_11); @@ -8206,68 +9362,511 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_641 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_29); +x_546 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_29); lean_dec(x_8); -x_642 = lean_ctor_get(x_641, 0); -lean_inc(x_642); -x_643 = lean_ctor_get(x_641, 1); -lean_inc(x_643); -lean_dec(x_641); -x_644 = lean_st_ref_take(x_2, x_643); -x_645 = lean_ctor_get(x_644, 0); -lean_inc(x_645); -x_646 = lean_ctor_get(x_644, 1); -lean_inc(x_646); -lean_dec(x_644); -x_647 = lean_ctor_get(x_645, 0); -lean_inc(x_647); -x_648 = lean_ctor_get(x_645, 1); -lean_inc(x_648); -if (lean_is_exclusive(x_645)) { - lean_ctor_release(x_645, 0); - lean_ctor_release(x_645, 1); - x_649 = x_645; +x_547 = lean_ctor_get(x_546, 0); +lean_inc(x_547); +x_548 = lean_ctor_get(x_546, 1); +lean_inc(x_548); +lean_dec(x_546); +x_549 = lean_st_ref_take(x_2, x_548); +x_550 = lean_ctor_get(x_549, 0); +lean_inc(x_550); +x_551 = lean_ctor_get(x_549, 1); +lean_inc(x_551); +lean_dec(x_549); +x_552 = lean_ctor_get(x_550, 0); +lean_inc(x_552); +x_553 = lean_ctor_get(x_550, 1); +lean_inc(x_553); +if (lean_is_exclusive(x_550)) { + lean_ctor_release(x_550, 0); + lean_ctor_release(x_550, 1); + x_554 = x_550; } else { - lean_dec_ref(x_645); - x_649 = lean_box(0); + lean_dec_ref(x_550); + x_554 = lean_box(0); } -x_650 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_642); -x_651 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_651, 0, x_650); -x_652 = lean_array_push(x_648, x_651); -if (lean_is_scalar(x_649)) { - x_653 = lean_alloc_ctor(0, 2, 0); +x_555 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_547); +x_556 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_556, 0, x_555); +x_557 = lean_array_push(x_553, x_556); +if (lean_is_scalar(x_554)) { + x_558 = lean_alloc_ctor(0, 2, 0); } else { - x_653 = x_649; + x_558 = x_554; } -lean_ctor_set(x_653, 0, x_647); -lean_ctor_set(x_653, 1, x_652); -x_654 = lean_st_ref_set(x_2, x_653, x_646); +lean_ctor_set(x_558, 0, x_552); +lean_ctor_set(x_558, 1, x_557); +x_559 = lean_st_ref_set(x_2, x_558, x_551); lean_dec(x_2); -x_655 = lean_ctor_get(x_654, 1); -lean_inc(x_655); -if (lean_is_exclusive(x_654)) { - lean_ctor_release(x_654, 0); - lean_ctor_release(x_654, 1); - x_656 = x_654; +x_560 = lean_ctor_get(x_559, 1); +lean_inc(x_560); +if (lean_is_exclusive(x_559)) { + lean_ctor_release(x_559, 0); + lean_ctor_release(x_559, 1); + x_561 = x_559; } else { - lean_dec_ref(x_654); - x_656 = lean_box(0); + lean_dec_ref(x_559); + x_561 = lean_box(0); } -if (lean_is_scalar(x_656)) { - x_657 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_561)) { + x_562 = lean_alloc_ctor(0, 2, 0); } else { - x_657 = x_656; + x_562 = x_561; } -lean_ctor_set(x_657, 0, x_642); -lean_ctor_set(x_657, 1, x_655); -return x_657; +lean_ctor_set(x_562, 0, x_547); +lean_ctor_set(x_562, 1, x_560); +return x_562; } } else { -lean_object* x_658; lean_object* x_659; lean_object* x_660; uint8_t x_661; +lean_object* x_563; lean_object* x_564; lean_object* x_565; uint8_t x_566; lean_free_object(x_27); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_563 = x_1; +} else { + lean_dec_ref(x_1); + x_563 = lean_box(0); +} +x_564 = l_Lean_Syntax_inhabited; +x_565 = lean_array_get(x_564, x_11, x_25); +x_566 = l_Lean_Syntax_isNone(x_565); +if (x_566 == 0) +{ +lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; +lean_dec(x_563); +lean_dec(x_11); +lean_dec(x_10); +x_567 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_568 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_565, x_567, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +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_565); +x_569 = lean_ctor_get(x_568, 0); +lean_inc(x_569); +x_570 = lean_ctor_get(x_568, 1); +lean_inc(x_570); +if (lean_is_exclusive(x_568)) { + lean_ctor_release(x_568, 0); + lean_ctor_release(x_568, 1); + x_571 = x_568; +} else { + lean_dec_ref(x_568); + x_571 = lean_box(0); +} +if (lean_is_scalar(x_571)) { + x_572 = lean_alloc_ctor(1, 2, 0); +} else { + x_572 = x_571; +} +lean_ctor_set(x_572, 0, x_569); +lean_ctor_set(x_572, 1, x_570); +return x_572; +} +else +{ +lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; +lean_dec(x_565); +x_573 = lean_unsigned_to_nat(2u); +x_574 = lean_array_get(x_564, x_11, x_573); +x_575 = l_Lean_Syntax_getArgs(x_574); +lean_dec(x_574); +x_576 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_577 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_575, x_576, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_575); +if (lean_obj_tag(x_577) == 0) +{ +lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_578 = lean_ctor_get(x_577, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_577, 1); +lean_inc(x_579); +if (lean_is_exclusive(x_577)) { + lean_ctor_release(x_577, 0); + lean_ctor_release(x_577, 1); + x_580 = x_577; +} else { + lean_dec_ref(x_577); + x_580 = lean_box(0); +} +x_581 = l_Lean_nullKind; +if (lean_is_scalar(x_563)) { + x_582 = lean_alloc_ctor(1, 2, 0); +} else { + x_582 = x_563; +} +lean_ctor_set(x_582, 0, x_581); +lean_ctor_set(x_582, 1, x_578); +x_583 = lean_array_set(x_11, x_573, x_582); +x_584 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_584, 0, x_10); +lean_ctor_set(x_584, 1, x_583); +if (lean_is_scalar(x_580)) { + x_585 = lean_alloc_ctor(0, 2, 0); +} else { + x_585 = x_580; +} +lean_ctor_set(x_585, 0, x_584); +lean_ctor_set(x_585, 1, x_579); +return x_585; +} +else +{ +lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; +lean_dec(x_563); +lean_dec(x_11); +lean_dec(x_10); +x_586 = lean_ctor_get(x_577, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_577, 1); +lean_inc(x_587); +if (lean_is_exclusive(x_577)) { + lean_ctor_release(x_577, 0); + lean_ctor_release(x_577, 1); + x_588 = x_577; +} else { + lean_dec_ref(x_577); + x_588 = lean_box(0); +} +if (lean_is_scalar(x_588)) { + x_589 = lean_alloc_ctor(1, 2, 0); +} else { + x_589 = x_588; +} +lean_ctor_set(x_589, 0, x_586); +lean_ctor_set(x_589, 1, x_587); +return x_589; +} +} +} +} +else +{ +lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +lean_free_object(x_27); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_590 = x_1; +} else { + lean_dec_ref(x_1); + x_590 = lean_box(0); +} +x_591 = l_Lean_Syntax_inhabited; +x_592 = lean_array_get(x_591, x_11, x_25); +x_593 = l_Lean_Syntax_getArgs(x_592); +lean_dec(x_592); +x_594 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_595 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_593, x_594, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_593); +if (lean_obj_tag(x_595) == 0) +{ +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; +x_596 = lean_ctor_get(x_595, 0); +lean_inc(x_596); +x_597 = lean_ctor_get(x_595, 1); +lean_inc(x_597); +if (lean_is_exclusive(x_595)) { + lean_ctor_release(x_595, 0); + lean_ctor_release(x_595, 1); + x_598 = x_595; +} else { + lean_dec_ref(x_595); + x_598 = lean_box(0); +} +x_599 = l_Lean_nullKind; +if (lean_is_scalar(x_590)) { + x_600 = lean_alloc_ctor(1, 2, 0); +} else { + x_600 = x_590; +} +lean_ctor_set(x_600, 0, x_599); +lean_ctor_set(x_600, 1, x_596); +x_601 = lean_array_set(x_11, x_25, x_600); +x_602 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_602, 0, x_10); +lean_ctor_set(x_602, 1, x_601); +if (lean_is_scalar(x_598)) { + x_603 = lean_alloc_ctor(0, 2, 0); +} else { + x_603 = x_598; +} +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_597); +return x_603; +} +else +{ +lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; +lean_dec(x_590); +lean_dec(x_11); +lean_dec(x_10); +x_604 = lean_ctor_get(x_595, 0); +lean_inc(x_604); +x_605 = lean_ctor_get(x_595, 1); +lean_inc(x_605); +if (lean_is_exclusive(x_595)) { + lean_ctor_release(x_595, 0); + lean_ctor_release(x_595, 1); + x_606 = x_595; +} else { + lean_dec_ref(x_595); + x_606 = lean_box(0); +} +if (lean_is_scalar(x_606)) { + x_607 = lean_alloc_ctor(1, 2, 0); +} else { + x_607 = x_606; +} +lean_ctor_set(x_607, 0, x_604); +lean_ctor_set(x_607, 1, x_605); +return x_607; +} +} +} +else +{ +lean_object* x_608; lean_object* x_609; +lean_free_object(x_27); +lean_dec(x_11); +lean_dec(x_10); +x_608 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_609 = l_Lean_Elab_Term_CollectPatternVars_processCtorApp(x_608, x_1, x_2, x_414, x_4, x_5, x_6, x_7, x_8, x_29); +lean_dec(x_1); +return x_609; +} +} +} +else +{ +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; uint8_t x_618; uint8_t x_619; uint8_t x_620; lean_object* x_621; lean_object* x_622; +x_610 = lean_ctor_get(x_27, 1); +lean_inc(x_610); +lean_dec(x_27); +x_611 = lean_ctor_get(x_3, 0); +lean_inc(x_611); +x_612 = lean_ctor_get(x_3, 1); +lean_inc(x_612); +x_613 = lean_ctor_get(x_3, 2); +lean_inc(x_613); +x_614 = lean_ctor_get(x_3, 3); +lean_inc(x_614); +x_615 = lean_ctor_get(x_3, 4); +lean_inc(x_615); +x_616 = lean_ctor_get(x_3, 5); +lean_inc(x_616); +x_617 = lean_ctor_get(x_3, 6); +lean_inc(x_617); +x_618 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_619 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +x_620 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + x_621 = x_3; +} else { + lean_dec_ref(x_3); + x_621 = lean_box(0); +} +if (lean_is_scalar(x_621)) { + x_622 = lean_alloc_ctor(0, 8, 3); +} else { + x_622 = x_621; +} +lean_ctor_set(x_622, 0, x_611); +lean_ctor_set(x_622, 1, x_612); +lean_ctor_set(x_622, 2, x_613); +lean_ctor_set(x_622, 3, x_614); +lean_ctor_set(x_622, 4, x_615); +lean_ctor_set(x_622, 5, x_616); +lean_ctor_set(x_622, 6, x_617); +lean_ctor_set(x_622, 7, x_24); +lean_ctor_set_uint8(x_622, sizeof(void*)*8, x_618); +lean_ctor_set_uint8(x_622, sizeof(void*)*8 + 1, x_619); +lean_ctor_set_uint8(x_622, sizeof(void*)*8 + 2, x_620); +if (x_20 == 0) +{ +lean_object* x_623; uint8_t x_624; +x_623 = l___private_Lean_Elab_Match_26__collect___main___closed__2; +x_624 = lean_name_eq(x_10, x_623); +if (x_624 == 0) +{ +lean_object* x_625; uint8_t x_626; +x_625 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; +x_626 = lean_name_eq(x_10, x_625); +if (x_626 == 0) +{ +lean_object* x_627; uint8_t x_628; +x_627 = l_Lean_mkHole___closed__2; +x_628 = lean_name_eq(x_10, x_627); +if (x_628 == 0) +{ +lean_object* x_629; uint8_t x_630; +x_629 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; +x_630 = lean_name_eq(x_10, x_629); +if (x_630 == 0) +{ +lean_object* x_631; uint8_t x_632; +lean_dec(x_11); +x_631 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; +x_632 = lean_name_eq(x_10, x_631); +if (x_632 == 0) +{ +lean_object* x_633; uint8_t x_634; +x_633 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_634 = lean_name_eq(x_10, x_633); +if (x_634 == 0) +{ +lean_object* x_635; uint8_t x_636; +x_635 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; +x_636 = lean_name_eq(x_10, x_635); +if (x_636 == 0) +{ +lean_object* x_637; uint8_t x_638; +x_637 = l_Lean_strLitKind; +x_638 = lean_name_eq(x_10, x_637); +if (x_638 == 0) +{ +lean_object* x_639; uint8_t x_640; +x_639 = l_Lean_numLitKind; +x_640 = lean_name_eq(x_10, x_639); +if (x_640 == 0) +{ +lean_object* x_641; uint8_t x_642; +x_641 = l_Lean_charLitKind; +x_642 = lean_name_eq(x_10, x_641); +if (x_642 == 0) +{ +lean_object* x_643; uint8_t x_644; +lean_dec(x_1); +x_643 = l_Lean_choiceKind; +x_644 = lean_name_eq(x_10, x_643); +lean_dec(x_10); +if (x_644 == 0) +{ +lean_object* x_645; +x_645 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_645; +} +else +{ +lean_object* x_646; lean_object* x_647; +x_646 = l___private_Lean_Elab_Match_26__collect___main___closed__5; +x_647 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_646, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_647; +} +} +else +{ +lean_object* x_648; +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_648 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_648, 0, x_1); +lean_ctor_set(x_648, 1, x_610); +return x_648; +} +} +else +{ +lean_object* x_649; +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_649 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_649, 0, x_1); +lean_ctor_set(x_649, 1, x_610); +return x_649; +} +} +else +{ +lean_object* x_650; +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_650 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_650, 0, x_1); +lean_ctor_set(x_650, 1, x_610); +return x_650; +} +} +else +{ +lean_object* x_651; +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_651 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_651, 0, x_1); +lean_ctor_set(x_651, 1, x_610); +return x_651; +} +} +else +{ +lean_object* x_652; lean_object* x_653; lean_object* x_654; +lean_dec(x_10); +x_652 = lean_unsigned_to_nat(0u); +x_653 = l_Lean_Syntax_getArg(x_1, x_652); +lean_inc(x_622); +lean_inc(x_653); +x_654 = l___private_Lean_Elab_Match_24__processVar(x_653, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +if (lean_obj_tag(x_654) == 0) +{ +lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; +x_655 = lean_ctor_get(x_654, 1); +lean_inc(x_655); +lean_dec(x_654); +x_656 = lean_unsigned_to_nat(2u); +x_657 = l_Lean_Syntax_getArg(x_1, x_656); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); @@ -8276,326 +9875,293 @@ if (lean_is_exclusive(x_1)) { lean_dec_ref(x_1); x_658 = lean_box(0); } -x_659 = l_Lean_Syntax_inhabited; -x_660 = lean_array_get(x_659, x_11, x_25); -x_661 = l_Lean_Syntax_isNone(x_660); -if (x_661 == 0) -{ -lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; -lean_dec(x_658); -lean_dec(x_11); -lean_dec(x_10); -x_662 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_663 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_660, x_662, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -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_660); -x_664 = lean_ctor_get(x_663, 0); -lean_inc(x_664); -x_665 = lean_ctor_get(x_663, 1); -lean_inc(x_665); -if (lean_is_exclusive(x_663)) { - lean_ctor_release(x_663, 0); - lean_ctor_release(x_663, 1); - x_666 = x_663; -} else { - lean_dec_ref(x_663); - x_666 = lean_box(0); -} -if (lean_is_scalar(x_666)) { - x_667 = lean_alloc_ctor(1, 2, 0); -} else { - x_667 = x_666; -} -lean_ctor_set(x_667, 0, x_664); -lean_ctor_set(x_667, 1, x_665); -return x_667; -} -else -{ -lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; -lean_dec(x_660); -x_668 = lean_unsigned_to_nat(2u); -x_669 = lean_array_get(x_659, x_11, x_668); -x_670 = l_Lean_Syntax_getArgs(x_669); -lean_dec(x_669); -x_671 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_672 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_670, x_671, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_670); -if (lean_obj_tag(x_672) == 0) -{ -lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_673 = lean_ctor_get(x_672, 0); -lean_inc(x_673); -x_674 = lean_ctor_get(x_672, 1); -lean_inc(x_674); -if (lean_is_exclusive(x_672)) { - lean_ctor_release(x_672, 0); - lean_ctor_release(x_672, 1); - x_675 = x_672; -} else { - lean_dec_ref(x_672); - x_675 = lean_box(0); -} -x_676 = l_Lean_nullKind; -if (lean_is_scalar(x_658)) { - x_677 = lean_alloc_ctor(1, 2, 0); -} else { - x_677 = x_658; -} -lean_ctor_set(x_677, 0, x_676); -lean_ctor_set(x_677, 1, x_673); -x_678 = lean_array_set(x_11, x_668, x_677); -x_679 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_679, 0, x_10); -lean_ctor_set(x_679, 1, x_678); -if (lean_is_scalar(x_675)) { - x_680 = lean_alloc_ctor(0, 2, 0); -} else { - x_680 = x_675; -} -lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_674); -return x_680; -} -else -{ -lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; -lean_dec(x_658); -lean_dec(x_11); -lean_dec(x_10); -x_681 = lean_ctor_get(x_672, 0); -lean_inc(x_681); -x_682 = lean_ctor_get(x_672, 1); -lean_inc(x_682); -if (lean_is_exclusive(x_672)) { - lean_ctor_release(x_672, 0); - lean_ctor_release(x_672, 1); - x_683 = x_672; -} else { - lean_dec_ref(x_672); - x_683 = lean_box(0); -} -if (lean_is_scalar(x_683)) { - x_684 = lean_alloc_ctor(1, 2, 0); -} else { - x_684 = x_683; -} -lean_ctor_set(x_684, 0, x_681); -lean_ctor_set(x_684, 1, x_682); -return x_684; -} -} -} -} -else -{ -lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; -lean_free_object(x_27); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_685 = x_1; -} else { - lean_dec_ref(x_1); - x_685 = lean_box(0); -} -x_686 = l_Lean_Syntax_inhabited; -x_687 = lean_array_get(x_686, x_11, x_25); -x_688 = l_Lean_Syntax_getArgs(x_687); -lean_dec(x_687); -x_689 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_690 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_688, x_689, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -lean_dec(x_688); -if (lean_obj_tag(x_690) == 0) -{ -lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_691 = lean_ctor_get(x_690, 0); -lean_inc(x_691); -x_692 = lean_ctor_get(x_690, 1); -lean_inc(x_692); -if (lean_is_exclusive(x_690)) { - lean_ctor_release(x_690, 0); - lean_ctor_release(x_690, 1); - x_693 = x_690; -} else { - lean_dec_ref(x_690); - x_693 = lean_box(0); -} -x_694 = l_Lean_nullKind; -if (lean_is_scalar(x_685)) { - x_695 = lean_alloc_ctor(1, 2, 0); -} else { - x_695 = x_685; -} -lean_ctor_set(x_695, 0, x_694); -lean_ctor_set(x_695, 1, x_691); -x_696 = lean_array_set(x_11, x_25, x_695); -x_697 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_697, 0, x_10); -lean_ctor_set(x_697, 1, x_696); -if (lean_is_scalar(x_693)) { - x_698 = lean_alloc_ctor(0, 2, 0); -} else { - x_698 = x_693; -} -lean_ctor_set(x_698, 0, x_697); -lean_ctor_set(x_698, 1, x_692); -return x_698; -} -else -{ -lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; -lean_dec(x_685); -lean_dec(x_11); -lean_dec(x_10); -x_699 = lean_ctor_get(x_690, 0); -lean_inc(x_699); -x_700 = lean_ctor_get(x_690, 1); -lean_inc(x_700); -if (lean_is_exclusive(x_690)) { - lean_ctor_release(x_690, 0); - lean_ctor_release(x_690, 1); - x_701 = x_690; -} else { - lean_dec_ref(x_690); - x_701 = lean_box(0); -} -if (lean_is_scalar(x_701)) { - x_702 = lean_alloc_ctor(1, 2, 0); -} else { - x_702 = x_701; -} -lean_ctor_set(x_702, 0, x_699); -lean_ctor_set(x_702, 1, x_700); -return x_702; -} -} -} -else -{ -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; -lean_free_object(x_27); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_703 = x_1; -} else { - lean_dec_ref(x_1); - x_703 = lean_box(0); -} -x_704 = l_Lean_Syntax_inhabited; -x_705 = lean_unsigned_to_nat(0u); -x_706 = lean_array_get(x_704, x_11, x_705); -x_707 = lean_array_get(x_704, x_11, x_25); -x_708 = l_Lean_Syntax_getArgs(x_707); -lean_dec(x_707); -x_709 = l_Lean_mkAppStx___closed__6; -lean_inc(x_500); -x_710 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_709, x_708, x_705, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_710) == 0) -{ -lean_object* x_711; uint8_t x_712; lean_object* x_713; -x_711 = lean_ctor_get(x_710, 1); -lean_inc(x_711); -lean_dec(x_710); -x_712 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_500); -x_713 = l___private_Lean_Elab_Match_16__processIdAux(x_706, x_712, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_711); -if (lean_obj_tag(x_713) == 0) +lean_inc(x_622); +x_659 = l___private_Lean_Elab_Match_26__collect___main(x_657, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_655); +if (lean_obj_tag(x_659) == 0) { -lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; -x_714 = lean_ctor_get(x_713, 0); -lean_inc(x_714); -x_715 = lean_ctor_get(x_713, 1); +lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; +x_660 = lean_ctor_get(x_659, 0); +lean_inc(x_660); +x_661 = lean_ctor_get(x_659, 1); +lean_inc(x_661); +lean_dec(x_659); +x_662 = l_Lean_Elab_Term_getCurrMacroScope(x_622, x_4, x_5, x_6, x_7, x_8, x_661); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_622); +x_663 = lean_ctor_get(x_662, 0); +lean_inc(x_663); +x_664 = lean_ctor_get(x_662, 1); +lean_inc(x_664); +lean_dec(x_662); +x_665 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_664); +lean_dec(x_8); +x_666 = lean_ctor_get(x_665, 0); +lean_inc(x_666); +x_667 = lean_ctor_get(x_665, 1); +lean_inc(x_667); +if (lean_is_exclusive(x_665)) { + lean_ctor_release(x_665, 0); + lean_ctor_release(x_665, 1); + x_668 = x_665; +} else { + lean_dec_ref(x_665); + x_668 = lean_box(0); +} +x_669 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_670 = l_Lean_addMacroScope(x_666, x_669, x_663); +x_671 = l_Lean_SourceInfo_inhabited___closed__1; +x_672 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_673 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_674 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_674, 0, x_671); +lean_ctor_set(x_674, 1, x_672); +lean_ctor_set(x_674, 2, x_670); +lean_ctor_set(x_674, 3, x_673); +x_675 = l_Array_empty___closed__1; +x_676 = lean_array_push(x_675, x_674); +x_677 = lean_array_push(x_675, x_653); +x_678 = lean_array_push(x_677, x_660); +x_679 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_658)) { + x_680 = lean_alloc_ctor(1, 2, 0); +} else { + x_680 = x_658; +} +lean_ctor_set(x_680, 0, x_679); +lean_ctor_set(x_680, 1, x_678); +x_681 = lean_array_push(x_676, x_680); +x_682 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_682, 0, x_12); +lean_ctor_set(x_682, 1, x_681); +if (lean_is_scalar(x_668)) { + x_683 = lean_alloc_ctor(0, 2, 0); +} else { + x_683 = x_668; +} +lean_ctor_set(x_683, 0, x_682); +lean_ctor_set(x_683, 1, x_667); +return x_683; +} +else +{ +lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; +lean_dec(x_658); +lean_dec(x_653); +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_684 = lean_ctor_get(x_659, 0); +lean_inc(x_684); +x_685 = lean_ctor_get(x_659, 1); +lean_inc(x_685); +if (lean_is_exclusive(x_659)) { + lean_ctor_release(x_659, 0); + lean_ctor_release(x_659, 1); + x_686 = x_659; +} else { + lean_dec_ref(x_659); + x_686 = lean_box(0); +} +if (lean_is_scalar(x_686)) { + x_687 = lean_alloc_ctor(1, 2, 0); +} else { + x_687 = x_686; +} +lean_ctor_set(x_687, 0, x_684); +lean_ctor_set(x_687, 1, x_685); +return x_687; +} +} +else +{ +lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; +lean_dec(x_653); +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_688 = lean_ctor_get(x_654, 0); +lean_inc(x_688); +x_689 = lean_ctor_get(x_654, 1); +lean_inc(x_689); +if (lean_is_exclusive(x_654)) { + lean_ctor_release(x_654, 0); + lean_ctor_release(x_654, 1); + x_690 = x_654; +} else { + lean_dec_ref(x_654); + x_690 = lean_box(0); +} +if (lean_is_scalar(x_690)) { + x_691 = lean_alloc_ctor(1, 2, 0); +} else { + x_691 = x_690; +} +lean_ctor_set(x_691, 0, x_688); +lean_ctor_set(x_691, 1, x_689); +return x_691; +} +} +} +else +{ +lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; +lean_dec(x_10); +x_692 = lean_unsigned_to_nat(0u); +x_693 = l_Lean_Syntax_getArg(x_1, x_692); +lean_dec(x_1); +x_694 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_695 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_694, x_693, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +return x_695; +} +} +else +{ +lean_object* x_696; lean_object* x_697; uint8_t x_698; +x_696 = l_Lean_Syntax_inhabited; +x_697 = lean_array_get(x_696, x_11, x_25); +x_698 = l_Lean_Syntax_isNone(x_697); +if (x_698 == 0) +{ +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; uint8_t x_703; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_699 = x_1; +} else { + lean_dec_ref(x_1); + x_699 = lean_box(0); +} +x_700 = lean_unsigned_to_nat(0u); +x_701 = l_Lean_Syntax_getArg(x_697, x_700); +x_702 = l_Lean_Syntax_getArg(x_697, x_25); +x_703 = l_Lean_Syntax_isNone(x_702); +if (x_703 == 0) +{ +lean_object* x_704; lean_object* x_705; uint8_t x_706; +x_704 = l_Lean_Syntax_getArg(x_702, x_700); +x_705 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_704); +x_706 = l_Lean_Syntax_isOfKind(x_704, x_705); +if (x_706 == 0) +{ +lean_object* x_707; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_622); +lean_inc(x_2); +x_707 = l___private_Lean_Elab_Match_26__collect___main(x_701, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +if (lean_obj_tag(x_707) == 0) +{ +lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_708 = lean_ctor_get(x_707, 0); +lean_inc(x_708); +x_709 = lean_ctor_get(x_707, 1); +lean_inc(x_709); +lean_dec(x_707); +x_710 = l_Lean_Syntax_setArg(x_697, x_700, x_708); +x_711 = l_Lean_Syntax_getArg(x_704, x_25); +x_712 = l_Lean_Syntax_getArgs(x_711); +lean_dec(x_711); +x_713 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_714 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_712, x_713, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_709); +lean_dec(x_712); +if (lean_obj_tag(x_714) == 0) +{ +lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; +x_715 = lean_ctor_get(x_714, 0); lean_inc(x_715); -lean_dec(x_713); -x_716 = x_708; -x_717 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_717, 0, x_714); -lean_closure_set(x_717, 1, x_705); -lean_closure_set(x_717, 2, x_716); -x_718 = x_717; -x_719 = lean_apply_8(x_718, x_2, x_500, x_4, x_5, x_6, x_7, x_8, x_715); -if (lean_obj_tag(x_719) == 0) -{ -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_720 = lean_ctor_get(x_719, 0); -lean_inc(x_720); -x_721 = lean_ctor_get(x_719, 1); -lean_inc(x_721); -if (lean_is_exclusive(x_719)) { - lean_ctor_release(x_719, 0); - lean_ctor_release(x_719, 1); - x_722 = x_719; +x_716 = lean_ctor_get(x_714, 1); +lean_inc(x_716); +if (lean_is_exclusive(x_714)) { + lean_ctor_release(x_714, 0); + lean_ctor_release(x_714, 1); + x_717 = x_714; } else { - lean_dec_ref(x_719); - x_722 = lean_box(0); + lean_dec_ref(x_714); + x_717 = lean_box(0); } -x_723 = l_Lean_nullKind; -if (lean_is_scalar(x_703)) { - x_724 = lean_alloc_ctor(1, 2, 0); +x_718 = l_Lean_nullKind; +if (lean_is_scalar(x_699)) { + x_719 = lean_alloc_ctor(1, 2, 0); } else { - x_724 = x_703; + x_719 = x_699; } -lean_ctor_set(x_724, 0, x_723); -lean_ctor_set(x_724, 1, x_720); -x_725 = lean_array_set(x_11, x_25, x_724); -x_726 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_726, 0, x_10); -lean_ctor_set(x_726, 1, x_725); -if (lean_is_scalar(x_722)) { - x_727 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_719, 0, x_718); +lean_ctor_set(x_719, 1, x_715); +x_720 = l_Lean_Syntax_setArg(x_704, x_25, x_719); +x_721 = l_Lean_Syntax_setArg(x_702, x_700, x_720); +x_722 = l_Lean_Syntax_setArg(x_710, x_25, x_721); +x_723 = lean_array_set(x_11, x_25, x_722); +x_724 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_724, 0, x_10); +lean_ctor_set(x_724, 1, x_723); +if (lean_is_scalar(x_717)) { + x_725 = lean_alloc_ctor(0, 2, 0); } else { - x_727 = x_722; + x_725 = x_717; } -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_721); -return x_727; +lean_ctor_set(x_725, 0, x_724); +lean_ctor_set(x_725, 1, x_716); +return x_725; } else { -lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; -lean_dec(x_703); +lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; +lean_dec(x_710); +lean_dec(x_704); +lean_dec(x_702); +lean_dec(x_699); lean_dec(x_11); lean_dec(x_10); -x_728 = lean_ctor_get(x_719, 0); -lean_inc(x_728); -x_729 = lean_ctor_get(x_719, 1); -lean_inc(x_729); -if (lean_is_exclusive(x_719)) { - lean_ctor_release(x_719, 0); - lean_ctor_release(x_719, 1); - x_730 = x_719; +x_726 = lean_ctor_get(x_714, 0); +lean_inc(x_726); +x_727 = lean_ctor_get(x_714, 1); +lean_inc(x_727); +if (lean_is_exclusive(x_714)) { + lean_ctor_release(x_714, 0); + lean_ctor_release(x_714, 1); + x_728 = x_714; } else { - lean_dec_ref(x_719); - x_730 = lean_box(0); + lean_dec_ref(x_714); + x_728 = lean_box(0); } -if (lean_is_scalar(x_730)) { - x_731 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_728)) { + x_729 = lean_alloc_ctor(1, 2, 0); } else { - x_731 = x_730; + x_729 = x_728; } -lean_ctor_set(x_731, 0, x_728); -lean_ctor_set(x_731, 1, x_729); -return x_731; +lean_ctor_set(x_729, 0, x_726); +lean_ctor_set(x_729, 1, x_727); +return x_729; } } else { -lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; -lean_dec(x_708); -lean_dec(x_703); -lean_dec(x_500); +lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; +lean_dec(x_704); +lean_dec(x_702); +lean_dec(x_699); +lean_dec(x_697); +lean_dec(x_622); lean_dec(x_7); lean_dec(x_11); lean_dec(x_10); @@ -8604,90 +10170,532 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_732 = lean_ctor_get(x_713, 0); -lean_inc(x_732); -x_733 = lean_ctor_get(x_713, 1); -lean_inc(x_733); -if (lean_is_exclusive(x_713)) { - lean_ctor_release(x_713, 0); - lean_ctor_release(x_713, 1); - x_734 = x_713; +x_730 = lean_ctor_get(x_707, 0); +lean_inc(x_730); +x_731 = lean_ctor_get(x_707, 1); +lean_inc(x_731); +if (lean_is_exclusive(x_707)) { + lean_ctor_release(x_707, 0); + lean_ctor_release(x_707, 1); + x_732 = x_707; } else { - lean_dec_ref(x_713); - x_734 = lean_box(0); + lean_dec_ref(x_707); + x_732 = lean_box(0); } -if (lean_is_scalar(x_734)) { - x_735 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_732)) { + x_733 = lean_alloc_ctor(1, 2, 0); } else { - x_735 = x_734; + x_733 = x_732; } -lean_ctor_set(x_735, 0, x_732); -lean_ctor_set(x_735, 1, x_733); -return x_735; +lean_ctor_set(x_733, 0, x_730); +lean_ctor_set(x_733, 1, x_731); +return x_733; } } else { -lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; -lean_dec(x_708); -lean_dec(x_706); -lean_dec(x_703); -lean_dec(x_500); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_736 = lean_ctor_get(x_710, 0); +lean_object* x_734; +lean_dec(x_704); +lean_dec(x_702); +x_734 = l___private_Lean_Elab_Match_26__collect___main(x_701, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +if (lean_obj_tag(x_734) == 0) +{ +lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_735 = lean_ctor_get(x_734, 0); +lean_inc(x_735); +x_736 = lean_ctor_get(x_734, 1); lean_inc(x_736); -x_737 = lean_ctor_get(x_710, 1); -lean_inc(x_737); -if (lean_is_exclusive(x_710)) { - lean_ctor_release(x_710, 0); - lean_ctor_release(x_710, 1); - x_738 = x_710; +if (lean_is_exclusive(x_734)) { + lean_ctor_release(x_734, 0); + lean_ctor_release(x_734, 1); + x_737 = x_734; } else { - lean_dec_ref(x_710); - x_738 = lean_box(0); + lean_dec_ref(x_734); + x_737 = lean_box(0); } -if (lean_is_scalar(x_738)) { - x_739 = lean_alloc_ctor(1, 2, 0); +x_738 = l_Lean_Syntax_setArg(x_697, x_700, x_735); +x_739 = lean_array_set(x_11, x_25, x_738); +if (lean_is_scalar(x_699)) { + x_740 = lean_alloc_ctor(1, 2, 0); } else { - x_739 = x_738; + x_740 = x_699; } -lean_ctor_set(x_739, 0, x_736); -lean_ctor_set(x_739, 1, x_737); -return x_739; +lean_ctor_set(x_740, 0, x_10); +lean_ctor_set(x_740, 1, x_739); +if (lean_is_scalar(x_737)) { + x_741 = lean_alloc_ctor(0, 2, 0); +} else { + x_741 = x_737; +} +lean_ctor_set(x_741, 0, x_740); +lean_ctor_set(x_741, 1, x_736); +return x_741; +} +else +{ +lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; +lean_dec(x_699); +lean_dec(x_697); +lean_dec(x_11); +lean_dec(x_10); +x_742 = lean_ctor_get(x_734, 0); +lean_inc(x_742); +x_743 = lean_ctor_get(x_734, 1); +lean_inc(x_743); +if (lean_is_exclusive(x_734)) { + lean_ctor_release(x_734, 0); + lean_ctor_release(x_734, 1); + x_744 = x_734; +} else { + lean_dec_ref(x_734); + x_744 = lean_box(0); +} +if (lean_is_scalar(x_744)) { + x_745 = lean_alloc_ctor(1, 2, 0); +} else { + x_745 = x_744; +} +lean_ctor_set(x_745, 0, x_742); +lean_ctor_set(x_745, 1, x_743); +return x_745; +} +} +} +else +{ +lean_object* x_746; +lean_dec(x_702); +x_746 = l___private_Lean_Elab_Match_26__collect___main(x_701, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +if (lean_obj_tag(x_746) == 0) +{ +lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; +x_747 = lean_ctor_get(x_746, 0); +lean_inc(x_747); +x_748 = lean_ctor_get(x_746, 1); +lean_inc(x_748); +if (lean_is_exclusive(x_746)) { + lean_ctor_release(x_746, 0); + lean_ctor_release(x_746, 1); + x_749 = x_746; +} else { + lean_dec_ref(x_746); + x_749 = lean_box(0); +} +x_750 = l_Lean_Syntax_setArg(x_697, x_700, x_747); +x_751 = lean_array_set(x_11, x_25, x_750); +if (lean_is_scalar(x_699)) { + x_752 = lean_alloc_ctor(1, 2, 0); +} else { + x_752 = x_699; +} +lean_ctor_set(x_752, 0, x_10); +lean_ctor_set(x_752, 1, x_751); +if (lean_is_scalar(x_749)) { + x_753 = lean_alloc_ctor(0, 2, 0); +} else { + x_753 = x_749; +} +lean_ctor_set(x_753, 0, x_752); +lean_ctor_set(x_753, 1, x_748); +return x_753; +} +else +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; +lean_dec(x_699); +lean_dec(x_697); +lean_dec(x_11); +lean_dec(x_10); +x_754 = lean_ctor_get(x_746, 0); +lean_inc(x_754); +x_755 = lean_ctor_get(x_746, 1); +lean_inc(x_755); +if (lean_is_exclusive(x_746)) { + lean_ctor_release(x_746, 0); + lean_ctor_release(x_746, 1); + x_756 = x_746; +} else { + lean_dec_ref(x_746); + x_756 = lean_box(0); +} +if (lean_is_scalar(x_756)) { + x_757 = lean_alloc_ctor(1, 2, 0); +} else { + x_757 = x_756; +} +lean_ctor_set(x_757, 0, x_754); +lean_ctor_set(x_757, 1, x_755); +return x_757; +} +} +} +else +{ +lean_object* x_758; +lean_dec(x_697); +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_758 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_758, 0, x_1); +lean_ctor_set(x_758, 1, x_610); +return x_758; +} +} +} +else +{ +lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; +lean_dec(x_622); +lean_dec(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_759 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_610); +lean_dec(x_8); +x_760 = lean_ctor_get(x_759, 0); +lean_inc(x_760); +x_761 = lean_ctor_get(x_759, 1); +lean_inc(x_761); +lean_dec(x_759); +x_762 = lean_st_ref_take(x_2, x_761); +x_763 = lean_ctor_get(x_762, 0); +lean_inc(x_763); +x_764 = lean_ctor_get(x_762, 1); +lean_inc(x_764); +lean_dec(x_762); +x_765 = lean_ctor_get(x_763, 0); +lean_inc(x_765); +x_766 = lean_ctor_get(x_763, 1); +lean_inc(x_766); +if (lean_is_exclusive(x_763)) { + lean_ctor_release(x_763, 0); + lean_ctor_release(x_763, 1); + x_767 = x_763; +} else { + lean_dec_ref(x_763); + x_767 = lean_box(0); +} +x_768 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_760); +x_769 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_769, 0, x_768); +x_770 = lean_array_push(x_766, x_769); +if (lean_is_scalar(x_767)) { + x_771 = lean_alloc_ctor(0, 2, 0); +} else { + x_771 = x_767; +} +lean_ctor_set(x_771, 0, x_765); +lean_ctor_set(x_771, 1, x_770); +x_772 = lean_st_ref_set(x_2, x_771, x_764); +lean_dec(x_2); +x_773 = lean_ctor_get(x_772, 1); +lean_inc(x_773); +if (lean_is_exclusive(x_772)) { + lean_ctor_release(x_772, 0); + lean_ctor_release(x_772, 1); + x_774 = x_772; +} else { + lean_dec_ref(x_772); + x_774 = lean_box(0); +} +if (lean_is_scalar(x_774)) { + x_775 = lean_alloc_ctor(0, 2, 0); +} else { + x_775 = x_774; +} +lean_ctor_set(x_775, 0, x_760); +lean_ctor_set(x_775, 1, x_773); +return x_775; +} +} +else +{ +lean_object* x_776; lean_object* x_777; lean_object* x_778; uint8_t x_779; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_776 = x_1; +} else { + lean_dec_ref(x_1); + x_776 = lean_box(0); +} +x_777 = l_Lean_Syntax_inhabited; +x_778 = lean_array_get(x_777, x_11, x_25); +x_779 = l_Lean_Syntax_isNone(x_778); +if (x_779 == 0) +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; +lean_dec(x_776); +lean_dec(x_11); +lean_dec(x_10); +x_780 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_781 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_778, x_780, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +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_778); +x_782 = lean_ctor_get(x_781, 0); +lean_inc(x_782); +x_783 = lean_ctor_get(x_781, 1); +lean_inc(x_783); +if (lean_is_exclusive(x_781)) { + lean_ctor_release(x_781, 0); + lean_ctor_release(x_781, 1); + x_784 = x_781; +} else { + lean_dec_ref(x_781); + x_784 = lean_box(0); +} +if (lean_is_scalar(x_784)) { + x_785 = lean_alloc_ctor(1, 2, 0); +} else { + x_785 = x_784; +} +lean_ctor_set(x_785, 0, x_782); +lean_ctor_set(x_785, 1, x_783); +return x_785; +} +else +{ +lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; +lean_dec(x_778); +x_786 = lean_unsigned_to_nat(2u); +x_787 = lean_array_get(x_777, x_11, x_786); +x_788 = l_Lean_Syntax_getArgs(x_787); +lean_dec(x_787); +x_789 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_790 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_788, x_789, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +lean_dec(x_788); +if (lean_obj_tag(x_790) == 0) +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; +x_791 = lean_ctor_get(x_790, 0); +lean_inc(x_791); +x_792 = lean_ctor_get(x_790, 1); +lean_inc(x_792); +if (lean_is_exclusive(x_790)) { + lean_ctor_release(x_790, 0); + lean_ctor_release(x_790, 1); + x_793 = x_790; +} else { + lean_dec_ref(x_790); + x_793 = lean_box(0); +} +x_794 = l_Lean_nullKind; +if (lean_is_scalar(x_776)) { + x_795 = lean_alloc_ctor(1, 2, 0); +} else { + x_795 = x_776; +} +lean_ctor_set(x_795, 0, x_794); +lean_ctor_set(x_795, 1, x_791); +x_796 = lean_array_set(x_11, x_786, x_795); +x_797 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_797, 0, x_10); +lean_ctor_set(x_797, 1, x_796); +if (lean_is_scalar(x_793)) { + x_798 = lean_alloc_ctor(0, 2, 0); +} else { + x_798 = x_793; +} +lean_ctor_set(x_798, 0, x_797); +lean_ctor_set(x_798, 1, x_792); +return x_798; +} +else +{ +lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; +lean_dec(x_776); +lean_dec(x_11); +lean_dec(x_10); +x_799 = lean_ctor_get(x_790, 0); +lean_inc(x_799); +x_800 = lean_ctor_get(x_790, 1); +lean_inc(x_800); +if (lean_is_exclusive(x_790)) { + lean_ctor_release(x_790, 0); + lean_ctor_release(x_790, 1); + x_801 = x_790; +} else { + lean_dec_ref(x_790); + x_801 = lean_box(0); +} +if (lean_is_scalar(x_801)) { + x_802 = lean_alloc_ctor(1, 2, 0); +} else { + x_802 = x_801; +} +lean_ctor_set(x_802, 0, x_799); +lean_ctor_set(x_802, 1, x_800); +return x_802; } } } } else { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; uint8_t x_748; uint8_t x_749; uint8_t x_750; lean_object* x_751; lean_object* x_752; -x_740 = lean_ctor_get(x_27, 1); -lean_inc(x_740); -lean_dec(x_27); -x_741 = lean_ctor_get(x_3, 0); -lean_inc(x_741); -x_742 = lean_ctor_get(x_3, 1); -lean_inc(x_742); -x_743 = lean_ctor_get(x_3, 2); -lean_inc(x_743); -x_744 = lean_ctor_get(x_3, 3); -lean_inc(x_744); -x_745 = lean_ctor_get(x_3, 4); -lean_inc(x_745); -x_746 = lean_ctor_get(x_3, 5); -lean_inc(x_746); -x_747 = lean_ctor_get(x_3, 6); -lean_inc(x_747); -x_748 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_749 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_750 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_803 = x_1; +} else { + lean_dec_ref(x_1); + x_803 = lean_box(0); +} +x_804 = l_Lean_Syntax_inhabited; +x_805 = lean_array_get(x_804, x_11, x_25); +x_806 = l_Lean_Syntax_getArgs(x_805); +lean_dec(x_805); +x_807 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_808 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_806, x_807, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +lean_dec(x_806); +if (lean_obj_tag(x_808) == 0) +{ +lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; +x_809 = lean_ctor_get(x_808, 0); +lean_inc(x_809); +x_810 = lean_ctor_get(x_808, 1); +lean_inc(x_810); +if (lean_is_exclusive(x_808)) { + lean_ctor_release(x_808, 0); + lean_ctor_release(x_808, 1); + x_811 = x_808; +} else { + lean_dec_ref(x_808); + x_811 = lean_box(0); +} +x_812 = l_Lean_nullKind; +if (lean_is_scalar(x_803)) { + x_813 = lean_alloc_ctor(1, 2, 0); +} else { + x_813 = x_803; +} +lean_ctor_set(x_813, 0, x_812); +lean_ctor_set(x_813, 1, x_809); +x_814 = lean_array_set(x_11, x_25, x_813); +x_815 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_815, 0, x_10); +lean_ctor_set(x_815, 1, x_814); +if (lean_is_scalar(x_811)) { + x_816 = lean_alloc_ctor(0, 2, 0); +} else { + x_816 = x_811; +} +lean_ctor_set(x_816, 0, x_815); +lean_ctor_set(x_816, 1, x_810); +return x_816; +} +else +{ +lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +lean_dec(x_803); +lean_dec(x_11); +lean_dec(x_10); +x_817 = lean_ctor_get(x_808, 0); +lean_inc(x_817); +x_818 = lean_ctor_get(x_808, 1); +lean_inc(x_818); +if (lean_is_exclusive(x_808)) { + lean_ctor_release(x_808, 0); + lean_ctor_release(x_808, 1); + x_819 = x_808; +} else { + lean_dec_ref(x_808); + x_819 = lean_box(0); +} +if (lean_is_scalar(x_819)) { + x_820 = lean_alloc_ctor(1, 2, 0); +} else { + x_820 = x_819; +} +lean_ctor_set(x_820, 0, x_817); +lean_ctor_set(x_820, 1, x_818); +return x_820; +} +} +} +else +{ +lean_object* x_821; lean_object* x_822; +lean_dec(x_11); +lean_dec(x_10); +x_821 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_822 = l_Lean_Elab_Term_CollectPatternVars_processCtorApp(x_821, x_1, x_2, x_622, x_4, x_5, x_6, x_7, x_8, x_610); +lean_dec(x_1); +return x_822; +} +} +} +else +{ +lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; uint8_t x_843; uint8_t x_844; uint8_t x_845; lean_object* x_846; lean_object* x_847; +x_823 = lean_ctor_get(x_21, 0); +x_824 = lean_ctor_get(x_21, 1); +x_825 = lean_ctor_get(x_21, 2); +x_826 = lean_ctor_get(x_21, 3); +x_827 = lean_ctor_get(x_21, 4); +x_828 = lean_ctor_get(x_21, 5); +x_829 = lean_ctor_get(x_21, 6); +lean_inc(x_829); +lean_inc(x_828); +lean_inc(x_827); +lean_inc(x_826); +lean_inc(x_825); +lean_inc(x_824); +lean_inc(x_823); +lean_dec(x_21); +x_830 = lean_unsigned_to_nat(1u); +x_831 = lean_nat_add(x_828, x_830); +x_832 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_832, 0, x_823); +lean_ctor_set(x_832, 1, x_824); +lean_ctor_set(x_832, 2, x_825); +lean_ctor_set(x_832, 3, x_826); +lean_ctor_set(x_832, 4, x_827); +lean_ctor_set(x_832, 5, x_831); +lean_ctor_set(x_832, 6, x_829); +x_833 = lean_st_ref_set(x_4, x_832, x_22); +x_834 = lean_ctor_get(x_833, 1); +lean_inc(x_834); +if (lean_is_exclusive(x_833)) { + lean_ctor_release(x_833, 0); + lean_ctor_release(x_833, 1); + x_835 = x_833; +} else { + lean_dec_ref(x_833); + x_835 = lean_box(0); +} +x_836 = lean_ctor_get(x_3, 0); +lean_inc(x_836); +x_837 = lean_ctor_get(x_3, 1); +lean_inc(x_837); +x_838 = lean_ctor_get(x_3, 2); +lean_inc(x_838); +x_839 = lean_ctor_get(x_3, 3); +lean_inc(x_839); +x_840 = lean_ctor_get(x_3, 4); +lean_inc(x_840); +x_841 = lean_ctor_get(x_3, 5); +lean_inc(x_841); +x_842 = lean_ctor_get(x_3, 6); +lean_inc(x_842); +x_843 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_844 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +x_845 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); @@ -8697,710 +10705,511 @@ if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 5); lean_ctor_release(x_3, 6); lean_ctor_release(x_3, 7); - x_751 = x_3; + x_846 = x_3; } else { lean_dec_ref(x_3); - x_751 = lean_box(0); + x_846 = lean_box(0); } -if (lean_is_scalar(x_751)) { - x_752 = lean_alloc_ctor(0, 8, 3); +if (lean_is_scalar(x_846)) { + x_847 = lean_alloc_ctor(0, 8, 3); } else { - x_752 = x_751; + x_847 = x_846; } -lean_ctor_set(x_752, 0, x_741); -lean_ctor_set(x_752, 1, x_742); -lean_ctor_set(x_752, 2, x_743); -lean_ctor_set(x_752, 3, x_744); -lean_ctor_set(x_752, 4, x_745); -lean_ctor_set(x_752, 5, x_746); -lean_ctor_set(x_752, 6, x_747); -lean_ctor_set(x_752, 7, x_24); -lean_ctor_set_uint8(x_752, sizeof(void*)*8, x_748); -lean_ctor_set_uint8(x_752, sizeof(void*)*8 + 1, x_749); -lean_ctor_set_uint8(x_752, sizeof(void*)*8 + 2, x_750); +lean_ctor_set(x_847, 0, x_836); +lean_ctor_set(x_847, 1, x_837); +lean_ctor_set(x_847, 2, x_838); +lean_ctor_set(x_847, 3, x_839); +lean_ctor_set(x_847, 4, x_840); +lean_ctor_set(x_847, 5, x_841); +lean_ctor_set(x_847, 6, x_842); +lean_ctor_set(x_847, 7, x_828); +lean_ctor_set_uint8(x_847, sizeof(void*)*8, x_843); +lean_ctor_set_uint8(x_847, sizeof(void*)*8 + 1, x_844); +lean_ctor_set_uint8(x_847, sizeof(void*)*8 + 2, x_845); if (x_20 == 0) { -lean_object* x_753; uint8_t x_754; -x_753 = l___private_Lean_Elab_Match_20__collect___main___closed__2; -x_754 = lean_name_eq(x_10, x_753); -if (x_754 == 0) +lean_object* x_848; uint8_t x_849; +x_848 = l___private_Lean_Elab_Match_26__collect___main___closed__2; +x_849 = lean_name_eq(x_10, x_848); +if (x_849 == 0) { -lean_object* x_755; uint8_t x_756; -x_755 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; -x_756 = lean_name_eq(x_10, x_755); -if (x_756 == 0) +lean_object* x_850; uint8_t x_851; +x_850 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; +x_851 = lean_name_eq(x_10, x_850); +if (x_851 == 0) { -lean_object* x_757; uint8_t x_758; -x_757 = l_Lean_mkHole___closed__2; -x_758 = lean_name_eq(x_10, x_757); -if (x_758 == 0) +lean_object* x_852; uint8_t x_853; +x_852 = l_Lean_mkHole___closed__2; +x_853 = lean_name_eq(x_10, x_852); +if (x_853 == 0) { -lean_object* x_759; uint8_t x_760; -x_759 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; -x_760 = lean_name_eq(x_10, x_759); -if (x_760 == 0) +lean_object* x_854; uint8_t x_855; +x_854 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; +x_855 = lean_name_eq(x_10, x_854); +if (x_855 == 0) { -lean_object* x_761; uint8_t x_762; +lean_object* x_856; uint8_t x_857; lean_dec(x_11); -x_761 = l___private_Lean_Elab_Match_20__collect___main___closed__4; -x_762 = lean_name_eq(x_10, x_761); -if (x_762 == 0) +x_856 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; +x_857 = lean_name_eq(x_10, x_856); +if (x_857 == 0) { -lean_object* x_763; uint8_t x_764; -x_763 = l___private_Lean_Elab_Match_20__collect___main___closed__5; -x_764 = lean_name_eq(x_10, x_763); -if (x_764 == 0) +lean_object* x_858; uint8_t x_859; +x_858 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_859 = lean_name_eq(x_10, x_858); +if (x_859 == 0) { -lean_object* x_765; uint8_t x_766; -x_765 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; -x_766 = lean_name_eq(x_10, x_765); -if (x_766 == 0) +lean_object* x_860; uint8_t x_861; +x_860 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; +x_861 = lean_name_eq(x_10, x_860); +if (x_861 == 0) { -lean_object* x_767; uint8_t x_768; -x_767 = l_Lean_strLitKind; -x_768 = lean_name_eq(x_10, x_767); -if (x_768 == 0) +lean_object* x_862; uint8_t x_863; +x_862 = l_Lean_strLitKind; +x_863 = lean_name_eq(x_10, x_862); +if (x_863 == 0) { -lean_object* x_769; uint8_t x_770; -x_769 = l_Lean_numLitKind; -x_770 = lean_name_eq(x_10, x_769); -if (x_770 == 0) +lean_object* x_864; uint8_t x_865; +x_864 = l_Lean_numLitKind; +x_865 = lean_name_eq(x_10, x_864); +if (x_865 == 0) { -lean_object* x_771; uint8_t x_772; -x_771 = l_Lean_charLitKind; -x_772 = lean_name_eq(x_10, x_771); -if (x_772 == 0) +lean_object* x_866; uint8_t x_867; +x_866 = l_Lean_charLitKind; +x_867 = lean_name_eq(x_10, x_866); +if (x_867 == 0) { -lean_object* x_773; uint8_t x_774; +lean_object* x_868; uint8_t x_869; +lean_dec(x_835); lean_dec(x_1); -x_773 = l_Lean_choiceKind; -x_774 = lean_name_eq(x_10, x_773); +x_868 = l_Lean_choiceKind; +x_869 = lean_name_eq(x_10, x_868); lean_dec(x_10); -if (x_774 == 0) +if (x_869 == 0) { -lean_object* x_775; -x_775 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); +lean_object* x_870; +x_870 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_775; +return x_870; } else { -lean_object* x_776; lean_object* x_777; -x_776 = l___private_Lean_Elab_Match_20__collect___main___closed__8; -x_777 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_776, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); +lean_object* x_871; lean_object* x_872; +x_871 = l___private_Lean_Elab_Match_26__collect___main___closed__5; +x_872 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_871, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_777; -} -} -else -{ -lean_object* x_778; -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_778 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_778, 0, x_1); -lean_ctor_set(x_778, 1, x_740); -return x_778; -} -} -else -{ -lean_object* x_779; -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_779 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_779, 0, x_1); -lean_ctor_set(x_779, 1, x_740); -return x_779; -} -} -else -{ -lean_object* x_780; -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_780 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_780, 0, x_1); -lean_ctor_set(x_780, 1, x_740); -return x_780; -} -} -else -{ -lean_object* x_781; -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_781 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_781, 0, x_1); -lean_ctor_set(x_781, 1, x_740); -return x_781; -} -} -else -{ -lean_object* x_782; lean_object* x_783; lean_object* x_784; uint8_t x_785; lean_object* x_786; -lean_dec(x_10); -x_782 = lean_unsigned_to_nat(0u); -x_783 = l_Lean_Syntax_getArg(x_1, x_782); -x_784 = l_Lean_Syntax_getId(x_783); -x_785 = 0; -lean_inc(x_752); -x_786 = l___private_Lean_Elab_Match_15__processVar(x_784, x_785, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -if (lean_obj_tag(x_786) == 0) -{ -lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; -x_787 = lean_ctor_get(x_786, 1); -lean_inc(x_787); -lean_dec(x_786); -x_788 = lean_unsigned_to_nat(2u); -x_789 = l_Lean_Syntax_getArg(x_1, x_788); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_790 = x_1; -} else { - lean_dec_ref(x_1); - x_790 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_752); -x_791 = l___private_Lean_Elab_Match_20__collect___main(x_789, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_787); -if (lean_obj_tag(x_791) == 0) -{ -lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; -x_792 = lean_ctor_get(x_791, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_791, 1); -lean_inc(x_793); -lean_dec(x_791); -x_794 = l_Lean_Elab_Term_getCurrMacroScope(x_752, x_4, x_5, x_6, x_7, x_8, x_793); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_752); -x_795 = lean_ctor_get(x_794, 0); -lean_inc(x_795); -x_796 = lean_ctor_get(x_794, 1); -lean_inc(x_796); -lean_dec(x_794); -x_797 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_796); -lean_dec(x_8); -x_798 = lean_ctor_get(x_797, 0); -lean_inc(x_798); -x_799 = lean_ctor_get(x_797, 1); -lean_inc(x_799); -if (lean_is_exclusive(x_797)) { - lean_ctor_release(x_797, 0); - lean_ctor_release(x_797, 1); - x_800 = x_797; -} else { - lean_dec_ref(x_797); - x_800 = lean_box(0); -} -x_801 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_802 = l_Lean_addMacroScope(x_798, x_801, x_795); -x_803 = l_Lean_SourceInfo_inhabited___closed__1; -x_804 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_805 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_806 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_806, 0, x_803); -lean_ctor_set(x_806, 1, x_804); -lean_ctor_set(x_806, 2, x_802); -lean_ctor_set(x_806, 3, x_805); -x_807 = l_Array_empty___closed__1; -x_808 = lean_array_push(x_807, x_806); -x_809 = lean_array_push(x_807, x_783); -x_810 = lean_array_push(x_809, x_792); -x_811 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_790)) { - x_812 = lean_alloc_ctor(1, 2, 0); -} else { - x_812 = x_790; -} -lean_ctor_set(x_812, 0, x_811); -lean_ctor_set(x_812, 1, x_810); -x_813 = lean_array_push(x_808, x_812); -x_814 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_814, 0, x_12); -lean_ctor_set(x_814, 1, x_813); -if (lean_is_scalar(x_800)) { - x_815 = lean_alloc_ctor(0, 2, 0); -} else { - x_815 = x_800; -} -lean_ctor_set(x_815, 0, x_814); -lean_ctor_set(x_815, 1, x_799); -return x_815; -} -else -{ -lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; -lean_dec(x_790); -lean_dec(x_783); -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_816 = lean_ctor_get(x_791, 0); -lean_inc(x_816); -x_817 = lean_ctor_get(x_791, 1); -lean_inc(x_817); -if (lean_is_exclusive(x_791)) { - lean_ctor_release(x_791, 0); - lean_ctor_release(x_791, 1); - x_818 = x_791; -} else { - lean_dec_ref(x_791); - x_818 = lean_box(0); -} -if (lean_is_scalar(x_818)) { - x_819 = lean_alloc_ctor(1, 2, 0); -} else { - x_819 = x_818; -} -lean_ctor_set(x_819, 0, x_816); -lean_ctor_set(x_819, 1, x_817); -return x_819; -} -} -else -{ -lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; -lean_dec(x_783); -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_820 = lean_ctor_get(x_786, 0); -lean_inc(x_820); -x_821 = lean_ctor_get(x_786, 1); -lean_inc(x_821); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_822 = x_786; -} else { - lean_dec_ref(x_786); - x_822 = lean_box(0); -} -if (lean_is_scalar(x_822)) { - x_823 = lean_alloc_ctor(1, 2, 0); -} else { - x_823 = x_822; -} -lean_ctor_set(x_823, 0, x_820); -lean_ctor_set(x_823, 1, x_821); -return x_823; -} -} -} -else -{ -lean_object* x_824; lean_object* x_825; uint8_t x_826; lean_object* x_827; -lean_dec(x_10); -x_824 = lean_unsigned_to_nat(0u); -x_825 = l_Lean_Syntax_getArg(x_1, x_824); -x_826 = 1; -x_827 = l___private_Lean_Elab_Match_16__processIdAux(x_825, x_826, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -lean_dec(x_2); -if (lean_obj_tag(x_827) == 0) -{ -lean_object* x_828; lean_object* x_829; lean_object* x_830; -x_828 = lean_ctor_get(x_827, 1); -lean_inc(x_828); -if (lean_is_exclusive(x_827)) { - lean_ctor_release(x_827, 0); - lean_ctor_release(x_827, 1); - x_829 = x_827; -} else { - lean_dec_ref(x_827); - x_829 = lean_box(0); -} -if (lean_is_scalar(x_829)) { - x_830 = lean_alloc_ctor(0, 2, 0); -} else { - x_830 = x_829; -} -lean_ctor_set(x_830, 0, x_1); -lean_ctor_set(x_830, 1, x_828); -return x_830; -} -else -{ -lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; -lean_dec(x_1); -x_831 = lean_ctor_get(x_827, 0); -lean_inc(x_831); -x_832 = lean_ctor_get(x_827, 1); -lean_inc(x_832); -if (lean_is_exclusive(x_827)) { - lean_ctor_release(x_827, 0); - lean_ctor_release(x_827, 1); - x_833 = x_827; -} else { - lean_dec_ref(x_827); - x_833 = lean_box(0); -} -if (lean_is_scalar(x_833)) { - x_834 = lean_alloc_ctor(1, 2, 0); -} else { - x_834 = x_833; -} -lean_ctor_set(x_834, 0, x_831); -lean_ctor_set(x_834, 1, x_832); -return x_834; -} -} -} -else -{ -lean_object* x_835; lean_object* x_836; uint8_t x_837; -x_835 = l_Lean_Syntax_inhabited; -x_836 = lean_array_get(x_835, x_11, x_25); -x_837 = l_Lean_Syntax_isNone(x_836); -if (x_837 == 0) -{ -lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; uint8_t x_842; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_838 = x_1; -} else { - lean_dec_ref(x_1); - x_838 = lean_box(0); -} -x_839 = lean_unsigned_to_nat(0u); -x_840 = l_Lean_Syntax_getArg(x_836, x_839); -x_841 = l_Lean_Syntax_getArg(x_836, x_25); -x_842 = l_Lean_Syntax_isNone(x_841); -if (x_842 == 0) -{ -lean_object* x_843; lean_object* x_844; uint8_t x_845; -x_843 = l_Lean_Syntax_getArg(x_841, x_839); -x_844 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_843); -x_845 = l_Lean_Syntax_isOfKind(x_843, x_844); -if (x_845 == 0) -{ -lean_object* x_846; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_752); -lean_inc(x_2); -x_846 = l___private_Lean_Elab_Match_20__collect___main(x_840, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -if (lean_obj_tag(x_846) == 0) -{ -lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; -x_847 = lean_ctor_get(x_846, 0); -lean_inc(x_847); -x_848 = lean_ctor_get(x_846, 1); -lean_inc(x_848); -lean_dec(x_846); -x_849 = l_Lean_Syntax_setArg(x_836, x_839, x_847); -x_850 = l_Lean_Syntax_getArg(x_843, x_25); -x_851 = l_Lean_Syntax_getArgs(x_850); -lean_dec(x_850); -x_852 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_853 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_851, x_852, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_848); -lean_dec(x_851); -if (lean_obj_tag(x_853) == 0) -{ -lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; -x_854 = lean_ctor_get(x_853, 0); -lean_inc(x_854); -x_855 = lean_ctor_get(x_853, 1); -lean_inc(x_855); -if (lean_is_exclusive(x_853)) { - lean_ctor_release(x_853, 0); - lean_ctor_release(x_853, 1); - x_856 = x_853; -} else { - lean_dec_ref(x_853); - x_856 = lean_box(0); -} -x_857 = l_Lean_nullKind; -if (lean_is_scalar(x_838)) { - x_858 = lean_alloc_ctor(1, 2, 0); -} else { - x_858 = x_838; -} -lean_ctor_set(x_858, 0, x_857); -lean_ctor_set(x_858, 1, x_854); -x_859 = l_Lean_Syntax_setArg(x_843, x_25, x_858); -x_860 = l_Lean_Syntax_setArg(x_841, x_839, x_859); -x_861 = l_Lean_Syntax_setArg(x_849, x_25, x_860); -x_862 = lean_array_set(x_11, x_25, x_861); -x_863 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_863, 0, x_10); -lean_ctor_set(x_863, 1, x_862); -if (lean_is_scalar(x_856)) { - x_864 = lean_alloc_ctor(0, 2, 0); -} else { - x_864 = x_856; -} -lean_ctor_set(x_864, 0, x_863); -lean_ctor_set(x_864, 1, x_855); -return x_864; -} -else -{ -lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; -lean_dec(x_849); -lean_dec(x_843); -lean_dec(x_841); -lean_dec(x_838); -lean_dec(x_11); -lean_dec(x_10); -x_865 = lean_ctor_get(x_853, 0); -lean_inc(x_865); -x_866 = lean_ctor_get(x_853, 1); -lean_inc(x_866); -if (lean_is_exclusive(x_853)) { - lean_ctor_release(x_853, 0); - lean_ctor_release(x_853, 1); - x_867 = x_853; -} else { - lean_dec_ref(x_853); - x_867 = lean_box(0); -} -if (lean_is_scalar(x_867)) { - x_868 = lean_alloc_ctor(1, 2, 0); -} else { - x_868 = x_867; -} -lean_ctor_set(x_868, 0, x_865); -lean_ctor_set(x_868, 1, x_866); -return x_868; -} -} -else -{ -lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; -lean_dec(x_843); -lean_dec(x_841); -lean_dec(x_838); -lean_dec(x_836); -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_869 = lean_ctor_get(x_846, 0); -lean_inc(x_869); -x_870 = lean_ctor_get(x_846, 1); -lean_inc(x_870); -if (lean_is_exclusive(x_846)) { - lean_ctor_release(x_846, 0); - lean_ctor_release(x_846, 1); - x_871 = x_846; -} else { - lean_dec_ref(x_846); - x_871 = lean_box(0); -} -if (lean_is_scalar(x_871)) { - x_872 = lean_alloc_ctor(1, 2, 0); -} else { - x_872 = x_871; -} -lean_ctor_set(x_872, 0, x_869); -lean_ctor_set(x_872, 1, x_870); return x_872; } } else { lean_object* x_873; -lean_dec(x_843); -lean_dec(x_841); -x_873 = l___private_Lean_Elab_Match_20__collect___main(x_840, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -if (lean_obj_tag(x_873) == 0) -{ -lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; -x_874 = lean_ctor_get(x_873, 0); -lean_inc(x_874); -x_875 = lean_ctor_get(x_873, 1); -lean_inc(x_875); -if (lean_is_exclusive(x_873)) { - lean_ctor_release(x_873, 0); - lean_ctor_release(x_873, 1); - x_876 = x_873; +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_835)) { + x_873 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_873); - x_876 = lean_box(0); + x_873 = x_835; } -x_877 = l_Lean_Syntax_setArg(x_836, x_839, x_874); -x_878 = lean_array_set(x_11, x_25, x_877); -if (lean_is_scalar(x_838)) { - x_879 = lean_alloc_ctor(1, 2, 0); -} else { - x_879 = x_838; +lean_ctor_set(x_873, 0, x_1); +lean_ctor_set(x_873, 1, x_834); +return x_873; } -lean_ctor_set(x_879, 0, x_10); -lean_ctor_set(x_879, 1, x_878); -if (lean_is_scalar(x_876)) { - x_880 = lean_alloc_ctor(0, 2, 0); -} else { - x_880 = x_876; -} -lean_ctor_set(x_880, 0, x_879); -lean_ctor_set(x_880, 1, x_875); -return x_880; } else { -lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; -lean_dec(x_838); -lean_dec(x_836); -lean_dec(x_11); +lean_object* x_874; +lean_dec(x_847); +lean_dec(x_7); lean_dec(x_10); -x_881 = lean_ctor_get(x_873, 0); -lean_inc(x_881); -x_882 = lean_ctor_get(x_873, 1); -lean_inc(x_882); -if (lean_is_exclusive(x_873)) { - lean_ctor_release(x_873, 0); - lean_ctor_release(x_873, 1); - x_883 = x_873; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_835)) { + x_874 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_873); + x_874 = x_835; +} +lean_ctor_set(x_874, 0, x_1); +lean_ctor_set(x_874, 1, x_834); +return x_874; +} +} +else +{ +lean_object* x_875; +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_835)) { + x_875 = lean_alloc_ctor(0, 2, 0); +} else { + x_875 = x_835; +} +lean_ctor_set(x_875, 0, x_1); +lean_ctor_set(x_875, 1, x_834); +return x_875; +} +} +else +{ +lean_object* x_876; +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_835)) { + x_876 = lean_alloc_ctor(0, 2, 0); +} else { + x_876 = x_835; +} +lean_ctor_set(x_876, 0, x_1); +lean_ctor_set(x_876, 1, x_834); +return x_876; +} +} +else +{ +lean_object* x_877; lean_object* x_878; lean_object* x_879; +lean_dec(x_835); +lean_dec(x_10); +x_877 = lean_unsigned_to_nat(0u); +x_878 = l_Lean_Syntax_getArg(x_1, x_877); +lean_inc(x_847); +lean_inc(x_878); +x_879 = l___private_Lean_Elab_Match_24__processVar(x_878, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +if (lean_obj_tag(x_879) == 0) +{ +lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; +x_880 = lean_ctor_get(x_879, 1); +lean_inc(x_880); +lean_dec(x_879); +x_881 = lean_unsigned_to_nat(2u); +x_882 = l_Lean_Syntax_getArg(x_1, x_881); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_883 = x_1; +} else { + lean_dec_ref(x_1); x_883 = lean_box(0); } -if (lean_is_scalar(x_883)) { - x_884 = lean_alloc_ctor(1, 2, 0); -} else { - x_884 = x_883; -} -lean_ctor_set(x_884, 0, x_881); -lean_ctor_set(x_884, 1, x_882); -return x_884; -} -} -} -else +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_847); +x_884 = l___private_Lean_Elab_Match_26__collect___main(x_882, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_880); +if (lean_obj_tag(x_884) == 0) { -lean_object* x_885; -lean_dec(x_841); -x_885 = l___private_Lean_Elab_Match_20__collect___main(x_840, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -if (lean_obj_tag(x_885) == 0) -{ -lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; -x_886 = lean_ctor_get(x_885, 0); +lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +x_885 = lean_ctor_get(x_884, 0); +lean_inc(x_885); +x_886 = lean_ctor_get(x_884, 1); lean_inc(x_886); -x_887 = lean_ctor_get(x_885, 1); -lean_inc(x_887); -if (lean_is_exclusive(x_885)) { - lean_ctor_release(x_885, 0); - lean_ctor_release(x_885, 1); - x_888 = x_885; +lean_dec(x_884); +x_887 = l_Lean_Elab_Term_getCurrMacroScope(x_847, x_4, x_5, x_6, x_7, x_8, x_886); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_847); +x_888 = lean_ctor_get(x_887, 0); +lean_inc(x_888); +x_889 = lean_ctor_get(x_887, 1); +lean_inc(x_889); +lean_dec(x_887); +x_890 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_889); +lean_dec(x_8); +x_891 = lean_ctor_get(x_890, 0); +lean_inc(x_891); +x_892 = lean_ctor_get(x_890, 1); +lean_inc(x_892); +if (lean_is_exclusive(x_890)) { + lean_ctor_release(x_890, 0); + lean_ctor_release(x_890, 1); + x_893 = x_890; } else { - lean_dec_ref(x_885); - x_888 = lean_box(0); + lean_dec_ref(x_890); + x_893 = lean_box(0); } -x_889 = l_Lean_Syntax_setArg(x_836, x_839, x_886); -x_890 = lean_array_set(x_11, x_25, x_889); -if (lean_is_scalar(x_838)) { - x_891 = lean_alloc_ctor(1, 2, 0); +x_894 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_895 = l_Lean_addMacroScope(x_891, x_894, x_888); +x_896 = l_Lean_SourceInfo_inhabited___closed__1; +x_897 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_898 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_899 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_899, 0, x_896); +lean_ctor_set(x_899, 1, x_897); +lean_ctor_set(x_899, 2, x_895); +lean_ctor_set(x_899, 3, x_898); +x_900 = l_Array_empty___closed__1; +x_901 = lean_array_push(x_900, x_899); +x_902 = lean_array_push(x_900, x_878); +x_903 = lean_array_push(x_902, x_885); +x_904 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_883)) { + x_905 = lean_alloc_ctor(1, 2, 0); } else { - x_891 = x_838; + x_905 = x_883; } -lean_ctor_set(x_891, 0, x_10); -lean_ctor_set(x_891, 1, x_890); -if (lean_is_scalar(x_888)) { - x_892 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_905, 0, x_904); +lean_ctor_set(x_905, 1, x_903); +x_906 = lean_array_push(x_901, x_905); +x_907 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_907, 0, x_12); +lean_ctor_set(x_907, 1, x_906); +if (lean_is_scalar(x_893)) { + x_908 = lean_alloc_ctor(0, 2, 0); } else { - x_892 = x_888; + x_908 = x_893; } -lean_ctor_set(x_892, 0, x_891); -lean_ctor_set(x_892, 1, x_887); -return x_892; +lean_ctor_set(x_908, 0, x_907); +lean_ctor_set(x_908, 1, x_892); +return x_908; } else { -lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; -lean_dec(x_838); -lean_dec(x_836); +lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; +lean_dec(x_883); +lean_dec(x_878); +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_909 = lean_ctor_get(x_884, 0); +lean_inc(x_909); +x_910 = lean_ctor_get(x_884, 1); +lean_inc(x_910); +if (lean_is_exclusive(x_884)) { + lean_ctor_release(x_884, 0); + lean_ctor_release(x_884, 1); + x_911 = x_884; +} else { + lean_dec_ref(x_884); + x_911 = lean_box(0); +} +if (lean_is_scalar(x_911)) { + x_912 = lean_alloc_ctor(1, 2, 0); +} else { + x_912 = x_911; +} +lean_ctor_set(x_912, 0, x_909); +lean_ctor_set(x_912, 1, x_910); +return x_912; +} +} +else +{ +lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; +lean_dec(x_878); +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_913 = lean_ctor_get(x_879, 0); +lean_inc(x_913); +x_914 = lean_ctor_get(x_879, 1); +lean_inc(x_914); +if (lean_is_exclusive(x_879)) { + lean_ctor_release(x_879, 0); + lean_ctor_release(x_879, 1); + x_915 = x_879; +} else { + lean_dec_ref(x_879); + x_915 = lean_box(0); +} +if (lean_is_scalar(x_915)) { + x_916 = lean_alloc_ctor(1, 2, 0); +} else { + x_916 = x_915; +} +lean_ctor_set(x_916, 0, x_913); +lean_ctor_set(x_916, 1, x_914); +return x_916; +} +} +} +else +{ +lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; +lean_dec(x_835); +lean_dec(x_10); +x_917 = lean_unsigned_to_nat(0u); +x_918 = l_Lean_Syntax_getArg(x_1, x_917); +lean_dec(x_1); +x_919 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_920 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_919, x_918, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +return x_920; +} +} +else +{ +lean_object* x_921; lean_object* x_922; uint8_t x_923; +x_921 = l_Lean_Syntax_inhabited; +x_922 = lean_array_get(x_921, x_11, x_830); +x_923 = l_Lean_Syntax_isNone(x_922); +if (x_923 == 0) +{ +lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; uint8_t x_928; +lean_dec(x_835); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_924 = x_1; +} else { + lean_dec_ref(x_1); + x_924 = lean_box(0); +} +x_925 = lean_unsigned_to_nat(0u); +x_926 = l_Lean_Syntax_getArg(x_922, x_925); +x_927 = l_Lean_Syntax_getArg(x_922, x_830); +x_928 = l_Lean_Syntax_isNone(x_927); +if (x_928 == 0) +{ +lean_object* x_929; lean_object* x_930; uint8_t x_931; +x_929 = l_Lean_Syntax_getArg(x_927, x_925); +x_930 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_929); +x_931 = l_Lean_Syntax_isOfKind(x_929, x_930); +if (x_931 == 0) +{ +lean_object* x_932; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_847); +lean_inc(x_2); +x_932 = l___private_Lean_Elab_Match_26__collect___main(x_926, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +if (lean_obj_tag(x_932) == 0) +{ +lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; +x_933 = lean_ctor_get(x_932, 0); +lean_inc(x_933); +x_934 = lean_ctor_get(x_932, 1); +lean_inc(x_934); +lean_dec(x_932); +x_935 = l_Lean_Syntax_setArg(x_922, x_925, x_933); +x_936 = l_Lean_Syntax_getArg(x_929, x_830); +x_937 = l_Lean_Syntax_getArgs(x_936); +lean_dec(x_936); +x_938 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_939 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_937, x_938, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_934); +lean_dec(x_937); +if (lean_obj_tag(x_939) == 0) +{ +lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; +x_940 = lean_ctor_get(x_939, 0); +lean_inc(x_940); +x_941 = lean_ctor_get(x_939, 1); +lean_inc(x_941); +if (lean_is_exclusive(x_939)) { + lean_ctor_release(x_939, 0); + lean_ctor_release(x_939, 1); + x_942 = x_939; +} else { + lean_dec_ref(x_939); + x_942 = lean_box(0); +} +x_943 = l_Lean_nullKind; +if (lean_is_scalar(x_924)) { + x_944 = lean_alloc_ctor(1, 2, 0); +} else { + x_944 = x_924; +} +lean_ctor_set(x_944, 0, x_943); +lean_ctor_set(x_944, 1, x_940); +x_945 = l_Lean_Syntax_setArg(x_929, x_830, x_944); +x_946 = l_Lean_Syntax_setArg(x_927, x_925, x_945); +x_947 = l_Lean_Syntax_setArg(x_935, x_830, x_946); +x_948 = lean_array_set(x_11, x_830, x_947); +x_949 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_949, 0, x_10); +lean_ctor_set(x_949, 1, x_948); +if (lean_is_scalar(x_942)) { + x_950 = lean_alloc_ctor(0, 2, 0); +} else { + x_950 = x_942; +} +lean_ctor_set(x_950, 0, x_949); +lean_ctor_set(x_950, 1, x_941); +return x_950; +} +else +{ +lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; +lean_dec(x_935); +lean_dec(x_929); +lean_dec(x_927); +lean_dec(x_924); lean_dec(x_11); lean_dec(x_10); -x_893 = lean_ctor_get(x_885, 0); -lean_inc(x_893); -x_894 = lean_ctor_get(x_885, 1); -lean_inc(x_894); -if (lean_is_exclusive(x_885)) { - lean_ctor_release(x_885, 0); - lean_ctor_release(x_885, 1); - x_895 = x_885; +x_951 = lean_ctor_get(x_939, 0); +lean_inc(x_951); +x_952 = lean_ctor_get(x_939, 1); +lean_inc(x_952); +if (lean_is_exclusive(x_939)) { + lean_ctor_release(x_939, 0); + lean_ctor_release(x_939, 1); + x_953 = x_939; } else { - lean_dec_ref(x_885); - x_895 = lean_box(0); + lean_dec_ref(x_939); + x_953 = lean_box(0); } -if (lean_is_scalar(x_895)) { - x_896 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_953)) { + x_954 = lean_alloc_ctor(1, 2, 0); } else { - x_896 = x_895; -} -lean_ctor_set(x_896, 0, x_893); -lean_ctor_set(x_896, 1, x_894); -return x_896; + x_954 = x_953; } +lean_ctor_set(x_954, 0, x_951); +lean_ctor_set(x_954, 1, x_952); +return x_954; } } else { -lean_object* x_897; -lean_dec(x_836); -lean_dec(x_752); +lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; +lean_dec(x_929); +lean_dec(x_927); +lean_dec(x_924); +lean_dec(x_922); +lean_dec(x_847); lean_dec(x_7); lean_dec(x_11); lean_dec(x_10); @@ -9409,17 +11218,194 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_897 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_897, 0, x_1); -lean_ctor_set(x_897, 1, x_740); -return x_897; +x_955 = lean_ctor_get(x_932, 0); +lean_inc(x_955); +x_956 = lean_ctor_get(x_932, 1); +lean_inc(x_956); +if (lean_is_exclusive(x_932)) { + lean_ctor_release(x_932, 0); + lean_ctor_release(x_932, 1); + x_957 = x_932; +} else { + lean_dec_ref(x_932); + x_957 = lean_box(0); +} +if (lean_is_scalar(x_957)) { + x_958 = lean_alloc_ctor(1, 2, 0); +} else { + x_958 = x_957; +} +lean_ctor_set(x_958, 0, x_955); +lean_ctor_set(x_958, 1, x_956); +return x_958; +} +} +else +{ +lean_object* x_959; +lean_dec(x_929); +lean_dec(x_927); +x_959 = l___private_Lean_Elab_Match_26__collect___main(x_926, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +if (lean_obj_tag(x_959) == 0) +{ +lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; +x_960 = lean_ctor_get(x_959, 0); +lean_inc(x_960); +x_961 = lean_ctor_get(x_959, 1); +lean_inc(x_961); +if (lean_is_exclusive(x_959)) { + lean_ctor_release(x_959, 0); + lean_ctor_release(x_959, 1); + x_962 = x_959; +} else { + lean_dec_ref(x_959); + x_962 = lean_box(0); +} +x_963 = l_Lean_Syntax_setArg(x_922, x_925, x_960); +x_964 = lean_array_set(x_11, x_830, x_963); +if (lean_is_scalar(x_924)) { + x_965 = lean_alloc_ctor(1, 2, 0); +} else { + x_965 = x_924; +} +lean_ctor_set(x_965, 0, x_10); +lean_ctor_set(x_965, 1, x_964); +if (lean_is_scalar(x_962)) { + x_966 = lean_alloc_ctor(0, 2, 0); +} else { + x_966 = x_962; +} +lean_ctor_set(x_966, 0, x_965); +lean_ctor_set(x_966, 1, x_961); +return x_966; +} +else +{ +lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; +lean_dec(x_924); +lean_dec(x_922); +lean_dec(x_11); +lean_dec(x_10); +x_967 = lean_ctor_get(x_959, 0); +lean_inc(x_967); +x_968 = lean_ctor_get(x_959, 1); +lean_inc(x_968); +if (lean_is_exclusive(x_959)) { + lean_ctor_release(x_959, 0); + lean_ctor_release(x_959, 1); + x_969 = x_959; +} else { + lean_dec_ref(x_959); + x_969 = lean_box(0); +} +if (lean_is_scalar(x_969)) { + x_970 = lean_alloc_ctor(1, 2, 0); +} else { + x_970 = x_969; +} +lean_ctor_set(x_970, 0, x_967); +lean_ctor_set(x_970, 1, x_968); +return x_970; } } } else { -lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; -lean_dec(x_752); +lean_object* x_971; +lean_dec(x_927); +x_971 = l___private_Lean_Elab_Match_26__collect___main(x_926, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +if (lean_obj_tag(x_971) == 0) +{ +lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; +x_972 = lean_ctor_get(x_971, 0); +lean_inc(x_972); +x_973 = lean_ctor_get(x_971, 1); +lean_inc(x_973); +if (lean_is_exclusive(x_971)) { + lean_ctor_release(x_971, 0); + lean_ctor_release(x_971, 1); + x_974 = x_971; +} else { + lean_dec_ref(x_971); + x_974 = lean_box(0); +} +x_975 = l_Lean_Syntax_setArg(x_922, x_925, x_972); +x_976 = lean_array_set(x_11, x_830, x_975); +if (lean_is_scalar(x_924)) { + x_977 = lean_alloc_ctor(1, 2, 0); +} else { + x_977 = x_924; +} +lean_ctor_set(x_977, 0, x_10); +lean_ctor_set(x_977, 1, x_976); +if (lean_is_scalar(x_974)) { + x_978 = lean_alloc_ctor(0, 2, 0); +} else { + x_978 = x_974; +} +lean_ctor_set(x_978, 0, x_977); +lean_ctor_set(x_978, 1, x_973); +return x_978; +} +else +{ +lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; +lean_dec(x_924); +lean_dec(x_922); +lean_dec(x_11); +lean_dec(x_10); +x_979 = lean_ctor_get(x_971, 0); +lean_inc(x_979); +x_980 = lean_ctor_get(x_971, 1); +lean_inc(x_980); +if (lean_is_exclusive(x_971)) { + lean_ctor_release(x_971, 0); + lean_ctor_release(x_971, 1); + x_981 = x_971; +} else { + lean_dec_ref(x_971); + x_981 = lean_box(0); +} +if (lean_is_scalar(x_981)) { + x_982 = lean_alloc_ctor(1, 2, 0); +} else { + x_982 = x_981; +} +lean_ctor_set(x_982, 0, x_979); +lean_ctor_set(x_982, 1, x_980); +return x_982; +} +} +} +else +{ +lean_object* x_983; +lean_dec(x_922); +lean_dec(x_847); +lean_dec(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_835)) { + x_983 = lean_alloc_ctor(0, 2, 0); +} else { + x_983 = x_835; +} +lean_ctor_set(x_983, 0, x_1); +lean_ctor_set(x_983, 1, x_834); +return x_983; +} +} +} +else +{ +lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; +lean_dec(x_847); +lean_dec(x_835); lean_dec(x_7); lean_dec(x_11); lean_dec(x_10); @@ -9427,518 +11413,414 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_898 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_740); +x_984 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_834); lean_dec(x_8); -x_899 = lean_ctor_get(x_898, 0); -lean_inc(x_899); -x_900 = lean_ctor_get(x_898, 1); -lean_inc(x_900); -lean_dec(x_898); -x_901 = lean_st_ref_take(x_2, x_900); -x_902 = lean_ctor_get(x_901, 0); -lean_inc(x_902); -x_903 = lean_ctor_get(x_901, 1); -lean_inc(x_903); -lean_dec(x_901); -x_904 = lean_ctor_get(x_902, 0); -lean_inc(x_904); -x_905 = lean_ctor_get(x_902, 1); -lean_inc(x_905); -if (lean_is_exclusive(x_902)) { - lean_ctor_release(x_902, 0); - lean_ctor_release(x_902, 1); - x_906 = x_902; -} else { - lean_dec_ref(x_902); - x_906 = lean_box(0); -} -x_907 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_899); -x_908 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_908, 0, x_907); -x_909 = lean_array_push(x_905, x_908); -if (lean_is_scalar(x_906)) { - x_910 = lean_alloc_ctor(0, 2, 0); -} else { - x_910 = x_906; -} -lean_ctor_set(x_910, 0, x_904); -lean_ctor_set(x_910, 1, x_909); -x_911 = lean_st_ref_set(x_2, x_910, x_903); -lean_dec(x_2); -x_912 = lean_ctor_get(x_911, 1); -lean_inc(x_912); -if (lean_is_exclusive(x_911)) { - lean_ctor_release(x_911, 0); - lean_ctor_release(x_911, 1); - x_913 = x_911; -} else { - lean_dec_ref(x_911); - x_913 = lean_box(0); -} -if (lean_is_scalar(x_913)) { - x_914 = lean_alloc_ctor(0, 2, 0); -} else { - x_914 = x_913; -} -lean_ctor_set(x_914, 0, x_899); -lean_ctor_set(x_914, 1, x_912); -return x_914; -} -} -else -{ -lean_object* x_915; lean_object* x_916; lean_object* x_917; uint8_t x_918; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_915 = x_1; -} else { - lean_dec_ref(x_1); - x_915 = lean_box(0); -} -x_916 = l_Lean_Syntax_inhabited; -x_917 = lean_array_get(x_916, x_11, x_25); -x_918 = l_Lean_Syntax_isNone(x_917); -if (x_918 == 0) -{ -lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; -lean_dec(x_915); -lean_dec(x_11); -lean_dec(x_10); -x_919 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_920 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_917, x_919, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -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_917); -x_921 = lean_ctor_get(x_920, 0); -lean_inc(x_921); -x_922 = lean_ctor_get(x_920, 1); -lean_inc(x_922); -if (lean_is_exclusive(x_920)) { - lean_ctor_release(x_920, 0); - lean_ctor_release(x_920, 1); - x_923 = x_920; -} else { - lean_dec_ref(x_920); - x_923 = lean_box(0); -} -if (lean_is_scalar(x_923)) { - x_924 = lean_alloc_ctor(1, 2, 0); -} else { - x_924 = x_923; -} -lean_ctor_set(x_924, 0, x_921); -lean_ctor_set(x_924, 1, x_922); -return x_924; -} -else -{ -lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; -lean_dec(x_917); -x_925 = lean_unsigned_to_nat(2u); -x_926 = lean_array_get(x_916, x_11, x_925); -x_927 = l_Lean_Syntax_getArgs(x_926); -lean_dec(x_926); -x_928 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_929 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_927, x_928, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -lean_dec(x_927); -if (lean_obj_tag(x_929) == 0) -{ -lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; -x_930 = lean_ctor_get(x_929, 0); -lean_inc(x_930); -x_931 = lean_ctor_get(x_929, 1); -lean_inc(x_931); -if (lean_is_exclusive(x_929)) { - lean_ctor_release(x_929, 0); - lean_ctor_release(x_929, 1); - x_932 = x_929; -} else { - lean_dec_ref(x_929); - x_932 = lean_box(0); -} -x_933 = l_Lean_nullKind; -if (lean_is_scalar(x_915)) { - x_934 = lean_alloc_ctor(1, 2, 0); -} else { - x_934 = x_915; -} -lean_ctor_set(x_934, 0, x_933); -lean_ctor_set(x_934, 1, x_930); -x_935 = lean_array_set(x_11, x_925, x_934); -x_936 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_936, 0, x_10); -lean_ctor_set(x_936, 1, x_935); -if (lean_is_scalar(x_932)) { - x_937 = lean_alloc_ctor(0, 2, 0); -} else { - x_937 = x_932; -} -lean_ctor_set(x_937, 0, x_936); -lean_ctor_set(x_937, 1, x_931); -return x_937; -} -else -{ -lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; -lean_dec(x_915); -lean_dec(x_11); -lean_dec(x_10); -x_938 = lean_ctor_get(x_929, 0); -lean_inc(x_938); -x_939 = lean_ctor_get(x_929, 1); -lean_inc(x_939); -if (lean_is_exclusive(x_929)) { - lean_ctor_release(x_929, 0); - lean_ctor_release(x_929, 1); - x_940 = x_929; -} else { - lean_dec_ref(x_929); - x_940 = lean_box(0); -} -if (lean_is_scalar(x_940)) { - x_941 = lean_alloc_ctor(1, 2, 0); -} else { - x_941 = x_940; -} -lean_ctor_set(x_941, 0, x_938); -lean_ctor_set(x_941, 1, x_939); -return x_941; -} -} -} -} -else -{ -lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_942 = x_1; -} else { - lean_dec_ref(x_1); - x_942 = lean_box(0); -} -x_943 = l_Lean_Syntax_inhabited; -x_944 = lean_array_get(x_943, x_11, x_25); -x_945 = l_Lean_Syntax_getArgs(x_944); -lean_dec(x_944); -x_946 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_947 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_945, x_946, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -lean_dec(x_945); -if (lean_obj_tag(x_947) == 0) -{ -lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; -x_948 = lean_ctor_get(x_947, 0); -lean_inc(x_948); -x_949 = lean_ctor_get(x_947, 1); -lean_inc(x_949); -if (lean_is_exclusive(x_947)) { - lean_ctor_release(x_947, 0); - lean_ctor_release(x_947, 1); - x_950 = x_947; -} else { - lean_dec_ref(x_947); - x_950 = lean_box(0); -} -x_951 = l_Lean_nullKind; -if (lean_is_scalar(x_942)) { - x_952 = lean_alloc_ctor(1, 2, 0); -} else { - x_952 = x_942; -} -lean_ctor_set(x_952, 0, x_951); -lean_ctor_set(x_952, 1, x_948); -x_953 = lean_array_set(x_11, x_25, x_952); -x_954 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_954, 0, x_10); -lean_ctor_set(x_954, 1, x_953); -if (lean_is_scalar(x_950)) { - x_955 = lean_alloc_ctor(0, 2, 0); -} else { - x_955 = x_950; -} -lean_ctor_set(x_955, 0, x_954); -lean_ctor_set(x_955, 1, x_949); -return x_955; -} -else -{ -lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; -lean_dec(x_942); -lean_dec(x_11); -lean_dec(x_10); -x_956 = lean_ctor_get(x_947, 0); -lean_inc(x_956); -x_957 = lean_ctor_get(x_947, 1); -lean_inc(x_957); -if (lean_is_exclusive(x_947)) { - lean_ctor_release(x_947, 0); - lean_ctor_release(x_947, 1); - x_958 = x_947; -} else { - lean_dec_ref(x_947); - x_958 = lean_box(0); -} -if (lean_is_scalar(x_958)) { - x_959 = lean_alloc_ctor(1, 2, 0); -} else { - x_959 = x_958; -} -lean_ctor_set(x_959, 0, x_956); -lean_ctor_set(x_959, 1, x_957); -return x_959; -} -} -} -else -{ -lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_960 = x_1; -} else { - lean_dec_ref(x_1); - x_960 = lean_box(0); -} -x_961 = l_Lean_Syntax_inhabited; -x_962 = lean_unsigned_to_nat(0u); -x_963 = lean_array_get(x_961, x_11, x_962); -x_964 = lean_array_get(x_961, x_11, x_25); -x_965 = l_Lean_Syntax_getArgs(x_964); -lean_dec(x_964); -x_966 = l_Lean_mkAppStx___closed__6; -lean_inc(x_752); -x_967 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_966, x_965, x_962, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_740); -if (lean_obj_tag(x_967) == 0) -{ -lean_object* x_968; uint8_t x_969; lean_object* x_970; -x_968 = lean_ctor_get(x_967, 1); -lean_inc(x_968); -lean_dec(x_967); -x_969 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_752); -x_970 = l___private_Lean_Elab_Match_16__processIdAux(x_963, x_969, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_968); -if (lean_obj_tag(x_970) == 0) -{ -lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; -x_971 = lean_ctor_get(x_970, 0); -lean_inc(x_971); -x_972 = lean_ctor_get(x_970, 1); -lean_inc(x_972); -lean_dec(x_970); -x_973 = x_965; -x_974 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_974, 0, x_971); -lean_closure_set(x_974, 1, x_962); -lean_closure_set(x_974, 2, x_973); -x_975 = x_974; -x_976 = lean_apply_8(x_975, x_2, x_752, x_4, x_5, x_6, x_7, x_8, x_972); -if (lean_obj_tag(x_976) == 0) -{ -lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; -x_977 = lean_ctor_get(x_976, 0); -lean_inc(x_977); -x_978 = lean_ctor_get(x_976, 1); -lean_inc(x_978); -if (lean_is_exclusive(x_976)) { - lean_ctor_release(x_976, 0); - lean_ctor_release(x_976, 1); - x_979 = x_976; -} else { - lean_dec_ref(x_976); - x_979 = lean_box(0); -} -x_980 = l_Lean_nullKind; -if (lean_is_scalar(x_960)) { - x_981 = lean_alloc_ctor(1, 2, 0); -} else { - x_981 = x_960; -} -lean_ctor_set(x_981, 0, x_980); -lean_ctor_set(x_981, 1, x_977); -x_982 = lean_array_set(x_11, x_25, x_981); -x_983 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_983, 0, x_10); -lean_ctor_set(x_983, 1, x_982); -if (lean_is_scalar(x_979)) { - x_984 = lean_alloc_ctor(0, 2, 0); -} else { - x_984 = x_979; -} -lean_ctor_set(x_984, 0, x_983); -lean_ctor_set(x_984, 1, x_978); -return x_984; -} -else -{ -lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; -lean_dec(x_960); -lean_dec(x_11); -lean_dec(x_10); -x_985 = lean_ctor_get(x_976, 0); +x_985 = lean_ctor_get(x_984, 0); lean_inc(x_985); -x_986 = lean_ctor_get(x_976, 1); +x_986 = lean_ctor_get(x_984, 1); lean_inc(x_986); -if (lean_is_exclusive(x_976)) { - lean_ctor_release(x_976, 0); - lean_ctor_release(x_976, 1); - x_987 = x_976; -} else { - lean_dec_ref(x_976); - x_987 = lean_box(0); -} -if (lean_is_scalar(x_987)) { - x_988 = lean_alloc_ctor(1, 2, 0); -} else { - x_988 = x_987; -} -lean_ctor_set(x_988, 0, x_985); -lean_ctor_set(x_988, 1, x_986); -return x_988; -} -} -else -{ -lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; -lean_dec(x_965); -lean_dec(x_960); -lean_dec(x_752); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_989 = lean_ctor_get(x_970, 0); +lean_dec(x_984); +x_987 = lean_st_ref_take(x_2, x_986); +x_988 = lean_ctor_get(x_987, 0); +lean_inc(x_988); +x_989 = lean_ctor_get(x_987, 1); lean_inc(x_989); -x_990 = lean_ctor_get(x_970, 1); +lean_dec(x_987); +x_990 = lean_ctor_get(x_988, 0); lean_inc(x_990); -if (lean_is_exclusive(x_970)) { - lean_ctor_release(x_970, 0); - lean_ctor_release(x_970, 1); - x_991 = x_970; +x_991 = lean_ctor_get(x_988, 1); +lean_inc(x_991); +if (lean_is_exclusive(x_988)) { + lean_ctor_release(x_988, 0); + lean_ctor_release(x_988, 1); + x_992 = x_988; } else { - lean_dec_ref(x_970); - x_991 = lean_box(0); + lean_dec_ref(x_988); + x_992 = lean_box(0); } -if (lean_is_scalar(x_991)) { - x_992 = lean_alloc_ctor(1, 2, 0); +x_993 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_985); +x_994 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_994, 0, x_993); +x_995 = lean_array_push(x_991, x_994); +if (lean_is_scalar(x_992)) { + x_996 = lean_alloc_ctor(0, 2, 0); } else { - x_992 = x_991; + x_996 = x_992; } -lean_ctor_set(x_992, 0, x_989); -lean_ctor_set(x_992, 1, x_990); -return x_992; +lean_ctor_set(x_996, 0, x_990); +lean_ctor_set(x_996, 1, x_995); +x_997 = lean_st_ref_set(x_2, x_996, x_989); +lean_dec(x_2); +x_998 = lean_ctor_get(x_997, 1); +lean_inc(x_998); +if (lean_is_exclusive(x_997)) { + lean_ctor_release(x_997, 0); + lean_ctor_release(x_997, 1); + x_999 = x_997; +} else { + lean_dec_ref(x_997); + x_999 = lean_box(0); +} +if (lean_is_scalar(x_999)) { + x_1000 = lean_alloc_ctor(0, 2, 0); +} else { + x_1000 = x_999; +} +lean_ctor_set(x_1000, 0, x_985); +lean_ctor_set(x_1000, 1, x_998); +return x_1000; } } else { -lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; -lean_dec(x_965); -lean_dec(x_963); -lean_dec(x_960); -lean_dec(x_752); -lean_dec(x_7); +lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; uint8_t x_1004; +lean_dec(x_835); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_1001 = x_1; +} else { + lean_dec_ref(x_1); + x_1001 = lean_box(0); +} +x_1002 = l_Lean_Syntax_inhabited; +x_1003 = lean_array_get(x_1002, x_11, x_830); +x_1004 = l_Lean_Syntax_isNone(x_1003); +if (x_1004 == 0) +{ +lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; +lean_dec(x_1001); lean_dec(x_11); lean_dec(x_10); +x_1005 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_1006 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_1003, x_1005, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_993 = lean_ctor_get(x_967, 0); -lean_inc(x_993); -x_994 = lean_ctor_get(x_967, 1); -lean_inc(x_994); -if (lean_is_exclusive(x_967)) { - lean_ctor_release(x_967, 0); - lean_ctor_release(x_967, 1); - x_995 = x_967; -} else { - lean_dec_ref(x_967); - x_995 = lean_box(0); -} -if (lean_is_scalar(x_995)) { - x_996 = lean_alloc_ctor(1, 2, 0); -} else { - x_996 = x_995; -} -lean_ctor_set(x_996, 0, x_993); -lean_ctor_set(x_996, 1, x_994); -return x_996; -} -} -} -} -else -{ -lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; uint8_t x_1017; uint8_t x_1018; uint8_t x_1019; lean_object* x_1020; lean_object* x_1021; -x_997 = lean_ctor_get(x_21, 0); -x_998 = lean_ctor_get(x_21, 1); -x_999 = lean_ctor_get(x_21, 2); -x_1000 = lean_ctor_get(x_21, 3); -x_1001 = lean_ctor_get(x_21, 4); -x_1002 = lean_ctor_get(x_21, 5); -x_1003 = lean_ctor_get(x_21, 6); -lean_inc(x_1003); -lean_inc(x_1002); -lean_inc(x_1001); -lean_inc(x_1000); -lean_inc(x_999); -lean_inc(x_998); -lean_inc(x_997); -lean_dec(x_21); -x_1004 = lean_unsigned_to_nat(1u); -x_1005 = lean_nat_add(x_1002, x_1004); -x_1006 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_1006, 0, x_997); -lean_ctor_set(x_1006, 1, x_998); -lean_ctor_set(x_1006, 2, x_999); -lean_ctor_set(x_1006, 3, x_1000); -lean_ctor_set(x_1006, 4, x_1001); -lean_ctor_set(x_1006, 5, x_1005); -lean_ctor_set(x_1006, 6, x_1003); -x_1007 = lean_st_ref_set(x_4, x_1006, x_22); -x_1008 = lean_ctor_get(x_1007, 1); +lean_dec(x_1003); +x_1007 = lean_ctor_get(x_1006, 0); +lean_inc(x_1007); +x_1008 = lean_ctor_get(x_1006, 1); lean_inc(x_1008); -if (lean_is_exclusive(x_1007)) { - lean_ctor_release(x_1007, 0); - lean_ctor_release(x_1007, 1); - x_1009 = x_1007; +if (lean_is_exclusive(x_1006)) { + lean_ctor_release(x_1006, 0); + lean_ctor_release(x_1006, 1); + x_1009 = x_1006; } else { - lean_dec_ref(x_1007); + lean_dec_ref(x_1006); x_1009 = lean_box(0); } -x_1010 = lean_ctor_get(x_3, 0); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_3, 1); -lean_inc(x_1011); -x_1012 = lean_ctor_get(x_3, 2); -lean_inc(x_1012); -x_1013 = lean_ctor_get(x_3, 3); -lean_inc(x_1013); -x_1014 = lean_ctor_get(x_3, 4); -lean_inc(x_1014); -x_1015 = lean_ctor_get(x_3, 5); -lean_inc(x_1015); -x_1016 = lean_ctor_get(x_3, 6); +if (lean_is_scalar(x_1009)) { + x_1010 = lean_alloc_ctor(1, 2, 0); +} else { + x_1010 = x_1009; +} +lean_ctor_set(x_1010, 0, x_1007); +lean_ctor_set(x_1010, 1, x_1008); +return x_1010; +} +else +{ +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; +lean_dec(x_1003); +x_1011 = lean_unsigned_to_nat(2u); +x_1012 = lean_array_get(x_1002, x_11, x_1011); +x_1013 = l_Lean_Syntax_getArgs(x_1012); +lean_dec(x_1012); +x_1014 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_1015 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_1013, x_1014, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +lean_dec(x_1013); +if (lean_obj_tag(x_1015) == 0) +{ +lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; +x_1016 = lean_ctor_get(x_1015, 0); lean_inc(x_1016); -x_1017 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_1018 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_1019 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); +x_1017 = lean_ctor_get(x_1015, 1); +lean_inc(x_1017); +if (lean_is_exclusive(x_1015)) { + lean_ctor_release(x_1015, 0); + lean_ctor_release(x_1015, 1); + x_1018 = x_1015; +} else { + lean_dec_ref(x_1015); + x_1018 = lean_box(0); +} +x_1019 = l_Lean_nullKind; +if (lean_is_scalar(x_1001)) { + x_1020 = lean_alloc_ctor(1, 2, 0); +} else { + x_1020 = x_1001; +} +lean_ctor_set(x_1020, 0, x_1019); +lean_ctor_set(x_1020, 1, x_1016); +x_1021 = lean_array_set(x_11, x_1011, x_1020); +x_1022 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1022, 0, x_10); +lean_ctor_set(x_1022, 1, x_1021); +if (lean_is_scalar(x_1018)) { + x_1023 = lean_alloc_ctor(0, 2, 0); +} else { + x_1023 = x_1018; +} +lean_ctor_set(x_1023, 0, x_1022); +lean_ctor_set(x_1023, 1, x_1017); +return x_1023; +} +else +{ +lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +lean_dec(x_1001); +lean_dec(x_11); +lean_dec(x_10); +x_1024 = lean_ctor_get(x_1015, 0); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_1015, 1); +lean_inc(x_1025); +if (lean_is_exclusive(x_1015)) { + lean_ctor_release(x_1015, 0); + lean_ctor_release(x_1015, 1); + x_1026 = x_1015; +} else { + lean_dec_ref(x_1015); + x_1026 = lean_box(0); +} +if (lean_is_scalar(x_1026)) { + x_1027 = lean_alloc_ctor(1, 2, 0); +} else { + x_1027 = x_1026; +} +lean_ctor_set(x_1027, 0, x_1024); +lean_ctor_set(x_1027, 1, x_1025); +return x_1027; +} +} +} +} +else +{ +lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; +lean_dec(x_835); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_1028 = x_1; +} else { + lean_dec_ref(x_1); + x_1028 = lean_box(0); +} +x_1029 = l_Lean_Syntax_inhabited; +x_1030 = lean_array_get(x_1029, x_11, x_830); +x_1031 = l_Lean_Syntax_getArgs(x_1030); +lean_dec(x_1030); +x_1032 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1033 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_1031, x_1032, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +lean_dec(x_1031); +if (lean_obj_tag(x_1033) == 0) +{ +lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; +x_1034 = lean_ctor_get(x_1033, 0); +lean_inc(x_1034); +x_1035 = lean_ctor_get(x_1033, 1); +lean_inc(x_1035); +if (lean_is_exclusive(x_1033)) { + lean_ctor_release(x_1033, 0); + lean_ctor_release(x_1033, 1); + x_1036 = x_1033; +} else { + lean_dec_ref(x_1033); + x_1036 = lean_box(0); +} +x_1037 = l_Lean_nullKind; +if (lean_is_scalar(x_1028)) { + x_1038 = lean_alloc_ctor(1, 2, 0); +} else { + x_1038 = x_1028; +} +lean_ctor_set(x_1038, 0, x_1037); +lean_ctor_set(x_1038, 1, x_1034); +x_1039 = lean_array_set(x_11, x_830, x_1038); +x_1040 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1040, 0, x_10); +lean_ctor_set(x_1040, 1, x_1039); +if (lean_is_scalar(x_1036)) { + x_1041 = lean_alloc_ctor(0, 2, 0); +} else { + x_1041 = x_1036; +} +lean_ctor_set(x_1041, 0, x_1040); +lean_ctor_set(x_1041, 1, x_1035); +return x_1041; +} +else +{ +lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; +lean_dec(x_1028); +lean_dec(x_11); +lean_dec(x_10); +x_1042 = lean_ctor_get(x_1033, 0); +lean_inc(x_1042); +x_1043 = lean_ctor_get(x_1033, 1); +lean_inc(x_1043); +if (lean_is_exclusive(x_1033)) { + lean_ctor_release(x_1033, 0); + lean_ctor_release(x_1033, 1); + x_1044 = x_1033; +} else { + lean_dec_ref(x_1033); + x_1044 = lean_box(0); +} +if (lean_is_scalar(x_1044)) { + x_1045 = lean_alloc_ctor(1, 2, 0); +} else { + x_1045 = x_1044; +} +lean_ctor_set(x_1045, 0, x_1042); +lean_ctor_set(x_1045, 1, x_1043); +return x_1045; +} +} +} +else +{ +lean_object* x_1046; lean_object* x_1047; +lean_dec(x_835); +lean_dec(x_11); +lean_dec(x_10); +x_1046 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1047 = l_Lean_Elab_Term_CollectPatternVars_processCtorApp(x_1046, x_1, x_2, x_847, x_4, x_5, x_6, x_7, x_8, x_834); +lean_dec(x_1); +return x_1047; +} +} +} +} +else +{ +lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; uint8_t x_1064; lean_object* x_1065; lean_object* x_1066; +x_1055 = lean_ctor_get(x_7, 0); +x_1056 = lean_ctor_get(x_7, 1); +x_1057 = lean_ctor_get(x_7, 2); +x_1058 = lean_ctor_get(x_7, 3); +lean_inc(x_1058); +lean_inc(x_1057); +lean_inc(x_1056); +lean_inc(x_1055); +lean_dec(x_7); +x_1059 = l_Lean_replaceRef(x_1, x_1058); +x_1060 = l_Lean_replaceRef(x_1059, x_1058); +lean_dec(x_1059); +x_1061 = l_Lean_replaceRef(x_1060, x_1058); +lean_dec(x_1058); +lean_dec(x_1060); +x_1062 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1062, 0, x_1055); +lean_ctor_set(x_1062, 1, x_1056); +lean_ctor_set(x_1062, 2, x_1057); +lean_ctor_set(x_1062, 3, x_1061); +x_1063 = lean_st_ref_take(x_4, x_9); +if (x_13 == 0) +{ +lean_object* x_1294; lean_object* x_1295; uint8_t x_1296; +x_1294 = lean_ctor_get(x_1063, 0); +lean_inc(x_1294); +x_1295 = lean_ctor_get(x_1063, 1); +lean_inc(x_1295); +lean_dec(x_1063); +x_1296 = 0; +x_1064 = x_1296; +x_1065 = x_1294; +x_1066 = x_1295; +goto block_1293; +} +else +{ +lean_object* x_1297; lean_object* x_1298; uint8_t x_1299; +x_1297 = lean_ctor_get(x_1063, 0); +lean_inc(x_1297); +x_1298 = lean_ctor_get(x_1063, 1); +lean_inc(x_1298); +lean_dec(x_1063); +x_1299 = 1; +x_1064 = x_1299; +x_1065 = x_1297; +x_1066 = x_1298; +goto block_1293; +} +block_1293: +{ +lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; uint8_t x_1088; uint8_t x_1089; uint8_t x_1090; lean_object* x_1091; lean_object* x_1092; +x_1067 = lean_ctor_get(x_1065, 0); +lean_inc(x_1067); +x_1068 = lean_ctor_get(x_1065, 1); +lean_inc(x_1068); +x_1069 = lean_ctor_get(x_1065, 2); +lean_inc(x_1069); +x_1070 = lean_ctor_get(x_1065, 3); +lean_inc(x_1070); +x_1071 = lean_ctor_get(x_1065, 4); +lean_inc(x_1071); +x_1072 = lean_ctor_get(x_1065, 5); +lean_inc(x_1072); +x_1073 = lean_ctor_get(x_1065, 6); +lean_inc(x_1073); +if (lean_is_exclusive(x_1065)) { + lean_ctor_release(x_1065, 0); + lean_ctor_release(x_1065, 1); + lean_ctor_release(x_1065, 2); + lean_ctor_release(x_1065, 3); + lean_ctor_release(x_1065, 4); + lean_ctor_release(x_1065, 5); + lean_ctor_release(x_1065, 6); + x_1074 = x_1065; +} else { + lean_dec_ref(x_1065); + x_1074 = lean_box(0); +} +x_1075 = lean_unsigned_to_nat(1u); +x_1076 = lean_nat_add(x_1072, x_1075); +if (lean_is_scalar(x_1074)) { + x_1077 = lean_alloc_ctor(0, 7, 0); +} else { + x_1077 = x_1074; +} +lean_ctor_set(x_1077, 0, x_1067); +lean_ctor_set(x_1077, 1, x_1068); +lean_ctor_set(x_1077, 2, x_1069); +lean_ctor_set(x_1077, 3, x_1070); +lean_ctor_set(x_1077, 4, x_1071); +lean_ctor_set(x_1077, 5, x_1076); +lean_ctor_set(x_1077, 6, x_1073); +x_1078 = lean_st_ref_set(x_4, x_1077, x_1066); +x_1079 = lean_ctor_get(x_1078, 1); +lean_inc(x_1079); +if (lean_is_exclusive(x_1078)) { + lean_ctor_release(x_1078, 0); + lean_ctor_release(x_1078, 1); + x_1080 = x_1078; +} else { + lean_dec_ref(x_1078); + x_1080 = lean_box(0); +} +x_1081 = lean_ctor_get(x_3, 0); +lean_inc(x_1081); +x_1082 = lean_ctor_get(x_3, 1); +lean_inc(x_1082); +x_1083 = lean_ctor_get(x_3, 2); +lean_inc(x_1083); +x_1084 = lean_ctor_get(x_3, 3); +lean_inc(x_1084); +x_1085 = lean_ctor_get(x_3, 4); +lean_inc(x_1085); +x_1086 = lean_ctor_get(x_3, 5); +lean_inc(x_1086); +x_1087 = lean_ctor_get(x_3, 6); +lean_inc(x_1087); +x_1088 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); +x_1089 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); +x_1090 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); @@ -9948,969 +11830,618 @@ if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 5); lean_ctor_release(x_3, 6); lean_ctor_release(x_3, 7); - x_1020 = x_3; + x_1091 = x_3; } else { lean_dec_ref(x_3); - x_1020 = lean_box(0); -} -if (lean_is_scalar(x_1020)) { - x_1021 = lean_alloc_ctor(0, 8, 3); -} else { - x_1021 = x_1020; -} -lean_ctor_set(x_1021, 0, x_1010); -lean_ctor_set(x_1021, 1, x_1011); -lean_ctor_set(x_1021, 2, x_1012); -lean_ctor_set(x_1021, 3, x_1013); -lean_ctor_set(x_1021, 4, x_1014); -lean_ctor_set(x_1021, 5, x_1015); -lean_ctor_set(x_1021, 6, x_1016); -lean_ctor_set(x_1021, 7, x_1002); -lean_ctor_set_uint8(x_1021, sizeof(void*)*8, x_1017); -lean_ctor_set_uint8(x_1021, sizeof(void*)*8 + 1, x_1018); -lean_ctor_set_uint8(x_1021, sizeof(void*)*8 + 2, x_1019); -if (x_20 == 0) -{ -lean_object* x_1022; uint8_t x_1023; -x_1022 = l___private_Lean_Elab_Match_20__collect___main___closed__2; -x_1023 = lean_name_eq(x_10, x_1022); -if (x_1023 == 0) -{ -lean_object* x_1024; uint8_t x_1025; -x_1024 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; -x_1025 = lean_name_eq(x_10, x_1024); -if (x_1025 == 0) -{ -lean_object* x_1026; uint8_t x_1027; -x_1026 = l_Lean_mkHole___closed__2; -x_1027 = lean_name_eq(x_10, x_1026); -if (x_1027 == 0) -{ -lean_object* x_1028; uint8_t x_1029; -x_1028 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; -x_1029 = lean_name_eq(x_10, x_1028); -if (x_1029 == 0) -{ -lean_object* x_1030; uint8_t x_1031; -lean_dec(x_11); -x_1030 = l___private_Lean_Elab_Match_20__collect___main___closed__4; -x_1031 = lean_name_eq(x_10, x_1030); -if (x_1031 == 0) -{ -lean_object* x_1032; uint8_t x_1033; -x_1032 = l___private_Lean_Elab_Match_20__collect___main___closed__5; -x_1033 = lean_name_eq(x_10, x_1032); -if (x_1033 == 0) -{ -lean_object* x_1034; uint8_t x_1035; -x_1034 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; -x_1035 = lean_name_eq(x_10, x_1034); -if (x_1035 == 0) -{ -lean_object* x_1036; uint8_t x_1037; -x_1036 = l_Lean_strLitKind; -x_1037 = lean_name_eq(x_10, x_1036); -if (x_1037 == 0) -{ -lean_object* x_1038; uint8_t x_1039; -x_1038 = l_Lean_numLitKind; -x_1039 = lean_name_eq(x_10, x_1038); -if (x_1039 == 0) -{ -lean_object* x_1040; uint8_t x_1041; -x_1040 = l_Lean_charLitKind; -x_1041 = lean_name_eq(x_10, x_1040); -if (x_1041 == 0) -{ -lean_object* x_1042; uint8_t x_1043; -lean_dec(x_1009); -lean_dec(x_1); -x_1042 = l_Lean_choiceKind; -x_1043 = lean_name_eq(x_10, x_1042); -lean_dec(x_10); -if (x_1043 == 0) -{ -lean_object* x_1044; -x_1044 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_1044; -} -else -{ -lean_object* x_1045; lean_object* x_1046; -x_1045 = l___private_Lean_Elab_Match_20__collect___main___closed__8; -x_1046 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_1045, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_1046; -} -} -else -{ -lean_object* x_1047; -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1009)) { - x_1047 = lean_alloc_ctor(0, 2, 0); -} else { - x_1047 = x_1009; -} -lean_ctor_set(x_1047, 0, x_1); -lean_ctor_set(x_1047, 1, x_1008); -return x_1047; -} -} -else -{ -lean_object* x_1048; -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1009)) { - x_1048 = lean_alloc_ctor(0, 2, 0); -} else { - x_1048 = x_1009; -} -lean_ctor_set(x_1048, 0, x_1); -lean_ctor_set(x_1048, 1, x_1008); -return x_1048; -} -} -else -{ -lean_object* x_1049; -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1009)) { - x_1049 = lean_alloc_ctor(0, 2, 0); -} else { - x_1049 = x_1009; -} -lean_ctor_set(x_1049, 0, x_1); -lean_ctor_set(x_1049, 1, x_1008); -return x_1049; -} -} -else -{ -lean_object* x_1050; -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1009)) { - x_1050 = lean_alloc_ctor(0, 2, 0); -} else { - x_1050 = x_1009; -} -lean_ctor_set(x_1050, 0, x_1); -lean_ctor_set(x_1050, 1, x_1008); -return x_1050; -} -} -else -{ -lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; uint8_t x_1054; lean_object* x_1055; -lean_dec(x_1009); -lean_dec(x_10); -x_1051 = lean_unsigned_to_nat(0u); -x_1052 = l_Lean_Syntax_getArg(x_1, x_1051); -x_1053 = l_Lean_Syntax_getId(x_1052); -x_1054 = 0; -lean_inc(x_1021); -x_1055 = l___private_Lean_Elab_Match_15__processVar(x_1053, x_1054, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -if (lean_obj_tag(x_1055) == 0) -{ -lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; -x_1056 = lean_ctor_get(x_1055, 1); -lean_inc(x_1056); -lean_dec(x_1055); -x_1057 = lean_unsigned_to_nat(2u); -x_1058 = l_Lean_Syntax_getArg(x_1, x_1057); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1059 = x_1; -} else { - lean_dec_ref(x_1); - x_1059 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1021); -x_1060 = l___private_Lean_Elab_Match_20__collect___main(x_1058, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1056); -if (lean_obj_tag(x_1060) == 0) -{ -lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; -x_1061 = lean_ctor_get(x_1060, 0); -lean_inc(x_1061); -x_1062 = lean_ctor_get(x_1060, 1); -lean_inc(x_1062); -lean_dec(x_1060); -x_1063 = l_Lean_Elab_Term_getCurrMacroScope(x_1021, x_4, x_5, x_6, x_7, x_8, x_1062); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1021); -x_1064 = lean_ctor_get(x_1063, 0); -lean_inc(x_1064); -x_1065 = lean_ctor_get(x_1063, 1); -lean_inc(x_1065); -lean_dec(x_1063); -x_1066 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_1065); -lean_dec(x_8); -x_1067 = lean_ctor_get(x_1066, 0); -lean_inc(x_1067); -x_1068 = lean_ctor_get(x_1066, 1); -lean_inc(x_1068); -if (lean_is_exclusive(x_1066)) { - lean_ctor_release(x_1066, 0); - lean_ctor_release(x_1066, 1); - x_1069 = x_1066; -} else { - lean_dec_ref(x_1066); - x_1069 = lean_box(0); -} -x_1070 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_1071 = l_Lean_addMacroScope(x_1067, x_1070, x_1064); -x_1072 = l_Lean_SourceInfo_inhabited___closed__1; -x_1073 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_1074 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_1075 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1075, 0, x_1072); -lean_ctor_set(x_1075, 1, x_1073); -lean_ctor_set(x_1075, 2, x_1071); -lean_ctor_set(x_1075, 3, x_1074); -x_1076 = l_Array_empty___closed__1; -x_1077 = lean_array_push(x_1076, x_1075); -x_1078 = lean_array_push(x_1076, x_1052); -x_1079 = lean_array_push(x_1078, x_1061); -x_1080 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_1059)) { - x_1081 = lean_alloc_ctor(1, 2, 0); -} else { - x_1081 = x_1059; -} -lean_ctor_set(x_1081, 0, x_1080); -lean_ctor_set(x_1081, 1, x_1079); -x_1082 = lean_array_push(x_1077, x_1081); -x_1083 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1083, 0, x_12); -lean_ctor_set(x_1083, 1, x_1082); -if (lean_is_scalar(x_1069)) { - x_1084 = lean_alloc_ctor(0, 2, 0); -} else { - x_1084 = x_1069; -} -lean_ctor_set(x_1084, 0, x_1083); -lean_ctor_set(x_1084, 1, x_1068); -return x_1084; -} -else -{ -lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; -lean_dec(x_1059); -lean_dec(x_1052); -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1085 = lean_ctor_get(x_1060, 0); -lean_inc(x_1085); -x_1086 = lean_ctor_get(x_1060, 1); -lean_inc(x_1086); -if (lean_is_exclusive(x_1060)) { - lean_ctor_release(x_1060, 0); - lean_ctor_release(x_1060, 1); - x_1087 = x_1060; -} else { - lean_dec_ref(x_1060); - x_1087 = lean_box(0); -} -if (lean_is_scalar(x_1087)) { - x_1088 = lean_alloc_ctor(1, 2, 0); -} else { - x_1088 = x_1087; -} -lean_ctor_set(x_1088, 0, x_1085); -lean_ctor_set(x_1088, 1, x_1086); -return x_1088; -} -} -else -{ -lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; -lean_dec(x_1052); -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_1089 = lean_ctor_get(x_1055, 0); -lean_inc(x_1089); -x_1090 = lean_ctor_get(x_1055, 1); -lean_inc(x_1090); -if (lean_is_exclusive(x_1055)) { - lean_ctor_release(x_1055, 0); - lean_ctor_release(x_1055, 1); - x_1091 = x_1055; -} else { - lean_dec_ref(x_1055); x_1091 = lean_box(0); } if (lean_is_scalar(x_1091)) { - x_1092 = lean_alloc_ctor(1, 2, 0); + x_1092 = lean_alloc_ctor(0, 8, 3); } else { x_1092 = x_1091; } -lean_ctor_set(x_1092, 0, x_1089); -lean_ctor_set(x_1092, 1, x_1090); -return x_1092; -} -} -} -else +lean_ctor_set(x_1092, 0, x_1081); +lean_ctor_set(x_1092, 1, x_1082); +lean_ctor_set(x_1092, 2, x_1083); +lean_ctor_set(x_1092, 3, x_1084); +lean_ctor_set(x_1092, 4, x_1085); +lean_ctor_set(x_1092, 5, x_1086); +lean_ctor_set(x_1092, 6, x_1087); +lean_ctor_set(x_1092, 7, x_1072); +lean_ctor_set_uint8(x_1092, sizeof(void*)*8, x_1088); +lean_ctor_set_uint8(x_1092, sizeof(void*)*8 + 1, x_1089); +lean_ctor_set_uint8(x_1092, sizeof(void*)*8 + 2, x_1090); +if (x_1064 == 0) { -lean_object* x_1093; lean_object* x_1094; uint8_t x_1095; lean_object* x_1096; -lean_dec(x_1009); -lean_dec(x_10); -x_1093 = lean_unsigned_to_nat(0u); -x_1094 = l_Lean_Syntax_getArg(x_1, x_1093); -x_1095 = 1; -x_1096 = l___private_Lean_Elab_Match_16__processIdAux(x_1094, x_1095, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -lean_dec(x_2); -if (lean_obj_tag(x_1096) == 0) +lean_object* x_1093; uint8_t x_1094; +x_1093 = l___private_Lean_Elab_Match_26__collect___main___closed__2; +x_1094 = lean_name_eq(x_10, x_1093); +if (x_1094 == 0) { -lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; -x_1097 = lean_ctor_get(x_1096, 1); -lean_inc(x_1097); -if (lean_is_exclusive(x_1096)) { - lean_ctor_release(x_1096, 0); - lean_ctor_release(x_1096, 1); - x_1098 = x_1096; -} else { - lean_dec_ref(x_1096); - x_1098 = lean_box(0); -} -if (lean_is_scalar(x_1098)) { - x_1099 = lean_alloc_ctor(0, 2, 0); -} else { - x_1099 = x_1098; -} -lean_ctor_set(x_1099, 0, x_1); -lean_ctor_set(x_1099, 1, x_1097); -return x_1099; -} -else +lean_object* x_1095; uint8_t x_1096; +x_1095 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; +x_1096 = lean_name_eq(x_10, x_1095); +if (x_1096 == 0) { -lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; -lean_dec(x_1); -x_1100 = lean_ctor_get(x_1096, 0); -lean_inc(x_1100); -x_1101 = lean_ctor_get(x_1096, 1); -lean_inc(x_1101); -if (lean_is_exclusive(x_1096)) { - lean_ctor_release(x_1096, 0); - lean_ctor_release(x_1096, 1); - x_1102 = x_1096; -} else { - lean_dec_ref(x_1096); - x_1102 = lean_box(0); -} -if (lean_is_scalar(x_1102)) { - x_1103 = lean_alloc_ctor(1, 2, 0); -} else { - x_1103 = x_1102; -} -lean_ctor_set(x_1103, 0, x_1100); -lean_ctor_set(x_1103, 1, x_1101); -return x_1103; -} -} -} -else +lean_object* x_1097; uint8_t x_1098; +x_1097 = l_Lean_mkHole___closed__2; +x_1098 = lean_name_eq(x_10, x_1097); +if (x_1098 == 0) { -lean_object* x_1104; lean_object* x_1105; uint8_t x_1106; -x_1104 = l_Lean_Syntax_inhabited; -x_1105 = lean_array_get(x_1104, x_11, x_1004); -x_1106 = l_Lean_Syntax_isNone(x_1105); +lean_object* x_1099; uint8_t x_1100; +x_1099 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; +x_1100 = lean_name_eq(x_10, x_1099); +if (x_1100 == 0) +{ +lean_object* x_1101; uint8_t x_1102; +lean_dec(x_11); +x_1101 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__5; +x_1102 = lean_name_eq(x_10, x_1101); +if (x_1102 == 0) +{ +lean_object* x_1103; uint8_t x_1104; +x_1103 = l___private_Lean_Elab_App_22__elabAppFn___main___closed__12; +x_1104 = lean_name_eq(x_10, x_1103); +if (x_1104 == 0) +{ +lean_object* x_1105; uint8_t x_1106; +x_1105 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; +x_1106 = lean_name_eq(x_10, x_1105); if (x_1106 == 0) { -lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; uint8_t x_1111; -lean_dec(x_1009); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1107 = x_1; -} else { - lean_dec_ref(x_1); - x_1107 = lean_box(0); -} -x_1108 = lean_unsigned_to_nat(0u); -x_1109 = l_Lean_Syntax_getArg(x_1105, x_1108); -x_1110 = l_Lean_Syntax_getArg(x_1105, x_1004); -x_1111 = l_Lean_Syntax_isNone(x_1110); -if (x_1111 == 0) +lean_object* x_1107; uint8_t x_1108; +x_1107 = l_Lean_strLitKind; +x_1108 = lean_name_eq(x_10, x_1107); +if (x_1108 == 0) { -lean_object* x_1112; lean_object* x_1113; uint8_t x_1114; -x_1112 = l_Lean_Syntax_getArg(x_1110, x_1108); -x_1113 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_1112); -x_1114 = l_Lean_Syntax_isOfKind(x_1112, x_1113); +lean_object* x_1109; uint8_t x_1110; +x_1109 = l_Lean_numLitKind; +x_1110 = lean_name_eq(x_10, x_1109); +if (x_1110 == 0) +{ +lean_object* x_1111; uint8_t x_1112; +x_1111 = l_Lean_charLitKind; +x_1112 = lean_name_eq(x_10, x_1111); +if (x_1112 == 0) +{ +lean_object* x_1113; uint8_t x_1114; +lean_dec(x_1080); +lean_dec(x_1); +x_1113 = l_Lean_choiceKind; +x_1114 = lean_name_eq(x_10, x_1113); +lean_dec(x_10); if (x_1114 == 0) { lean_object* x_1115; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1021); -lean_inc(x_2); -x_1115 = l___private_Lean_Elab_Match_20__collect___main(x_1109, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -if (lean_obj_tag(x_1115) == 0) -{ -lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; -x_1116 = lean_ctor_get(x_1115, 0); -lean_inc(x_1116); -x_1117 = lean_ctor_get(x_1115, 1); -lean_inc(x_1117); -lean_dec(x_1115); -x_1118 = l_Lean_Syntax_setArg(x_1105, x_1108, x_1116); -x_1119 = l_Lean_Syntax_getArg(x_1112, x_1004); -x_1120 = l_Lean_Syntax_getArgs(x_1119); -lean_dec(x_1119); -x_1121 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_1122 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1120, x_1121, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1117); -lean_dec(x_1120); -if (lean_obj_tag(x_1122) == 0) -{ -lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; -x_1123 = lean_ctor_get(x_1122, 0); -lean_inc(x_1123); -x_1124 = lean_ctor_get(x_1122, 1); -lean_inc(x_1124); -if (lean_is_exclusive(x_1122)) { - lean_ctor_release(x_1122, 0); - lean_ctor_release(x_1122, 1); - x_1125 = x_1122; -} else { - lean_dec_ref(x_1122); - x_1125 = lean_box(0); -} -x_1126 = l_Lean_nullKind; -if (lean_is_scalar(x_1107)) { - x_1127 = lean_alloc_ctor(1, 2, 0); -} else { - x_1127 = x_1107; -} -lean_ctor_set(x_1127, 0, x_1126); -lean_ctor_set(x_1127, 1, x_1123); -x_1128 = l_Lean_Syntax_setArg(x_1112, x_1004, x_1127); -x_1129 = l_Lean_Syntax_setArg(x_1110, x_1108, x_1128); -x_1130 = l_Lean_Syntax_setArg(x_1118, x_1004, x_1129); -x_1131 = lean_array_set(x_11, x_1004, x_1130); -x_1132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1132, 0, x_10); -lean_ctor_set(x_1132, 1, x_1131); -if (lean_is_scalar(x_1125)) { - x_1133 = lean_alloc_ctor(0, 2, 0); -} else { - x_1133 = x_1125; -} -lean_ctor_set(x_1133, 0, x_1132); -lean_ctor_set(x_1133, 1, x_1124); -return x_1133; +x_1115 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +lean_dec(x_8); +lean_dec(x_1062); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_1115; } else { -lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; -lean_dec(x_1118); -lean_dec(x_1112); -lean_dec(x_1110); -lean_dec(x_1107); -lean_dec(x_11); -lean_dec(x_10); -x_1134 = lean_ctor_get(x_1122, 0); -lean_inc(x_1134); -x_1135 = lean_ctor_get(x_1122, 1); -lean_inc(x_1135); -if (lean_is_exclusive(x_1122)) { - lean_ctor_release(x_1122, 0); - lean_ctor_release(x_1122, 1); - x_1136 = x_1122; -} else { - lean_dec_ref(x_1122); - x_1136 = lean_box(0); -} -if (lean_is_scalar(x_1136)) { - x_1137 = lean_alloc_ctor(1, 2, 0); -} else { - x_1137 = x_1136; -} -lean_ctor_set(x_1137, 0, x_1134); -lean_ctor_set(x_1137, 1, x_1135); -return x_1137; +lean_object* x_1116; lean_object* x_1117; +x_1116 = l___private_Lean_Elab_Match_26__collect___main___closed__5; +x_1117 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_1116, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +lean_dec(x_8); +lean_dec(x_1062); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_1117; } } else { -lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; -lean_dec(x_1112); -lean_dec(x_1110); -lean_dec(x_1107); -lean_dec(x_1105); -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_11); +lean_object* x_1118; +lean_dec(x_1092); +lean_dec(x_1062); lean_dec(x_10); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1138 = lean_ctor_get(x_1115, 0); -lean_inc(x_1138); -x_1139 = lean_ctor_get(x_1115, 1); -lean_inc(x_1139); -if (lean_is_exclusive(x_1115)) { - lean_ctor_release(x_1115, 0); - lean_ctor_release(x_1115, 1); - x_1140 = x_1115; +if (lean_is_scalar(x_1080)) { + x_1118 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1115); - x_1140 = lean_box(0); + x_1118 = x_1080; } -if (lean_is_scalar(x_1140)) { - x_1141 = lean_alloc_ctor(1, 2, 0); -} else { - x_1141 = x_1140; -} -lean_ctor_set(x_1141, 0, x_1138); -lean_ctor_set(x_1141, 1, x_1139); -return x_1141; +lean_ctor_set(x_1118, 0, x_1); +lean_ctor_set(x_1118, 1, x_1079); +return x_1118; } } else { -lean_object* x_1142; -lean_dec(x_1112); -lean_dec(x_1110); -x_1142 = l___private_Lean_Elab_Match_20__collect___main(x_1109, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -if (lean_obj_tag(x_1142) == 0) -{ -lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; -x_1143 = lean_ctor_get(x_1142, 0); -lean_inc(x_1143); -x_1144 = lean_ctor_get(x_1142, 1); -lean_inc(x_1144); -if (lean_is_exclusive(x_1142)) { - lean_ctor_release(x_1142, 0); - lean_ctor_release(x_1142, 1); - x_1145 = x_1142; -} else { - lean_dec_ref(x_1142); - x_1145 = lean_box(0); -} -x_1146 = l_Lean_Syntax_setArg(x_1105, x_1108, x_1143); -x_1147 = lean_array_set(x_11, x_1004, x_1146); -if (lean_is_scalar(x_1107)) { - x_1148 = lean_alloc_ctor(1, 2, 0); -} else { - x_1148 = x_1107; -} -lean_ctor_set(x_1148, 0, x_10); -lean_ctor_set(x_1148, 1, x_1147); -if (lean_is_scalar(x_1145)) { - x_1149 = lean_alloc_ctor(0, 2, 0); -} else { - x_1149 = x_1145; -} -lean_ctor_set(x_1149, 0, x_1148); -lean_ctor_set(x_1149, 1, x_1144); -return x_1149; -} -else -{ -lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; -lean_dec(x_1107); -lean_dec(x_1105); -lean_dec(x_11); +lean_object* x_1119; +lean_dec(x_1092); +lean_dec(x_1062); lean_dec(x_10); -x_1150 = lean_ctor_get(x_1142, 0); -lean_inc(x_1150); -x_1151 = lean_ctor_get(x_1142, 1); -lean_inc(x_1151); -if (lean_is_exclusive(x_1142)) { - lean_ctor_release(x_1142, 0); - lean_ctor_release(x_1142, 1); - x_1152 = x_1142; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_1080)) { + x_1119 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1142); - x_1152 = lean_box(0); + x_1119 = x_1080; } -if (lean_is_scalar(x_1152)) { - x_1153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1119, 0, x_1); +lean_ctor_set(x_1119, 1, x_1079); +return x_1119; +} +} +else +{ +lean_object* x_1120; +lean_dec(x_1092); +lean_dec(x_1062); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_1080)) { + x_1120 = lean_alloc_ctor(0, 2, 0); } else { - x_1153 = x_1152; + x_1120 = x_1080; } -lean_ctor_set(x_1153, 0, x_1150); -lean_ctor_set(x_1153, 1, x_1151); +lean_ctor_set(x_1120, 0, x_1); +lean_ctor_set(x_1120, 1, x_1079); +return x_1120; +} +} +else +{ +lean_object* x_1121; +lean_dec(x_1092); +lean_dec(x_1062); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_1080)) { + x_1121 = lean_alloc_ctor(0, 2, 0); +} else { + x_1121 = x_1080; +} +lean_ctor_set(x_1121, 0, x_1); +lean_ctor_set(x_1121, 1, x_1079); +return x_1121; +} +} +else +{ +lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; +lean_dec(x_1080); +lean_dec(x_10); +x_1122 = lean_unsigned_to_nat(0u); +x_1123 = l_Lean_Syntax_getArg(x_1, x_1122); +lean_inc(x_1092); +lean_inc(x_1123); +x_1124 = l___private_Lean_Elab_Match_24__processVar(x_1123, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +if (lean_obj_tag(x_1124) == 0) +{ +lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; +x_1125 = lean_ctor_get(x_1124, 1); +lean_inc(x_1125); +lean_dec(x_1124); +x_1126 = lean_unsigned_to_nat(2u); +x_1127 = l_Lean_Syntax_getArg(x_1, x_1126); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_1128 = x_1; +} else { + lean_dec_ref(x_1); + x_1128 = lean_box(0); +} +lean_inc(x_8); +lean_inc(x_1062); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1092); +x_1129 = l___private_Lean_Elab_Match_26__collect___main(x_1127, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1125); +if (lean_obj_tag(x_1129) == 0) +{ +lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; +x_1130 = lean_ctor_get(x_1129, 0); +lean_inc(x_1130); +x_1131 = lean_ctor_get(x_1129, 1); +lean_inc(x_1131); +lean_dec(x_1129); +x_1132 = l_Lean_Elab_Term_getCurrMacroScope(x_1092, x_4, x_5, x_6, x_1062, x_8, x_1131); +lean_dec(x_1062); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1092); +x_1133 = lean_ctor_get(x_1132, 0); +lean_inc(x_1133); +x_1134 = lean_ctor_get(x_1132, 1); +lean_inc(x_1134); +lean_dec(x_1132); +x_1135 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_1134); +lean_dec(x_8); +x_1136 = lean_ctor_get(x_1135, 0); +lean_inc(x_1136); +x_1137 = lean_ctor_get(x_1135, 1); +lean_inc(x_1137); +if (lean_is_exclusive(x_1135)) { + lean_ctor_release(x_1135, 0); + lean_ctor_release(x_1135, 1); + x_1138 = x_1135; +} else { + lean_dec_ref(x_1135); + x_1138 = lean_box(0); +} +x_1139 = l___private_Lean_Elab_Match_26__collect___main___closed__8; +x_1140 = l_Lean_addMacroScope(x_1136, x_1139, x_1133); +x_1141 = l_Lean_SourceInfo_inhabited___closed__1; +x_1142 = l___private_Lean_Elab_Match_26__collect___main___closed__7; +x_1143 = l___private_Lean_Elab_Match_26__collect___main___closed__10; +x_1144 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1144, 0, x_1141); +lean_ctor_set(x_1144, 1, x_1142); +lean_ctor_set(x_1144, 2, x_1140); +lean_ctor_set(x_1144, 3, x_1143); +x_1145 = l_Array_empty___closed__1; +x_1146 = lean_array_push(x_1145, x_1144); +x_1147 = lean_array_push(x_1145, x_1123); +x_1148 = lean_array_push(x_1147, x_1130); +x_1149 = l_Lean_nullKind___closed__2; +if (lean_is_scalar(x_1128)) { + x_1150 = lean_alloc_ctor(1, 2, 0); +} else { + x_1150 = x_1128; +} +lean_ctor_set(x_1150, 0, x_1149); +lean_ctor_set(x_1150, 1, x_1148); +x_1151 = lean_array_push(x_1146, x_1150); +x_1152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1152, 0, x_12); +lean_ctor_set(x_1152, 1, x_1151); +if (lean_is_scalar(x_1138)) { + x_1153 = lean_alloc_ctor(0, 2, 0); +} else { + x_1153 = x_1138; +} +lean_ctor_set(x_1153, 0, x_1152); +lean_ctor_set(x_1153, 1, x_1137); return x_1153; } +else +{ +lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; +lean_dec(x_1128); +lean_dec(x_1123); +lean_dec(x_1092); +lean_dec(x_1062); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1154 = lean_ctor_get(x_1129, 0); +lean_inc(x_1154); +x_1155 = lean_ctor_get(x_1129, 1); +lean_inc(x_1155); +if (lean_is_exclusive(x_1129)) { + lean_ctor_release(x_1129, 0); + lean_ctor_release(x_1129, 1); + x_1156 = x_1129; +} else { + lean_dec_ref(x_1129); + x_1156 = lean_box(0); +} +if (lean_is_scalar(x_1156)) { + x_1157 = lean_alloc_ctor(1, 2, 0); +} else { + x_1157 = x_1156; +} +lean_ctor_set(x_1157, 0, x_1154); +lean_ctor_set(x_1157, 1, x_1155); +return x_1157; } } else { -lean_object* x_1154; -lean_dec(x_1110); -x_1154 = l___private_Lean_Elab_Match_20__collect___main(x_1109, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -if (lean_obj_tag(x_1154) == 0) -{ -lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; -x_1155 = lean_ctor_get(x_1154, 0); -lean_inc(x_1155); -x_1156 = lean_ctor_get(x_1154, 1); -lean_inc(x_1156); -if (lean_is_exclusive(x_1154)) { - lean_ctor_release(x_1154, 0); - lean_ctor_release(x_1154, 1); - x_1157 = x_1154; +lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; +lean_dec(x_1123); +lean_dec(x_1092); +lean_dec(x_1062); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1158 = lean_ctor_get(x_1124, 0); +lean_inc(x_1158); +x_1159 = lean_ctor_get(x_1124, 1); +lean_inc(x_1159); +if (lean_is_exclusive(x_1124)) { + lean_ctor_release(x_1124, 0); + lean_ctor_release(x_1124, 1); + x_1160 = x_1124; } else { - lean_dec_ref(x_1154); - x_1157 = lean_box(0); + lean_dec_ref(x_1124); + x_1160 = lean_box(0); } -x_1158 = l_Lean_Syntax_setArg(x_1105, x_1108, x_1155); -x_1159 = lean_array_set(x_11, x_1004, x_1158); -if (lean_is_scalar(x_1107)) { - x_1160 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1160)) { + x_1161 = lean_alloc_ctor(1, 2, 0); } else { - x_1160 = x_1107; + x_1161 = x_1160; } -lean_ctor_set(x_1160, 0, x_10); -lean_ctor_set(x_1160, 1, x_1159); -if (lean_is_scalar(x_1157)) { - x_1161 = lean_alloc_ctor(0, 2, 0); -} else { - x_1161 = x_1157; -} -lean_ctor_set(x_1161, 0, x_1160); -lean_ctor_set(x_1161, 1, x_1156); +lean_ctor_set(x_1161, 0, x_1158); +lean_ctor_set(x_1161, 1, x_1159); return x_1161; } +} +} else { lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; -lean_dec(x_1107); -lean_dec(x_1105); -lean_dec(x_11); +lean_dec(x_1080); lean_dec(x_10); -x_1162 = lean_ctor_get(x_1154, 0); -lean_inc(x_1162); -x_1163 = lean_ctor_get(x_1154, 1); -lean_inc(x_1163); -if (lean_is_exclusive(x_1154)) { - lean_ctor_release(x_1154, 0); - lean_ctor_release(x_1154, 1); - x_1164 = x_1154; -} else { - lean_dec_ref(x_1154); - x_1164 = lean_box(0); -} -if (lean_is_scalar(x_1164)) { - x_1165 = lean_alloc_ctor(1, 2, 0); -} else { - x_1165 = x_1164; -} -lean_ctor_set(x_1165, 0, x_1162); -lean_ctor_set(x_1165, 1, x_1163); +x_1162 = lean_unsigned_to_nat(0u); +x_1163 = l_Lean_Syntax_getArg(x_1, x_1162); +lean_dec(x_1); +x_1164 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1165 = l_Lean_Elab_Term_CollectPatternVars_processCtor(x_1164, x_1163, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); return x_1165; } } -} else { -lean_object* x_1166; -lean_dec(x_1105); -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1009)) { - x_1166 = lean_alloc_ctor(0, 2, 0); -} else { - x_1166 = x_1009; -} -lean_ctor_set(x_1166, 0, x_1); -lean_ctor_set(x_1166, 1, x_1008); -return x_1166; -} -} -} -else +lean_object* x_1166; lean_object* x_1167; uint8_t x_1168; +x_1166 = l_Lean_Syntax_inhabited; +x_1167 = lean_array_get(x_1166, x_11, x_1075); +x_1168 = l_Lean_Syntax_isNone(x_1167); +if (x_1168 == 0) { -lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; -lean_dec(x_1021); -lean_dec(x_1009); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_1167 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_1008); -lean_dec(x_8); -x_1168 = lean_ctor_get(x_1167, 0); -lean_inc(x_1168); -x_1169 = lean_ctor_get(x_1167, 1); -lean_inc(x_1169); -lean_dec(x_1167); -x_1170 = lean_st_ref_take(x_2, x_1169); -x_1171 = lean_ctor_get(x_1170, 0); -lean_inc(x_1171); -x_1172 = lean_ctor_get(x_1170, 1); -lean_inc(x_1172); -lean_dec(x_1170); -x_1173 = lean_ctor_get(x_1171, 0); -lean_inc(x_1173); -x_1174 = lean_ctor_get(x_1171, 1); -lean_inc(x_1174); -if (lean_is_exclusive(x_1171)) { - lean_ctor_release(x_1171, 0); - lean_ctor_release(x_1171, 1); - x_1175 = x_1171; -} else { - lean_dec_ref(x_1171); - x_1175 = lean_box(0); -} -x_1176 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1168); -x_1177 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1177, 0, x_1176); -x_1178 = lean_array_push(x_1174, x_1177); -if (lean_is_scalar(x_1175)) { - x_1179 = lean_alloc_ctor(0, 2, 0); -} else { - x_1179 = x_1175; -} -lean_ctor_set(x_1179, 0, x_1173); -lean_ctor_set(x_1179, 1, x_1178); -x_1180 = lean_st_ref_set(x_2, x_1179, x_1172); -lean_dec(x_2); -x_1181 = lean_ctor_get(x_1180, 1); -lean_inc(x_1181); -if (lean_is_exclusive(x_1180)) { - lean_ctor_release(x_1180, 0); - lean_ctor_release(x_1180, 1); - x_1182 = x_1180; -} else { - lean_dec_ref(x_1180); - x_1182 = lean_box(0); -} -if (lean_is_scalar(x_1182)) { - x_1183 = lean_alloc_ctor(0, 2, 0); -} else { - x_1183 = x_1182; -} -lean_ctor_set(x_1183, 0, x_1168); -lean_ctor_set(x_1183, 1, x_1181); -return x_1183; -} -} -else -{ -lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; uint8_t x_1187; -lean_dec(x_1009); +lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; uint8_t x_1173; +lean_dec(x_1080); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_1184 = x_1; + x_1169 = x_1; } else { lean_dec_ref(x_1); - x_1184 = lean_box(0); + x_1169 = lean_box(0); } -x_1185 = l_Lean_Syntax_inhabited; -x_1186 = lean_array_get(x_1185, x_11, x_1004); -x_1187 = l_Lean_Syntax_isNone(x_1186); -if (x_1187 == 0) +x_1170 = lean_unsigned_to_nat(0u); +x_1171 = l_Lean_Syntax_getArg(x_1167, x_1170); +x_1172 = l_Lean_Syntax_getArg(x_1167, x_1075); +x_1173 = l_Lean_Syntax_isNone(x_1172); +if (x_1173 == 0) { -lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; -lean_dec(x_1184); +lean_object* x_1174; lean_object* x_1175; uint8_t x_1176; +x_1174 = l_Lean_Syntax_getArg(x_1172, x_1170); +x_1175 = l_Lean_Elab_Term_elabParen___closed__7; +lean_inc(x_1174); +x_1176 = l_Lean_Syntax_isOfKind(x_1174, x_1175); +if (x_1176 == 0) +{ +lean_object* x_1177; +lean_inc(x_8); +lean_inc(x_1062); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1092); +lean_inc(x_2); +x_1177 = l___private_Lean_Elab_Match_26__collect___main(x_1171, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +if (lean_obj_tag(x_1177) == 0) +{ +lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; +x_1178 = lean_ctor_get(x_1177, 0); +lean_inc(x_1178); +x_1179 = lean_ctor_get(x_1177, 1); +lean_inc(x_1179); +lean_dec(x_1177); +x_1180 = l_Lean_Syntax_setArg(x_1167, x_1170, x_1178); +x_1181 = l_Lean_Syntax_getArg(x_1174, x_1075); +x_1182 = l_Lean_Syntax_getArgs(x_1181); +lean_dec(x_1181); +x_1183 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1184 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_1182, x_1183, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1179); +lean_dec(x_1182); +if (lean_obj_tag(x_1184) == 0) +{ +lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; +x_1185 = lean_ctor_get(x_1184, 0); +lean_inc(x_1185); +x_1186 = lean_ctor_get(x_1184, 1); +lean_inc(x_1186); +if (lean_is_exclusive(x_1184)) { + lean_ctor_release(x_1184, 0); + lean_ctor_release(x_1184, 1); + x_1187 = x_1184; +} else { + lean_dec_ref(x_1184); + x_1187 = lean_box(0); +} +x_1188 = l_Lean_nullKind; +if (lean_is_scalar(x_1169)) { + x_1189 = lean_alloc_ctor(1, 2, 0); +} else { + x_1189 = x_1169; +} +lean_ctor_set(x_1189, 0, x_1188); +lean_ctor_set(x_1189, 1, x_1185); +x_1190 = l_Lean_Syntax_setArg(x_1174, x_1075, x_1189); +x_1191 = l_Lean_Syntax_setArg(x_1172, x_1170, x_1190); +x_1192 = l_Lean_Syntax_setArg(x_1180, x_1075, x_1191); +x_1193 = lean_array_set(x_11, x_1075, x_1192); +x_1194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1194, 0, x_10); +lean_ctor_set(x_1194, 1, x_1193); +if (lean_is_scalar(x_1187)) { + x_1195 = lean_alloc_ctor(0, 2, 0); +} else { + x_1195 = x_1187; +} +lean_ctor_set(x_1195, 0, x_1194); +lean_ctor_set(x_1195, 1, x_1186); +return x_1195; +} +else +{ +lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; +lean_dec(x_1180); +lean_dec(x_1174); +lean_dec(x_1172); +lean_dec(x_1169); +lean_dec(x_11); +lean_dec(x_10); +x_1196 = lean_ctor_get(x_1184, 0); +lean_inc(x_1196); +x_1197 = lean_ctor_get(x_1184, 1); +lean_inc(x_1197); +if (lean_is_exclusive(x_1184)) { + lean_ctor_release(x_1184, 0); + lean_ctor_release(x_1184, 1); + x_1198 = x_1184; +} else { + lean_dec_ref(x_1184); + x_1198 = lean_box(0); +} +if (lean_is_scalar(x_1198)) { + x_1199 = lean_alloc_ctor(1, 2, 0); +} else { + x_1199 = x_1198; +} +lean_ctor_set(x_1199, 0, x_1196); +lean_ctor_set(x_1199, 1, x_1197); +return x_1199; +} +} +else +{ +lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; +lean_dec(x_1174); +lean_dec(x_1172); +lean_dec(x_1169); +lean_dec(x_1167); +lean_dec(x_1092); +lean_dec(x_1062); lean_dec(x_11); lean_dec(x_10); -x_1188 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_1189 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_1186, x_1188, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); 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_1186); -x_1190 = lean_ctor_get(x_1189, 0); -lean_inc(x_1190); -x_1191 = lean_ctor_get(x_1189, 1); -lean_inc(x_1191); -if (lean_is_exclusive(x_1189)) { - lean_ctor_release(x_1189, 0); - lean_ctor_release(x_1189, 1); - x_1192 = x_1189; -} else { - lean_dec_ref(x_1189); - x_1192 = lean_box(0); -} -if (lean_is_scalar(x_1192)) { - x_1193 = lean_alloc_ctor(1, 2, 0); -} else { - x_1193 = x_1192; -} -lean_ctor_set(x_1193, 0, x_1190); -lean_ctor_set(x_1193, 1, x_1191); -return x_1193; -} -else -{ -lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; -lean_dec(x_1186); -x_1194 = lean_unsigned_to_nat(2u); -x_1195 = lean_array_get(x_1185, x_11, x_1194); -x_1196 = l_Lean_Syntax_getArgs(x_1195); -lean_dec(x_1195); -x_1197 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_1198 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1196, x_1197, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -lean_dec(x_1196); -if (lean_obj_tag(x_1198) == 0) -{ -lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; -x_1199 = lean_ctor_get(x_1198, 0); -lean_inc(x_1199); -x_1200 = lean_ctor_get(x_1198, 1); +x_1200 = lean_ctor_get(x_1177, 0); lean_inc(x_1200); -if (lean_is_exclusive(x_1198)) { - lean_ctor_release(x_1198, 0); - lean_ctor_release(x_1198, 1); - x_1201 = x_1198; +x_1201 = lean_ctor_get(x_1177, 1); +lean_inc(x_1201); +if (lean_is_exclusive(x_1177)) { + lean_ctor_release(x_1177, 0); + lean_ctor_release(x_1177, 1); + x_1202 = x_1177; } else { - lean_dec_ref(x_1198); - x_1201 = lean_box(0); + lean_dec_ref(x_1177); + x_1202 = lean_box(0); } -x_1202 = l_Lean_nullKind; -if (lean_is_scalar(x_1184)) { +if (lean_is_scalar(x_1202)) { x_1203 = lean_alloc_ctor(1, 2, 0); } else { - x_1203 = x_1184; + x_1203 = x_1202; } -lean_ctor_set(x_1203, 0, x_1202); -lean_ctor_set(x_1203, 1, x_1199); -x_1204 = lean_array_set(x_11, x_1194, x_1203); -x_1205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1205, 0, x_10); -lean_ctor_set(x_1205, 1, x_1204); -if (lean_is_scalar(x_1201)) { - x_1206 = lean_alloc_ctor(0, 2, 0); -} else { - x_1206 = x_1201; +lean_ctor_set(x_1203, 0, x_1200); +lean_ctor_set(x_1203, 1, x_1201); +return x_1203; } -lean_ctor_set(x_1206, 0, x_1205); -lean_ctor_set(x_1206, 1, x_1200); -return x_1206; } else { -lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; -lean_dec(x_1184); -lean_dec(x_11); -lean_dec(x_10); -x_1207 = lean_ctor_get(x_1198, 0); -lean_inc(x_1207); -x_1208 = lean_ctor_get(x_1198, 1); -lean_inc(x_1208); -if (lean_is_exclusive(x_1198)) { - lean_ctor_release(x_1198, 0); - lean_ctor_release(x_1198, 1); - x_1209 = x_1198; +lean_object* x_1204; +lean_dec(x_1174); +lean_dec(x_1172); +x_1204 = l___private_Lean_Elab_Match_26__collect___main(x_1171, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +if (lean_obj_tag(x_1204) == 0) +{ +lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; +x_1205 = lean_ctor_get(x_1204, 0); +lean_inc(x_1205); +x_1206 = lean_ctor_get(x_1204, 1); +lean_inc(x_1206); +if (lean_is_exclusive(x_1204)) { + lean_ctor_release(x_1204, 0); + lean_ctor_release(x_1204, 1); + x_1207 = x_1204; } else { - lean_dec_ref(x_1198); - x_1209 = lean_box(0); + lean_dec_ref(x_1204); + x_1207 = lean_box(0); } -if (lean_is_scalar(x_1209)) { +x_1208 = l_Lean_Syntax_setArg(x_1167, x_1170, x_1205); +x_1209 = lean_array_set(x_11, x_1075, x_1208); +if (lean_is_scalar(x_1169)) { x_1210 = lean_alloc_ctor(1, 2, 0); } else { - x_1210 = x_1209; + x_1210 = x_1169; } -lean_ctor_set(x_1210, 0, x_1207); -lean_ctor_set(x_1210, 1, x_1208); -return x_1210; +lean_ctor_set(x_1210, 0, x_10); +lean_ctor_set(x_1210, 1, x_1209); +if (lean_is_scalar(x_1207)) { + x_1211 = lean_alloc_ctor(0, 2, 0); +} else { + x_1211 = x_1207; } +lean_ctor_set(x_1211, 0, x_1210); +lean_ctor_set(x_1211, 1, x_1206); +return x_1211; +} +else +{ +lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; +lean_dec(x_1169); +lean_dec(x_1167); +lean_dec(x_11); +lean_dec(x_10); +x_1212 = lean_ctor_get(x_1204, 0); +lean_inc(x_1212); +x_1213 = lean_ctor_get(x_1204, 1); +lean_inc(x_1213); +if (lean_is_exclusive(x_1204)) { + lean_ctor_release(x_1204, 0); + lean_ctor_release(x_1204, 1); + x_1214 = x_1204; +} else { + lean_dec_ref(x_1204); + x_1214 = lean_box(0); +} +if (lean_is_scalar(x_1214)) { + x_1215 = lean_alloc_ctor(1, 2, 0); +} else { + x_1215 = x_1214; +} +lean_ctor_set(x_1215, 0, x_1212); +lean_ctor_set(x_1215, 1, x_1213); +return x_1215; } } } else { -lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; -lean_dec(x_1009); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1211 = x_1; -} else { - lean_dec_ref(x_1); - x_1211 = lean_box(0); -} -x_1212 = l_Lean_Syntax_inhabited; -x_1213 = lean_array_get(x_1212, x_11, x_1004); -x_1214 = l_Lean_Syntax_getArgs(x_1213); -lean_dec(x_1213); -x_1215 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_1216 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1214, x_1215, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -lean_dec(x_1214); +lean_object* x_1216; +lean_dec(x_1172); +x_1216 = l___private_Lean_Elab_Match_26__collect___main(x_1171, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); if (lean_obj_tag(x_1216) == 0) { -lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; +lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; x_1217 = lean_ctor_get(x_1216, 0); lean_inc(x_1217); x_1218 = lean_ctor_get(x_1216, 1); @@ -10923,1726 +12454,420 @@ if (lean_is_exclusive(x_1216)) { lean_dec_ref(x_1216); x_1219 = lean_box(0); } -x_1220 = l_Lean_nullKind; -if (lean_is_scalar(x_1211)) { - x_1221 = lean_alloc_ctor(1, 2, 0); +x_1220 = l_Lean_Syntax_setArg(x_1167, x_1170, x_1217); +x_1221 = lean_array_set(x_11, x_1075, x_1220); +if (lean_is_scalar(x_1169)) { + x_1222 = lean_alloc_ctor(1, 2, 0); } else { - x_1221 = x_1211; + x_1222 = x_1169; } -lean_ctor_set(x_1221, 0, x_1220); -lean_ctor_set(x_1221, 1, x_1217); -x_1222 = lean_array_set(x_11, x_1004, x_1221); -x_1223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1223, 0, x_10); -lean_ctor_set(x_1223, 1, x_1222); +lean_ctor_set(x_1222, 0, x_10); +lean_ctor_set(x_1222, 1, x_1221); if (lean_is_scalar(x_1219)) { - x_1224 = lean_alloc_ctor(0, 2, 0); + x_1223 = lean_alloc_ctor(0, 2, 0); } else { - x_1224 = x_1219; + x_1223 = x_1219; } -lean_ctor_set(x_1224, 0, x_1223); -lean_ctor_set(x_1224, 1, x_1218); -return x_1224; +lean_ctor_set(x_1223, 0, x_1222); +lean_ctor_set(x_1223, 1, x_1218); +return x_1223; } else { -lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; -lean_dec(x_1211); +lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; +lean_dec(x_1169); +lean_dec(x_1167); lean_dec(x_11); lean_dec(x_10); -x_1225 = lean_ctor_get(x_1216, 0); +x_1224 = lean_ctor_get(x_1216, 0); +lean_inc(x_1224); +x_1225 = lean_ctor_get(x_1216, 1); lean_inc(x_1225); -x_1226 = lean_ctor_get(x_1216, 1); -lean_inc(x_1226); if (lean_is_exclusive(x_1216)) { lean_ctor_release(x_1216, 0); lean_ctor_release(x_1216, 1); - x_1227 = x_1216; + x_1226 = x_1216; } else { lean_dec_ref(x_1216); - x_1227 = lean_box(0); + x_1226 = lean_box(0); } -if (lean_is_scalar(x_1227)) { - x_1228 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1226)) { + x_1227 = lean_alloc_ctor(1, 2, 0); } else { - x_1228 = x_1227; + x_1227 = x_1226; } -lean_ctor_set(x_1228, 0, x_1225); -lean_ctor_set(x_1228, 1, x_1226); +lean_ctor_set(x_1227, 0, x_1224); +lean_ctor_set(x_1227, 1, x_1225); +return x_1227; +} +} +} +else +{ +lean_object* x_1228; +lean_dec(x_1167); +lean_dec(x_1092); +lean_dec(x_1062); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +if (lean_is_scalar(x_1080)) { + x_1228 = lean_alloc_ctor(0, 2, 0); +} else { + x_1228 = x_1080; +} +lean_ctor_set(x_1228, 0, x_1); +lean_ctor_set(x_1228, 1, x_1079); return x_1228; } } } else { -lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; -lean_dec(x_1009); +lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; +lean_dec(x_1092); +lean_dec(x_1080); +lean_dec(x_1062); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_1229 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_1079); +lean_dec(x_8); +x_1230 = lean_ctor_get(x_1229, 0); +lean_inc(x_1230); +x_1231 = lean_ctor_get(x_1229, 1); +lean_inc(x_1231); +lean_dec(x_1229); +x_1232 = lean_st_ref_take(x_2, x_1231); +x_1233 = lean_ctor_get(x_1232, 0); +lean_inc(x_1233); +x_1234 = lean_ctor_get(x_1232, 1); +lean_inc(x_1234); +lean_dec(x_1232); +x_1235 = lean_ctor_get(x_1233, 0); +lean_inc(x_1235); +x_1236 = lean_ctor_get(x_1233, 1); +lean_inc(x_1236); +if (lean_is_exclusive(x_1233)) { + lean_ctor_release(x_1233, 0); + lean_ctor_release(x_1233, 1); + x_1237 = x_1233; +} else { + lean_dec_ref(x_1233); + x_1237 = lean_box(0); +} +x_1238 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1230); +x_1239 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1239, 0, x_1238); +x_1240 = lean_array_push(x_1236, x_1239); +if (lean_is_scalar(x_1237)) { + x_1241 = lean_alloc_ctor(0, 2, 0); +} else { + x_1241 = x_1237; +} +lean_ctor_set(x_1241, 0, x_1235); +lean_ctor_set(x_1241, 1, x_1240); +x_1242 = lean_st_ref_set(x_2, x_1241, x_1234); +lean_dec(x_2); +x_1243 = lean_ctor_get(x_1242, 1); +lean_inc(x_1243); +if (lean_is_exclusive(x_1242)) { + lean_ctor_release(x_1242, 0); + lean_ctor_release(x_1242, 1); + x_1244 = x_1242; +} else { + lean_dec_ref(x_1242); + x_1244 = lean_box(0); +} +if (lean_is_scalar(x_1244)) { + x_1245 = lean_alloc_ctor(0, 2, 0); +} else { + x_1245 = x_1244; +} +lean_ctor_set(x_1245, 0, x_1230); +lean_ctor_set(x_1245, 1, x_1243); +return x_1245; +} +} +else +{ +lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; uint8_t x_1249; +lean_dec(x_1080); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); lean_ctor_release(x_1, 1); - x_1229 = x_1; + x_1246 = x_1; } else { lean_dec_ref(x_1); - x_1229 = lean_box(0); + x_1246 = lean_box(0); } -x_1230 = l_Lean_Syntax_inhabited; -x_1231 = lean_unsigned_to_nat(0u); -x_1232 = lean_array_get(x_1230, x_11, x_1231); -x_1233 = lean_array_get(x_1230, x_11, x_1004); -x_1234 = l_Lean_Syntax_getArgs(x_1233); -lean_dec(x_1233); -x_1235 = l_Lean_mkAppStx___closed__6; -lean_inc(x_1021); -x_1236 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_1235, x_1234, x_1231, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1008); -if (lean_obj_tag(x_1236) == 0) +x_1247 = l_Lean_Syntax_inhabited; +x_1248 = lean_array_get(x_1247, x_11, x_1075); +x_1249 = l_Lean_Syntax_isNone(x_1248); +if (x_1249 == 0) { -lean_object* x_1237; uint8_t x_1238; lean_object* x_1239; -x_1237 = lean_ctor_get(x_1236, 1); -lean_inc(x_1237); -lean_dec(x_1236); -x_1238 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1021); -x_1239 = l___private_Lean_Elab_Match_16__processIdAux(x_1232, x_1238, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1237); -if (lean_obj_tag(x_1239) == 0) -{ -lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; -x_1240 = lean_ctor_get(x_1239, 0); -lean_inc(x_1240); -x_1241 = lean_ctor_get(x_1239, 1); -lean_inc(x_1241); -lean_dec(x_1239); -x_1242 = x_1234; -x_1243 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_1243, 0, x_1240); -lean_closure_set(x_1243, 1, x_1231); -lean_closure_set(x_1243, 2, x_1242); -x_1244 = x_1243; -x_1245 = lean_apply_8(x_1244, x_2, x_1021, x_4, x_5, x_6, x_7, x_8, x_1241); -if (lean_obj_tag(x_1245) == 0) -{ -lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; -x_1246 = lean_ctor_get(x_1245, 0); -lean_inc(x_1246); -x_1247 = lean_ctor_get(x_1245, 1); -lean_inc(x_1247); -if (lean_is_exclusive(x_1245)) { - lean_ctor_release(x_1245, 0); - lean_ctor_release(x_1245, 1); - x_1248 = x_1245; -} else { - lean_dec_ref(x_1245); - x_1248 = lean_box(0); -} -x_1249 = l_Lean_nullKind; -if (lean_is_scalar(x_1229)) { - x_1250 = lean_alloc_ctor(1, 2, 0); -} else { - x_1250 = x_1229; -} -lean_ctor_set(x_1250, 0, x_1249); -lean_ctor_set(x_1250, 1, x_1246); -x_1251 = lean_array_set(x_11, x_1004, x_1250); -x_1252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1252, 0, x_10); -lean_ctor_set(x_1252, 1, x_1251); -if (lean_is_scalar(x_1248)) { - x_1253 = lean_alloc_ctor(0, 2, 0); -} else { - x_1253 = x_1248; -} -lean_ctor_set(x_1253, 0, x_1252); -lean_ctor_set(x_1253, 1, x_1247); -return x_1253; -} -else -{ -lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; -lean_dec(x_1229); -lean_dec(x_11); -lean_dec(x_10); -x_1254 = lean_ctor_get(x_1245, 0); -lean_inc(x_1254); -x_1255 = lean_ctor_get(x_1245, 1); -lean_inc(x_1255); -if (lean_is_exclusive(x_1245)) { - lean_ctor_release(x_1245, 0); - lean_ctor_release(x_1245, 1); - x_1256 = x_1245; -} else { - lean_dec_ref(x_1245); - x_1256 = lean_box(0); -} -if (lean_is_scalar(x_1256)) { - x_1257 = lean_alloc_ctor(1, 2, 0); -} else { - x_1257 = x_1256; -} -lean_ctor_set(x_1257, 0, x_1254); -lean_ctor_set(x_1257, 1, x_1255); -return x_1257; -} -} -else -{ -lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; -lean_dec(x_1234); -lean_dec(x_1229); -lean_dec(x_1021); -lean_dec(x_7); +lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; +lean_dec(x_1246); lean_dec(x_11); lean_dec(x_10); +x_1250 = l___private_Lean_Elab_Match_26__collect___main___closed__14; +x_1251 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_24__processVar___spec__1___rarg(x_1248, x_1250, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); lean_dec(x_8); +lean_dec(x_1062); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1258 = lean_ctor_get(x_1239, 0); -lean_inc(x_1258); -x_1259 = lean_ctor_get(x_1239, 1); -lean_inc(x_1259); -if (lean_is_exclusive(x_1239)) { - lean_ctor_release(x_1239, 0); - lean_ctor_release(x_1239, 1); - x_1260 = x_1239; +lean_dec(x_1248); +x_1252 = lean_ctor_get(x_1251, 0); +lean_inc(x_1252); +x_1253 = lean_ctor_get(x_1251, 1); +lean_inc(x_1253); +if (lean_is_exclusive(x_1251)) { + lean_ctor_release(x_1251, 0); + lean_ctor_release(x_1251, 1); + x_1254 = x_1251; } else { - lean_dec_ref(x_1239); - x_1260 = lean_box(0); + lean_dec_ref(x_1251); + x_1254 = lean_box(0); } -if (lean_is_scalar(x_1260)) { - x_1261 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1254)) { + x_1255 = lean_alloc_ctor(1, 2, 0); } else { - x_1261 = x_1260; -} -lean_ctor_set(x_1261, 0, x_1258); -lean_ctor_set(x_1261, 1, x_1259); -return x_1261; + x_1255 = x_1254; } +lean_ctor_set(x_1255, 0, x_1252); +lean_ctor_set(x_1255, 1, x_1253); +return x_1255; } else { -lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; -lean_dec(x_1234); -lean_dec(x_1232); -lean_dec(x_1229); -lean_dec(x_1021); -lean_dec(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1262 = lean_ctor_get(x_1236, 0); +lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; +lean_dec(x_1248); +x_1256 = lean_unsigned_to_nat(2u); +x_1257 = lean_array_get(x_1247, x_11, x_1256); +x_1258 = l_Lean_Syntax_getArgs(x_1257); +lean_dec(x_1257); +x_1259 = l___private_Lean_Elab_Match_26__collect___main___closed__15; +x_1260 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_1258, x_1259, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); +lean_dec(x_1258); +if (lean_obj_tag(x_1260) == 0) +{ +lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; +x_1261 = lean_ctor_get(x_1260, 0); +lean_inc(x_1261); +x_1262 = lean_ctor_get(x_1260, 1); lean_inc(x_1262); -x_1263 = lean_ctor_get(x_1236, 1); -lean_inc(x_1263); -if (lean_is_exclusive(x_1236)) { - lean_ctor_release(x_1236, 0); - lean_ctor_release(x_1236, 1); - x_1264 = x_1236; +if (lean_is_exclusive(x_1260)) { + lean_ctor_release(x_1260, 0); + lean_ctor_release(x_1260, 1); + x_1263 = x_1260; } else { - lean_dec_ref(x_1236); - x_1264 = lean_box(0); + lean_dec_ref(x_1260); + x_1263 = lean_box(0); } -if (lean_is_scalar(x_1264)) { +x_1264 = l_Lean_nullKind; +if (lean_is_scalar(x_1246)) { x_1265 = lean_alloc_ctor(1, 2, 0); } else { - x_1265 = x_1264; + x_1265 = x_1246; } -lean_ctor_set(x_1265, 0, x_1262); -lean_ctor_set(x_1265, 1, x_1263); -return x_1265; +lean_ctor_set(x_1265, 0, x_1264); +lean_ctor_set(x_1265, 1, x_1261); +x_1266 = lean_array_set(x_11, x_1256, x_1265); +x_1267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1267, 0, x_10); +lean_ctor_set(x_1267, 1, x_1266); +if (lean_is_scalar(x_1263)) { + x_1268 = lean_alloc_ctor(0, 2, 0); +} else { + x_1268 = x_1263; } +lean_ctor_set(x_1268, 0, x_1267); +lean_ctor_set(x_1268, 1, x_1262); +return x_1268; +} +else +{ +lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; +lean_dec(x_1246); +lean_dec(x_11); +lean_dec(x_10); +x_1269 = lean_ctor_get(x_1260, 0); +lean_inc(x_1269); +x_1270 = lean_ctor_get(x_1260, 1); +lean_inc(x_1270); +if (lean_is_exclusive(x_1260)) { + lean_ctor_release(x_1260, 0); + lean_ctor_release(x_1260, 1); + x_1271 = x_1260; +} else { + lean_dec_ref(x_1260); + x_1271 = lean_box(0); +} +if (lean_is_scalar(x_1271)) { + x_1272 = lean_alloc_ctor(1, 2, 0); +} else { + x_1272 = x_1271; +} +lean_ctor_set(x_1272, 0, x_1269); +lean_ctor_set(x_1272, 1, x_1270); +return x_1272; } } } } else { -lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; uint8_t x_1282; lean_object* x_1283; lean_object* x_1284; -x_1273 = lean_ctor_get(x_7, 0); -x_1274 = lean_ctor_get(x_7, 1); -x_1275 = lean_ctor_get(x_7, 2); -x_1276 = lean_ctor_get(x_7, 3); -lean_inc(x_1276); -lean_inc(x_1275); -lean_inc(x_1274); -lean_inc(x_1273); -lean_dec(x_7); -x_1277 = l_Lean_replaceRef(x_1, x_1276); -x_1278 = l_Lean_replaceRef(x_1277, x_1276); -lean_dec(x_1277); -x_1279 = l_Lean_replaceRef(x_1278, x_1276); +lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; +lean_dec(x_1080); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_1273 = x_1; +} else { + lean_dec_ref(x_1); + x_1273 = lean_box(0); +} +x_1274 = l_Lean_Syntax_inhabited; +x_1275 = lean_array_get(x_1274, x_11, x_1075); +x_1276 = l_Lean_Syntax_getArgs(x_1275); +lean_dec(x_1275); +x_1277 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1278 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1(x_1276, x_1277, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); lean_dec(x_1276); -lean_dec(x_1278); -x_1280 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1280, 0, x_1273); -lean_ctor_set(x_1280, 1, x_1274); -lean_ctor_set(x_1280, 2, x_1275); -lean_ctor_set(x_1280, 3, x_1279); -x_1281 = lean_st_ref_take(x_4, x_9); -if (x_13 == 0) +if (lean_obj_tag(x_1278) == 0) { -lean_object* x_1556; lean_object* x_1557; uint8_t x_1558; -x_1556 = lean_ctor_get(x_1281, 0); -lean_inc(x_1556); -x_1557 = lean_ctor_get(x_1281, 1); -lean_inc(x_1557); -lean_dec(x_1281); -x_1558 = 0; -x_1282 = x_1558; -x_1283 = x_1556; -x_1284 = x_1557; -goto block_1555; +lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; +x_1279 = lean_ctor_get(x_1278, 0); +lean_inc(x_1279); +x_1280 = lean_ctor_get(x_1278, 1); +lean_inc(x_1280); +if (lean_is_exclusive(x_1278)) { + lean_ctor_release(x_1278, 0); + lean_ctor_release(x_1278, 1); + x_1281 = x_1278; +} else { + lean_dec_ref(x_1278); + x_1281 = lean_box(0); +} +x_1282 = l_Lean_nullKind; +if (lean_is_scalar(x_1273)) { + x_1283 = lean_alloc_ctor(1, 2, 0); +} else { + x_1283 = x_1273; +} +lean_ctor_set(x_1283, 0, x_1282); +lean_ctor_set(x_1283, 1, x_1279); +x_1284 = lean_array_set(x_11, x_1075, x_1283); +x_1285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1285, 0, x_10); +lean_ctor_set(x_1285, 1, x_1284); +if (lean_is_scalar(x_1281)) { + x_1286 = lean_alloc_ctor(0, 2, 0); +} else { + x_1286 = x_1281; +} +lean_ctor_set(x_1286, 0, x_1285); +lean_ctor_set(x_1286, 1, x_1280); +return x_1286; } else { -lean_object* x_1559; lean_object* x_1560; uint8_t x_1561; -x_1559 = lean_ctor_get(x_1281, 0); -lean_inc(x_1559); -x_1560 = lean_ctor_get(x_1281, 1); -lean_inc(x_1560); -lean_dec(x_1281); -x_1561 = 1; -x_1282 = x_1561; -x_1283 = x_1559; -x_1284 = x_1560; -goto block_1555; -} -block_1555: -{ -lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; uint8_t x_1306; uint8_t x_1307; uint8_t x_1308; lean_object* x_1309; lean_object* x_1310; -x_1285 = lean_ctor_get(x_1283, 0); -lean_inc(x_1285); -x_1286 = lean_ctor_get(x_1283, 1); -lean_inc(x_1286); -x_1287 = lean_ctor_get(x_1283, 2); +lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; +lean_dec(x_1273); +lean_dec(x_11); +lean_dec(x_10); +x_1287 = lean_ctor_get(x_1278, 0); lean_inc(x_1287); -x_1288 = lean_ctor_get(x_1283, 3); +x_1288 = lean_ctor_get(x_1278, 1); lean_inc(x_1288); -x_1289 = lean_ctor_get(x_1283, 4); -lean_inc(x_1289); -x_1290 = lean_ctor_get(x_1283, 5); -lean_inc(x_1290); -x_1291 = lean_ctor_get(x_1283, 6); -lean_inc(x_1291); -if (lean_is_exclusive(x_1283)) { - lean_ctor_release(x_1283, 0); - lean_ctor_release(x_1283, 1); - lean_ctor_release(x_1283, 2); - lean_ctor_release(x_1283, 3); - lean_ctor_release(x_1283, 4); - lean_ctor_release(x_1283, 5); - lean_ctor_release(x_1283, 6); - x_1292 = x_1283; +if (lean_is_exclusive(x_1278)) { + lean_ctor_release(x_1278, 0); + lean_ctor_release(x_1278, 1); + x_1289 = x_1278; } else { - lean_dec_ref(x_1283); - x_1292 = lean_box(0); + lean_dec_ref(x_1278); + x_1289 = lean_box(0); } -x_1293 = lean_unsigned_to_nat(1u); -x_1294 = lean_nat_add(x_1290, x_1293); -if (lean_is_scalar(x_1292)) { - x_1295 = lean_alloc_ctor(0, 7, 0); +if (lean_is_scalar(x_1289)) { + x_1290 = lean_alloc_ctor(1, 2, 0); } else { - x_1295 = x_1292; + x_1290 = x_1289; } -lean_ctor_set(x_1295, 0, x_1285); -lean_ctor_set(x_1295, 1, x_1286); -lean_ctor_set(x_1295, 2, x_1287); -lean_ctor_set(x_1295, 3, x_1288); -lean_ctor_set(x_1295, 4, x_1289); -lean_ctor_set(x_1295, 5, x_1294); -lean_ctor_set(x_1295, 6, x_1291); -x_1296 = lean_st_ref_set(x_4, x_1295, x_1284); -x_1297 = lean_ctor_get(x_1296, 1); -lean_inc(x_1297); -if (lean_is_exclusive(x_1296)) { - lean_ctor_release(x_1296, 0); - lean_ctor_release(x_1296, 1); - x_1298 = x_1296; -} else { - lean_dec_ref(x_1296); - x_1298 = lean_box(0); +lean_ctor_set(x_1290, 0, x_1287); +lean_ctor_set(x_1290, 1, x_1288); +return x_1290; } -x_1299 = lean_ctor_get(x_3, 0); -lean_inc(x_1299); -x_1300 = lean_ctor_get(x_3, 1); -lean_inc(x_1300); -x_1301 = lean_ctor_get(x_3, 2); -lean_inc(x_1301); -x_1302 = lean_ctor_get(x_3, 3); -lean_inc(x_1302); -x_1303 = lean_ctor_get(x_3, 4); -lean_inc(x_1303); -x_1304 = lean_ctor_get(x_3, 5); -lean_inc(x_1304); -x_1305 = lean_ctor_get(x_3, 6); -lean_inc(x_1305); -x_1306 = lean_ctor_get_uint8(x_3, sizeof(void*)*8); -x_1307 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 1); -x_1308 = lean_ctor_get_uint8(x_3, sizeof(void*)*8 + 2); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - x_1309 = x_3; -} else { - lean_dec_ref(x_3); - x_1309 = lean_box(0); } -if (lean_is_scalar(x_1309)) { - x_1310 = lean_alloc_ctor(0, 8, 3); -} else { - x_1310 = x_1309; } -lean_ctor_set(x_1310, 0, x_1299); -lean_ctor_set(x_1310, 1, x_1300); -lean_ctor_set(x_1310, 2, x_1301); -lean_ctor_set(x_1310, 3, x_1302); -lean_ctor_set(x_1310, 4, x_1303); -lean_ctor_set(x_1310, 5, x_1304); -lean_ctor_set(x_1310, 6, x_1305); -lean_ctor_set(x_1310, 7, x_1290); -lean_ctor_set_uint8(x_1310, sizeof(void*)*8, x_1306); -lean_ctor_set_uint8(x_1310, sizeof(void*)*8 + 1, x_1307); -lean_ctor_set_uint8(x_1310, sizeof(void*)*8 + 2, x_1308); -if (x_1282 == 0) +else { -lean_object* x_1311; uint8_t x_1312; -x_1311 = l___private_Lean_Elab_Match_20__collect___main___closed__2; -x_1312 = lean_name_eq(x_10, x_1311); -if (x_1312 == 0) -{ -lean_object* x_1313; uint8_t x_1314; -x_1313 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; -x_1314 = lean_name_eq(x_10, x_1313); -if (x_1314 == 0) -{ -lean_object* x_1315; uint8_t x_1316; -x_1315 = l_Lean_mkHole___closed__2; -x_1316 = lean_name_eq(x_10, x_1315); -if (x_1316 == 0) -{ -lean_object* x_1317; uint8_t x_1318; -x_1317 = l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; -x_1318 = lean_name_eq(x_10, x_1317); -if (x_1318 == 0) -{ -lean_object* x_1319; uint8_t x_1320; +lean_object* x_1291; lean_object* x_1292; +lean_dec(x_1080); lean_dec(x_11); -x_1319 = l___private_Lean_Elab_Match_20__collect___main___closed__4; -x_1320 = lean_name_eq(x_10, x_1319); -if (x_1320 == 0) -{ -lean_object* x_1321; uint8_t x_1322; -x_1321 = l___private_Lean_Elab_Match_20__collect___main___closed__5; -x_1322 = lean_name_eq(x_10, x_1321); -if (x_1322 == 0) -{ -lean_object* x_1323; uint8_t x_1324; -x_1323 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__2; -x_1324 = lean_name_eq(x_10, x_1323); -if (x_1324 == 0) -{ -lean_object* x_1325; uint8_t x_1326; -x_1325 = l_Lean_strLitKind; -x_1326 = lean_name_eq(x_10, x_1325); -if (x_1326 == 0) -{ -lean_object* x_1327; uint8_t x_1328; -x_1327 = l_Lean_numLitKind; -x_1328 = lean_name_eq(x_10, x_1327); -if (x_1328 == 0) -{ -lean_object* x_1329; uint8_t x_1330; -x_1329 = l_Lean_charLitKind; -x_1330 = lean_name_eq(x_10, x_1329); -if (x_1330 == 0) -{ -lean_object* x_1331; uint8_t x_1332; -lean_dec(x_1298); +lean_dec(x_10); +x_1291 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1292 = l_Lean_Elab_Term_CollectPatternVars_processCtorApp(x_1291, x_1, x_2, x_1092, x_4, x_5, x_6, x_1062, x_8, x_1079); lean_dec(x_1); -x_1331 = l_Lean_choiceKind; -x_1332 = lean_name_eq(x_10, x_1331); -lean_dec(x_10); -if (x_1332 == 0) -{ -lean_object* x_1333; -x_1333 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_8); -lean_dec(x_1280); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_1333; -} -else -{ -lean_object* x_1334; lean_object* x_1335; -x_1334 = l___private_Lean_Elab_Match_20__collect___main___closed__8; -x_1335 = l_Lean_throwError___at___private_Lean_Elab_Match_12__throwCtorExpected___spec__1___rarg(x_1334, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_8); -lean_dec(x_1280); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_1335; -} -} -else -{ -lean_object* x_1336; -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1298)) { - x_1336 = lean_alloc_ctor(0, 2, 0); -} else { - x_1336 = x_1298; -} -lean_ctor_set(x_1336, 0, x_1); -lean_ctor_set(x_1336, 1, x_1297); -return x_1336; -} -} -else -{ -lean_object* x_1337; -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1298)) { - x_1337 = lean_alloc_ctor(0, 2, 0); -} else { - x_1337 = x_1298; -} -lean_ctor_set(x_1337, 0, x_1); -lean_ctor_set(x_1337, 1, x_1297); -return x_1337; -} -} -else -{ -lean_object* x_1338; -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1298)) { - x_1338 = lean_alloc_ctor(0, 2, 0); -} else { - x_1338 = x_1298; -} -lean_ctor_set(x_1338, 0, x_1); -lean_ctor_set(x_1338, 1, x_1297); -return x_1338; -} -} -else -{ -lean_object* x_1339; -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1298)) { - x_1339 = lean_alloc_ctor(0, 2, 0); -} else { - x_1339 = x_1298; -} -lean_ctor_set(x_1339, 0, x_1); -lean_ctor_set(x_1339, 1, x_1297); -return x_1339; -} -} -else -{ -lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; uint8_t x_1343; lean_object* x_1344; -lean_dec(x_1298); -lean_dec(x_10); -x_1340 = lean_unsigned_to_nat(0u); -x_1341 = l_Lean_Syntax_getArg(x_1, x_1340); -x_1342 = l_Lean_Syntax_getId(x_1341); -x_1343 = 0; -lean_inc(x_1310); -x_1344 = l___private_Lean_Elab_Match_15__processVar(x_1342, x_1343, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -if (lean_obj_tag(x_1344) == 0) -{ -lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; -x_1345 = lean_ctor_get(x_1344, 1); -lean_inc(x_1345); -lean_dec(x_1344); -x_1346 = lean_unsigned_to_nat(2u); -x_1347 = l_Lean_Syntax_getArg(x_1, x_1346); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1348 = x_1; -} else { - lean_dec_ref(x_1); - x_1348 = lean_box(0); -} -lean_inc(x_8); -lean_inc(x_1280); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1310); -x_1349 = l___private_Lean_Elab_Match_20__collect___main(x_1347, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1345); -if (lean_obj_tag(x_1349) == 0) -{ -lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; -x_1350 = lean_ctor_get(x_1349, 0); -lean_inc(x_1350); -x_1351 = lean_ctor_get(x_1349, 1); -lean_inc(x_1351); -lean_dec(x_1349); -x_1352 = l_Lean_Elab_Term_getCurrMacroScope(x_1310, x_4, x_5, x_6, x_1280, x_8, x_1351); -lean_dec(x_1280); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1310); -x_1353 = lean_ctor_get(x_1352, 0); -lean_inc(x_1353); -x_1354 = lean_ctor_get(x_1352, 1); -lean_inc(x_1354); -lean_dec(x_1352); -x_1355 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_1354); -lean_dec(x_8); -x_1356 = lean_ctor_get(x_1355, 0); -lean_inc(x_1356); -x_1357 = lean_ctor_get(x_1355, 1); -lean_inc(x_1357); -if (lean_is_exclusive(x_1355)) { - lean_ctor_release(x_1355, 0); - lean_ctor_release(x_1355, 1); - x_1358 = x_1355; -} else { - lean_dec_ref(x_1355); - x_1358 = lean_box(0); -} -x_1359 = l___private_Lean_Elab_Match_20__collect___main___closed__11; -x_1360 = l_Lean_addMacroScope(x_1356, x_1359, x_1353); -x_1361 = l_Lean_SourceInfo_inhabited___closed__1; -x_1362 = l___private_Lean_Elab_Match_20__collect___main___closed__10; -x_1363 = l___private_Lean_Elab_Match_20__collect___main___closed__13; -x_1364 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1364, 0, x_1361); -lean_ctor_set(x_1364, 1, x_1362); -lean_ctor_set(x_1364, 2, x_1360); -lean_ctor_set(x_1364, 3, x_1363); -x_1365 = l_Array_empty___closed__1; -x_1366 = lean_array_push(x_1365, x_1364); -x_1367 = lean_array_push(x_1365, x_1341); -x_1368 = lean_array_push(x_1367, x_1350); -x_1369 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_1348)) { - x_1370 = lean_alloc_ctor(1, 2, 0); -} else { - x_1370 = x_1348; -} -lean_ctor_set(x_1370, 0, x_1369); -lean_ctor_set(x_1370, 1, x_1368); -x_1371 = lean_array_push(x_1366, x_1370); -x_1372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1372, 0, x_12); -lean_ctor_set(x_1372, 1, x_1371); -if (lean_is_scalar(x_1358)) { - x_1373 = lean_alloc_ctor(0, 2, 0); -} else { - x_1373 = x_1358; -} -lean_ctor_set(x_1373, 0, x_1372); -lean_ctor_set(x_1373, 1, x_1357); -return x_1373; -} -else -{ -lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; -lean_dec(x_1348); -lean_dec(x_1341); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1374 = lean_ctor_get(x_1349, 0); -lean_inc(x_1374); -x_1375 = lean_ctor_get(x_1349, 1); -lean_inc(x_1375); -if (lean_is_exclusive(x_1349)) { - lean_ctor_release(x_1349, 0); - lean_ctor_release(x_1349, 1); - x_1376 = x_1349; -} else { - lean_dec_ref(x_1349); - x_1376 = lean_box(0); -} -if (lean_is_scalar(x_1376)) { - x_1377 = lean_alloc_ctor(1, 2, 0); -} else { - x_1377 = x_1376; -} -lean_ctor_set(x_1377, 0, x_1374); -lean_ctor_set(x_1377, 1, x_1375); -return x_1377; -} -} -else -{ -lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; -lean_dec(x_1341); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_1378 = lean_ctor_get(x_1344, 0); -lean_inc(x_1378); -x_1379 = lean_ctor_get(x_1344, 1); -lean_inc(x_1379); -if (lean_is_exclusive(x_1344)) { - lean_ctor_release(x_1344, 0); - lean_ctor_release(x_1344, 1); - x_1380 = x_1344; -} else { - lean_dec_ref(x_1344); - x_1380 = lean_box(0); -} -if (lean_is_scalar(x_1380)) { - x_1381 = lean_alloc_ctor(1, 2, 0); -} else { - x_1381 = x_1380; -} -lean_ctor_set(x_1381, 0, x_1378); -lean_ctor_set(x_1381, 1, x_1379); -return x_1381; -} -} -} -else -{ -lean_object* x_1382; lean_object* x_1383; uint8_t x_1384; lean_object* x_1385; -lean_dec(x_1298); -lean_dec(x_10); -x_1382 = lean_unsigned_to_nat(0u); -x_1383 = l_Lean_Syntax_getArg(x_1, x_1382); -x_1384 = 1; -x_1385 = l___private_Lean_Elab_Match_16__processIdAux(x_1383, x_1384, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_2); -if (lean_obj_tag(x_1385) == 0) -{ -lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; -x_1386 = lean_ctor_get(x_1385, 1); -lean_inc(x_1386); -if (lean_is_exclusive(x_1385)) { - lean_ctor_release(x_1385, 0); - lean_ctor_release(x_1385, 1); - x_1387 = x_1385; -} else { - lean_dec_ref(x_1385); - x_1387 = lean_box(0); -} -if (lean_is_scalar(x_1387)) { - x_1388 = lean_alloc_ctor(0, 2, 0); -} else { - x_1388 = x_1387; -} -lean_ctor_set(x_1388, 0, x_1); -lean_ctor_set(x_1388, 1, x_1386); -return x_1388; -} -else -{ -lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; -lean_dec(x_1); -x_1389 = lean_ctor_get(x_1385, 0); -lean_inc(x_1389); -x_1390 = lean_ctor_get(x_1385, 1); -lean_inc(x_1390); -if (lean_is_exclusive(x_1385)) { - lean_ctor_release(x_1385, 0); - lean_ctor_release(x_1385, 1); - x_1391 = x_1385; -} else { - lean_dec_ref(x_1385); - x_1391 = lean_box(0); -} -if (lean_is_scalar(x_1391)) { - x_1392 = lean_alloc_ctor(1, 2, 0); -} else { - x_1392 = x_1391; -} -lean_ctor_set(x_1392, 0, x_1389); -lean_ctor_set(x_1392, 1, x_1390); -return x_1392; -} -} -} -else -{ -lean_object* x_1393; lean_object* x_1394; uint8_t x_1395; -x_1393 = l_Lean_Syntax_inhabited; -x_1394 = lean_array_get(x_1393, x_11, x_1293); -x_1395 = l_Lean_Syntax_isNone(x_1394); -if (x_1395 == 0) -{ -lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; uint8_t x_1400; -lean_dec(x_1298); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1396 = x_1; -} else { - lean_dec_ref(x_1); - x_1396 = lean_box(0); -} -x_1397 = lean_unsigned_to_nat(0u); -x_1398 = l_Lean_Syntax_getArg(x_1394, x_1397); -x_1399 = l_Lean_Syntax_getArg(x_1394, x_1293); -x_1400 = l_Lean_Syntax_isNone(x_1399); -if (x_1400 == 0) -{ -lean_object* x_1401; lean_object* x_1402; uint8_t x_1403; -x_1401 = l_Lean_Syntax_getArg(x_1399, x_1397); -x_1402 = l_Lean_Elab_Term_elabParen___closed__7; -lean_inc(x_1401); -x_1403 = l_Lean_Syntax_isOfKind(x_1401, x_1402); -if (x_1403 == 0) -{ -lean_object* x_1404; -lean_inc(x_8); -lean_inc(x_1280); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1310); -lean_inc(x_2); -x_1404 = l___private_Lean_Elab_Match_20__collect___main(x_1398, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -if (lean_obj_tag(x_1404) == 0) -{ -lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; -x_1405 = lean_ctor_get(x_1404, 0); -lean_inc(x_1405); -x_1406 = lean_ctor_get(x_1404, 1); -lean_inc(x_1406); -lean_dec(x_1404); -x_1407 = l_Lean_Syntax_setArg(x_1394, x_1397, x_1405); -x_1408 = l_Lean_Syntax_getArg(x_1401, x_1293); -x_1409 = l_Lean_Syntax_getArgs(x_1408); -lean_dec(x_1408); -x_1410 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_1411 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1409, x_1410, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1406); -lean_dec(x_1409); -if (lean_obj_tag(x_1411) == 0) -{ -lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; -x_1412 = lean_ctor_get(x_1411, 0); -lean_inc(x_1412); -x_1413 = lean_ctor_get(x_1411, 1); -lean_inc(x_1413); -if (lean_is_exclusive(x_1411)) { - lean_ctor_release(x_1411, 0); - lean_ctor_release(x_1411, 1); - x_1414 = x_1411; -} else { - lean_dec_ref(x_1411); - x_1414 = lean_box(0); -} -x_1415 = l_Lean_nullKind; -if (lean_is_scalar(x_1396)) { - x_1416 = lean_alloc_ctor(1, 2, 0); -} else { - x_1416 = x_1396; -} -lean_ctor_set(x_1416, 0, x_1415); -lean_ctor_set(x_1416, 1, x_1412); -x_1417 = l_Lean_Syntax_setArg(x_1401, x_1293, x_1416); -x_1418 = l_Lean_Syntax_setArg(x_1399, x_1397, x_1417); -x_1419 = l_Lean_Syntax_setArg(x_1407, x_1293, x_1418); -x_1420 = lean_array_set(x_11, x_1293, x_1419); -x_1421 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1421, 0, x_10); -lean_ctor_set(x_1421, 1, x_1420); -if (lean_is_scalar(x_1414)) { - x_1422 = lean_alloc_ctor(0, 2, 0); -} else { - x_1422 = x_1414; -} -lean_ctor_set(x_1422, 0, x_1421); -lean_ctor_set(x_1422, 1, x_1413); -return x_1422; -} -else -{ -lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; -lean_dec(x_1407); -lean_dec(x_1401); -lean_dec(x_1399); -lean_dec(x_1396); -lean_dec(x_11); -lean_dec(x_10); -x_1423 = lean_ctor_get(x_1411, 0); -lean_inc(x_1423); -x_1424 = lean_ctor_get(x_1411, 1); -lean_inc(x_1424); -if (lean_is_exclusive(x_1411)) { - lean_ctor_release(x_1411, 0); - lean_ctor_release(x_1411, 1); - x_1425 = x_1411; -} else { - lean_dec_ref(x_1411); - x_1425 = lean_box(0); -} -if (lean_is_scalar(x_1425)) { - x_1426 = lean_alloc_ctor(1, 2, 0); -} else { - x_1426 = x_1425; -} -lean_ctor_set(x_1426, 0, x_1423); -lean_ctor_set(x_1426, 1, x_1424); -return x_1426; -} -} -else -{ -lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; -lean_dec(x_1401); -lean_dec(x_1399); -lean_dec(x_1396); -lean_dec(x_1394); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1427 = lean_ctor_get(x_1404, 0); -lean_inc(x_1427); -x_1428 = lean_ctor_get(x_1404, 1); -lean_inc(x_1428); -if (lean_is_exclusive(x_1404)) { - lean_ctor_release(x_1404, 0); - lean_ctor_release(x_1404, 1); - x_1429 = x_1404; -} else { - lean_dec_ref(x_1404); - x_1429 = lean_box(0); -} -if (lean_is_scalar(x_1429)) { - x_1430 = lean_alloc_ctor(1, 2, 0); -} else { - x_1430 = x_1429; -} -lean_ctor_set(x_1430, 0, x_1427); -lean_ctor_set(x_1430, 1, x_1428); -return x_1430; -} -} -else -{ -lean_object* x_1431; -lean_dec(x_1401); -lean_dec(x_1399); -x_1431 = l___private_Lean_Elab_Match_20__collect___main(x_1398, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -if (lean_obj_tag(x_1431) == 0) -{ -lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; -x_1432 = lean_ctor_get(x_1431, 0); -lean_inc(x_1432); -x_1433 = lean_ctor_get(x_1431, 1); -lean_inc(x_1433); -if (lean_is_exclusive(x_1431)) { - lean_ctor_release(x_1431, 0); - lean_ctor_release(x_1431, 1); - x_1434 = x_1431; -} else { - lean_dec_ref(x_1431); - x_1434 = lean_box(0); -} -x_1435 = l_Lean_Syntax_setArg(x_1394, x_1397, x_1432); -x_1436 = lean_array_set(x_11, x_1293, x_1435); -if (lean_is_scalar(x_1396)) { - x_1437 = lean_alloc_ctor(1, 2, 0); -} else { - x_1437 = x_1396; -} -lean_ctor_set(x_1437, 0, x_10); -lean_ctor_set(x_1437, 1, x_1436); -if (lean_is_scalar(x_1434)) { - x_1438 = lean_alloc_ctor(0, 2, 0); -} else { - x_1438 = x_1434; -} -lean_ctor_set(x_1438, 0, x_1437); -lean_ctor_set(x_1438, 1, x_1433); -return x_1438; -} -else -{ -lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; -lean_dec(x_1396); -lean_dec(x_1394); -lean_dec(x_11); -lean_dec(x_10); -x_1439 = lean_ctor_get(x_1431, 0); -lean_inc(x_1439); -x_1440 = lean_ctor_get(x_1431, 1); -lean_inc(x_1440); -if (lean_is_exclusive(x_1431)) { - lean_ctor_release(x_1431, 0); - lean_ctor_release(x_1431, 1); - x_1441 = x_1431; -} else { - lean_dec_ref(x_1431); - x_1441 = lean_box(0); -} -if (lean_is_scalar(x_1441)) { - x_1442 = lean_alloc_ctor(1, 2, 0); -} else { - x_1442 = x_1441; -} -lean_ctor_set(x_1442, 0, x_1439); -lean_ctor_set(x_1442, 1, x_1440); -return x_1442; -} -} -} -else -{ -lean_object* x_1443; -lean_dec(x_1399); -x_1443 = l___private_Lean_Elab_Match_20__collect___main(x_1398, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -if (lean_obj_tag(x_1443) == 0) -{ -lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; -x_1444 = lean_ctor_get(x_1443, 0); -lean_inc(x_1444); -x_1445 = lean_ctor_get(x_1443, 1); -lean_inc(x_1445); -if (lean_is_exclusive(x_1443)) { - lean_ctor_release(x_1443, 0); - lean_ctor_release(x_1443, 1); - x_1446 = x_1443; -} else { - lean_dec_ref(x_1443); - x_1446 = lean_box(0); -} -x_1447 = l_Lean_Syntax_setArg(x_1394, x_1397, x_1444); -x_1448 = lean_array_set(x_11, x_1293, x_1447); -if (lean_is_scalar(x_1396)) { - x_1449 = lean_alloc_ctor(1, 2, 0); -} else { - x_1449 = x_1396; -} -lean_ctor_set(x_1449, 0, x_10); -lean_ctor_set(x_1449, 1, x_1448); -if (lean_is_scalar(x_1446)) { - x_1450 = lean_alloc_ctor(0, 2, 0); -} else { - x_1450 = x_1446; -} -lean_ctor_set(x_1450, 0, x_1449); -lean_ctor_set(x_1450, 1, x_1445); -return x_1450; -} -else -{ -lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; -lean_dec(x_1396); -lean_dec(x_1394); -lean_dec(x_11); -lean_dec(x_10); -x_1451 = lean_ctor_get(x_1443, 0); -lean_inc(x_1451); -x_1452 = lean_ctor_get(x_1443, 1); -lean_inc(x_1452); -if (lean_is_exclusive(x_1443)) { - lean_ctor_release(x_1443, 0); - lean_ctor_release(x_1443, 1); - x_1453 = x_1443; -} else { - lean_dec_ref(x_1443); - x_1453 = lean_box(0); -} -if (lean_is_scalar(x_1453)) { - x_1454 = lean_alloc_ctor(1, 2, 0); -} else { - x_1454 = x_1453; -} -lean_ctor_set(x_1454, 0, x_1451); -lean_ctor_set(x_1454, 1, x_1452); -return x_1454; -} -} -} -else -{ -lean_object* x_1455; -lean_dec(x_1394); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -if (lean_is_scalar(x_1298)) { - x_1455 = lean_alloc_ctor(0, 2, 0); -} else { - x_1455 = x_1298; -} -lean_ctor_set(x_1455, 0, x_1); -lean_ctor_set(x_1455, 1, x_1297); -return x_1455; -} -} -} -else -{ -lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; -lean_dec(x_1310); -lean_dec(x_1298); -lean_dec(x_1280); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_1456 = l___private_Lean_Elab_Match_10__mkMVarSyntax___rarg(x_8, x_1297); -lean_dec(x_8); -x_1457 = lean_ctor_get(x_1456, 0); -lean_inc(x_1457); -x_1458 = lean_ctor_get(x_1456, 1); -lean_inc(x_1458); -lean_dec(x_1456); -x_1459 = lean_st_ref_take(x_2, x_1458); -x_1460 = lean_ctor_get(x_1459, 0); -lean_inc(x_1460); -x_1461 = lean_ctor_get(x_1459, 1); -lean_inc(x_1461); -lean_dec(x_1459); -x_1462 = lean_ctor_get(x_1460, 0); -lean_inc(x_1462); -x_1463 = lean_ctor_get(x_1460, 1); -lean_inc(x_1463); -if (lean_is_exclusive(x_1460)) { - lean_ctor_release(x_1460, 0); - lean_ctor_release(x_1460, 1); - x_1464 = x_1460; -} else { - lean_dec_ref(x_1460); - x_1464 = lean_box(0); -} -x_1465 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1457); -x_1466 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1466, 0, x_1465); -x_1467 = lean_array_push(x_1463, x_1466); -if (lean_is_scalar(x_1464)) { - x_1468 = lean_alloc_ctor(0, 2, 0); -} else { - x_1468 = x_1464; -} -lean_ctor_set(x_1468, 0, x_1462); -lean_ctor_set(x_1468, 1, x_1467); -x_1469 = lean_st_ref_set(x_2, x_1468, x_1461); -lean_dec(x_2); -x_1470 = lean_ctor_get(x_1469, 1); -lean_inc(x_1470); -if (lean_is_exclusive(x_1469)) { - lean_ctor_release(x_1469, 0); - lean_ctor_release(x_1469, 1); - x_1471 = x_1469; -} else { - lean_dec_ref(x_1469); - x_1471 = lean_box(0); -} -if (lean_is_scalar(x_1471)) { - x_1472 = lean_alloc_ctor(0, 2, 0); -} else { - x_1472 = x_1471; -} -lean_ctor_set(x_1472, 0, x_1457); -lean_ctor_set(x_1472, 1, x_1470); -return x_1472; -} -} -else -{ -lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; uint8_t x_1476; -lean_dec(x_1298); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1473 = x_1; -} else { - lean_dec_ref(x_1); - x_1473 = lean_box(0); -} -x_1474 = l_Lean_Syntax_inhabited; -x_1475 = lean_array_get(x_1474, x_11, x_1293); -x_1476 = l_Lean_Syntax_isNone(x_1475); -if (x_1476 == 0) -{ -lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; -lean_dec(x_1473); -lean_dec(x_11); -lean_dec(x_10); -x_1477 = l___private_Lean_Elab_Match_20__collect___main___closed__17; -x_1478 = l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_1475, x_1477, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_8); -lean_dec(x_1280); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1475); -x_1479 = lean_ctor_get(x_1478, 0); -lean_inc(x_1479); -x_1480 = lean_ctor_get(x_1478, 1); -lean_inc(x_1480); -if (lean_is_exclusive(x_1478)) { - lean_ctor_release(x_1478, 0); - lean_ctor_release(x_1478, 1); - x_1481 = x_1478; -} else { - lean_dec_ref(x_1478); - x_1481 = lean_box(0); -} -if (lean_is_scalar(x_1481)) { - x_1482 = lean_alloc_ctor(1, 2, 0); -} else { - x_1482 = x_1481; -} -lean_ctor_set(x_1482, 0, x_1479); -lean_ctor_set(x_1482, 1, x_1480); -return x_1482; -} -else -{ -lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; -lean_dec(x_1475); -x_1483 = lean_unsigned_to_nat(2u); -x_1484 = lean_array_get(x_1474, x_11, x_1483); -x_1485 = l_Lean_Syntax_getArgs(x_1484); -lean_dec(x_1484); -x_1486 = l___private_Lean_Elab_Match_20__collect___main___closed__18; -x_1487 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1485, x_1486, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_1485); -if (lean_obj_tag(x_1487) == 0) -{ -lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; -x_1488 = lean_ctor_get(x_1487, 0); -lean_inc(x_1488); -x_1489 = lean_ctor_get(x_1487, 1); -lean_inc(x_1489); -if (lean_is_exclusive(x_1487)) { - lean_ctor_release(x_1487, 0); - lean_ctor_release(x_1487, 1); - x_1490 = x_1487; -} else { - lean_dec_ref(x_1487); - x_1490 = lean_box(0); -} -x_1491 = l_Lean_nullKind; -if (lean_is_scalar(x_1473)) { - x_1492 = lean_alloc_ctor(1, 2, 0); -} else { - x_1492 = x_1473; -} -lean_ctor_set(x_1492, 0, x_1491); -lean_ctor_set(x_1492, 1, x_1488); -x_1493 = lean_array_set(x_11, x_1483, x_1492); -x_1494 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1494, 0, x_10); -lean_ctor_set(x_1494, 1, x_1493); -if (lean_is_scalar(x_1490)) { - x_1495 = lean_alloc_ctor(0, 2, 0); -} else { - x_1495 = x_1490; -} -lean_ctor_set(x_1495, 0, x_1494); -lean_ctor_set(x_1495, 1, x_1489); -return x_1495; -} -else -{ -lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; -lean_dec(x_1473); -lean_dec(x_11); -lean_dec(x_10); -x_1496 = lean_ctor_get(x_1487, 0); -lean_inc(x_1496); -x_1497 = lean_ctor_get(x_1487, 1); -lean_inc(x_1497); -if (lean_is_exclusive(x_1487)) { - lean_ctor_release(x_1487, 0); - lean_ctor_release(x_1487, 1); - x_1498 = x_1487; -} else { - lean_dec_ref(x_1487); - x_1498 = lean_box(0); -} -if (lean_is_scalar(x_1498)) { - x_1499 = lean_alloc_ctor(1, 2, 0); -} else { - x_1499 = x_1498; -} -lean_ctor_set(x_1499, 0, x_1496); -lean_ctor_set(x_1499, 1, x_1497); -return x_1499; -} -} -} -} -else -{ -lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; -lean_dec(x_1298); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1500 = x_1; -} else { - lean_dec_ref(x_1); - x_1500 = lean_box(0); -} -x_1501 = l_Lean_Syntax_inhabited; -x_1502 = lean_array_get(x_1501, x_11, x_1293); -x_1503 = l_Lean_Syntax_getArgs(x_1502); -lean_dec(x_1502); -x_1504 = l___private_Lean_Elab_Match_20__collect___main___closed__14; -x_1505 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1503, x_1504, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -lean_dec(x_1503); -if (lean_obj_tag(x_1505) == 0) -{ -lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; -x_1506 = lean_ctor_get(x_1505, 0); -lean_inc(x_1506); -x_1507 = lean_ctor_get(x_1505, 1); -lean_inc(x_1507); -if (lean_is_exclusive(x_1505)) { - lean_ctor_release(x_1505, 0); - lean_ctor_release(x_1505, 1); - x_1508 = x_1505; -} else { - lean_dec_ref(x_1505); - x_1508 = lean_box(0); -} -x_1509 = l_Lean_nullKind; -if (lean_is_scalar(x_1500)) { - x_1510 = lean_alloc_ctor(1, 2, 0); -} else { - x_1510 = x_1500; -} -lean_ctor_set(x_1510, 0, x_1509); -lean_ctor_set(x_1510, 1, x_1506); -x_1511 = lean_array_set(x_11, x_1293, x_1510); -x_1512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1512, 0, x_10); -lean_ctor_set(x_1512, 1, x_1511); -if (lean_is_scalar(x_1508)) { - x_1513 = lean_alloc_ctor(0, 2, 0); -} else { - x_1513 = x_1508; -} -lean_ctor_set(x_1513, 0, x_1512); -lean_ctor_set(x_1513, 1, x_1507); -return x_1513; -} -else -{ -lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; -lean_dec(x_1500); -lean_dec(x_11); -lean_dec(x_10); -x_1514 = lean_ctor_get(x_1505, 0); -lean_inc(x_1514); -x_1515 = lean_ctor_get(x_1505, 1); -lean_inc(x_1515); -if (lean_is_exclusive(x_1505)) { - lean_ctor_release(x_1505, 0); - lean_ctor_release(x_1505, 1); - x_1516 = x_1505; -} else { - lean_dec_ref(x_1505); - x_1516 = lean_box(0); -} -if (lean_is_scalar(x_1516)) { - x_1517 = lean_alloc_ctor(1, 2, 0); -} else { - x_1517 = x_1516; -} -lean_ctor_set(x_1517, 0, x_1514); -lean_ctor_set(x_1517, 1, x_1515); -return x_1517; -} -} -} -else -{ -lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; -lean_dec(x_1298); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1518 = x_1; -} else { - lean_dec_ref(x_1); - x_1518 = lean_box(0); -} -x_1519 = l_Lean_Syntax_inhabited; -x_1520 = lean_unsigned_to_nat(0u); -x_1521 = lean_array_get(x_1519, x_11, x_1520); -x_1522 = lean_array_get(x_1519, x_11, x_1293); -x_1523 = l_Lean_Syntax_getArgs(x_1522); -lean_dec(x_1522); -x_1524 = l_Lean_mkAppStx___closed__6; -lean_inc(x_1310); -x_1525 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_1524, x_1523, x_1520, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1297); -if (lean_obj_tag(x_1525) == 0) -{ -lean_object* x_1526; uint8_t x_1527; lean_object* x_1528; -x_1526 = lean_ctor_get(x_1525, 1); -lean_inc(x_1526); -lean_dec(x_1525); -x_1527 = 1; -lean_inc(x_8); -lean_inc(x_1280); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1310); -x_1528 = l___private_Lean_Elab_Match_16__processIdAux(x_1521, x_1527, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1526); -if (lean_obj_tag(x_1528) == 0) -{ -lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; -x_1529 = lean_ctor_get(x_1528, 0); -lean_inc(x_1529); -x_1530 = lean_ctor_get(x_1528, 1); -lean_inc(x_1530); -lean_dec(x_1528); -x_1531 = x_1523; -x_1532 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed), 11, 3); -lean_closure_set(x_1532, 0, x_1529); -lean_closure_set(x_1532, 1, x_1520); -lean_closure_set(x_1532, 2, x_1531); -x_1533 = x_1532; -x_1534 = lean_apply_8(x_1533, x_2, x_1310, x_4, x_5, x_6, x_1280, x_8, x_1530); -if (lean_obj_tag(x_1534) == 0) -{ -lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; -x_1535 = lean_ctor_get(x_1534, 0); -lean_inc(x_1535); -x_1536 = lean_ctor_get(x_1534, 1); -lean_inc(x_1536); -if (lean_is_exclusive(x_1534)) { - lean_ctor_release(x_1534, 0); - lean_ctor_release(x_1534, 1); - x_1537 = x_1534; -} else { - lean_dec_ref(x_1534); - x_1537 = lean_box(0); -} -x_1538 = l_Lean_nullKind; -if (lean_is_scalar(x_1518)) { - x_1539 = lean_alloc_ctor(1, 2, 0); -} else { - x_1539 = x_1518; -} -lean_ctor_set(x_1539, 0, x_1538); -lean_ctor_set(x_1539, 1, x_1535); -x_1540 = lean_array_set(x_11, x_1293, x_1539); -x_1541 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1541, 0, x_10); -lean_ctor_set(x_1541, 1, x_1540); -if (lean_is_scalar(x_1537)) { - x_1542 = lean_alloc_ctor(0, 2, 0); -} else { - x_1542 = x_1537; -} -lean_ctor_set(x_1542, 0, x_1541); -lean_ctor_set(x_1542, 1, x_1536); -return x_1542; -} -else -{ -lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; -lean_dec(x_1518); -lean_dec(x_11); -lean_dec(x_10); -x_1543 = lean_ctor_get(x_1534, 0); -lean_inc(x_1543); -x_1544 = lean_ctor_get(x_1534, 1); -lean_inc(x_1544); -if (lean_is_exclusive(x_1534)) { - lean_ctor_release(x_1534, 0); - lean_ctor_release(x_1534, 1); - x_1545 = x_1534; -} else { - lean_dec_ref(x_1534); - x_1545 = lean_box(0); -} -if (lean_is_scalar(x_1545)) { - x_1546 = lean_alloc_ctor(1, 2, 0); -} else { - x_1546 = x_1545; -} -lean_ctor_set(x_1546, 0, x_1543); -lean_ctor_set(x_1546, 1, x_1544); -return x_1546; -} -} -else -{ -lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; -lean_dec(x_1523); -lean_dec(x_1518); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1547 = lean_ctor_get(x_1528, 0); -lean_inc(x_1547); -x_1548 = lean_ctor_get(x_1528, 1); -lean_inc(x_1548); -if (lean_is_exclusive(x_1528)) { - lean_ctor_release(x_1528, 0); - lean_ctor_release(x_1528, 1); - x_1549 = x_1528; -} else { - lean_dec_ref(x_1528); - x_1549 = lean_box(0); -} -if (lean_is_scalar(x_1549)) { - x_1550 = lean_alloc_ctor(1, 2, 0); -} else { - x_1550 = x_1549; -} -lean_ctor_set(x_1550, 0, x_1547); -lean_ctor_set(x_1550, 1, x_1548); -return x_1550; -} -} -else -{ -lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; -lean_dec(x_1523); -lean_dec(x_1521); -lean_dec(x_1518); -lean_dec(x_1310); -lean_dec(x_1280); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_1551 = lean_ctor_get(x_1525, 0); -lean_inc(x_1551); -x_1552 = lean_ctor_get(x_1525, 1); -lean_inc(x_1552); -if (lean_is_exclusive(x_1525)) { - lean_ctor_release(x_1525, 0); - lean_ctor_release(x_1525, 1); - x_1553 = x_1525; -} else { - lean_dec_ref(x_1525); - x_1553 = lean_box(0); -} -if (lean_is_scalar(x_1553)) { - x_1554 = lean_alloc_ctor(1, 2, 0); -} else { - x_1554 = x_1553; -} -lean_ctor_set(x_1554, 0, x_1551); -lean_ctor_set(x_1554, 1, x_1552); -return x_1554; -} +return x_1292; } } } } case 3: { -lean_object* x_1562; -lean_inc(x_1); -x_1562 = l___private_Lean_Elab_Match_18__processId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -if (lean_obj_tag(x_1562) == 0) -{ -uint8_t x_1563; -x_1563 = !lean_is_exclusive(x_1562); -if (x_1563 == 0) -{ -lean_object* x_1564; -x_1564 = lean_ctor_get(x_1562, 0); -lean_dec(x_1564); -lean_ctor_set(x_1562, 0, x_1); -return x_1562; -} -else -{ -lean_object* x_1565; lean_object* x_1566; -x_1565 = lean_ctor_get(x_1562, 1); -lean_inc(x_1565); -lean_dec(x_1562); -x_1566 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1566, 0, x_1); -lean_ctor_set(x_1566, 1, x_1565); -return x_1566; -} -} -else -{ -uint8_t x_1567; -lean_dec(x_1); -x_1567 = !lean_is_exclusive(x_1562); -if (x_1567 == 0) -{ -return x_1562; -} -else -{ -lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; -x_1568 = lean_ctor_get(x_1562, 0); -x_1569 = lean_ctor_get(x_1562, 1); -lean_inc(x_1569); -lean_inc(x_1568); -lean_dec(x_1562); -x_1570 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1570, 0, x_1568); -lean_ctor_set(x_1570, 1, x_1569); -return x_1570; -} -} +lean_object* x_1300; lean_object* x_1301; +x_1300 = l___private_Lean_Elab_Match_26__collect___main___closed__11; +x_1301 = l___private_Lean_Elab_Match_25__processId(x_1300, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_1301; } default: { -lean_object* x_1571; +lean_object* x_1302; lean_dec(x_1); -x_1571 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_1302 = l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg(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); -return x_1571; +return x_1302; } } } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___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* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___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* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_26__collect___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_1); return x_13; } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___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_mapSepElemsM___at___private_Lean_Elab_Match_26__collect___main___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_1); return x_11; } } -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* 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_throwErrorAt___at___private_Lean_Elab_Match_20__collect___main___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_11; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -return x_12; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__5(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_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Match_20__collect(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_26__collect(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_20__collect___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_26__collect___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -12971,7 +13196,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_22 = l___private_Lean_Elab_Match_20__collect___main(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_22 = l___private_Lean_Elab_Match_26__collect___main(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -13043,7 +13268,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_39 = l___private_Lean_Elab_Match_20__collect___main(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); +x_39 = l___private_Lean_Elab_Match_26__collect___main(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -13292,7 +13517,7 @@ lean_dec(x_3); return x_11; } } -lean_object* _init_l___private_Lean_Elab_Match_21__collectPatternVars___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_27__collectPatternVars___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -13304,11 +13529,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_21__collectPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_27__collectPatternVars(lean_object* x_1, lean_object* x_2, 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 = l___private_Lean_Elab_Match_21__collectPatternVars___closed__1; +x_9 = l___private_Lean_Elab_Match_27__collectPatternVars___closed__1; x_10 = lean_st_mk_ref(x_9, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -13386,7 +13611,7 @@ return x_29; } } } -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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; uint8_t x_19; @@ -13494,7 +13719,7 @@ return x_44; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___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_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___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) { _start: { lean_object* x_10; uint8_t x_11; @@ -13547,7 +13772,7 @@ x_22 = 0; x_23 = lean_box(0); lean_inc(x_5); lean_inc(x_3); -x_24 = l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(x_15, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_24 = l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__1(x_15, x_21, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_20); x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); @@ -13600,7 +13825,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___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_Lean_Elab_Match_28__withPatternVarsAux___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) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -13610,11 +13835,11 @@ x_15 = l_Lean_Expr_fvarId_x21(x_5); x_16 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_array_push(x_2, x_16); -x_18 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_3, x_4, x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_18 = l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg(x_3, x_4, x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_18; } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -13625,11 +13850,11 @@ x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_2); lean_ctor_set(x_17, 1, x_16); x_18 = lean_array_push(x_3, x_17); -x_19 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_4, x_5, x_15, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_19 = l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg(x_4, x_5, x_15, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_19; } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___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) { _start: { lean_object* x_12; uint8_t x_13; @@ -13646,7 +13871,7 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_5); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__2(x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__2(x_4, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; @@ -13707,7 +13932,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1___boxed), 12, 4); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__1___boxed), 12, 4); lean_closure_set(x_29, 0, x_3); lean_closure_set(x_29, 1, x_4); lean_closure_set(x_29, 2, x_1); @@ -13735,7 +13960,7 @@ lean_dec(x_35); x_38 = l_Lean_Meta_Closure_mkNextUserName___rarg___closed__2; lean_inc(x_3); x_39 = l_Lean_Name_appendIndexAfter(x_38, x_3); -x_40 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___boxed), 13, 5); +x_40 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2___boxed), 13, 5); lean_closure_set(x_40, 0, x_3); lean_closure_set(x_40, 1, x_32); lean_closure_set(x_40, 2, x_4); @@ -13748,21 +13973,21 @@ return x_42; } } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg), 11, 0); return x_2; } } -lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* 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_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_mkFreshExprMVarWithId___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__1(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); @@ -13770,72 +13995,72 @@ lean_dec(x_6); return x_13; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___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_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___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) { _start: { lean_object* x_10; -x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_28__withPatternVarsAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); lean_dec(x_4); lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___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_Lean_Elab_Match_28__withPatternVarsAux___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) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Match_22__withPatternVarsAux___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_Lean_Elab_Match_28__withPatternVarsAux___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); lean_dec(x_5); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Match_28__withPatternVarsAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_6); lean_dec(x_1); return x_14; } } -lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux___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_Match_22__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_28__withPatternVarsAux___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_Match_22__withPatternVarsAux(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_28__withPatternVarsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_28__withPatternVarsAux___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_23__withPatternVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_29__withPatternVars___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_Match_22__withPatternVarsAux___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_Lean_Elab_Match_28__withPatternVarsAux___main___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_Match_23__withPatternVars(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_29__withPatternVars(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_23__withPatternVars___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_29__withPatternVars___rarg), 9, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1() { _start: { lean_object* x_1; @@ -13843,27 +14068,27 @@ x_1 = lean_mk_string("unexpected match type"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1; +x_1 = l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2; +x_1 = l___private_Lean_Elab_Match_30__elabPatternsAux___main___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_Match_24__elabPatternsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -13983,7 +14208,7 @@ lean_dec(x_2); x_35 = lean_ctor_get(x_16, 1); lean_inc(x_35); lean_dec(x_16); -x_36 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; +x_36 = l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3; x_37 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_35); lean_dec(x_10); lean_dec(x_9); @@ -14026,28 +14251,28 @@ return x_41; } } } -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___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* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___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* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_24__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_30__elabPatternsAux___main(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_1); return x_12; } } -lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Match_24__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_30__elabPatternsAux___main(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_Match_24__elabPatternsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_30__elabPatternsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Match_24__elabPatternsAux(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_Lean_Elab_Match_30__elabPatternsAux(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_1); return x_12; } @@ -14590,9 +14815,9 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_15, 1); lean_inc(x_19); lean_dec(x_15); +lean_inc(x_18); x_20 = l_Lean_mkMVar(x_18); lean_inc(x_5); -lean_inc(x_20); x_21 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); @@ -14604,15 +14829,15 @@ x_69 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__13; x_70 = l_Lean_checkTraceOption(x_68, x_69); if (x_70 == 0) { -lean_dec(x_20); +lean_dec(x_18); x_24 = x_23; goto block_67; } else { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_71 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_71, 0, x_20); +x_71 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_71, 0, x_18); x_72 = l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__6; x_73 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_73, 0, x_72); @@ -14916,7 +15141,7 @@ lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_Match_25__alreadyVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_31__alreadyVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -14956,11 +15181,11 @@ return x_21; } } } -lean_object* l___private_Lean_Elab_Match_25__alreadyVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_31__alreadyVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_25__alreadyVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_31__alreadyVisited(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); @@ -14972,7 +15197,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Match_26__markAsVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_32__markAsVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -15050,11 +15275,11 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_Match_26__markAsVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_32__markAsVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_26__markAsVisited(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_32__markAsVisited(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); @@ -15065,7 +15290,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___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* l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -15146,15 +15371,15 @@ return x_30; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg___boxed), 9, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1() { _start: { lean_object* x_1; @@ -15162,54 +15387,54 @@ x_1 = lean_mk_string("invalid pattern "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_10 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_10, 0, x_1); x_11 = l_Lean_indentExpr(x_10); -x_12 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3; +x_12 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__3; x_13 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_14; } } -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_33__throwInvalidPattern(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___boxed), 9, 0); return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg(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); @@ -15219,11 +15444,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___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* l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(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); @@ -15233,77 +15458,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 7) -{ -lean_object* x_5; uint64_t x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_3, 2); -x_6 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_7 = lean_ctor_get(x_1, 3); -x_8 = lean_nat_dec_lt(x_2, x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_2, x_9); -lean_dec(x_2); -x_11 = (uint8_t)((x_6 << 24) >> 61); -x_12 = lean_box(x_11); -x_13 = lean_array_push(x_4, x_12); -x_2 = x_10; -x_3 = x_5; -x_4 = x_13; -goto _start; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_2, x_15); -lean_dec(x_2); -x_2 = x_16; -x_3 = x_5; -goto _start; -} -} -else -{ -lean_dec(x_2); -return x_4; -} -} -} -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main___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_Match_28__getFieldsBinderInfoAux___main(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux(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_Match_28__getFieldsBinderInfoAux___main(x_1, x_2, x_3, x_4); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___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_Match_28__getFieldsBinderInfoAux(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___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_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -15415,7 +15570,7 @@ return x_46; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -15575,15 +15730,15 @@ return x_46; } } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg___boxed), 2, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg___boxed), 2, 0); return x_7; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___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: { 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; uint8_t x_17; @@ -15897,7 +16052,7 @@ return x_96; } } } -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; 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; @@ -16091,7 +16246,7 @@ return x_73; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -16131,7 +16286,7 @@ return x_13; } } } -lean_object* l___private_Lean_Elab_Match_29__mkLocalDeclFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_34__mkLocalDeclFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -16144,7 +16299,7 @@ lean_inc(x_13); lean_dec(x_11); lean_inc(x_3); lean_inc(x_10); -x_14 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_14 = l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); if (lean_obj_tag(x_15) == 0) @@ -16153,7 +16308,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg(x_8, x_16); +x_17 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg(x_8, x_16); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); @@ -16164,7 +16319,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); lean_inc(x_1); -x_20 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_20 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; @@ -16175,7 +16330,7 @@ lean_inc(x_22); lean_dec(x_20); lean_inc(x_18); x_23 = l_Lean_mkFVar(x_18); -x_24 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__4(x_10, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +x_24 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__4(x_10, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -16213,7 +16368,7 @@ if (x_38 == 0) lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_39 = lean_ctor_get(x_36, 1); x_40 = lean_ctor_get(x_36, 2); -x_41 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5(x_1, x_39, x_32); +x_41 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5(x_1, x_39, x_32); lean_dec(x_1); x_42 = lean_box(0); lean_inc(x_18); @@ -16297,7 +16452,7 @@ lean_inc(x_63); lean_inc(x_62); lean_inc(x_61); lean_dec(x_36); -x_64 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5(x_1, x_62, x_32); +x_64 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5(x_1, x_62, x_32); lean_dec(x_1); x_65 = lean_box(0); lean_inc(x_18); @@ -16442,11 +16597,11 @@ return x_93; } } } -lean_object* l_Lean_Meta_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___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_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___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_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_29__mkLocalDeclFor___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_getExprMVarAssignment_x3f___at___private_Lean_Elab_Match_34__mkLocalDeclFor___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); @@ -16456,20 +16611,20 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___rarg(x_1, x_2); +x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___rarg(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_mkFreshId___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -16479,22 +16634,22 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___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_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); lean_dec(x_4); lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__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); @@ -16504,48 +16659,27 @@ lean_dec(x_3); return x_11; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_29__mkLocalDeclFor___spec__5(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Match_34__mkLocalDeclFor___spec__5(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Match_29__mkLocalDeclFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_34__mkLocalDeclFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_29__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_34__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); lean_dec(x_4); lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Match_30__getFieldsBinderInfo(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = lean_ctor_get(x_1, 0); -x_3 = lean_ctor_get(x_2, 2); -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_empty___closed__1; -x_6 = l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(x_1, x_4, x_3, x_5); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Match_30__getFieldsBinderInfo___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_Match_30__getFieldsBinderInfo(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* l_Lean_Meta_whnf___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -16860,233 +16994,98 @@ return x_96; } } } -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___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* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___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* x_10) { _start: { -uint8_t x_6; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_1, x_11); +lean_dec(x_11); +if (x_12 == 0) { -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Lean_LocalDecl_fvarId(x_8); -lean_dec(x_8); -x_10 = lean_name_eq(x_9, x_1); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -goto _start; -} -else -{ -lean_dec(x_5); -return x_10; -} -} -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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_3); -x_13 = lean_nat_dec_lt(x_2, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_10); +lean_object* x_13; lean_object* x_14; 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_2); -x_14 = x_3; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_11); -return x_15; +lean_dec(x_3); +lean_dec(x_1); +x_13 = x_2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; -x_16 = lean_array_fget(x_3, x_2); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_array_fset(x_3, x_2, x_17); -x_27 = x_16; -x_28 = l_Lean_BinderInfo_inhabited; -x_29 = lean_box(x_28); -x_30 = lean_array_get(x_29, x_1, x_2); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -x_32 = l_Lean_BinderInfo_isExplicit(x_31); -if (x_32 == 0) -{ -if (lean_obj_tag(x_27) == 1) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_33 = lean_ctor_get(x_27, 0); -lean_inc(x_33); -x_34 = lean_st_ref_get(x_4, x_11); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -x_38 = lean_array_get_size(x_37); -x_39 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(x_33, x_35, x_37, x_38, x_17); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_35); -if (x_39 == 0) -{ -lean_object* x_40; -lean_dec(x_33); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_27); -x_19 = x_40; -x_20 = x_36; -goto block_26; -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = l___private_Lean_Elab_Match_25__alreadyVisited(x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_unbox(x_42); -lean_dec(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = l___private_Lean_Elab_Match_26__markAsVisited(x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = l_Lean_Expr_fvarId_x21(x_27); -lean_dec(x_27); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_19 = x_48; -x_20 = x_46; -goto block_26; -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_33); -x_49 = lean_ctor_get(x_41, 1); -lean_inc(x_49); -lean_dec(x_41); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_27); -x_19 = x_50; -x_20 = x_49; -goto block_26; -} -} -} -else -{ -lean_object* x_51; -x_51 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_51, 0, x_27); -x_19 = x_51; -x_20 = x_11; -goto block_26; -} -} -else -{ -lean_object* x_52; -lean_inc(x_10); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_array_fget(x_2, x_1); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_fset(x_2, x_1, x_16); +x_18 = x_15; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_52 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_3); +x_19 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_19 = x_53; -x_20 = x_54; -goto block_26; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_1, x_22); +x_24 = x_20; +x_25 = lean_array_fset(x_17, x_1, x_24); +lean_dec(x_1); +x_1 = x_23; +x_2 = x_25; +x_10 = x_21; +goto _start; } else { -uint8_t x_55; -lean_dec(x_18); -lean_dec(x_10); +uint8_t x_27; +lean_dec(x_17); 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_2); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) +lean_dec(x_3); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_19); +if (x_27 == 0) { -return x_52; +return x_19; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 0); -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_52); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_2, x_21); -x_23 = x_19; -x_24 = lean_array_fset(x_18, x_2, x_23); -lean_dec(x_2); -x_2 = x_22; -x_3 = x_24; -x_11 = x_20; -goto _start; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } } -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(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; @@ -17123,233 +17122,7 @@ return x_10; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_3); -x_13 = lean_nat_dec_lt(x_2, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -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_2); -x_14 = x_3; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_11); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; -x_16 = lean_array_fget(x_3, x_2); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_array_fset(x_3, x_2, x_17); -x_27 = x_16; -x_28 = l_Lean_BinderInfo_inhabited; -x_29 = lean_box(x_28); -x_30 = lean_array_get(x_29, x_1, x_2); -x_31 = lean_unbox(x_30); -lean_dec(x_30); -x_32 = l_Lean_BinderInfo_isExplicit(x_31); -if (x_32 == 0) -{ -if (lean_obj_tag(x_27) == 1) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_33 = lean_ctor_get(x_27, 0); -lean_inc(x_33); -x_34 = lean_st_ref_get(x_4, x_11); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -x_38 = lean_array_get_size(x_37); -x_39 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_33, x_35, x_37, x_38, x_17); -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_35); -if (x_39 == 0) -{ -lean_object* x_40; -lean_dec(x_33); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_27); -x_19 = x_40; -x_20 = x_36; -goto block_26; -} -else -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = l___private_Lean_Elab_Match_25__alreadyVisited(x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_unbox(x_42); -lean_dec(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = l___private_Lean_Elab_Match_26__markAsVisited(x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = l_Lean_Expr_fvarId_x21(x_27); -lean_dec(x_27); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_19 = x_48; -x_20 = x_46; -goto block_26; -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_33); -x_49 = lean_ctor_get(x_41, 1); -lean_inc(x_49); -lean_dec(x_41); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_27); -x_19 = x_50; -x_20 = x_49; -goto block_26; -} -} -} -else -{ -lean_object* x_51; -x_51 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_51, 0, x_27); -x_19 = x_51; -x_20 = x_11; -goto block_26; -} -} -else -{ -lean_object* x_52; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_52 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_19 = x_53; -x_20 = x_54; -goto block_26; -} -else -{ -uint8_t x_55; -lean_dec(x_18); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) -{ -return x_52; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 0); -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_52); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_2, x_21); -x_23 = x_19; -x_24 = lean_array_fset(x_18, x_2, x_23); -lean_dec(x_2); -x_2 = x_22; -x_3 = x_24; -x_11 = x_20; -goto _start; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_array_fget(x_3, x_5); -x_9 = l_Lean_LocalDecl_fvarId(x_8); -lean_dec(x_8); -x_10 = lean_name_eq(x_9, x_1); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -goto _start; -} -else -{ -lean_dec(x_5); -return x_10; -} -} -} -} -lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___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* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17393,7 +17166,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__7(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +x_18 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); if (lean_obj_tag(x_18) == 0) { uint8_t x_19; @@ -17504,7 +17277,7 @@ lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -x_37 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__7(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +x_37 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_36); if (lean_obj_tag(x_37) == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -17594,7 +17367,7 @@ return x_50; } } } -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -17671,7 +17444,7 @@ x_11 = l_Lean_Expr_arrayLit_x3f(x_1); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = l___private_Lean_Elab_Match_20__collect___main___closed__11; +x_12 = l___private_Lean_Elab_Match_26__collect___main___closed__8; x_13 = lean_unsigned_to_nat(3u); x_14 = l_Lean_Expr_isAppOfArity___main(x_1, x_12, x_13); if (x_14 == 0) @@ -17746,7 +17519,7 @@ if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_dec(x_27); -x_33 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_33 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -17794,7 +17567,7 @@ lean_dec(x_43); lean_dec(x_42); lean_dec(x_35); lean_dec(x_27); -x_48 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_48 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -17822,105 +17595,118 @@ 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_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_1); x_53 = l_Array_extract___rarg(x_42, x_36, x_44); x_54 = l_Array_extract___rarg(x_42, x_44, x_43); lean_dec(x_43); lean_dec(x_42); -x_55 = l___private_Lean_Elab_Match_30__getFieldsBinderInfo(x_35); -x_56 = x_54; -x_57 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5___boxed), 11, 3); -lean_closure_set(x_57, 0, x_55); -lean_closure_set(x_57, 1, x_36); -lean_closure_set(x_57, 2, x_56); -x_58 = x_57; -x_59 = lean_apply_8(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); -if (lean_obj_tag(x_59) == 0) +x_55 = x_54; +x_56 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2), 10, 2); +lean_closure_set(x_56, 0, x_36); +lean_closure_set(x_56, 1, x_55); +x_57 = x_56; +x_58 = lean_apply_8(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_60; uint8_t x_61; -x_60 = lean_ctor_get(x_35, 0); -lean_inc(x_60); +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_35, 0); +lean_inc(x_59); lean_dec(x_35); -x_61 = !lean_is_exclusive(x_59); -if (x_61 == 0) +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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, 0); x_62 = lean_ctor_get(x_59, 0); -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec(x_60); -x_64 = l_Array_toList___rarg(x_53); -lean_dec(x_53); -x_65 = l_Array_toList___rarg(x_62); -lean_dec(x_62); -x_66 = lean_alloc_ctor(2, 4, 0); -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_27); -lean_ctor_set(x_66, 2, x_64); -lean_ctor_set(x_66, 3, x_65); -lean_ctor_set(x_59, 0, x_66); -return x_59; -} -else -{ -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_67 = lean_ctor_get(x_59, 0); -x_68 = lean_ctor_get(x_59, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_inc(x_62); lean_dec(x_59); -x_69 = lean_ctor_get(x_60, 0); -lean_inc(x_69); -lean_dec(x_60); -x_70 = l_Array_toList___rarg(x_53); +x_63 = l_Array_toList___rarg(x_53); lean_dec(x_53); -x_71 = l_Array_toList___rarg(x_67); -lean_dec(x_67); -x_72 = lean_alloc_ctor(2, 4, 0); -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_27); -lean_ctor_set(x_72, 2, x_70); -lean_ctor_set(x_72, 3, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_68); -return x_73; +x_64 = l_Array_toList___rarg(x_61); +lean_dec(x_61); +x_65 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_27); +lean_ctor_set(x_65, 2, x_63); +lean_ctor_set(x_65, 3, x_64); +lean_ctor_set(x_58, 0, x_65); +return x_58; +} +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; +x_66 = lean_ctor_get(x_58, 0); +x_67 = lean_ctor_get(x_58, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_58); +x_68 = lean_ctor_get(x_59, 0); +lean_inc(x_68); +lean_dec(x_59); +x_69 = l_Array_toList___rarg(x_53); +lean_dec(x_53); +x_70 = l_Array_toList___rarg(x_66); +lean_dec(x_66); +x_71 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_27); +lean_ctor_set(x_71, 2, x_69); +lean_ctor_set(x_71, 3, x_70); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_67); +return x_72; } } else { -uint8_t x_74; +uint8_t x_73; lean_dec(x_53); lean_dec(x_35); lean_dec(x_27); -x_74 = !lean_is_exclusive(x_59); -if (x_74 == 0) +x_73 = !lean_is_exclusive(x_58); +if (x_73 == 0) { -return x_59; +return x_58; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_59, 0); -x_76 = lean_ctor_get(x_59, 1); -lean_inc(x_76); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_58, 0); +x_75 = lean_ctor_get(x_58, 1); lean_inc(x_75); -lean_dec(x_59); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_inc(x_74); +lean_dec(x_58); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } } else { +lean_object* x_77; +lean_dec(x_34); +lean_dec(x_27); +x_77 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_77; +} +} +} +else +{ lean_object* x_78; -lean_dec(x_34); -lean_dec(x_27); -x_78 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +lean_dec(x_25); +x_78 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -17933,22 +17719,7 @@ return x_78; } else { -lean_object* x_79; -lean_dec(x_25); -x_79 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_79; -} -} -} -else -{ -uint8_t x_80; +uint8_t x_79; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -17957,106 +17728,106 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_80 = !lean_is_exclusive(x_20); -if (x_80 == 0) +x_79 = !lean_is_exclusive(x_20); +if (x_79 == 0) { return x_20; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_20, 0); -x_82 = lean_ctor_get(x_20, 1); -lean_inc(x_82); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_20, 0); +x_81 = lean_ctor_get(x_20, 1); lean_inc(x_81); +lean_inc(x_80); lean_dec(x_20); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; +x_83 = l___private_Lean_Elab_Match_34__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); return x_83; } } -} else { -lean_object* x_84; -x_84 = l___private_Lean_Elab_Match_29__mkLocalDeclFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_2); -return x_84; -} -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_85 = l_Lean_Expr_fvarId_x21(x_1); -x_105 = lean_st_ref_get(x_2, x_9); -x_106 = lean_ctor_get(x_105, 0); +lean_object* x_84; lean_object* x_85; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_84 = l_Lean_Expr_fvarId_x21(x_1); +x_104 = lean_st_ref_get(x_2, x_9); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); lean_inc(x_106); +lean_dec(x_104); x_107 = lean_ctor_get(x_105, 1); lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -x_109 = lean_array_get_size(x_108); -x_110 = lean_unsigned_to_nat(0u); -x_111 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(x_85, x_106, x_108, x_109, x_110); -lean_dec(x_109); +x_108 = lean_array_get_size(x_107); +x_109 = lean_unsigned_to_nat(0u); +x_110 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(x_84, x_105, x_107, x_108, x_109); lean_dec(x_108); -lean_dec(x_106); -if (x_111 == 0) +lean_dec(x_107); +lean_dec(x_105); +if (x_110 == 0) { -lean_object* x_112; uint8_t x_113; -lean_dec(x_85); -x_112 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_107); +lean_object* x_111; uint8_t x_112; +lean_dec(x_84); +x_111 = l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) +x_112 = !lean_is_exclusive(x_111); +if (x_112 == 0) { -return x_112; +return x_111; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_112, 0); -x_115 = lean_ctor_get(x_112, 1); -lean_inc(x_115); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_111, 0); +x_114 = lean_ctor_get(x_111, 1); lean_inc(x_114); -lean_dec(x_112); -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; +lean_inc(x_113); +lean_dec(x_111); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; } } else { -x_86 = x_107; -goto block_104; +x_85 = x_106; +goto block_103; } -block_104: +block_103: { -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l___private_Lean_Elab_Match_25__alreadyVisited(x_85, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_86); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_unbox(x_88); -lean_dec(x_88); -if (x_89 == 0) +lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_86 = l___private_Lean_Elab_Match_31__alreadyVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_85); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +if (x_88 == 0) { -lean_object* x_90; lean_object* x_91; uint8_t x_92; +lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_dec(x_1); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -lean_dec(x_87); -lean_inc(x_85); -x_91 = l___private_Lean_Elab_Match_26__markAsVisited(x_85, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_90); +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +lean_dec(x_86); +lean_inc(x_84); +x_90 = l___private_Lean_Elab_Match_32__markAsVisited(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_89); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18064,35 +17835,35 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) { -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_91, 0); -lean_dec(x_93); -x_94 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_94, 0, x_85); -lean_ctor_set(x_91, 0, x_94); -return x_91; +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_90, 0); +lean_dec(x_92); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_84); +lean_ctor_set(x_90, 0, x_93); +return x_90; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_91, 1); -lean_inc(x_95); -lean_dec(x_91); -x_96 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_96, 0, x_85); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_dec(x_90); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_84); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } else { -uint8_t x_98; -lean_dec(x_85); +uint8_t x_97; +lean_dec(x_84); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18100,29 +17871,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_98 = !lean_is_exclusive(x_87); -if (x_98 == 0) +x_97 = !lean_is_exclusive(x_86); +if (x_97 == 0) { -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_87, 0); -lean_dec(x_99); -x_100 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_100, 0, x_1); -lean_ctor_set(x_87, 0, x_100); -return x_87; +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_86, 0); +lean_dec(x_98); +x_99 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_99, 0, x_1); +lean_ctor_set(x_86, 0, x_99); +return x_86; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_87, 1); -lean_inc(x_101); -lean_dec(x_87); -x_102 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_102, 0, x_1); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -return x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_86, 1); +lean_inc(x_100); +lean_dec(x_86); +x_101 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_101, 0, x_1); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } } @@ -18130,7 +17901,7 @@ return x_103; } else { -lean_object* x_117; lean_object* x_118; +lean_object* x_116; lean_object* x_117; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18138,17 +17909,17 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_117 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_117, 0, x_1); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_9); -return x_118; +x_116 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_116, 0, x_1); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_9); +return x_117; } } else { -lean_object* x_119; lean_object* x_120; +lean_object* x_118; lean_object* x_119; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18156,17 +17927,17 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_119 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_119, 0, x_1); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_9); -return x_120; +x_118 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_118, 0, x_1); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_9); +return x_119; } } else { -lean_object* x_121; lean_object* x_122; +lean_object* x_120; lean_object* x_121; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18174,25 +17945,25 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_121 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_121, 0, x_1); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_9); -return x_122; +x_120 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_120, 0, x_1); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_9); +return x_121; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_123 = lean_unsigned_to_nat(0u); -x_124 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_123); -x_125 = lean_unsigned_to_nat(2u); -x_126 = lean_nat_sub(x_124, x_125); -x_127 = lean_unsigned_to_nat(1u); -x_128 = lean_nat_sub(x_126, x_127); -lean_dec(x_126); -x_129 = l_Lean_Expr_getRevArg_x21___main(x_1, x_128); +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; +x_122 = lean_unsigned_to_nat(0u); +x_123 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_122); +x_124 = lean_unsigned_to_nat(2u); +x_125 = lean_nat_sub(x_123, x_124); +x_126 = lean_unsigned_to_nat(1u); +x_127 = lean_nat_sub(x_125, x_126); +lean_dec(x_125); +x_128 = l_Lean_Expr_getRevArg_x21___main(x_1, x_127); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -18200,25 +17971,25 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_130 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_129, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_130) == 0) +x_129 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_128, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_129) == 0) { -uint8_t x_131; -x_131 = !lean_is_exclusive(x_130); -if (x_131 == 0) +uint8_t x_130; +x_130 = !lean_is_exclusive(x_129); +if (x_130 == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_132 = lean_ctor_get(x_130, 0); -x_133 = lean_ctor_get(x_130, 1); -x_134 = lean_nat_sub(x_124, x_127); -lean_dec(x_124); -x_135 = lean_nat_sub(x_134, x_127); -lean_dec(x_134); -x_136 = l_Lean_Expr_getRevArg_x21___main(x_1, x_135); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_131 = lean_ctor_get(x_129, 0); +x_132 = lean_ctor_get(x_129, 1); +x_133 = lean_nat_sub(x_123, x_126); +lean_dec(x_123); +x_134 = lean_nat_sub(x_133, x_126); +lean_dec(x_133); +x_135 = l_Lean_Expr_getRevArg_x21___main(x_1, x_134); lean_dec(x_1); -if (lean_obj_tag(x_136) == 1) +if (lean_obj_tag(x_135) == 1) { -lean_object* x_137; lean_object* x_138; +lean_object* x_136; lean_object* x_137; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18226,49 +17997,49 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_132); -lean_ctor_set(x_130, 0, x_138); -return x_130; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +lean_dec(x_135); +x_137 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_131); +lean_ctor_set(x_129, 0, x_137); +return x_129; } else { -lean_object* x_139; lean_object* x_140; -lean_dec(x_136); -lean_free_object(x_130); -lean_dec(x_132); -x_139 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; -x_140 = l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg(x_139, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_133); +lean_object* x_138; lean_object* x_139; +lean_dec(x_135); +lean_free_object(x_129); +lean_dec(x_131); +x_138 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; +x_139 = l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg(x_138, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_132); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_140; +return x_139; } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_141 = lean_ctor_get(x_130, 0); -x_142 = lean_ctor_get(x_130, 1); -lean_inc(x_142); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_140 = lean_ctor_get(x_129, 0); +x_141 = lean_ctor_get(x_129, 1); lean_inc(x_141); -lean_dec(x_130); -x_143 = lean_nat_sub(x_124, x_127); -lean_dec(x_124); -x_144 = lean_nat_sub(x_143, x_127); -lean_dec(x_143); -x_145 = l_Lean_Expr_getRevArg_x21___main(x_1, x_144); +lean_inc(x_140); +lean_dec(x_129); +x_142 = lean_nat_sub(x_123, x_126); +lean_dec(x_123); +x_143 = lean_nat_sub(x_142, x_126); +lean_dec(x_142); +x_144 = l_Lean_Expr_getRevArg_x21___main(x_1, x_143); lean_dec(x_1); -if (lean_obj_tag(x_145) == 1) +if (lean_obj_tag(x_144) == 1) { -lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18276,38 +18047,38 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -lean_dec(x_145); -x_147 = lean_alloc_ctor(5, 2, 0); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +lean_dec(x_144); +x_146 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_140); +x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); lean_ctor_set(x_147, 1, x_141); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_142); -return x_148; +return x_147; } else { -lean_object* x_149; lean_object* x_150; -lean_dec(x_145); -lean_dec(x_141); -x_149 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; -x_150 = l_Lean_throwError___at___private_Lean_Elab_Match_27__throwInvalidPattern___spec__1___rarg(x_149, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_142); +lean_object* x_148; lean_object* x_149; +lean_dec(x_144); +lean_dec(x_140); +x_148 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; +x_149 = l_Lean_throwError___at___private_Lean_Elab_Match_33__throwInvalidPattern___spec__1___rarg(x_148, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_141); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -return x_150; +return x_149; } } } else { -uint8_t x_151; -lean_dec(x_124); +uint8_t x_150; +lean_dec(x_123); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18316,127 +18087,127 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_151 = !lean_is_exclusive(x_130); -if (x_151 == 0) +x_150 = !lean_is_exclusive(x_129); +if (x_150 == 0) { -return x_130; +return x_129; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_130, 0); -x_153 = lean_ctor_get(x_130, 1); -lean_inc(x_153); +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_129, 0); +x_152 = lean_ctor_get(x_129, 1); lean_inc(x_152); -lean_dec(x_130); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; +lean_inc(x_151); +lean_dec(x_129); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +return x_153; } } } } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_dec(x_1); -x_155 = lean_ctor_get(x_11, 0); -lean_inc(x_155); +x_154 = lean_ctor_get(x_11, 0); +lean_inc(x_154); lean_dec(x_11); -x_156 = lean_ctor_get(x_155, 0); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__7(x_157, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_158) == 0) +lean_dec(x_154); +x_157 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_156, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_157) == 0) { -uint8_t x_159; -x_159 = !lean_is_exclusive(x_158); -if (x_159 == 0) +uint8_t x_158; +x_158 = !lean_is_exclusive(x_157); +if (x_158 == 0) { -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_158, 0); -x_161 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_161, 0, x_156); -lean_ctor_set(x_161, 1, x_160); -lean_ctor_set(x_158, 0, x_161); -return x_158; +lean_object* x_159; lean_object* x_160; +x_159 = lean_ctor_get(x_157, 0); +x_160 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_160, 0, x_155); +lean_ctor_set(x_160, 1, x_159); +lean_ctor_set(x_157, 0, x_160); +return x_157; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_162 = lean_ctor_get(x_158, 0); -x_163 = lean_ctor_get(x_158, 1); -lean_inc(x_163); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_161 = lean_ctor_get(x_157, 0); +x_162 = lean_ctor_get(x_157, 1); lean_inc(x_162); -lean_dec(x_158); -x_164 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_164, 0, x_156); +lean_inc(x_161); +lean_dec(x_157); +x_163 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_163, 0, x_155); +lean_ctor_set(x_163, 1, x_161); +x_164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_163); lean_ctor_set(x_164, 1, x_162); -x_165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_163); -return x_165; +return x_164; } } else { -uint8_t x_166; -lean_dec(x_156); -x_166 = !lean_is_exclusive(x_158); -if (x_166 == 0) +uint8_t x_165; +lean_dec(x_155); +x_165 = !lean_is_exclusive(x_157); +if (x_165 == 0) { -return x_158; +return x_157; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_158, 0); -x_168 = lean_ctor_get(x_158, 1); -lean_inc(x_168); +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_157, 0); +x_167 = lean_ctor_get(x_157, 1); lean_inc(x_167); -lean_dec(x_158); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -return x_169; +lean_inc(x_166); +lean_dec(x_157); +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; } } } } else { -lean_object* x_170; +lean_object* x_169; lean_dec(x_1); -x_170 = lean_ctor_get(x_10, 0); -lean_inc(x_170); +x_169 = lean_ctor_get(x_10, 0); +lean_inc(x_169); lean_dec(x_10); -if (lean_obj_tag(x_170) == 1) +if (lean_obj_tag(x_169) == 1) { -lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_st_ref_get(x_2, x_9); -x_173 = !lean_is_exclusive(x_172); -if (x_173 == 0) +lean_object* x_170; lean_object* x_171; uint8_t x_172; +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +x_171 = lean_st_ref_get(x_2, x_9); +x_172 = !lean_is_exclusive(x_171); +if (x_172 == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_174 = lean_ctor_get(x_172, 0); -x_175 = lean_ctor_get(x_172, 1); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -x_177 = lean_array_get_size(x_176); -x_178 = lean_unsigned_to_nat(0u); -x_179 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8(x_171, x_174, x_176, x_177, x_178); -lean_dec(x_177); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_173 = lean_ctor_get(x_171, 0); +x_174 = lean_ctor_get(x_171, 1); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +x_176 = lean_array_get_size(x_175); +x_177 = lean_unsigned_to_nat(0u); +x_178 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_170, x_173, x_175, x_176, x_177); lean_dec(x_176); -lean_dec(x_174); -if (x_179 == 0) +lean_dec(x_175); +lean_dec(x_173); +if (x_178 == 0) { -lean_object* x_180; -lean_dec(x_171); +lean_object* x_179; +lean_dec(x_170); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18444,27 +18215,27 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_180 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_180, 0, x_170); -lean_ctor_set(x_172, 0, x_180); -return x_172; +x_179 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_179, 0, x_169); +lean_ctor_set(x_171, 0, x_179); +return x_171; } else { -lean_object* x_181; lean_object* x_182; uint8_t x_183; -lean_free_object(x_172); -x_181 = l___private_Lean_Elab_Match_25__alreadyVisited(x_171, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_175); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_unbox(x_182); -lean_dec(x_182); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); +lean_object* x_180; lean_object* x_181; uint8_t x_182; +lean_free_object(x_171); +x_180 = l___private_Lean_Elab_Match_31__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_174); +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_unbox(x_181); lean_dec(x_181); -x_185 = l___private_Lean_Elab_Match_26__markAsVisited(x_171, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_184); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_183 = lean_ctor_get(x_180, 1); +lean_inc(x_183); +lean_dec(x_180); +x_184 = l___private_Lean_Elab_Match_32__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_183); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18472,156 +18243,93 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) +x_185 = !lean_is_exclusive(x_184); +if (x_185 == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_185, 0); -lean_dec(x_187); -x_188 = l_Lean_Expr_fvarId_x21(x_170); -lean_dec(x_170); -x_189 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_185, 0, x_189); -return x_185; +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_184, 0); +lean_dec(x_186); +x_187 = l_Lean_Expr_fvarId_x21(x_169); +lean_dec(x_169); +x_188 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_184, 0, x_188); +return x_184; } else { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_190 = lean_ctor_get(x_185, 1); -lean_inc(x_190); -lean_dec(x_185); -x_191 = l_Lean_Expr_fvarId_x21(x_170); -lean_dec(x_170); -x_192 = lean_alloc_ctor(1, 1, 0); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_189 = lean_ctor_get(x_184, 1); +lean_inc(x_189); +lean_dec(x_184); +x_190 = l_Lean_Expr_fvarId_x21(x_169); +lean_dec(x_169); +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_190); +x_192 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_192, 0, x_191); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_190); -return x_193; +lean_ctor_set(x_192, 1, x_189); +return x_192; } } else { -uint8_t x_194; -lean_dec(x_171); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_194 = !lean_is_exclusive(x_181); -if (x_194 == 0) -{ -lean_object* x_195; lean_object* x_196; -x_195 = lean_ctor_get(x_181, 0); -lean_dec(x_195); -x_196 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_196, 0, x_170); -lean_ctor_set(x_181, 0, x_196); -return x_181; -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_181, 1); -lean_inc(x_197); -lean_dec(x_181); -x_198 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_198, 0, x_170); -x_199 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -return x_199; -} -} -} -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; -x_200 = lean_ctor_get(x_172, 0); -x_201 = lean_ctor_get(x_172, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_172); -x_202 = lean_ctor_get(x_200, 1); -lean_inc(x_202); -x_203 = lean_array_get_size(x_202); -x_204 = lean_unsigned_to_nat(0u); -x_205 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8(x_171, x_200, x_202, x_203, x_204); -lean_dec(x_203); -lean_dec(x_202); -lean_dec(x_200); -if (x_205 == 0) -{ -lean_object* x_206; lean_object* x_207; -lean_dec(x_171); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_206 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_206, 0, x_170); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_201); -return x_207; -} -else -{ -lean_object* x_208; lean_object* x_209; uint8_t x_210; -x_208 = l___private_Lean_Elab_Match_25__alreadyVisited(x_171, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_201); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_unbox(x_209); -lean_dec(x_209); -if (x_210 == 0) -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_211 = lean_ctor_get(x_208, 1); -lean_inc(x_211); -lean_dec(x_208); -x_212 = l___private_Lean_Elab_Match_26__markAsVisited(x_171, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_211); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_214 = x_212; -} else { - lean_dec_ref(x_212); - x_214 = lean_box(0); -} -x_215 = l_Lean_Expr_fvarId_x21(x_170); +uint8_t x_193; lean_dec(x_170); -x_216 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_216, 0, x_215); -if (lean_is_scalar(x_214)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_214; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_213); -return x_217; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_193 = !lean_is_exclusive(x_180); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; +x_194 = lean_ctor_get(x_180, 0); +lean_dec(x_194); +x_195 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_195, 0, x_169); +lean_ctor_set(x_180, 0, x_195); +return x_180; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_180, 1); +lean_inc(x_196); +lean_dec(x_180); +x_197 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_197, 0, x_169); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +return x_198; +} +} +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_199 = lean_ctor_get(x_171, 0); +x_200 = lean_ctor_get(x_171, 1); +lean_inc(x_200); +lean_inc(x_199); lean_dec(x_171); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +x_202 = lean_array_get_size(x_201); +x_203 = lean_unsigned_to_nat(0u); +x_204 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_170, x_199, x_201, x_202, x_203); +lean_dec(x_202); +lean_dec(x_201); +lean_dec(x_199); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; +lean_dec(x_170); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18629,33 +18337,96 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_218 = lean_ctor_get(x_208, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - x_219 = x_208; -} else { - lean_dec_ref(x_208); - x_219 = lean_box(0); +x_205 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_205, 0, x_169); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_200); +return x_206; } -x_220 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_220, 0, x_170); -if (lean_is_scalar(x_219)) { - x_221 = lean_alloc_ctor(0, 2, 0); +else +{ +lean_object* x_207; lean_object* x_208; uint8_t x_209; +x_207 = l___private_Lean_Elab_Match_31__alreadyVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_200); +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_unbox(x_208); +lean_dec(x_208); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_210 = lean_ctor_get(x_207, 1); +lean_inc(x_210); +lean_dec(x_207); +x_211 = l___private_Lean_Elab_Match_32__markAsVisited(x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_210); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_213 = x_211; } else { - x_221 = x_219; + lean_dec_ref(x_211); + x_213 = lean_box(0); } -lean_ctor_set(x_221, 0, x_220); -lean_ctor_set(x_221, 1, x_218); -return x_221; +x_214 = l_Lean_Expr_fvarId_x21(x_169); +lean_dec(x_169); +x_215 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_215, 0, x_214); +if (lean_is_scalar(x_213)) { + x_216 = lean_alloc_ctor(0, 2, 0); +} else { + x_216 = x_213; +} +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_212); +return x_216; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec(x_170); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_217 = lean_ctor_get(x_207, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_218 = x_207; +} else { + lean_dec_ref(x_207); + x_218 = lean_box(0); +} +x_219 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_219, 0, x_169); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 0); +} else { + x_220 = x_218; +} +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_217); +return x_220; } } } } else { -lean_object* x_222; lean_object* x_223; +lean_object* x_221; lean_object* x_222; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18663,12 +18434,12 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_222 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_222, 0, x_170); -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_9); -return x_223; +x_221 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_221, 0, x_169); +x_222 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_9); +return x_222; } } } @@ -18684,11 +18455,11 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___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* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -18697,55 +18468,11 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_1); -return x_12; -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(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_1); -return x_12; -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__8(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -18762,98 +18489,7 @@ x_10 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_2, x_3, x_4, x_5, x_ return x_10; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -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_1); -x_13 = x_2; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_array_fget(x_2, x_1); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_array_fset(x_2, x_1, x_16); -x_18 = x_15; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_19 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_18, x_3, 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; -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(1u); -x_23 = lean_nat_add(x_1, x_22); -x_24 = x_20; -x_25 = lean_array_fset(x_17, x_1, x_24); -lean_dec(x_1); -x_1 = x_23; -x_2 = x_25; -x_10 = x_21; -goto _start; -} -else -{ -uint8_t x_27; -lean_dec(x_17); -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_1); -x_27 = !lean_is_exclusive(x_19); -if (x_27 == 0) -{ -return x_19; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_19, 0); -x_29 = lean_ctor_get(x_19, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_19); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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_Lean_Elab_Term_withDepElimPatterns___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; @@ -18897,7 +18533,7 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -18925,7 +18561,7 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(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; @@ -18957,7 +18593,7 @@ _start: lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_11 = x_2; x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1), 10, 2); +x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2), 10, 2); lean_closure_set(x_13, 0, x_12); lean_closure_set(x_13, 1, x_11); x_14 = l_Lean_NameSet_empty; @@ -18999,7 +18635,7 @@ x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); x_27 = x_26; -x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2___boxed), 9, 2); +x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1___boxed), 9, 2); lean_closure_set(x_28, 0, x_12); lean_closure_set(x_28, 1, x_27); x_29 = x_28; @@ -19023,8 +18659,8 @@ if (x_33 == 0) { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_6, 1); -x_35 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(x_31, x_31, x_12, x_34); -x_36 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4(x_31, x_31, x_12, x_35); +x_35 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(x_31, x_31, x_12, x_34); +x_36 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(x_31, x_31, x_12, x_35); lean_ctor_set(x_6, 1, x_36); x_37 = lean_apply_9(x_3, x_31, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_32); return x_37; @@ -19039,8 +18675,8 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_6); -x_41 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(x_31, x_31, x_12, x_39); -x_42 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4(x_31, x_31, x_12, x_41); +x_41 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(x_31, x_31, x_12, x_39); +x_42 = l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3(x_31, x_31, x_12, x_41); x_43 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_43, 0, x_38); lean_ctor_set(x_43, 1, x_42); @@ -19120,11 +18756,11 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withDepElimPatterns___rarg), 1 return x_2; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_umapMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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); @@ -19133,6 +18769,16 @@ lean_dec(x_4); return x_10; } } +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -19143,17 +18789,7 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___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_iterateMAux___main___at_Lean_Elab_Term_withDepElimPatterns___spec__4(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___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_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___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; @@ -19197,7 +18833,7 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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* l___private_Lean_Elab_Match_35__withElaboratedLHS___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) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -19210,13 +18846,13 @@ x_15 = lean_apply_9(x_1, x_14, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_15; } } -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_12 = lean_unsigned_to_nat(0u); x_13 = l_Array_empty___closed__1; -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_24__elabPatternsAux___boxed), 11, 4); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_30__elabPatternsAux___boxed), 11, 4); lean_closure_set(x_14, 0, x_2); lean_closure_set(x_14, 1, x_12); lean_closure_set(x_14, 2, x_3); @@ -19253,7 +18889,7 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); x_23 = x_18; -x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___spec__1___boxed), 9, 2); +x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___spec__1___boxed), 9, 2); lean_closure_set(x_24, 0, x_12); lean_closure_set(x_24, 1, x_23); x_25 = x_24; @@ -19272,7 +18908,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_31__withElaboratedLHS___rarg___lambda__1___boxed), 11, 2); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_35__withElaboratedLHS___rarg___lambda__1___boxed), 11, 2); lean_closure_set(x_29, 0, x_4); lean_closure_set(x_29, 1, x_19); x_30 = l_Lean_Elab_Term_withDepElimPatterns___rarg(x_21, x_27, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_28); @@ -19373,19 +19009,19 @@ return x_42; } } } -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_35__withElaboratedLHS(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_31__withElaboratedLHS___rarg___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_35__withElaboratedLHS___rarg___boxed), 11, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__withElaboratedLHS___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_35__withElaboratedLHS___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); @@ -19394,21 +19030,21 @@ lean_dec(x_4); return x_10; } } -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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* l___private_Lean_Elab_Match_35__withElaboratedLHS___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) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_31__withElaboratedLHS___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 = l___private_Lean_Elab_Match_35__withElaboratedLHS___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); lean_dec(x_4); lean_dec(x_3); return x_12; } } -lean_object* l___private_Lean_Elab_Match_31__withElaboratedLHS___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* l___private_Lean_Elab_Match_35__withElaboratedLHS___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) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_31__withElaboratedLHS___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Match_35__withElaboratedLHS___rarg(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_1); return x_12; } @@ -20115,7 +19751,7 @@ lean_inc(x_12); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1), 11, 2); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_2); -x_14 = l___private_Lean_Elab_Match_31__withElaboratedLHS___rarg(x_4, x_12, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l___private_Lean_Elab_Match_35__withElaboratedLHS___rarg(x_4, x_12, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_14; } } @@ -20174,7 +19810,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_17 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_17 = l___private_Lean_Elab_Match_27__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; @@ -20198,7 +19834,7 @@ x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_24, 0, x_21); lean_closure_set(x_24, 1, x_22); lean_closure_set(x_24, 2, x_2); -x_25 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_20, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +x_25 = l___private_Lean_Elab_Match_29__withPatternVars___rarg(x_20, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19); return x_25; } else @@ -20225,7 +19861,7 @@ x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_36, 0, x_21); lean_closure_set(x_36, 1, x_22); lean_closure_set(x_36, 2, x_2); -x_37 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_20, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_35); +x_37 = l___private_Lean_Elab_Match_29__withPatternVars___rarg(x_20, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_35); return x_37; } } @@ -20291,7 +19927,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_50 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_49, x_8, x_9); +x_50 = l___private_Lean_Elab_Match_27__collectPatternVars(x_1, x_3, x_4, x_5, x_6, x_49, x_8, x_9); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; @@ -20315,7 +19951,7 @@ x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_57, 0, x_54); lean_closure_set(x_57, 1, x_55); lean_closure_set(x_57, 2, x_2); -x_58 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_53, x_57, x_3, x_4, x_5, x_6, x_49, x_8, x_52); +x_58 = l___private_Lean_Elab_Match_29__withPatternVars___rarg(x_53, x_57, x_3, x_4, x_5, x_6, x_49, x_8, x_52); return x_58; } else @@ -20342,7 +19978,7 @@ x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__2_ lean_closure_set(x_69, 0, x_54); lean_closure_set(x_69, 1, x_55); lean_closure_set(x_69, 2, x_2); -x_70 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_53, x_69, x_3, x_4, x_5, x_6, x_49, x_8, x_68); +x_70 = l___private_Lean_Elab_Match_29__withPatternVars___rarg(x_53, x_69, x_3, x_4, x_5, x_6, x_49, x_8, x_68); return x_70; } } @@ -20897,7 +20533,7 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___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_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___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; @@ -20988,7 +20624,7 @@ return x_30; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -21023,7 +20659,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -21058,7 +20694,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__1() { _start: { lean_object* x_1; @@ -21066,7 +20702,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_e return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -21076,7 +20712,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__3() { _start: { lean_object* x_1; @@ -21084,27 +20720,27 @@ x_1 = lean_mk_string("result: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__3; +x_1 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__4; +x_1 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__6() { _start: { lean_object* x_1; @@ -21112,27 +20748,27 @@ x_1 = lean_mk_string("matchType: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__6; +x_1 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__7; +x_1 = l___private_Lean_Elab_Match_36__elabMatchAux___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_Match_32__elabMatchAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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; @@ -21200,7 +20836,7 @@ lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_inc(x_14); x_115 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_115, 0, x_14); -x_116 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__8; +x_116 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__8; x_117 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_117, 0, x_116); lean_ctor_set(x_117, 1, x_115); @@ -21217,7 +20853,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean x_23 = x_17; x_24 = lean_unsigned_to_nat(0u); lean_inc(x_14); -x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__1), 10, 3); +x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__1), 10, 3); lean_closure_set(x_25, 0, x_14); lean_closure_set(x_25, 1, x_24); lean_closure_set(x_25, 2, x_23); @@ -21239,9 +20875,9 @@ lean_inc(x_29); lean_dec(x_27); x_30 = x_28; lean_inc(x_30); -x_31 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__2(x_24, x_30); +x_31 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__2(x_24, x_30); x_32 = x_31; -x_33 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_32__elabMatchAux___spec__3(x_24, x_30); +x_33 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_36__elabMatchAux___spec__3(x_24, x_30); x_34 = x_33; x_35 = lean_array_get_size(x_20); lean_inc(x_10); @@ -21264,7 +20900,7 @@ lean_dec(x_36); lean_inc(x_35); x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_35); -x_40 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__1; +x_40 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -21280,7 +20916,7 @@ lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec(x_41); -x_44 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__2; +x_44 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__2; lean_inc(x_5); x_45 = l_Lean_Elab_Term_mkAuxName(x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_43); if (lean_obj_tag(x_45) == 0) @@ -21351,7 +20987,7 @@ lean_free_object(x_52); lean_inc(x_59); x_63 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_63, 0, x_59); -x_64 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__5; +x_64 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__5; x_65 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); @@ -21423,7 +21059,7 @@ lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean lean_inc(x_75); x_80 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_80, 0, x_75); -x_81 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__5; +x_81 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__5; x_82 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -21749,17 +21385,17 @@ return x_131; } } } -lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_Match_32__elabMatchAux(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_Lean_Elab_Match_36__elabMatchAux(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_3); lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Match_33__waitExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_37__waitExpectedType(lean_object* x_1, lean_object* x_2, 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; @@ -21839,11 +21475,11 @@ return x_23; } } } -lean_object* l___private_Lean_Elab_Match_33__waitExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Match_37__waitExpectedType___boxed(lean_object* x_1, lean_object* x_2, 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_Match_33__waitExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Match_37__waitExpectedType(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); @@ -21851,7 +21487,7 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_34__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -21885,13 +21521,13 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_34__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_38__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_5); lean_inc(x_3); -x_10 = l___private_Lean_Elab_Match_33__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_37__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 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; @@ -21910,11 +21546,11 @@ x_18 = l_Array_empty___closed__1; x_19 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_16, x_15, x_17, x_18); lean_dec(x_15); x_20 = x_19; -x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_34__elabMatchCore___spec__1(x_17, x_20); +x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_38__elabMatchCore___spec__1(x_17, x_20); x_22 = x_21; x_23 = l___private_Lean_Elab_Match_8__getMatchAlts(x_1); x_24 = l_Lean_Syntax_getArg(x_1, x_16); -x_25 = l___private_Lean_Elab_Match_32__elabMatchAux(x_22, x_23, x_24, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_25 = l___private_Lean_Elab_Match_36__elabMatchAux(x_22, x_23, x_24, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_24); lean_dec(x_22); return x_25; @@ -21949,16 +21585,16 @@ return x_29; } } } -lean_object* l___private_Lean_Elab_Match_34__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Match_38__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Match_34__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Match_38__elabMatchCore(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* _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -21968,19 +21604,19 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nullKind___closed__2; -x_2 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1; +x_2 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3() { _start: { lean_object* x_1; @@ -21988,29 +21624,29 @@ x_1 = lean_mk_string("→"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3; +x_2 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__10; -x_2 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4; +x_2 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main(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; lean_object* x_7; lean_object* x_8; @@ -22065,7 +21701,7 @@ else lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_20 = l___private_Lean_Elab_Match_35__mkMatchType___main(x_1, x_19, x_3, x_8); +x_20 = l___private_Lean_Elab_Match_39__mkMatchType___main(x_1, x_19, x_3, x_8); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -22099,7 +21735,7 @@ lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2; +x_39 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2; x_40 = lean_array_push(x_38, x_39); x_41 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; x_42 = lean_array_push(x_40, x_41); @@ -22110,7 +21746,7 @@ x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); x_47 = lean_array_push(x_33, x_46); -x_48 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4; +x_48 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4; x_49 = lean_array_push(x_47, x_48); x_50 = lean_array_push(x_33, x_26); x_51 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__19; @@ -22141,7 +21777,7 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_64 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5; +x_64 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5; x_65 = lean_array_push(x_64, x_22); x_66 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; x_67 = lean_alloc_ctor(1, 2, 0); @@ -22187,7 +21823,7 @@ lean_ctor_set(x_83, 0, x_82); lean_ctor_set(x_83, 1, x_81); x_84 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; x_85 = lean_array_push(x_84, x_83); -x_86 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2; +x_86 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2; x_87 = lean_array_push(x_85, x_86); x_88 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; x_89 = lean_array_push(x_87, x_88); @@ -22198,7 +21834,7 @@ x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); x_94 = lean_array_push(x_80, x_93); -x_95 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4; +x_95 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4; x_96 = lean_array_push(x_94, x_95); x_97 = lean_array_push(x_80, x_73); x_98 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__19; @@ -22231,7 +21867,7 @@ lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_112 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5; +x_112 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5; x_113 = lean_array_push(x_112, x_68); x_114 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; x_115 = lean_alloc_ctor(1, 2, 0); @@ -22284,7 +21920,7 @@ else lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; x_126 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_127 = l___private_Lean_Elab_Match_35__mkMatchType___main(x_1, x_126, x_120, x_8); +x_127 = l___private_Lean_Elab_Match_39__mkMatchType___main(x_1, x_126, x_120, x_8); x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); x_129 = lean_ctor_get(x_127, 1); @@ -22325,7 +21961,7 @@ lean_ctor_set(x_144, 0, x_143); lean_ctor_set(x_144, 1, x_142); x_145 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; x_146 = lean_array_push(x_145, x_144); -x_147 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2; +x_147 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2; x_148 = lean_array_push(x_146, x_147); x_149 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; x_150 = lean_array_push(x_148, x_149); @@ -22336,7 +21972,7 @@ x_154 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_154, 0, x_153); lean_ctor_set(x_154, 1, x_152); x_155 = lean_array_push(x_141, x_154); -x_156 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4; +x_156 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4; x_157 = lean_array_push(x_155, x_156); x_158 = lean_array_push(x_141, x_134); x_159 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__19; @@ -22373,7 +22009,7 @@ lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_dec(x_121); lean_dec(x_117); lean_dec(x_4); -x_173 = l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5; +x_173 = l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5; x_174 = lean_array_push(x_173, x_128); x_175 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__7; x_176 = lean_alloc_ctor(1, 2, 0); @@ -22393,33 +22029,33 @@ return x_177; } } } -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___main___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_Match_35__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_39__mkMatchType___main(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_35__mkMatchType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_39__mkMatchType(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_Match_35__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_39__mkMatchType___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Match_35__mkMatchType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_39__mkMatchType___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_Match_35__mkMatchType(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_39__mkMatchType(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_36__mkOptType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_40__mkOptType(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* 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; @@ -22441,7 +22077,7 @@ lean_ctor_set(x_12, 1, x_10); return x_12; } } -lean_object* _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1() { _start: { lean_object* x_1; @@ -22449,22 +22085,22 @@ x_1 = lean_mk_string("Eq.refl"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2; +x_3 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -22472,7 +22108,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -22484,19 +22120,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4; +x_2 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main(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; @@ -22556,8 +22192,8 @@ lean_inc(x_26); x_27 = l___private_Lean_Meta_AppBuilder_5__mkEqReflImp___closed__2; x_28 = l_Lean_addMacroScope(x_26, x_27, x_25); x_29 = l_Lean_SourceInfo_inhabited___closed__1; -x_30 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3; -x_31 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5; +x_30 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3; +x_31 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_29); lean_ctor_set(x_32, 1, x_30); @@ -22599,33 +22235,33 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___main___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_Match_37__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs(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_Match_37__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Match_37__mkNewDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_41__mkNewDiscrs___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_Match_37__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_41__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* _init_l___private_Lean_Elab_Match_38__mkNewPatterns___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_42__mkNewPatterns___main___closed__1() { _start: { lean_object* x_1; @@ -22633,7 +22269,7 @@ x_1 = lean_mk_string("invalid number of patterns, expected #"); return x_1; } } -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -22664,7 +22300,7 @@ lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); x_14 = l_Nat_repr(x_8); -x_15 = l___private_Lean_Elab_Match_38__mkNewPatterns___main___closed__1; +x_15 = l___private_Lean_Elab_Match_42__mkNewPatterns___main___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = lean_alloc_ctor(0, 2, 0); @@ -22738,37 +22374,37 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Match_38__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_42__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Match_38__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_42__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Lean_Elab_Match_38__mkNewPatterns___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Match_42__mkNewPatterns___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Match_38__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_42__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_39__mkNewAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_43__mkNewAlt(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; @@ -22778,7 +22414,7 @@ x_7 = l_Lean_Syntax_getArgs(x_6); lean_dec(x_6); x_8 = l_Array_empty___closed__1; lean_inc(x_2); -x_9 = l___private_Lean_Elab_Match_38__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); +x_9 = l___private_Lean_Elab_Match_42__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); lean_dec(x_7); if (lean_obj_tag(x_9) == 0) { @@ -22840,17 +22476,17 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Match_39__mkNewAlt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_43__mkNewAlt___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_Match_39__mkNewAlt(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_43__mkNewAlt(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___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___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -22941,54 +22577,54 @@ return x_29; } } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___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; x_5 = lean_unsigned_to_nat(0u); x_6 = l_Array_empty___closed__1; -x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); +x_7 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); return x_7; } } -lean_object* l___private_Lean_Elab_Match_40__mkNewAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_44__mkNewAlts(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; -x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_39__mkNewAlt___boxed), 4, 1); +x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_43__mkNewAlt___boxed), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); +x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); return x_6; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___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___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_40__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Match_44__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___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_mapSepElemsM___at___private_Lean_Elab_Match_40__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_44__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_40__mkNewAlts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_44__mkNewAlts___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_Match_40__mkNewAlts(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_44__mkNewAlts(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -23028,7 +22664,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1() { _start: { lean_object* x_1; @@ -23036,7 +22672,7 @@ x_1 = lean_mk_string("match expected type should not be provided when discrimina return x_1; } } -lean_object* l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -23049,7 +22685,7 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_empty___closed__1; x_10 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_6, x_8, x_9); x_11 = lean_array_get_size(x_10); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); lean_dec(x_11); lean_dec(x_10); if (x_12 == 0) @@ -23075,7 +22711,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_17 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1; +x_17 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1; x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_17); @@ -23089,17 +22725,17 @@ 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; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_15); lean_inc(x_2); -x_20 = l___private_Lean_Elab_Match_35__mkMatchType___main(x_6, x_8, x_2, x_3); +x_20 = l___private_Lean_Elab_Match_39__mkMatchType___main(x_6, x_8, x_2, x_3); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_Syntax_copyInfo(x_21, x_1); -x_24 = l___private_Lean_Elab_Match_36__mkOptType(x_23); +x_24 = l___private_Lean_Elab_Match_40__mkOptType(x_23); x_25 = l_Lean_Syntax_setArg(x_1, x_7, x_24); lean_inc(x_2); -x_26 = l___private_Lean_Elab_Match_37__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); +x_26 = l___private_Lean_Elab_Match_41__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -23115,7 +22751,7 @@ x_33 = l_Lean_Syntax_getArg(x_31, x_32); x_34 = l_Lean_Syntax_getArg(x_33, x_4); x_35 = l_Lean_Syntax_getArgs(x_34); lean_dec(x_34); -x_36 = l___private_Lean_Elab_Match_40__mkNewAlts(x_6, x_35, x_2, x_28); +x_36 = l___private_Lean_Elab_Match_44__mkNewAlts(x_6, x_35, x_2, x_28); lean_dec(x_35); if (lean_obj_tag(x_36) == 0) { @@ -23184,11 +22820,11 @@ return x_53; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___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_Match_41__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -23227,7 +22863,7 @@ block_36: if (lean_obj_tag(x_10) == 0) { lean_object* x_12; -x_12 = l___private_Lean_Elab_Match_34__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +x_12 = l___private_Lean_Elab_Match_38__elabMatchCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_11); lean_dec(x_1); return x_12; } @@ -23342,7 +22978,7 @@ lean_ctor_set(x_52, 1, x_39); lean_ctor_set(x_52, 2, x_49); lean_ctor_set(x_52, 3, x_50); lean_inc(x_1); -x_53 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_52, x_48); +x_53 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_52, x_48); if (lean_obj_tag(x_53) == 0) { lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; @@ -23460,7 +23096,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_47); +x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_47); x_83 = !lean_is_exclusive(x_82); if (x_83 == 0) { @@ -23549,7 +23185,7 @@ lean_ctor_set(x_104, 1, x_91); lean_ctor_set(x_104, 2, x_101); lean_ctor_set(x_104, 3, x_102); lean_inc(x_1); -x_105 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_104, x_100); +x_105 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_104, x_100); if (lean_obj_tag(x_105) == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; @@ -23667,7 +23303,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_134 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_99); +x_134 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_99); x_135 = !lean_is_exclusive(x_134); if (x_135 == 0) { @@ -23758,7 +23394,7 @@ lean_ctor_set(x_156, 1, x_143); lean_ctor_set(x_156, 2, x_153); lean_ctor_set(x_156, 3, x_154); lean_inc(x_1); -x_157 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_156, x_152); +x_157 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_156, x_152); if (lean_obj_tag(x_157) == 0) { lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; @@ -23876,7 +23512,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_186 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_151); +x_186 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_151); x_187 = !lean_is_exclusive(x_186); if (x_187 == 0) { @@ -23966,7 +23602,7 @@ lean_ctor_set(x_207, 1, x_194); lean_ctor_set(x_207, 2, x_204); lean_ctor_set(x_207, 3, x_205); lean_inc(x_1); -x_208 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_207, x_203); +x_208 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_207, x_203); if (lean_obj_tag(x_208) == 0) { lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; @@ -24084,7 +23720,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_237 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_202); +x_237 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_202); x_238 = !lean_is_exclusive(x_237); if (x_238 == 0) { @@ -24176,7 +23812,7 @@ lean_ctor_set(x_260, 1, x_247); lean_ctor_set(x_260, 2, x_257); lean_ctor_set(x_260, 3, x_258); lean_inc(x_1); -x_261 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_260, x_256); +x_261 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_260, x_256); if (lean_obj_tag(x_261) == 0) { lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; @@ -24294,7 +23930,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_290 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_255); +x_290 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_255); x_291 = !lean_is_exclusive(x_290); if (x_291 == 0) { @@ -24384,7 +24020,7 @@ lean_ctor_set(x_311, 1, x_298); lean_ctor_set(x_311, 2, x_308); lean_ctor_set(x_311, 3, x_309); lean_inc(x_1); -x_312 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_311, x_307); +x_312 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_311, x_307); if (lean_obj_tag(x_312) == 0) { lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; uint8_t x_318; @@ -24502,7 +24138,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_341 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_306); +x_341 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_306); x_342 = !lean_is_exclusive(x_341); if (x_342 == 0) { @@ -24595,7 +24231,7 @@ lean_ctor_set(x_364, 1, x_351); lean_ctor_set(x_364, 2, x_361); lean_ctor_set(x_364, 3, x_362); lean_inc(x_1); -x_365 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_364, x_360); +x_365 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_364, x_360); if (lean_obj_tag(x_365) == 0) { lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; @@ -24713,7 +24349,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_394 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_359); +x_394 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_359); x_395 = !lean_is_exclusive(x_394); if (x_395 == 0) { @@ -24803,7 +24439,7 @@ lean_ctor_set(x_415, 1, x_402); lean_ctor_set(x_415, 2, x_412); lean_ctor_set(x_415, 3, x_413); lean_inc(x_1); -x_416 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_415, x_411); +x_416 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_415, x_411); if (lean_obj_tag(x_416) == 0) { lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; @@ -24921,7 +24557,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_445 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_410); +x_445 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_410); x_446 = !lean_is_exclusive(x_445); if (x_446 == 0) { @@ -25012,7 +24648,7 @@ lean_ctor_set(x_466, 1, x_453); lean_ctor_set(x_466, 2, x_463); lean_ctor_set(x_466, 3, x_464); lean_inc(x_1); -x_467 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_466, x_462); +x_467 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_466, x_462); if (lean_obj_tag(x_467) == 0) { lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; @@ -25130,7 +24766,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_496 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_461); +x_496 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_461); x_497 = !lean_is_exclusive(x_496); if (x_497 == 0) { @@ -25222,7 +24858,7 @@ lean_ctor_set(x_517, 1, x_504); lean_ctor_set(x_517, 2, x_514); lean_ctor_set(x_517, 3, x_515); lean_inc(x_1); -x_518 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_517, x_513); +x_518 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_517, x_513); if (lean_obj_tag(x_518) == 0) { lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; uint8_t x_524; @@ -25340,7 +24976,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_547 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_512); +x_547 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_512); x_548 = !lean_is_exclusive(x_547); if (x_548 == 0) { @@ -25431,7 +25067,7 @@ lean_ctor_set(x_568, 1, x_555); lean_ctor_set(x_568, 2, x_565); lean_ctor_set(x_568, 3, x_566); lean_inc(x_1); -x_569 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_568, x_564); +x_569 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_568, x_564); if (lean_obj_tag(x_569) == 0) { lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; uint8_t x_575; @@ -25549,7 +25185,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_598 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_563); +x_598 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_563); x_599 = !lean_is_exclusive(x_598); if (x_599 == 0) { @@ -25621,7 +25257,7 @@ lean_ctor_set(x_620, 1, x_607); lean_ctor_set(x_620, 2, x_617); lean_ctor_set(x_620, 3, x_618); lean_inc(x_1); -x_621 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_620, x_616); +x_621 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_620, x_616); if (lean_obj_tag(x_621) == 0) { lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; @@ -25739,7 +25375,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_650 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_615); +x_650 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_615); x_651 = !lean_is_exclusive(x_650); if (x_651 == 0) { @@ -25871,7 +25507,7 @@ lean_ctor_set(x_703, 1, x_690); lean_ctor_set(x_703, 2, x_700); lean_ctor_set(x_703, 3, x_701); lean_inc(x_1); -x_704 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_703, x_699); +x_704 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_703, x_699); if (lean_obj_tag(x_704) == 0) { lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; uint8_t x_710; @@ -25989,7 +25625,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_733 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_698); +x_733 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_698); x_734 = !lean_is_exclusive(x_733); if (x_734 == 0) { @@ -26081,7 +25717,7 @@ lean_ctor_set(x_754, 1, x_741); lean_ctor_set(x_754, 2, x_751); lean_ctor_set(x_754, 3, x_752); lean_inc(x_1); -x_755 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_754, x_750); +x_755 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_754, x_750); if (lean_obj_tag(x_755) == 0) { lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; uint8_t x_761; @@ -26199,7 +25835,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_784 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_749); +x_784 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_749); x_785 = !lean_is_exclusive(x_784); if (x_785 == 0) { @@ -26289,7 +25925,7 @@ lean_ctor_set(x_805, 1, x_792); lean_ctor_set(x_805, 2, x_802); lean_ctor_set(x_805, 3, x_803); lean_inc(x_1); -x_806 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_805, x_801); +x_806 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_805, x_801); if (lean_obj_tag(x_806) == 0) { lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; uint8_t x_812; @@ -26407,7 +26043,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_835 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_800); +x_835 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_800); x_836 = !lean_is_exclusive(x_835); if (x_836 == 0) { @@ -26479,7 +26115,7 @@ lean_ctor_set(x_857, 1, x_844); lean_ctor_set(x_857, 2, x_854); lean_ctor_set(x_857, 3, x_855); lean_inc(x_1); -x_858 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_857, x_853); +x_858 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_857, x_853); if (lean_obj_tag(x_858) == 0) { lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; uint8_t x_864; @@ -26597,7 +26233,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_887 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_852); +x_887 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_852); x_888 = !lean_is_exclusive(x_887); if (x_888 == 0) { @@ -26733,7 +26369,7 @@ lean_ctor_set(x_958, 1, x_945); lean_ctor_set(x_958, 2, x_955); lean_ctor_set(x_958, 3, x_956); lean_inc(x_1); -x_959 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_958, x_954); +x_959 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_958, x_954); if (lean_obj_tag(x_959) == 0) { lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; uint8_t x_965; @@ -26851,7 +26487,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_988 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_953); +x_988 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_953); x_989 = !lean_is_exclusive(x_988); if (x_989 == 0) { @@ -26939,7 +26575,7 @@ lean_ctor_set(x_1009, 1, x_996); lean_ctor_set(x_1009, 2, x_1006); lean_ctor_set(x_1009, 3, x_1007); lean_inc(x_1); -x_1010 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1009, x_1005); +x_1010 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1009, x_1005); if (lean_obj_tag(x_1010) == 0) { lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; uint8_t x_1016; @@ -27057,7 +26693,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1039 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1004); +x_1039 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1004); x_1040 = !lean_is_exclusive(x_1039); if (x_1040 == 0) { @@ -27146,7 +26782,7 @@ lean_ctor_set(x_1060, 1, x_1047); lean_ctor_set(x_1060, 2, x_1057); lean_ctor_set(x_1060, 3, x_1058); lean_inc(x_1); -x_1061 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1060, x_1056); +x_1061 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1060, x_1056); if (lean_obj_tag(x_1061) == 0) { lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; uint8_t x_1067; @@ -27264,7 +26900,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1090 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1055); +x_1090 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1055); x_1091 = !lean_is_exclusive(x_1090); if (x_1091 == 0) { @@ -27355,7 +26991,7 @@ lean_ctor_set(x_1111, 1, x_1098); lean_ctor_set(x_1111, 2, x_1108); lean_ctor_set(x_1111, 3, x_1109); lean_inc(x_1); -x_1112 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1111, x_1107); +x_1112 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1111, x_1107); if (lean_obj_tag(x_1112) == 0) { lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; uint8_t x_1118; @@ -27473,7 +27109,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1141 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1106); +x_1141 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1106); x_1142 = !lean_is_exclusive(x_1141); if (x_1142 == 0) { @@ -27562,7 +27198,7 @@ lean_ctor_set(x_1162, 1, x_1149); lean_ctor_set(x_1162, 2, x_1159); lean_ctor_set(x_1162, 3, x_1160); lean_inc(x_1); -x_1163 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1162, x_1158); +x_1163 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1162, x_1158); if (lean_obj_tag(x_1163) == 0) { lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; uint8_t x_1169; @@ -27680,7 +27316,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1192 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1157); +x_1192 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1157); x_1193 = !lean_is_exclusive(x_1192); if (x_1193 == 0) { @@ -27751,7 +27387,7 @@ lean_ctor_set(x_1214, 1, x_1201); lean_ctor_set(x_1214, 2, x_1211); lean_ctor_set(x_1214, 3, x_1212); lean_inc(x_1); -x_1215 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1214, x_1210); +x_1215 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1214, x_1210); if (lean_obj_tag(x_1215) == 0) { lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; uint8_t x_1221; @@ -27869,7 +27505,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1244 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1209); +x_1244 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1209); x_1245 = !lean_is_exclusive(x_1244); if (x_1245 == 0) { @@ -28000,7 +27636,7 @@ lean_ctor_set(x_1294, 1, x_1281); lean_ctor_set(x_1294, 2, x_1291); lean_ctor_set(x_1294, 3, x_1292); lean_inc(x_1); -x_1295 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1294, x_1290); +x_1295 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1294, x_1290); if (lean_obj_tag(x_1295) == 0) { lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; uint8_t x_1301; @@ -28118,7 +27754,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1324 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1289); +x_1324 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1289); x_1325 = !lean_is_exclusive(x_1324); if (x_1325 == 0) { @@ -28209,7 +27845,7 @@ lean_ctor_set(x_1345, 1, x_1332); lean_ctor_set(x_1345, 2, x_1342); lean_ctor_set(x_1345, 3, x_1343); lean_inc(x_1); -x_1346 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1345, x_1341); +x_1346 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1345, x_1341); if (lean_obj_tag(x_1346) == 0) { lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; uint8_t x_1352; @@ -28327,7 +27963,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1375 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1340); +x_1375 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1340); x_1376 = !lean_is_exclusive(x_1375); if (x_1376 == 0) { @@ -28416,7 +28052,7 @@ lean_ctor_set(x_1396, 1, x_1383); lean_ctor_set(x_1396, 2, x_1393); lean_ctor_set(x_1396, 3, x_1394); lean_inc(x_1); -x_1397 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1396, x_1392); +x_1397 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1396, x_1392); if (lean_obj_tag(x_1397) == 0) { lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; uint8_t x_1403; @@ -28534,7 +28170,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1426 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1391); +x_1426 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1391); x_1427 = !lean_is_exclusive(x_1426); if (x_1427 == 0) { @@ -28605,7 +28241,7 @@ lean_ctor_set(x_1448, 1, x_1435); lean_ctor_set(x_1448, 2, x_1445); lean_ctor_set(x_1448, 3, x_1446); lean_inc(x_1); -x_1449 = l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f(x_1, x_1448, x_1444); +x_1449 = l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f(x_1, x_1448, x_1444); if (lean_obj_tag(x_1449) == 0) { lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; uint8_t x_1455; @@ -28723,7 +28359,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1478 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_1443); +x_1478 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_1443); x_1479 = !lean_is_exclusive(x_1478); if (x_1479 == 0) { @@ -28794,7 +28430,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_42__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_46__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -28920,7 +28556,7 @@ x_19 = l_Lean_Syntax_getArg(x_1, x_18); lean_dec(x_1); lean_inc(x_5); lean_inc(x_3); -x_20 = l___private_Lean_Elab_Match_33__waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_20 = l___private_Lean_Elab_Match_37__waitExpectedType(x_2, 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; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -28933,7 +28569,7 @@ x_23 = l_Lean_mkOptionalNode___closed__2; x_24 = lean_array_push(x_23, x_19); x_25 = l_Array_empty___closed__1; x_26 = l_Lean_mkOptionalNode___closed__1; -x_27 = l___private_Lean_Elab_Match_32__elabMatchAux(x_24, x_25, x_26, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +x_27 = l___private_Lean_Elab_Match_36__elabMatchAux(x_24, x_25, x_26, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_22); lean_dec(x_24); return x_27; } @@ -28993,6 +28629,7 @@ lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Meta_Match_MatchPatternAttr(lean_object*); lean_object* initialize_Lean_Meta_Match_Match(lean_object*); lean_object* initialize_Lean_Elab_SyntheticMVars(lean_object*); +lean_object* initialize_Lean_Elab_App(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Match(lean_object* w) { lean_object * res; @@ -29010,6 +28647,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_SyntheticMVars(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_App(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1 = _init_l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1); l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__2 = _init_l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__2(); @@ -29095,98 +28735,98 @@ l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2 = _init_l___pr lean_mark_persistent(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2); l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3 = _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3); -l___private_Lean_Elab_Match_15__processVar___closed__1 = _init_l___private_Lean_Elab_Match_15__processVar___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__1); -l___private_Lean_Elab_Match_15__processVar___closed__2 = _init_l___private_Lean_Elab_Match_15__processVar___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__2); -l___private_Lean_Elab_Match_15__processVar___closed__3 = _init_l___private_Lean_Elab_Match_15__processVar___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__3); -l___private_Lean_Elab_Match_15__processVar___closed__4 = _init_l___private_Lean_Elab_Match_15__processVar___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__4); -l___private_Lean_Elab_Match_15__processVar___closed__5 = _init_l___private_Lean_Elab_Match_15__processVar___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__5); -l___private_Lean_Elab_Match_15__processVar___closed__6 = _init_l___private_Lean_Elab_Match_15__processVar___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__6); -l___private_Lean_Elab_Match_15__processVar___closed__7 = _init_l___private_Lean_Elab_Match_15__processVar___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__7); -l___private_Lean_Elab_Match_15__processVar___closed__8 = _init_l___private_Lean_Elab_Match_15__processVar___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__8); -l___private_Lean_Elab_Match_15__processVar___closed__9 = _init_l___private_Lean_Elab_Match_15__processVar___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__9); -l___private_Lean_Elab_Match_16__processIdAux___closed__1 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__1); -l___private_Lean_Elab_Match_16__processIdAux___closed__2 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__2); -l___private_Lean_Elab_Match_16__processIdAux___closed__3 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__3); -l___private_Lean_Elab_Match_16__processIdAux___closed__4 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__4); -l___private_Lean_Elab_Match_16__processIdAux___closed__5 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__5); -l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1); -l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2); -l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__1); -l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__2); -l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___closed__4); -l___private_Lean_Elab_Match_20__collect___main___closed__1 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__1); -l___private_Lean_Elab_Match_20__collect___main___closed__2 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__2); -l___private_Lean_Elab_Match_20__collect___main___closed__3 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__3); -l___private_Lean_Elab_Match_20__collect___main___closed__4 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__4); -l___private_Lean_Elab_Match_20__collect___main___closed__5 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__5); -l___private_Lean_Elab_Match_20__collect___main___closed__6 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__6); -l___private_Lean_Elab_Match_20__collect___main___closed__7 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__7); -l___private_Lean_Elab_Match_20__collect___main___closed__8 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__8); -l___private_Lean_Elab_Match_20__collect___main___closed__9 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__9); -l___private_Lean_Elab_Match_20__collect___main___closed__10 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__10); -l___private_Lean_Elab_Match_20__collect___main___closed__11 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__11); -l___private_Lean_Elab_Match_20__collect___main___closed__12 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__12); -l___private_Lean_Elab_Match_20__collect___main___closed__13 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__13); -l___private_Lean_Elab_Match_20__collect___main___closed__14 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__14); -l___private_Lean_Elab_Match_20__collect___main___closed__15 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__15); -l___private_Lean_Elab_Match_20__collect___main___closed__16 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__16); -l___private_Lean_Elab_Match_20__collect___main___closed__17 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__17); -l___private_Lean_Elab_Match_20__collect___main___closed__18 = _init_l___private_Lean_Elab_Match_20__collect___main___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___closed__18); +l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__1); +l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_resolveId_x3f___closed__2); +l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__throwInvalidPattern___rarg___closed__3); +l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited___closed__1); +l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited = _init_l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_inhabited); +l___private_Lean_Elab_Match_17__finalize___closed__1 = _init_l___private_Lean_Elab_Match_17__finalize___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__finalize___closed__1); +l___private_Lean_Elab_Match_17__finalize___closed__2 = _init_l___private_Lean_Elab_Match_17__finalize___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__finalize___closed__2); +l___private_Lean_Elab_Match_17__finalize___closed__3 = _init_l___private_Lean_Elab_Match_17__finalize___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_17__finalize___closed__3); +l___private_Lean_Elab_Match_20__pushNewArg___closed__1 = _init_l___private_Lean_Elab_Match_20__pushNewArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__pushNewArg___closed__1); +l___private_Lean_Elab_Match_21__processExplicitArg___closed__1 = _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_21__processExplicitArg___closed__1); +l___private_Lean_Elab_Match_21__processExplicitArg___closed__2 = _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_21__processExplicitArg___closed__2); +l___private_Lean_Elab_Match_21__processExplicitArg___closed__3 = _init_l___private_Lean_Elab_Match_21__processExplicitArg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_21__processExplicitArg___closed__3); +l___private_Lean_Elab_Match_22__processImplicitArg___closed__1 = _init_l___private_Lean_Elab_Match_22__processImplicitArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_22__processImplicitArg___closed__1); +l___private_Lean_Elab_Match_24__processVar___closed__1 = _init_l___private_Lean_Elab_Match_24__processVar___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__1); +l___private_Lean_Elab_Match_24__processVar___closed__2 = _init_l___private_Lean_Elab_Match_24__processVar___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__2); +l___private_Lean_Elab_Match_24__processVar___closed__3 = _init_l___private_Lean_Elab_Match_24__processVar___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__3); +l___private_Lean_Elab_Match_24__processVar___closed__4 = _init_l___private_Lean_Elab_Match_24__processVar___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__4); +l___private_Lean_Elab_Match_24__processVar___closed__5 = _init_l___private_Lean_Elab_Match_24__processVar___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__5); +l___private_Lean_Elab_Match_24__processVar___closed__6 = _init_l___private_Lean_Elab_Match_24__processVar___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__6); +l___private_Lean_Elab_Match_24__processVar___closed__7 = _init_l___private_Lean_Elab_Match_24__processVar___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__7); +l___private_Lean_Elab_Match_24__processVar___closed__8 = _init_l___private_Lean_Elab_Match_24__processVar___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__8); +l___private_Lean_Elab_Match_24__processVar___closed__9 = _init_l___private_Lean_Elab_Match_24__processVar___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__processVar___closed__9); +l___private_Lean_Elab_Match_26__collect___main___closed__1 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__1); +l___private_Lean_Elab_Match_26__collect___main___closed__2 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__2); +l___private_Lean_Elab_Match_26__collect___main___closed__3 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__3); +l___private_Lean_Elab_Match_26__collect___main___closed__4 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__4); +l___private_Lean_Elab_Match_26__collect___main___closed__5 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__5); +l___private_Lean_Elab_Match_26__collect___main___closed__6 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__6); +l___private_Lean_Elab_Match_26__collect___main___closed__7 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__7); +l___private_Lean_Elab_Match_26__collect___main___closed__8 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__8); +l___private_Lean_Elab_Match_26__collect___main___closed__9 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__9); +l___private_Lean_Elab_Match_26__collect___main___closed__10 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__10); +l___private_Lean_Elab_Match_26__collect___main___closed__11 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__11); +l___private_Lean_Elab_Match_26__collect___main___closed__12 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__12); +l___private_Lean_Elab_Match_26__collect___main___closed__13 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__13); +l___private_Lean_Elab_Match_26__collect___main___closed__14 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__14); +l___private_Lean_Elab_Match_26__collect___main___closed__15 = _init_l___private_Lean_Elab_Match_26__collect___main___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__collect___main___closed__15); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__1(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__1); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__2); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__4___closed__3); -l___private_Lean_Elab_Match_21__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_21__collectPatternVars___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_21__collectPatternVars___closed__1); -l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1); -l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2); -l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3); +l___private_Lean_Elab_Match_27__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_27__collectPatternVars___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__collectPatternVars___closed__1); +l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__1); +l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__2); +l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatternsAux___main___closed__3); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1(); lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__1); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__2(); @@ -29205,12 +28845,12 @@ l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___ lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__8); l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9(); lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__2___closed__9); -l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1); -l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2); -l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3); +l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_33__throwInvalidPattern___rarg___closed__3); l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1); l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2(); @@ -29245,52 +28885,52 @@ l_Lean_Elab_Term_reportMatcherResultErrors___closed__6 = _init_l_Lean_Elab_Term_ lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___closed__6); l_Lean_Elab_Term_reportMatcherResultErrors___closed__7 = _init_l_Lean_Elab_Term_reportMatcherResultErrors___closed__7(); lean_mark_persistent(l_Lean_Elab_Term_reportMatcherResultErrors___closed__7); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__1 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__1); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__2 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__2); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__3 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__3); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__4 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__4); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__5 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__5); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__6 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__6); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__7 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__7); -l___private_Lean_Elab_Match_32__elabMatchAux___closed__8 = _init_l___private_Lean_Elab_Match_32__elabMatchAux___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_32__elabMatchAux___closed__8); -l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__mkMatchType___main___closed__1); -l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__mkMatchType___main___closed__2); -l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__mkMatchType___main___closed__3); -l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__mkMatchType___main___closed__4); -l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_35__mkMatchType___main___closed__5); -l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__1); -l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__2); -l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__3); -l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__4); -l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_37__mkNewDiscrs___main___closed__5); -l___private_Lean_Elab_Match_38__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_38__mkNewPatterns___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_38__mkNewPatterns___main___closed__1); -l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_41__expandMatchDiscr_x3f___closed__1); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__1 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__1); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__2 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__2); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__3 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__3); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__4 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__4); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__5 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__5); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__6 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__6); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__7 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__7); +l___private_Lean_Elab_Match_36__elabMatchAux___closed__8 = _init_l___private_Lean_Elab_Match_36__elabMatchAux___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_36__elabMatchAux___closed__8); +l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_39__mkMatchType___main___closed__1); +l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_39__mkMatchType___main___closed__2); +l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_39__mkMatchType___main___closed__3); +l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_39__mkMatchType___main___closed__4); +l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_39__mkMatchType___main___closed__5); +l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__1); +l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__2); +l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__3); +l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__4); +l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_41__mkNewDiscrs___main___closed__5); +l___private_Lean_Elab_Match_42__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_42__mkNewPatterns___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_42__mkNewPatterns___main___closed__1); +l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_45__expandMatchDiscr_x3f___closed__1); l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabMatch(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_Match_42__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Elab_Match_46__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 9fa28af031..04c2b28fcc 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -16,12 +16,12 @@ extern "C" { lean_object* l_Lean_Elab_Term_getLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux(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__7; -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_36__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_3__check___closed__24; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_19__checkLetRecsToLiftTypes___spec__1___closed__3; +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_10__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_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); @@ -33,6 +33,7 @@ lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__16; 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*); +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__8; lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -45,6 +46,7 @@ lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_ 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_Lean_Syntax_getOptional_x3f(lean_object*); +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,10 +63,12 @@ lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_30__pickMaxFV lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__3; lean_object* l___private_Lean_Elab_MutualDef_6__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_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_36__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_Lean_Elab_MutualDef_7__withFunLocalDecls(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_6__withFunLocalDeclsAux(lean_object*); 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_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__3(lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); @@ -82,18 +86,23 @@ lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__11; lean_object* l___private_Lean_Elab_MutualDef_21__isModified___rarg(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_10__collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_10__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_Lean_Elab_MutualDef_8__declValToTerm___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_9__elabFunValues___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_Array_umapMAux___main___at_Lean_LocalContext_getFVars___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_19__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* lean_private_to_user_name(lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +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_21__isModified(lean_object*); lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_37__getAllUserLevelNames(lean_object*); +lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_34__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___private_Lean_Elab_MutualDef_38__getAllUserLevelNames(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_12__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_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; @@ -112,23 +121,26 @@ lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___boxed(lean_ob lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_23__markModified___boxed(lean_object*); +extern lean_object* l_String_splitAux___main___closed__1; 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_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_27__updateUsedVarsOf___spec__1___boxed(lean_object*, 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_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_34__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_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_34__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___private_Lean_Elab_MutualDef_6__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* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, 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_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor(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_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__20; uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_31__preprocess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,6 +154,7 @@ lean_object* l_Std_RBNode_find___main___at_Lean_Elab_Term_MutualClosure_Replacem lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_19__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_4__elabFunType___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_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___spec__1___closed__1; 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___private_Lean_Elab_MutualDef_10__collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,6 +163,7 @@ lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__6; lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__2; lean_object* l___private_Lean_Elab_MutualDef_29__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___private_Lean_Elab_MutualDef_37__mkLetRecClosures___boxed(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_Lean_Elab_MutualDef_30__pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_28__fixpoint___boxed(lean_object*); @@ -163,13 +177,14 @@ uint8_t l_List_beq___main___at_Lean_Elab_OpenDecl_HasToString___spec__1(lean_obj extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__13; +lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_37__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_forM___main___at___private_Lean_Elab_MutualDef_10__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_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_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*); lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_36__mkLetRecClosures(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__mkClosureForAux___main___closed__6; 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*); @@ -183,6 +198,7 @@ lean_object* l_Lean_Elab_Term_elabMutualDef(lean_object*, lean_object*, lean_obj lean_object* l___private_Lean_Elab_MutualDef_24__getUsedFVarsMap(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_37__mkLetRecClosures(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_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); @@ -203,7 +219,6 @@ lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_Term_M 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___private_Lean_Elab_MutualDef_36__mkLetRecClosures___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_insertReplacementForLetRecs___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__3; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -214,6 +229,7 @@ lean_object* l_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_26__me lean_object* lean_array_fset(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_getConstInfo___rarg___lambda__1___closed__5; +lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_34__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*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__8; lean_object* l___private_Lean_Elab_MutualDef_14__isTheorem___boxed(lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__5; @@ -226,7 +242,9 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForLetRecs(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_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__3; +lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureFor(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_19__checkLetRecsToLiftTypes___spec__1___closed__2; lean_object* l___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; @@ -244,7 +262,6 @@ lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetR lean_object* l___private_Lean_Elab_MutualDef_28__fixpoint___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_24__getUsedFVarsMap___boxed(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__6(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_35__mkLetRecClosureFor___spec__3___rarg(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*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; @@ -255,13 +272,13 @@ lean_object* l___private_Lean_Elab_MutualDef_25__modifyUsedFVars___boxed(lean_ob extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_CollectFVars_main___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_35__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___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___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_6__withFunLocalDeclsAux___main(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_27__updateUsedVarsOf___lambda__1(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_13__isExample___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; lean_object* l_Std_RBNode_fold___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FileMap_toPosition(lean_object*, 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_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -269,6 +286,7 @@ lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__4; lean_object* l___private_Lean_Elab_MutualDef_17__typeHasRecFun___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__6; lean_object* l___private_Lean_Elab_MutualDef_11__removeUnusedVars___closed__1; +lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_34__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_List_foldl___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__9; @@ -301,6 +319,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___boxed(lean_object*, lean_ lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(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_Elab_log___at___private_Lean_Elab_MutualDef_34__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*); lean_object* l_Array_feraseIdx___rarg(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_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_9__elabFunValues___spec__2___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,10 +329,12 @@ extern lean_object* l_Std_HashSet_Inhabited___closed__1; lean_object* l___private_Lean_Elab_MutualDef_26__merge___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_MutualDef_14__isTheorem(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_34__mkClosureForAux___main___closed__7; 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_8__declValToTerm___closed__1; size_t l_USize_mod(size_t, size_t); +lean_object* l___private_Lean_Elab_MutualDef_38__getAllUserLevelNames___boxed(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_13__isExample___boxed(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*); @@ -332,6 +353,7 @@ lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__5; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_5__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*); size_t lean_ptr_addr(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__18; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_13__isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,13 +362,16 @@ lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers(lean_object*, lea lean_object* l_Lean_LocalDecl_index(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_18__getFunName___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_4__elabFunType(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__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_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_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__6; lean_object* l___private_Lean_Elab_MutualDef_10__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_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_9__elabFunValues___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); +extern lean_object* l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3; lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_5__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_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__21; lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); @@ -366,7 +391,6 @@ lean_object* l___private_Lean_Elab_MutualDef_16__instantiateMVarsAtLetRecToLift( lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__17; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_5__elabHeaders___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___private_Lean_Elab_MutualDef_36__mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_Inhabited; lean_object* l___private_Lean_Elab_MutualDef_30__pickMaxFVar_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__8; @@ -374,25 +398,29 @@ lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__8; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_5__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_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_MutualDef_10__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_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__5; lean_object* l___private_Lean_Elab_MutualDef_22__resetModified___boxed(lean_object*); -lean_object* l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__2(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_36__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_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_27__updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, 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*, 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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_9__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* l___private_Lean_Elab_MutualDef_37__getAllUserLevelNames___boxed(lean_object*); +lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_36__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_MetavarContext_getDelayedRoot___main(lean_object*, lean_object*); +lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosures___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_36__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_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___private_Lean_Elab_MutualDef_11__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_Std_RBNode_foldM___main___at___private_Lean_Elab_MutualDef_26__merge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_36__mkLetRecClosures___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_9__elabFunValues___spec__1(lean_object*); 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_Syntax_getPos(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_30__pickMaxFVar_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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*); @@ -402,13 +430,12 @@ lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___boxed(lean_object*); lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__2(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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_5__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* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__3(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_MutualDef_36__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___private_Lean_Elab_MutualDef_6__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*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers___closed__7; @@ -431,17 +458,16 @@ lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_5__e lean_object* l_List_foldl___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); 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___private_Lean_Elab_MutualDef_31__preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_23__markModified(lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_MutualClosure_main___spec__9___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_18__getFunName___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_36__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___private_Lean_Elab_MutualDef_12__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_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_9__elabFunValues___spec__2___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(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_17__typeHasRecFun___spec__2___boxed(lean_object*, 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_24__getUsedFVarsMap___rarg(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_37__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_3__check___closed__20; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__10; @@ -449,6 +475,7 @@ lean_object* l___private_Lean_Elab_MutualDef_26__merge(lean_object*, lean_object lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_5__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_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_34__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_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*); extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; @@ -456,6 +483,7 @@ extern lean_object* l_Lean_Elab_mkDeclName___rarg___closed__3; uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_MutualDef_14__isTheorem___spec__1(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_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_5__elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_5__elabHeaders___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -463,7 +491,6 @@ lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__21; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__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_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); @@ -477,6 +504,7 @@ lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Mutual lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__11; lean_object* l___private_Lean_Elab_MutualDef_8__declValToTerm___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_MutualDef_29__mkFreeVarMap___spec__1(lean_object*); uint8_t l___private_Lean_Elab_MutualDef_13__isExample(lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -491,6 +519,7 @@ lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_34__mkClosureForAu 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_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__12; lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_28__fixpoint___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, 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_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_20__mkInitialUsedFVarsMap___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -499,17 +528,16 @@ lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_10__collectUs lean_object* l___private_Lean_Elab_MutualDef_7__withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_DefViewElabHeader_inhabited; lean_object* l___private_Lean_Elab_MutualDef_33__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_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_35__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___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_List_findSome_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_9__elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_35__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_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_Lean_Elab_MutualDef_12__withUsedWhen(lean_object*); extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; +lean_object* l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2; 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*); @@ -1883,168 +1911,189 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_4__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* l___private_Lean_Elab_MutualDef_4__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_10; -x_10 = lean_ctor_get(x_2, 4); -lean_inc(x_10); -if (lean_obj_tag(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; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_11 = lean_ctor_get(x_2, 3); +lean_object* x_11; +x_11 = lean_ctor_get(x_3, 4); lean_inc(x_11); -lean_dec(x_2); -x_12 = lean_ctor_get(x_7, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_7, 1); -lean_inc(x_13); -x_14 = lean_ctor_get(x_7, 2); -lean_inc(x_14); -x_15 = lean_ctor_get(x_7, 3); -lean_inc(x_15); -x_16 = l_Lean_replaceRef(x_11, x_15); -lean_dec(x_11); -x_17 = l_Lean_replaceRef(x_16, x_15); -lean_dec(x_16); -x_18 = l_Lean_replaceRef(x_17, x_15); -lean_dec(x_15); -lean_dec(x_17); -x_19 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_19, 2, x_14); -lean_ctor_set(x_19, 3, x_18); -x_20 = 0; -x_21 = lean_box(0); +lean_dec(x_3); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = l_Lean_mkHole(x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); lean_inc(x_5); -lean_inc(x_3); -x_22 = l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__2(x_20, x_21, x_3, x_4, x_5, x_6, x_19, x_8, x_9); -lean_dec(x_19); +lean_inc(x_4); +x_13 = l_Lean_Elab_Term_elabType(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; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_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_15); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_16; +} +else +{ +uint8_t x_17; +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_2); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_13); +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_ctor_get(x_11, 0); +lean_inc(x_21); +lean_dec(x_11); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_22 = l_Lean_Elab_Term_elabType(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_2); -x_26 = lean_ctor_get(x_10, 0); -lean_inc(x_26); -lean_dec(x_10); +x_25 = 0; +x_26 = lean_box(0); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_27 = l_Lean_Elab_Term_elabType(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_27 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_25, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_24); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_27, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); lean_dec(x_27); -x_30 = 0; -x_31 = lean_box(0); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_32 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_30, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -lean_inc(x_3); -x_34 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_1, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_36); +x_29 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -return x_37; -} -else -{ -uint8_t x_38; -lean_dec(x_28); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_32); -if (x_38 == 0) -{ return x_32; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_32, 0); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_32); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -uint8_t x_42; +uint8_t x_33; +lean_dec(x_23); +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_1); -x_42 = !lean_is_exclusive(x_27); -if (x_42 == 0) +lean_dec(x_2); +x_33 = !lean_is_exclusive(x_27); +if (x_33 == 0) { return x_27; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_27, 0); -x_44 = lean_ctor_get(x_27, 1); -lean_inc(x_44); -lean_inc(x_43); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_27, 0); +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_inc(x_34); lean_dec(x_27); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } +else +{ +uint8_t x_37; +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_2); +x_37 = !lean_is_exclusive(x_22); +if (x_37 == 0) +{ +return x_22; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_22, 0); +x_39 = lean_ctor_get(x_22, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_22); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +} +lean_object* l___private_Lean_Elab_MutualDef_4__elabFunType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_MutualDef_4__elabFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; } } lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_5__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) { @@ -3223,7 +3272,9 @@ return x_99; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_5__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_16; lean_object* x_17; +x_16 = lean_ctor_get(x_1, 5); +lean_inc(x_16); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -3232,32 +3283,30 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_1); lean_inc(x_8); -x_16 = l___private_Lean_Elab_MutualDef_4__elabFunType(x_8, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) +x_17 = l___private_Lean_Elab_MutualDef_4__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_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); -x_20 = lean_array_get_size(x_8); -lean_dec(x_8); -x_21 = lean_ctor_get(x_1, 5); -lean_inc(x_21); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); lean_dec(x_1); +x_21 = lean_array_get_size(x_8); +lean_dec(x_8); x_22 = lean_alloc_ctor(0, 8, 1); lean_ctor_set(x_22, 0, x_2); lean_ctor_set(x_22, 1, x_3); lean_ctor_set(x_22, 2, x_4); lean_ctor_set(x_22, 3, x_5); lean_ctor_set(x_22, 4, x_6); -lean_ctor_set(x_22, 5, x_20); -lean_ctor_set(x_22, 6, x_17); -lean_ctor_set(x_22, 7, x_21); -lean_ctor_set_uint8(x_22, sizeof(void*)*8, x_19); -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_18); +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); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3317,6 +3366,7 @@ return x_33; else { uint8_t x_34; +lean_dec(x_16); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -3331,19 +3381,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_16); +x_34 = !lean_is_exclusive(x_17); if (x_34 == 0) { -return x_16; +return x_17; } else { lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_16, 0); -x_36 = lean_ctor_get(x_16, 1); +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_dec(x_16); +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); @@ -3876,7 +3926,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualD _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___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); @@ -8226,6 +8276,331 @@ goto _start; } } } +lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_34__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) { +_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; uint8_t x_28; +x_15 = lean_ctor_get(x_5, 0); +x_16 = lean_ctor_get(x_5, 1); +x_17 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_FileMap_toPosition(x_16, x_20); +x_22 = lean_box(0); +x_23 = l_String_splitAux___main___closed__1; +lean_inc(x_15); +x_24 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_21); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set(x_24, 3, x_23); +lean_ctor_set(x_24, 4, x_18); +lean_ctor_set_uint8(x_24, sizeof(void*)*5, x_3); +x_25 = lean_st_ref_take(x_6, x_19); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_26, 2); +x_30 = l_Std_PersistentArray_push___rarg(x_29, x_24); +lean_ctor_set(x_26, 2, x_30); +x_31 = lean_st_ref_set(x_6, x_26, x_27); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +x_34 = lean_box(0); +lean_ctor_set(x_31, 0, x_34); +return x_31; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_35); +lean_dec(x_31); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 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_38 = lean_ctor_get(x_26, 0); +x_39 = lean_ctor_get(x_26, 1); +x_40 = lean_ctor_get(x_26, 2); +x_41 = lean_ctor_get(x_26, 3); +x_42 = lean_ctor_get(x_26, 4); +x_43 = lean_ctor_get(x_26, 5); +x_44 = lean_ctor_get(x_26, 6); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_26); +x_45 = l_Std_PersistentArray_push___rarg(x_40, x_24); +x_46 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_46, 0, x_38); +lean_ctor_set(x_46, 1, x_39); +lean_ctor_set(x_46, 2, x_45); +lean_ctor_set(x_46, 3, x_41); +lean_ctor_set(x_46, 4, x_42); +lean_ctor_set(x_46, 5, x_43); +lean_ctor_set(x_46, 6, x_44); +x_47 = lean_st_ref_set(x_6, x_46, x_27); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = lean_box(0); +if (lean_is_scalar(x_49)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_49; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_52 = lean_ctor_get(x_14, 0); +lean_inc(x_52); +lean_dec(x_14); +x_53 = lean_ctor_get(x_5, 0); +x_54 = lean_ctor_get(x_5, 1); +x_55 = l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Lean_FileMap_toPosition(x_54, x_52); +x_59 = lean_box(0); +x_60 = l_String_splitAux___main___closed__1; +lean_inc(x_53); +x_61 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_61, 0, x_53); +lean_ctor_set(x_61, 1, x_58); +lean_ctor_set(x_61, 2, x_59); +lean_ctor_set(x_61, 3, x_60); +lean_ctor_set(x_61, 4, x_56); +lean_ctor_set_uint8(x_61, sizeof(void*)*5, x_3); +x_62 = lean_st_ref_take(x_6, x_57); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = !lean_is_exclusive(x_63); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_63, 2); +x_67 = l_Std_PersistentArray_push___rarg(x_66, x_61); +lean_ctor_set(x_63, 2, x_67); +x_68 = lean_st_ref_set(x_6, x_63, x_64); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +x_71 = lean_box(0); +lean_ctor_set(x_68, 0, x_71); +return x_68; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_75 = lean_ctor_get(x_63, 0); +x_76 = lean_ctor_get(x_63, 1); +x_77 = lean_ctor_get(x_63, 2); +x_78 = lean_ctor_get(x_63, 3); +x_79 = lean_ctor_get(x_63, 4); +x_80 = lean_ctor_get(x_63, 5); +x_81 = lean_ctor_get(x_63, 6); +lean_inc(x_81); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_63); +x_82 = l_Std_PersistentArray_push___rarg(x_77, x_61); +x_83 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_83, 0, x_75); +lean_ctor_set(x_83, 1, x_76); +lean_ctor_set(x_83, 2, x_82); +lean_ctor_set(x_83, 3, x_78); +lean_ctor_set(x_83, 4, x_79); +lean_ctor_set(x_83, 5, x_80); +lean_ctor_set(x_83, 6, x_81); +x_84 = lean_st_ref_set(x_6, x_83, x_64); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_86 = x_84; +} else { + lean_dec_ref(x_84); + x_86 = lean_box(0); +} +x_87 = lean_box(0); +if (lean_is_scalar(x_86)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_86; +} +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_85); +return x_88; +} +} +} +} +lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_34__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) { +_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_34__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_34__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(10, 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_34__mkClosureForAux___main___spec__7(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mkClosure"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +x_2 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("toProcess: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", maxVar: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__6; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_MutualDef_34__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_34__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) { _start: { @@ -8250,614 +8625,661 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_14; lean_object* x_15; lean_object* x_170; lean_object* x_171; uint8_t x_172; x_14 = lean_ctor_get(x_11, 0); lean_inc(x_14); lean_dec(x_11); -x_15 = l_Array_erase___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__1(x_1, x_14); +x_170 = lean_ctor_get(x_7, 0); +lean_inc(x_170); +x_171 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2; +x_172 = l_Lean_checkTraceOption(x_170, x_171); +lean_dec(x_170); +if (x_172 == 0) +{ +x_15 = x_9; +goto block_169; +} +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_coeOfArrayExpr___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_34__mkClosureForAux___main___closed__5; +x_180 = lean_alloc_ctor(9, 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_34__mkClosureForAux___main___closed__8; +x_182 = lean_alloc_ctor(9, 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(9, 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_34__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; +} +block_169: +{ +lean_object* x_16; lean_object* x_17; +x_16 = l_Array_erase___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__1(x_1, x_14); lean_inc(x_5); lean_inc(x_3); lean_inc(x_14); -x_16 = l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); +x_17 = l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___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; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_18 = lean_ctor_get(x_16, 1); +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_17, 2); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 3); -lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_17, sizeof(void*)*4); lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 2); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 3); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_18, sizeof(void*)*4); +lean_dec(x_18); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_22 = l___private_Lean_Elab_MutualDef_33__pushLocalDecl(x_15, x_14, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_22) == 0) +x_23 = l___private_Lean_Elab_MutualDef_33__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_23; lean_object* x_24; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_22); -x_1 = x_23; -x_9 = x_24; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_1 = x_24; +x_9 = x_25; goto _start; } else { -uint8_t x_26; +uint8_t x_27; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_26 = !lean_is_exclusive(x_22); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_23); +if (x_27 == 0) { -return x_22; +return x_23; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_22, 0); -x_28 = lean_ctor_get(x_22, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_23, 0); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_22); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_dec(x_23); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } else { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_16, 1); -lean_inc(x_30); -lean_dec(x_16); -x_31 = !lean_is_exclusive(x_17); -if (x_31 == 0) +lean_object* x_31; uint8_t x_32; +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_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_32 = lean_ctor_get(x_17, 2); -x_33 = lean_ctor_get(x_17, 3); -x_34 = lean_ctor_get(x_17, 4); -x_35 = lean_ctor_get(x_17, 1); -lean_dec(x_35); -x_36 = lean_ctor_get(x_17, 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); lean_dec(x_36); -lean_inc(x_3); -x_37 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_30); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); +x_37 = lean_ctor_get(x_18, 0); lean_dec(x_37); -x_40 = l_Lean_NameSet_contains(x_38, x_14); +lean_inc(x_3); +x_38 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg(x_3, x_4, x_5, 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); -if (x_40 == 0) +x_41 = l_Lean_NameSet_contains(x_39, x_14); +lean_dec(x_39); +if (x_41 == 0) { -uint8_t x_41; lean_object* x_42; -lean_free_object(x_17); -lean_dec(x_34); -x_41 = 0; +uint8_t x_42; lean_object* x_43; +lean_free_object(x_18); +lean_dec(x_35); +x_42 = 0; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_42 = l___private_Lean_Elab_MutualDef_33__pushLocalDecl(x_15, x_14, x_32, x_33, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_42) == 0) +x_43 = l___private_Lean_Elab_MutualDef_33__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); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_1 = x_43; -x_9 = 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; goto _start; } else { -uint8_t x_46; +uint8_t x_47; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_43); +if (x_47 == 0) { -return x_42; +return x_43; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_42, 0); -x_48 = lean_ctor_get(x_42, 1); +lean_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_inc(x_47); -lean_dec(x_42); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +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; } } } else { -lean_object* x_50; +lean_object* x_51; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_50 = l___private_Lean_Elab_MutualDef_31__preprocess(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_50) == 0) +x_51 = l___private_Lean_Elab_MutualDef_31__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_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); +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); lean_inc(x_3); -x_53 = l___private_Lean_Elab_MutualDef_31__preprocess(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_52); -if (lean_obj_tag(x_53) == 0) +x_54 = l___private_Lean_Elab_MutualDef_31__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_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +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); -lean_dec(x_53); -x_56 = lean_st_ref_take(x_2, x_55); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +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); -lean_dec(x_56); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) +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_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; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_60 = lean_ctor_get(x_57, 0); -x_61 = lean_ctor_get(x_57, 1); -x_62 = lean_ctor_get(x_57, 2); -x_63 = x_60; -x_64 = lean_unsigned_to_nat(0u); +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_65 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__4(x_14, x_54, x_64, x_63); -x_66 = x_65; -x_67 = x_61; +x_66 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_68 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__5(x_14, x_54, x_64, x_67); -x_69 = x_68; -x_70 = 0; -lean_inc(x_54); -lean_inc(x_51); -lean_ctor_set(x_17, 4, x_54); -lean_ctor_set(x_17, 3, x_51); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 0, x_64); -lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_70); -x_71 = lean_array_push(x_62, x_17); -lean_ctor_set(x_57, 2, x_71); -lean_ctor_set(x_57, 1, x_69); -lean_ctor_set(x_57, 0, x_66); -x_72 = lean_st_ref_set(x_2, x_57, x_58); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = l___private_Lean_Elab_MutualDef_11__removeUnusedVars___closed__1; -x_75 = l_Lean_CollectFVars_main___main(x_51, x_74); -x_76 = l_Lean_CollectFVars_main___main(x_54, x_75); -x_77 = l___private_Lean_Elab_MutualDef_32__pushNewVars(x_15, x_76); -x_1 = x_77; -x_9 = x_73; +x_69 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_11__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_32__pushNewVars(x_16, x_77); +x_1 = x_78; +x_9 = x_74; goto _start; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_79 = lean_ctor_get(x_57, 0); -x_80 = lean_ctor_get(x_57, 1); -x_81 = lean_ctor_get(x_57, 2); -x_82 = lean_ctor_get(x_57, 3); +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_inc(x_79); -lean_dec(x_57); -x_83 = x_79; -x_84 = lean_unsigned_to_nat(0u); +lean_dec(x_58); +x_84 = x_80; +x_85 = lean_unsigned_to_nat(0u); lean_inc(x_14); -x_85 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__4(x_14, x_54, x_84, x_83); -x_86 = x_85; -x_87 = x_80; +x_86 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_88 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__5(x_14, x_54, x_84, x_87); -x_89 = x_88; -x_90 = 0; -lean_inc(x_54); -lean_inc(x_51); -lean_ctor_set(x_17, 4, x_54); -lean_ctor_set(x_17, 3, x_51); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 0, x_84); -lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_90); -x_91 = lean_array_push(x_81, x_17); -x_92 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_92, 0, x_86); -lean_ctor_set(x_92, 1, x_89); -lean_ctor_set(x_92, 2, x_91); -lean_ctor_set(x_92, 3, x_82); -x_93 = lean_st_ref_set(x_2, x_92, x_58); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -lean_dec(x_93); -x_95 = l___private_Lean_Elab_MutualDef_11__removeUnusedVars___closed__1; -x_96 = l_Lean_CollectFVars_main___main(x_51, x_95); -x_97 = l_Lean_CollectFVars_main___main(x_54, x_96); -x_98 = l___private_Lean_Elab_MutualDef_32__pushNewVars(x_15, x_97); -x_1 = x_98; -x_9 = x_94; +x_89 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_11__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_32__pushNewVars(x_16, x_98); +x_1 = x_99; +x_9 = x_95; goto _start; } } else { -uint8_t x_100; -lean_dec(x_51); -lean_free_object(x_17); -lean_dec(x_32); -lean_dec(x_15); +uint8_t x_101; +lean_dec(x_52); +lean_free_object(x_18); +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); lean_dec(x_3); -x_100 = !lean_is_exclusive(x_53); -if (x_100 == 0) +x_101 = !lean_is_exclusive(x_54); +if (x_101 == 0) { -return x_53; +return x_54; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_53, 0); -x_102 = lean_ctor_get(x_53, 1); +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_inc(x_102); -lean_inc(x_101); -lean_dec(x_53); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +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; } } } else { -uint8_t x_104; -lean_free_object(x_17); -lean_dec(x_34); -lean_dec(x_32); -lean_dec(x_15); +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); lean_dec(x_3); -x_104 = !lean_is_exclusive(x_50); -if (x_104 == 0) +x_105 = !lean_is_exclusive(x_51); +if (x_105 == 0) { -return x_50; +return x_51; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_50, 0); -x_106 = lean_ctor_get(x_50, 1); +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); +lean_inc(x_107); lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_50); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; +lean_dec(x_51); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; } } } } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_108 = lean_ctor_get(x_17, 2); -x_109 = lean_ctor_get(x_17, 3); -x_110 = lean_ctor_get(x_17, 4); +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_inc(x_108); -lean_dec(x_17); +lean_dec(x_18); lean_inc(x_3); -x_111 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_30); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +x_112 = l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__3___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_31); +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec(x_111); -x_114 = l_Lean_NameSet_contains(x_112, x_14); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); lean_dec(x_112); -if (x_114 == 0) +x_115 = l_Lean_NameSet_contains(x_113, x_14); +lean_dec(x_113); +if (x_115 == 0) { -uint8_t x_115; lean_object* x_116; -lean_dec(x_110); -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); lean_inc(x_3); -x_116 = l___private_Lean_Elab_MutualDef_33__pushLocalDecl(x_15, x_14, x_108, x_109, x_115, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_113); -if (lean_obj_tag(x_116) == 0) +x_117 = l___private_Lean_Elab_MutualDef_33__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_117; lean_object* x_118; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_116); -x_1 = x_117; -x_9 = 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_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +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); lean_dec(x_3); -x_120 = lean_ctor_get(x_116, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_116, 1); +x_121 = lean_ctor_get(x_117, 0); lean_inc(x_121); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_122 = x_116; +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_116); - x_122 = lean_box(0); + lean_dec_ref(x_117); + x_123 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); } else { - x_123 = x_122; + x_124 = x_123; } -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return 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_124; +lean_object* x_125; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_124 = l___private_Lean_Elab_MutualDef_31__preprocess(x_109, x_3, x_4, x_5, x_6, x_7, x_8, x_113); -if (lean_obj_tag(x_124) == 0) +x_125 = l___private_Lean_Elab_MutualDef_31__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_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_125, 0); lean_inc(x_126); -lean_dec(x_124); +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); lean_inc(x_3); -x_127 = l___private_Lean_Elab_MutualDef_31__preprocess(x_110, x_3, x_4, x_5, x_6, x_7, x_8, x_126); -if (lean_obj_tag(x_127) == 0) +x_128 = l___private_Lean_Elab_MutualDef_31__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_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); +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); -lean_dec(x_127); -x_130 = lean_st_ref_take(x_2, x_129); -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); +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); -lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); +x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); -x_134 = lean_ctor_get(x_131, 1); +lean_dec(x_131); +x_134 = lean_ctor_get(x_132, 0); lean_inc(x_134); -x_135 = lean_ctor_get(x_131, 2); +x_135 = lean_ctor_get(x_132, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_131, 3); +x_136 = lean_ctor_get(x_132, 2); lean_inc(x_136); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - lean_ctor_release(x_131, 2); - lean_ctor_release(x_131, 3); - x_137 = x_131; +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_131); - x_137 = lean_box(0); + lean_dec_ref(x_132); + x_138 = lean_box(0); } -x_138 = x_133; -x_139 = lean_unsigned_to_nat(0u); +x_139 = x_134; +x_140 = lean_unsigned_to_nat(0u); lean_inc(x_14); -x_140 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__4(x_14, x_128, x_139, x_138); -x_141 = x_140; -x_142 = x_134; +x_141 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_143 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___spec__5(x_14, x_128, x_139, x_142); -x_144 = x_143; -x_145 = 0; -lean_inc(x_128); -lean_inc(x_125); -x_146 = lean_alloc_ctor(1, 5, 1); -lean_ctor_set(x_146, 0, x_139); -lean_ctor_set(x_146, 1, x_14); -lean_ctor_set(x_146, 2, x_108); -lean_ctor_set(x_146, 3, x_125); -lean_ctor_set(x_146, 4, x_128); -lean_ctor_set_uint8(x_146, sizeof(void*)*5, x_145); -x_147 = lean_array_push(x_135, x_146); -if (lean_is_scalar(x_137)) { - x_148 = lean_alloc_ctor(0, 4, 0); +x_144 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_34__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_148 = x_137; + x_149 = x_138; } -lean_ctor_set(x_148, 0, x_141); -lean_ctor_set(x_148, 1, x_144); -lean_ctor_set(x_148, 2, x_147); -lean_ctor_set(x_148, 3, x_136); -x_149 = lean_st_ref_set(x_2, x_148, x_132); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec(x_149); -x_151 = l___private_Lean_Elab_MutualDef_11__removeUnusedVars___closed__1; -x_152 = l_Lean_CollectFVars_main___main(x_125, x_151); -x_153 = l_Lean_CollectFVars_main___main(x_128, x_152); -x_154 = l___private_Lean_Elab_MutualDef_32__pushNewVars(x_15, x_153); -x_1 = x_154; -x_9 = x_150; +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_11__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_32__pushNewVars(x_16, x_154); +x_1 = x_155; +x_9 = x_151; goto _start; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_125); -lean_dec(x_108); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_156 = lean_ctor_get(x_127, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_127, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_158 = x_127; -} else { - lean_dec_ref(x_127); - x_158 = lean_box(0); -} -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); -} else { - x_159 = x_158; -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; -} -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_110); -lean_dec(x_108); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_160 = lean_ctor_get(x_124, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_124, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_162 = x_124; -} else { - lean_dec_ref(x_124); - x_162 = lean_box(0); -} -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); -} else { - x_163 = x_162; -} -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; -} -} -} -} -} -else -{ -uint8_t x_164; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_164 = !lean_is_exclusive(x_16); -if (x_164 == 0) -{ -return x_16; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_16, 0); -x_166 = lean_ctor_get(x_16, 1); -lean_inc(x_166); -lean_inc(x_165); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_126); +lean_dec(x_109); lean_dec(x_16); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +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); +lean_dec(x_3); +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); +lean_dec(x_3); +x_165 = !lean_is_exclusive(x_17); +if (x_165 == 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_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; +} } } } @@ -8925,6 +9347,56 @@ lean_dec(x_2); return x_5; } } +lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_MutualDef_34__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_34__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_34__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_34__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_34__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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} lean_object* l___private_Lean_Elab_MutualDef_34__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) { _start: { @@ -8953,7 +9425,157 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_35__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___private_Lean_Elab_MutualDef_35__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; +x_10 = l_Array_empty___closed__1; +x_11 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_2); +lean_ctor_set(x_11, 2, x_10); +lean_ctor_set(x_11, 3, x_10); +x_12 = lean_st_mk_ref(x_11, x_9); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main(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; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_get(x_13, x_16); +lean_dec(x_13); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 2); +x_23 = lean_ctor_get(x_19, 3); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_reverseAux___main___rarg(x_21, x_24); +x_26 = l_Array_reverseAux___main___rarg(x_22, x_24); +x_27 = l_Array_reverseAux___main___rarg(x_23, x_24); +lean_ctor_set(x_19, 3, x_27); +lean_ctor_set(x_19, 2, x_26); +lean_ctor_set(x_19, 0, x_25); +return x_17; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +x_30 = lean_ctor_get(x_19, 2); +x_31 = lean_ctor_get(x_19, 3); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_32 = lean_unsigned_to_nat(0u); +x_33 = l_Array_reverseAux___main___rarg(x_28, x_32); +x_34 = l_Array_reverseAux___main___rarg(x_30, x_32); +x_35 = l_Array_reverseAux___main___rarg(x_31, x_32); +x_36 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_34); +lean_ctor_set(x_36, 3, x_35); +lean_ctor_set(x_17, 0, x_36); +return x_17; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_37 = lean_ctor_get(x_17, 0); +x_38 = lean_ctor_get(x_17, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_17); +x_39 = lean_ctor_get(x_37, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_37, 2); +lean_inc(x_41); +x_42 = lean_ctor_get(x_37, 3); +lean_inc(x_42); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + lean_ctor_release(x_37, 2); + lean_ctor_release(x_37, 3); + x_43 = x_37; +} else { + lean_dec_ref(x_37); + x_43 = lean_box(0); +} +x_44 = lean_unsigned_to_nat(0u); +x_45 = l_Array_reverseAux___main___rarg(x_39, x_44); +x_46 = l_Array_reverseAux___main___rarg(x_41, x_44); +x_47 = l_Array_reverseAux___main___rarg(x_42, x_44); +if (lean_is_scalar(x_43)) { + x_48 = lean_alloc_ctor(0, 4, 0); +} else { + x_48 = x_43; +} +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_40); +lean_ctor_set(x_48, 2, x_46); +lean_ctor_set(x_48, 3, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_38); +return x_49; +} +} +else +{ +uint8_t x_50; +lean_dec(x_13); +x_50 = !lean_is_exclusive(x_15); +if (x_50 == 0) +{ +return x_15; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_15, 0); +x_52 = lean_ctor_get(x_15, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_15); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +lean_object* l___private_Lean_Elab_MutualDef_35__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_35__mkClosureFor(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} +lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_36__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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -9151,7 +9773,7 @@ return x_57; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -9188,11 +9810,11 @@ goto _start; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_35__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_Lean_Elab_MutualDef_36__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; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1), 10, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1), 10, 3); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_3); lean_closure_set(x_10, 2, x_4); @@ -9244,15 +9866,15 @@ return x_20; } } } -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__3(lean_object* x_1) { +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_36__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_35__mkLetRecClosureFor___spec__3___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__3___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_MutualDef_35__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_Lean_Elab_MutualDef_36__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; @@ -9263,10 +9885,10 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_7); -x_15 = l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__1(x_14, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__1(x_14, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 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_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -9276,79 +9898,95 @@ x_18 = lean_ctor_get(x_9, 1); lean_inc(x_18); x_19 = x_5; x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor___spec__2(x_18, x_20, x_19); +x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_36__mkLetRecClosureFor___spec__2(x_18, x_20, x_19); x_22 = x_21; -x_23 = l_Array_empty___closed__1; -x_24 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -lean_ctor_set(x_24, 2, x_23); -lean_ctor_set(x_24, 3, x_23); -x_25 = lean_st_mk_ref(x_24, x_17); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_7); -x_28 = l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main(x_2, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_27); -if (lean_obj_tag(x_28) == 0) +x_23 = l___private_Lean_Elab_MutualDef_35__mkClosureFor(x_2, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_29 = lean_ctor_get(x_28, 1); +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; +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); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_24, 2); +lean_inc(x_28); +x_29 = lean_ctor_get(x_24, 3); lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_st_ref_get(x_26, x_29); -lean_dec(x_26); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = 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_31, 2); -lean_inc(x_35); -x_36 = lean_ctor_get(x_31, 3); -lean_inc(x_36); -lean_dec(x_31); -lean_inc(x_35); -x_37 = l_Lean_Meta_Closure_mkForall(x_35, x_16); +lean_dec(x_24); +lean_inc(x_28); +x_30 = l_Lean_Meta_Closure_mkForall(x_28, x_16); lean_dec(x_16); +lean_inc(x_27); +x_31 = l_Lean_Meta_Closure_mkForall(x_27, x_30); +lean_dec(x_30); +x_32 = l_Lean_Meta_Closure_mkLambda(x_28, x_6); +x_33 = l_Lean_Meta_Closure_mkLambda(x_27, x_32); +lean_dec(x_32); +x_34 = lean_ctor_get(x_1, 4); lean_inc(x_34); -x_38 = l_Lean_Meta_Closure_mkForall(x_34, x_37); -lean_dec(x_37); -x_39 = l_Lean_Meta_Closure_mkLambda(x_35, x_6); -x_40 = l_Lean_Meta_Closure_mkLambda(x_34, x_39); -lean_dec(x_39); -x_41 = lean_ctor_get(x_1, 4); -lean_inc(x_41); -x_42 = lean_box(0); -lean_inc(x_41); -x_43 = l_Lean_mkConst(x_41, x_42); -x_44 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_36, x_36, x_20, x_43); -lean_dec(x_36); -x_45 = lean_ctor_get(x_1, 9); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_45); -x_46 = l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(x_45, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +x_35 = lean_box(0); +lean_inc(x_34); +x_36 = l_Lean_mkConst(x_34, x_35); +x_37 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_29, x_29, x_20, x_36); +lean_dec(x_29); +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); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -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; -x_48 = lean_ctor_get(x_46, 0); -lean_dec(x_48); +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_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_1, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_1, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_1, 2); +lean_inc(x_44); +x_45 = lean_ctor_get(x_1, 3); +lean_inc(x_45); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_46, 0, x_42); +lean_ctor_set(x_46, 1, x_43); +lean_ctor_set(x_46, 2, x_44); +lean_ctor_set(x_46, 3, x_45); +lean_ctor_set(x_46, 4, x_34); +lean_ctor_set(x_46, 5, x_3); +lean_ctor_set(x_46, 6, x_4); +lean_ctor_set(x_46, 7, x_31); +lean_ctor_set(x_46, 8, x_33); +lean_ctor_set(x_46, 9, x_38); +x_47 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_37); +lean_ctor_set(x_47, 2, x_46); +lean_ctor_set(x_39, 0, x_47); +return x_39; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_39, 1); +lean_inc(x_48); +lean_dec(x_39); x_49 = lean_ctor_get(x_1, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_1, 1); @@ -9363,59 +10001,25 @@ lean_ctor_set(x_53, 0, x_49); lean_ctor_set(x_53, 1, x_50); lean_ctor_set(x_53, 2, x_51); lean_ctor_set(x_53, 3, x_52); -lean_ctor_set(x_53, 4, x_41); +lean_ctor_set(x_53, 4, x_34); lean_ctor_set(x_53, 5, x_3); lean_ctor_set(x_53, 6, x_4); -lean_ctor_set(x_53, 7, x_38); -lean_ctor_set(x_53, 8, x_40); -lean_ctor_set(x_53, 9, x_45); +lean_ctor_set(x_53, 7, x_31); +lean_ctor_set(x_53, 8, x_33); +lean_ctor_set(x_53, 9, x_38); x_54 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_54, 0, x_33); -lean_ctor_set(x_54, 1, x_44); +lean_ctor_set(x_54, 0, x_26); +lean_ctor_set(x_54, 1, x_37); lean_ctor_set(x_54, 2, x_53); -lean_ctor_set(x_46, 0, x_54); -return x_46; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_55 = lean_ctor_get(x_46, 1); -lean_inc(x_55); -lean_dec(x_46); -x_56 = lean_ctor_get(x_1, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_1, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_1, 2); -lean_inc(x_58); -x_59 = lean_ctor_get(x_1, 3); -lean_inc(x_59); -lean_dec(x_1); -x_60 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_60, 0, x_56); -lean_ctor_set(x_60, 1, x_57); -lean_ctor_set(x_60, 2, x_58); -lean_ctor_set(x_60, 3, x_59); -lean_ctor_set(x_60, 4, x_41); -lean_ctor_set(x_60, 5, x_3); -lean_ctor_set(x_60, 6, x_4); -lean_ctor_set(x_60, 7, x_38); -lean_ctor_set(x_60, 8, x_40); -lean_ctor_set(x_60, 9, x_45); -x_61 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_61, 0, x_33); -lean_ctor_set(x_61, 1, x_44); -lean_ctor_set(x_61, 2, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_55); -return x_62; +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_48); +return x_55; } } else { -uint8_t x_63; -lean_dec(x_26); +uint8_t x_56; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -9425,29 +10029,29 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_28); -if (x_63 == 0) +x_56 = !lean_is_exclusive(x_23); +if (x_56 == 0) { -return x_28; +return x_23; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_28, 0); -x_65 = lean_ctor_get(x_28, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_28); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_23, 0); +x_58 = lean_ctor_get(x_23, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_23); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -uint8_t x_67; +uint8_t x_60; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -9458,28 +10062,28 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_15); -if (x_67 == 0) +x_60 = !lean_is_exclusive(x_15); +if (x_60 == 0) { return x_15; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_15, 0); -x_69 = lean_ctor_get(x_15, 1); -lean_inc(x_69); -lean_inc(x_68); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_15, 0); +x_62 = lean_ctor_get(x_15, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_15); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } } -lean_object* l___private_Lean_Elab_MutualDef_35__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_Lean_Elab_MutualDef_36__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; @@ -9491,39 +10095,39 @@ 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_35__mkLetRecClosureFor___lambda__1___boxed), 13, 4); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_MutualDef_36__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_35__mkLetRecClosureFor___spec__3___rarg), 9, 2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_36__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___private_Lean_Elab_Binders_7__elabBinderViews___main___spec__3___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_35__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_Lean_Elab_MutualDef_36__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_35__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_Lean_Elab_MutualDef_36__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_2); return x_10; } } -lean_object* l___private_Lean_Elab_MutualDef_35__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_Lean_Elab_MutualDef_36__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_35__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_Lean_Elab_MutualDef_36__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_6); return x_14; } } -lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_36__mkLetRecClosures___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosures___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9566,7 +10170,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_MutualDef_36__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_Lean_Elab_MutualDef_37__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) @@ -9595,7 +10199,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_36__mkLetRecClosures___spec__1(x_1, x_15); +x_16 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosures___spec__1(x_1, x_15); lean_dec(x_15); if (lean_obj_tag(x_16) == 0) { @@ -9609,7 +10213,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_20 = l___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor(x_13, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_20 = l___private_Lean_Elab_MutualDef_36__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; @@ -9618,7 +10222,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_36__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_Lean_Elab_MutualDef_37__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; @@ -9716,7 +10320,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_38 = l___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor(x_13, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_38 = l___private_Lean_Elab_MutualDef_36__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; @@ -9725,7 +10329,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_36__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_Lean_Elab_MutualDef_37__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; @@ -9822,7 +10426,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_36__mkLetRecClosures___spec__1(x_1, x_57); +x_58 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__mkLetRecClosures___spec__1(x_1, x_57); lean_dec(x_57); if (lean_obj_tag(x_58) == 0) { @@ -9836,7 +10440,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_62 = l___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor(x_55, x_61, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_62 = l___private_Lean_Elab_MutualDef_36__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; @@ -9845,7 +10449,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_36__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_Lean_Elab_MutualDef_37__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; @@ -9943,7 +10547,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_80 = l___private_Lean_Elab_MutualDef_35__mkLetRecClosureFor(x_55, x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_80 = l___private_Lean_Elab_MutualDef_36__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; @@ -9952,7 +10556,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_36__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_Lean_Elab_MutualDef_37__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; @@ -10042,38 +10646,38 @@ return x_96; } } } -lean_object* l___private_Lean_Elab_MutualDef_36__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_Lean_Elab_MutualDef_37__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_36__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_Lean_Elab_MutualDef_37__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_36__mkLetRecClosures___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__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_36__mkLetRecClosures___spec__1(x_1, x_2); +x_3 = l_Std_RBNode_find___main___at___private_Lean_Elab_MutualDef_37__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_36__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_Lean_Elab_MutualDef_37__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_36__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_Lean_Elab_MutualDef_37__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_36__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_Lean_Elab_MutualDef_37__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_36__mkLetRecClosures(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_MutualDef_37__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; } @@ -12697,7 +13301,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_36__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_Lean_Elab_MutualDef_37__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) { @@ -13000,7 +13604,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_36__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_Lean_Elab_MutualDef_37__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) { @@ -13333,7 +13937,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_36__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_Lean_Elab_MutualDef_37__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) { @@ -13706,7 +14310,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_MutualDef_37__getAllUserLevelNames(lean_object* x_1) { +lean_object* l___private_Lean_Elab_MutualDef_38__getAllUserLevelNames(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -13731,11 +14335,11 @@ return x_7; } } } -lean_object* l___private_Lean_Elab_MutualDef_37__getAllUserLevelNames___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_MutualDef_38__getAllUserLevelNames___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_MutualDef_37__getAllUserLevelNames(x_1); +x_2 = l___private_Lean_Elab_MutualDef_38__getAllUserLevelNames(x_1); lean_dec(x_1); return x_2; } @@ -14613,7 +15217,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_37__getAllUserLevelNames(x_14); +x_16 = l___private_Lean_Elab_MutualDef_38__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); @@ -20580,6 +21184,22 @@ l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftType lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___spec__1___closed__5); l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___spec__1___closed__6 = _init_l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___spec__1___closed__6(); lean_mark_persistent(l_List_forM___main___at___private_Lean_Elab_MutualDef_19__checkLetRecsToLiftTypes___spec__1___closed__6); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__1); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__2); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__3); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__4); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__5 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__5); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__6 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__6); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__7 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__7); +l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__8 = _init_l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_MutualDef_34__mkClosureForAux___main___closed__8); 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); l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1 = _init_l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition.c b/stage0/stdlib/Lean/Elab/PreDefinition.c index 2143bf89c9..c916fce3ba 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.PreDefinition -// Imports: Init Lean.Util.SCC Lean.Elab.MkInhabitant Lean.Elab.Term Lean.Elab.DefView +// Imports: Init Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Structural Lean.Elab.PreDefinition.Main #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,7973 +13,10 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1(lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(lean_object*, lean_object*); -lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__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_PreDefinition_14__partitionPreDefs___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7___boxed(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__26(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__14(lean_object*, lean_object*); -uint8_t l_USize_decEq(size_t, size_t); -lean_object* lean_array_uget(lean_object*, size_t); -lean_object* lean_expr_update_mdata(lean_object*, lean_object*); -uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); -uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13___boxed(lean_object*, lean_object*); -extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l_Std_ShareCommonT_withShareCommon___at___private_Lean_Elab_PreDefinition_5__shareCommon___spec__1(lean_object*, lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_7__addNonRecAux___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_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Declaration_inhabited; -lean_object* l___private_Lean_Elab_PreDefinition_5__shareCommon(lean_object*); -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Array_empty___closed__1; -uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21___boxed(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(lean_object*, lean_object*); -lean_object* lean_st_ref_get(lean_object*, lean_object*); -extern lean_object* l_Std_ShareCommon_State_empty; -lean_object* l_Lean_Elab_PreDefinition_inhabited; -lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_6__applyAttributesOf(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* lean_array_get_size(lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_9__addNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__16(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_14__partitionPreDefs(lean_object*); -lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__15(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8___boxed(lean_object*, lean_object*); -lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9(lean_object*, lean_object*); -lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1(lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint32_t l_UInt32_add(uint32_t, uint32_t); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_5__shareCommon___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__1(lean_object*); -uint8_t l___private_Lean_Elab_PreDefinition_13__isNonRecursive(lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___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_mkInhabitantFor(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_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_8__addAndCompileNonRec(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_addPreDefinitions___spec__2(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___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Util_SCC_4__resetOnStack___rarg___closed__1; -lean_object* lean_state_sharecommon(lean_object*, lean_object*); -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_levelMVarToParamPreDecls(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_PreDefinition_12__addAndCompilePartial___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(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_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___rarg___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___spec__1(lean_object*); -lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_4__resetOnStack___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__23(lean_object*, lean_object*); -lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9___boxed(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); -size_t l_Lean_Name_hash(lean_object*); -lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Util_SCC_1__getDataOf___rarg___closed__1; -extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; -size_t lean_usize_modn(size_t, lean_object*); -lean_object* l_Lean_getMaxHeight(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_6__applyAttributesOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_redLength___main___rarg(lean_object*); -lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_compileDecl___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_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed(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*); -uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l_Lean_Elab_fixLevelParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2; -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_update_proj(lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__25(lean_object*); -extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l___private_Lean_Elab_PreDefinition_3__collectLevelParamsExpr(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t l_USize_mod(size_t, size_t); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__11(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___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___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_Expr_FindImpl_initCache; -lean_object* l___private_Lean_Elab_PreDefinition_8__addAndCompileNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_ptr_addr(lean_object*); -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___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_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; -lean_object* l_Lean_Elab_applyAttributes___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1; -uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1; -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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_PreDefinition_15__tryStructuralRecursion_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2; -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4; -lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__2; -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_TraceState_Inhabited___closed__1; -lean_object* l___private_Lean_Elab_PreDefinition_7__addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_13__isNonRecursive___boxed(lean_object*); -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(lean_object*, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__5; -lean_object* l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_FoldConstsImpl_initCache; -lean_object* l___private_Lean_Elab_PreDefinition_12__addAndCompilePartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; -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_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(lean_object*, size_t, lean_object*, lean_object*); -extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3; -lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__1; -extern lean_object* l_Lean_Compiler_mkUnsafeRecName___closed__1; -lean_object* l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___boxed(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_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* 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___private_Lean_Elab_PreDefinition_9__addNonRec(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_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2___boxed(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_Lean_Elab_addPreDefinitions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3; -lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_applyAttributes___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___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_PreDefinition_4__getLevelParamsPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___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_PreDefinition_14__partitionPreDefs___boxed(lean_object*); -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* _init_l_Lean_Elab_PreDefinition_inhabited___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = lean_box(0); -x_2 = 0; -x_3 = 0; -x_4 = l_Array_empty___closed__1; -x_5 = lean_alloc_ctor(0, 2, 4); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_2); -lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 1, x_3); -lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 2, x_3); -lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_3); -return x_5; -} -} -lean_object* _init_l_Lean_Elab_PreDefinition_inhabited___closed__2() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = lean_box(0); -x_2 = 0; -x_3 = l_Lean_Elab_PreDefinition_inhabited___closed__1; -x_4 = lean_box(0); -x_5 = l_Lean_Expr_Inhabited___closed__1; -x_6 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_6, 0, x_1); -lean_ctor_set(x_6, 1, x_3); -lean_ctor_set(x_6, 2, x_4); -lean_ctor_set(x_6, 3, x_5); -lean_ctor_set(x_6, 4, x_5); -lean_ctor_set_uint8(x_6, sizeof(void*)*5, x_2); -return x_6; -} -} -lean_object* _init_l_Lean_Elab_PreDefinition_inhabited() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_PreDefinition_inhabited___closed__2; -return x_1; -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___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; -x_10 = lean_array_get_size(x_2); -x_11 = lean_nat_dec_lt(x_1, x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_3); -lean_dec(x_1); -x_12 = x_2; -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; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -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 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 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_19 = lean_ctor_get(x_17, 3); -x_20 = lean_ctor_get(x_17, 4); -lean_inc(x_3); -x_21 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_3); -x_24 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_ctor_set(x_17, 4, x_25); -lean_ctor_set(x_17, 3, x_22); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_1, x_27); -x_29 = x_17; -x_30 = lean_array_fset(x_16, x_1, x_29); -lean_dec(x_1); -x_1 = x_28; -x_2 = x_30; -x_9 = x_26; -goto _start; -} -else -{ -uint8_t 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_32 = lean_ctor_get_uint8(x_17, sizeof(void*)*5); -x_33 = lean_ctor_get(x_17, 0); -x_34 = lean_ctor_get(x_17, 1); -x_35 = lean_ctor_get(x_17, 2); -x_36 = lean_ctor_get(x_17, 3); -x_37 = lean_ctor_get(x_17, 4); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_17); -lean_inc(x_3); -x_38 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_3); -x_41 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_44, 0, x_33); -lean_ctor_set(x_44, 1, x_34); -lean_ctor_set(x_44, 2, x_35); -lean_ctor_set(x_44, 3, x_39); -lean_ctor_set(x_44, 4, x_42); -lean_ctor_set_uint8(x_44, sizeof(void*)*5, x_32); -x_45 = lean_unsigned_to_nat(1u); -x_46 = lean_nat_add(x_1, x_45); -x_47 = x_44; -x_48 = lean_array_fset(x_16, x_1, x_47); -lean_dec(x_1); -x_1 = x_46; -x_2 = x_48; -x_9 = x_43; -goto _start; -} -} -} -} -lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(lean_object* x_1, lean_object* x_2, 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_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed), 9, 2); -lean_closure_set(x_11, 0, x_10); -lean_closure_set(x_11, 1, x_9); -x_12 = x_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_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___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_5); -lean_dec(x_4); -return x_10; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_19; -x_10 = lean_st_ref_get(x_2, x_9); -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_Term_levelMVarToParam(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_st_ref_set(x_2, x_17, x_15); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_16); -return x_18; -} -else -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_16); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_PreDefinition_1__levelMVarToParamExpr(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); -return x_10; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___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; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_1, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_4); -lean_dec(x_1); -x_13 = x_2; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_15 = lean_array_fget(x_2, x_1); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_array_fset(x_2, x_1, x_16); -x_18 = x_15; -x_19 = !lean_is_exclusive(x_18); -if (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; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_20 = lean_ctor_get(x_18, 3); -x_21 = lean_ctor_get(x_18, 4); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_4); -x_25 = l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_ctor_set(x_18, 4, x_26); -lean_ctor_set(x_18, 3, x_23); -x_28 = lean_unsigned_to_nat(1u); -x_29 = lean_nat_add(x_1, x_28); -x_30 = x_18; -x_31 = lean_array_fset(x_17, x_1, x_30); -lean_dec(x_1); -x_1 = x_29; -x_2 = x_31; -x_10 = x_27; -goto _start; -} -else -{ -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; 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_33 = lean_ctor_get_uint8(x_18, sizeof(void*)*5); -x_34 = lean_ctor_get(x_18, 0); -x_35 = lean_ctor_get(x_18, 1); -x_36 = lean_ctor_get(x_18, 2); -x_37 = lean_ctor_get(x_18, 3); -x_38 = lean_ctor_get(x_18, 4); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_18); -lean_inc(x_4); -x_39 = l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_4); -x_42 = l___private_Lean_Elab_PreDefinition_1__levelMVarToParamExpr(x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_45, 0, x_34); -lean_ctor_set(x_45, 1, x_35); -lean_ctor_set(x_45, 2, x_36); -lean_ctor_set(x_45, 3, x_40); -lean_ctor_set(x_45, 4, x_43); -lean_ctor_set_uint8(x_45, sizeof(void*)*5, x_33); -x_46 = lean_unsigned_to_nat(1u); -x_47 = lean_nat_add(x_1, x_46); -x_48 = x_45; -x_49 = lean_array_fset(x_17, x_1, x_48); -lean_dec(x_1); -x_1 = x_47; -x_2 = x_49; -x_10 = x_44; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = x_1; -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___spec__1___boxed), 10, 2); -lean_closure_set(x_12, 0, x_11); -lean_closure_set(x_12, 1, x_10); -x_13 = x_12; -x_14 = lean_apply_8(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_14; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___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_umapMAux___main___at___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux___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); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -return x_11; -} -} -lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object* x_1, lean_object* x_2, 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 = lean_unsigned_to_nat(1u); -x_10 = lean_st_mk_ref(x_9, x_8); -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); -lean_inc(x_11); -x_13 = l___private_Lean_Elab_PreDefinition_2__levelMVarToParamPreDeclsAux(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_st_ref_get(x_11, x_15); -lean_dec(x_11); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_14); -return x_16; -} -else -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_14); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -else -{ -uint8_t x_21; -lean_dec(x_11); -x_21 = !lean_is_exclusive(x_13); -if (x_21 == 0) -{ -return x_13; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_3__collectLevelParamsExpr(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_CollectLevelParams_main___main(x_1, x_2); -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -return x_5; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_1); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_box(0); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_8 = lean_array_fget(x_1, x_2); -x_9 = lean_ctor_get(x_8, 3); -lean_inc(x_9); -x_10 = l___private_Lean_Elab_PreDefinition_3__collectLevelParamsExpr(x_9, x_3); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_8, 4); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l___private_Lean_Elab_PreDefinition_3__collectLevelParamsExpr(x_12, x_11); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_2, x_15); -lean_dec(x_2); -x_2 = x_16; -x_3 = x_14; -goto _start; -} -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_HashSet_Inhabited___closed__1; -x_2 = l_Array_empty___closed__1; -x_3 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1; -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1(x_1, x_11, x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_14, 2); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Lean_Elab_sortDeclLevelParams(x_2, x_3, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_19, 0, 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); -return x_20; -} -else -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_4); -x_21 = lean_ctor_get(x_16, 0); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_10); -return x_22; -} -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___spec__1(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls(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_1); -return x_11; -} -} -lean_object* l_Std_ShareCommonT_withShareCommon___at___private_Lean_Elab_PreDefinition_5__shareCommon___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_state_sharecommon(x_2, x_1); -return x_3; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_5__shareCommon___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_1); -x_6 = x_2; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_array_fget(x_2, x_1); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_array_fset(x_2, x_1, x_9); -x_11 = x_8; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_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; -x_13 = lean_ctor_get(x_11, 3); -x_14 = lean_ctor_get(x_11, 4); -x_15 = lean_state_sharecommon(x_3, 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_state_sharecommon(x_17, x_14); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -lean_ctor_set(x_11, 4, x_19); -lean_ctor_set(x_11, 3, x_16); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_1, x_21); -x_23 = x_11; -x_24 = lean_array_fset(x_10, x_1, x_23); -lean_dec(x_1); -x_1 = x_22; -x_2 = x_24; -x_3 = x_20; -goto _start; -} -else -{ -uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*5); -x_27 = lean_ctor_get(x_11, 0); -x_28 = lean_ctor_get(x_11, 1); -x_29 = lean_ctor_get(x_11, 2); -x_30 = lean_ctor_get(x_11, 3); -x_31 = lean_ctor_get(x_11, 4); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_11); -x_32 = lean_state_sharecommon(x_3, x_30); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_state_sharecommon(x_34, x_31); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_38, 0, x_27); -lean_ctor_set(x_38, 1, x_28); -lean_ctor_set(x_38, 2, x_29); -lean_ctor_set(x_38, 3, x_33); -lean_ctor_set(x_38, 4, x_36); -lean_ctor_set_uint8(x_38, sizeof(void*)*5, x_26); -x_39 = lean_unsigned_to_nat(1u); -x_40 = lean_nat_add(x_1, x_39); -x_41 = x_38; -x_42 = lean_array_fset(x_10, x_1, x_41); -lean_dec(x_1); -x_1 = x_40; -x_2 = x_42; -x_3 = x_37; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_5__shareCommon(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_2 = x_1; -x_3 = lean_unsigned_to_nat(0u); -x_4 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_5__shareCommon___spec__2), 3, 2); -lean_closure_set(x_4, 0, x_3); -lean_closure_set(x_4, 1, x_2); -x_5 = l_Std_ShareCommon_State_empty; -x_6 = x_4; -x_7 = lean_apply_1(x_6, x_5); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -return x_8; -} -} -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_array_fget(x_3, x_5); -x_9 = lean_ctor_get(x_8, 2); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_name_eq(x_9, x_2); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -goto _start; -} -else -{ -lean_dec(x_5); -return x_10; -} -} -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_161; lean_object* x_162; size_t x_163; uint8_t x_164; -x_7 = lean_ptr_addr(x_5); -x_8 = x_4 == 0 ? 0 : x_7 % x_4; -x_161 = lean_ctor_get(x_6, 0); -lean_inc(x_161); -x_162 = lean_array_uget(x_161, x_8); -x_163 = lean_ptr_addr(x_162); -lean_dec(x_162); -x_164 = x_163 == x_7; -if (x_164 == 0) -{ -if (lean_obj_tag(x_5) == 4) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_165 = lean_ctor_get(x_5, 0); -lean_inc(x_165); -x_166 = lean_array_get_size(x_2); -x_167 = lean_unsigned_to_nat(0u); -x_168 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_165, x_2, x_166, x_167); -lean_dec(x_166); -if (x_168 == 0) -{ -lean_object* x_169; -lean_dec(x_165); -lean_dec(x_161); -x_169 = lean_box(0); -x_9 = x_169; -goto block_160; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_170 = l_Lean_mkConst(x_165, x_3); -x_171 = lean_array_uset(x_161, x_8, x_5); -x_172 = lean_ctor_get(x_6, 1); -lean_inc(x_172); -lean_dec(x_6); -lean_inc(x_170); -x_173 = lean_array_uset(x_172, x_8, x_170); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_170); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -else -{ -lean_object* x_176; -lean_dec(x_161); -x_176 = lean_box(0); -x_9 = x_176; -goto block_160; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_161); -lean_dec(x_5); -lean_dec(x_3); -x_177 = lean_ctor_get(x_6, 1); -lean_inc(x_177); -x_178 = lean_array_uget(x_177, x_8); -lean_dec(x_177); -x_179 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_6); -return x_179; -} -block_160: -{ -lean_dec(x_9); -switch (lean_obj_tag(x_5)) { -case 5: -{ -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_5, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_5, 1); -lean_inc(x_11); -lean_inc(x_3); -x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_10, x_6); -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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_11, x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_inc(x_5); -x_20 = lean_array_uset(x_19, x_8, x_5); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_expr_update_app(x_5, x_13, x_17); -lean_inc(x_22); -x_23 = lean_array_uset(x_21, x_8, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_15, 1, x_24); -lean_ctor_set(x_15, 0, x_22); -return x_15; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_25 = lean_ctor_get(x_15, 0); -x_26 = lean_ctor_get(x_15, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_15); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_inc(x_5); -x_28 = lean_array_uset(x_27, x_8, x_5); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_expr_update_app(x_5, x_13, x_25); -lean_inc(x_30); -x_31 = lean_array_uset(x_29, x_8, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -case 6: -{ -lean_object* x_34; lean_object* x_35; uint64_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -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_uint64(x_5, sizeof(void*)*3); -lean_inc(x_3); -x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_34, x_6); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_35, x_39); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -lean_inc(x_5); -x_45 = lean_array_uset(x_44, x_8, x_5); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = (uint8_t)((x_36 << 24) >> 61); -x_48 = lean_expr_update_lambda(x_5, x_47, x_38, x_42); -lean_inc(x_48); -x_49 = lean_array_uset(x_46, x_8, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_45); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_40, 1, x_50); -lean_ctor_set(x_40, 0, x_48); -return x_40; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_51 = lean_ctor_get(x_40, 0); -x_52 = lean_ctor_get(x_40, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_40); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_inc(x_5); -x_54 = lean_array_uset(x_53, x_8, x_5); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = (uint8_t)((x_36 << 24) >> 61); -x_57 = lean_expr_update_lambda(x_5, x_56, x_38, x_51); -lean_inc(x_57); -x_58 = lean_array_uset(x_55, x_8, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_54); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -case 7: -{ -lean_object* x_61; lean_object* x_62; uint64_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_61 = lean_ctor_get(x_5, 1); -lean_inc(x_61); -x_62 = lean_ctor_get(x_5, 2); -lean_inc(x_62); -x_63 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); -lean_inc(x_3); -x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_61, x_6); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_62, x_66); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_69 = lean_ctor_get(x_67, 0); -x_70 = lean_ctor_get(x_67, 1); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -lean_inc(x_5); -x_72 = lean_array_uset(x_71, x_8, x_5); -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); -x_74 = (uint8_t)((x_63 << 24) >> 61); -x_75 = lean_expr_update_forall(x_5, x_74, x_65, x_69); -lean_inc(x_75); -x_76 = lean_array_uset(x_73, x_8, x_75); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_72); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_67, 1, x_77); -lean_ctor_set(x_67, 0, x_75); -return x_67; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_78 = lean_ctor_get(x_67, 0); -x_79 = lean_ctor_get(x_67, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_67); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -lean_inc(x_5); -x_81 = lean_array_uset(x_80, x_8, x_5); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = (uint8_t)((x_63 << 24) >> 61); -x_84 = lean_expr_update_forall(x_5, x_83, x_65, x_78); -lean_inc(x_84); -x_85 = lean_array_uset(x_82, x_8, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_81); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -case 8: -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_88 = lean_ctor_get(x_5, 1); -lean_inc(x_88); -x_89 = lean_ctor_get(x_5, 2); -lean_inc(x_89); -x_90 = lean_ctor_get(x_5, 3); -lean_inc(x_90); -lean_inc(x_3); -x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_88, x_6); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -lean_inc(x_3); -x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_89, x_93); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_90, x_96); -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_99 = lean_ctor_get(x_97, 0); -x_100 = lean_ctor_get(x_97, 1); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -lean_inc(x_5); -x_102 = lean_array_uset(x_101, x_8, x_5); -x_103 = lean_ctor_get(x_100, 1); -lean_inc(x_103); -lean_dec(x_100); -x_104 = lean_expr_update_let(x_5, x_92, x_95, x_99); -lean_inc(x_104); -x_105 = lean_array_uset(x_103, x_8, x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_102); -lean_ctor_set(x_106, 1, x_105); -lean_ctor_set(x_97, 1, x_106); -lean_ctor_set(x_97, 0, x_104); -return x_97; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_107 = lean_ctor_get(x_97, 0); -x_108 = lean_ctor_get(x_97, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_97); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -lean_inc(x_5); -x_110 = lean_array_uset(x_109, x_8, x_5); -x_111 = lean_ctor_get(x_108, 1); -lean_inc(x_111); -lean_dec(x_108); -x_112 = lean_expr_update_let(x_5, x_92, x_95, x_107); -lean_inc(x_112); -x_113 = lean_array_uset(x_111, x_8, x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_110); -lean_ctor_set(x_114, 1, x_113); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -case 10: -{ -lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_116 = lean_ctor_get(x_5, 1); -lean_inc(x_116); -x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_116, x_6); -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -lean_inc(x_5); -x_122 = lean_array_uset(x_121, x_8, x_5); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -lean_dec(x_120); -x_124 = lean_expr_update_mdata(x_5, x_119); -lean_inc(x_124); -x_125 = lean_array_uset(x_123, x_8, x_124); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_117, 1, x_126); -lean_ctor_set(x_117, 0, x_124); -return x_117; -} -else -{ -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; -x_127 = lean_ctor_get(x_117, 0); -x_128 = lean_ctor_get(x_117, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -lean_inc(x_5); -x_130 = lean_array_uset(x_129, x_8, x_5); -x_131 = lean_ctor_get(x_128, 1); -lean_inc(x_131); -lean_dec(x_128); -x_132 = lean_expr_update_mdata(x_5, x_127); -lean_inc(x_132); -x_133 = lean_array_uset(x_131, x_8, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_130); -lean_ctor_set(x_134, 1, x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_134); -return x_135; -} -} -case 11: -{ -lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_136 = lean_ctor_get(x_5, 2); -lean_inc(x_136); -x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_136, x_6); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_139 = lean_ctor_get(x_137, 0); -x_140 = lean_ctor_get(x_137, 1); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -lean_inc(x_5); -x_142 = lean_array_uset(x_141, x_8, x_5); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec(x_140); -x_144 = lean_expr_update_proj(x_5, x_139); -lean_inc(x_144); -x_145 = lean_array_uset(x_143, x_8, x_144); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_142); -lean_ctor_set(x_146, 1, x_145); -lean_ctor_set(x_137, 1, x_146); -lean_ctor_set(x_137, 0, x_144); -return x_137; -} -else -{ -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_147 = lean_ctor_get(x_137, 0); -x_148 = lean_ctor_get(x_137, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_137); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -lean_inc(x_5); -x_150 = lean_array_uset(x_149, x_8, x_5); -x_151 = lean_ctor_get(x_148, 1); -lean_inc(x_151); -lean_dec(x_148); -x_152 = lean_expr_update_proj(x_5, x_147); -lean_inc(x_152); -x_153 = lean_array_uset(x_151, x_8, x_152); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_150); -lean_ctor_set(x_154, 1, x_153); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_154); -return x_155; -} -} -case 12: -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_5); -lean_dec(x_3); -x_156 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; -x_157 = l_unreachable_x21___rarg(x_156); -x_158 = lean_apply_1(x_157, x_6); -return x_158; -} -default: -{ -lean_object* x_159; -lean_dec(x_3); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_5); -lean_ctor_set(x_159, 1, x_6); -return x_159; -} -} -} -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_161; lean_object* x_162; size_t x_163; uint8_t x_164; -x_7 = lean_ptr_addr(x_5); -x_8 = x_4 == 0 ? 0 : x_7 % x_4; -x_161 = lean_ctor_get(x_6, 0); -lean_inc(x_161); -x_162 = lean_array_uget(x_161, x_8); -x_163 = lean_ptr_addr(x_162); -lean_dec(x_162); -x_164 = x_163 == x_7; -if (x_164 == 0) -{ -if (lean_obj_tag(x_5) == 4) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_165 = lean_ctor_get(x_5, 0); -lean_inc(x_165); -x_166 = lean_array_get_size(x_2); -x_167 = lean_unsigned_to_nat(0u); -x_168 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_165, x_2, x_166, x_167); -lean_dec(x_166); -if (x_168 == 0) -{ -lean_object* x_169; -lean_dec(x_165); -lean_dec(x_161); -x_169 = lean_box(0); -x_9 = x_169; -goto block_160; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_170 = l_Lean_mkConst(x_165, x_3); -x_171 = lean_array_uset(x_161, x_8, x_5); -x_172 = lean_ctor_get(x_6, 1); -lean_inc(x_172); -lean_dec(x_6); -lean_inc(x_170); -x_173 = lean_array_uset(x_172, x_8, x_170); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_170); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -else -{ -lean_object* x_176; -lean_dec(x_161); -x_176 = lean_box(0); -x_9 = x_176; -goto block_160; -} -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_161); -lean_dec(x_5); -lean_dec(x_3); -x_177 = lean_ctor_get(x_6, 1); -lean_inc(x_177); -x_178 = lean_array_uget(x_177, x_8); -lean_dec(x_177); -x_179 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_6); -return x_179; -} -block_160: -{ -lean_dec(x_9); -switch (lean_obj_tag(x_5)) { -case 5: -{ -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_5, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_5, 1); -lean_inc(x_11); -lean_inc(x_3); -x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_10, x_6); -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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_11, x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_inc(x_5); -x_20 = lean_array_uset(x_19, x_8, x_5); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_expr_update_app(x_5, x_13, x_17); -lean_inc(x_22); -x_23 = lean_array_uset(x_21, x_8, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_15, 1, x_24); -lean_ctor_set(x_15, 0, x_22); -return x_15; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_25 = lean_ctor_get(x_15, 0); -x_26 = lean_ctor_get(x_15, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_15); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_inc(x_5); -x_28 = lean_array_uset(x_27, x_8, x_5); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_expr_update_app(x_5, x_13, x_25); -lean_inc(x_30); -x_31 = lean_array_uset(x_29, x_8, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -case 6: -{ -lean_object* x_34; lean_object* x_35; uint64_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -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_uint64(x_5, sizeof(void*)*3); -lean_inc(x_3); -x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_34, x_6); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_35, x_39); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -lean_inc(x_5); -x_45 = lean_array_uset(x_44, x_8, x_5); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = (uint8_t)((x_36 << 24) >> 61); -x_48 = lean_expr_update_lambda(x_5, x_47, x_38, x_42); -lean_inc(x_48); -x_49 = lean_array_uset(x_46, x_8, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_45); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_40, 1, x_50); -lean_ctor_set(x_40, 0, x_48); -return x_40; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_51 = lean_ctor_get(x_40, 0); -x_52 = lean_ctor_get(x_40, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_40); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_inc(x_5); -x_54 = lean_array_uset(x_53, x_8, x_5); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = (uint8_t)((x_36 << 24) >> 61); -x_57 = lean_expr_update_lambda(x_5, x_56, x_38, x_51); -lean_inc(x_57); -x_58 = lean_array_uset(x_55, x_8, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_54); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -case 7: -{ -lean_object* x_61; lean_object* x_62; uint64_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_61 = lean_ctor_get(x_5, 1); -lean_inc(x_61); -x_62 = lean_ctor_get(x_5, 2); -lean_inc(x_62); -x_63 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); -lean_inc(x_3); -x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_61, x_6); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_62, x_66); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_69 = lean_ctor_get(x_67, 0); -x_70 = lean_ctor_get(x_67, 1); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -lean_inc(x_5); -x_72 = lean_array_uset(x_71, x_8, x_5); -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); -x_74 = (uint8_t)((x_63 << 24) >> 61); -x_75 = lean_expr_update_forall(x_5, x_74, x_65, x_69); -lean_inc(x_75); -x_76 = lean_array_uset(x_73, x_8, x_75); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_72); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_67, 1, x_77); -lean_ctor_set(x_67, 0, x_75); -return x_67; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_78 = lean_ctor_get(x_67, 0); -x_79 = lean_ctor_get(x_67, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_67); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -lean_inc(x_5); -x_81 = lean_array_uset(x_80, x_8, x_5); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = (uint8_t)((x_63 << 24) >> 61); -x_84 = lean_expr_update_forall(x_5, x_83, x_65, x_78); -lean_inc(x_84); -x_85 = lean_array_uset(x_82, x_8, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_81); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -case 8: -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_88 = lean_ctor_get(x_5, 1); -lean_inc(x_88); -x_89 = lean_ctor_get(x_5, 2); -lean_inc(x_89); -x_90 = lean_ctor_get(x_5, 3); -lean_inc(x_90); -lean_inc(x_3); -x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_88, x_6); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -lean_inc(x_3); -x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_89, x_93); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_90, x_96); -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_99 = lean_ctor_get(x_97, 0); -x_100 = lean_ctor_get(x_97, 1); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -lean_inc(x_5); -x_102 = lean_array_uset(x_101, x_8, x_5); -x_103 = lean_ctor_get(x_100, 1); -lean_inc(x_103); -lean_dec(x_100); -x_104 = lean_expr_update_let(x_5, x_92, x_95, x_99); -lean_inc(x_104); -x_105 = lean_array_uset(x_103, x_8, x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_102); -lean_ctor_set(x_106, 1, x_105); -lean_ctor_set(x_97, 1, x_106); -lean_ctor_set(x_97, 0, x_104); -return x_97; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_107 = lean_ctor_get(x_97, 0); -x_108 = lean_ctor_get(x_97, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_97); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -lean_inc(x_5); -x_110 = lean_array_uset(x_109, x_8, x_5); -x_111 = lean_ctor_get(x_108, 1); -lean_inc(x_111); -lean_dec(x_108); -x_112 = lean_expr_update_let(x_5, x_92, x_95, x_107); -lean_inc(x_112); -x_113 = lean_array_uset(x_111, x_8, x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_110); -lean_ctor_set(x_114, 1, x_113); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -case 10: -{ -lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_116 = lean_ctor_get(x_5, 1); -lean_inc(x_116); -x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_116, x_6); -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -lean_inc(x_5); -x_122 = lean_array_uset(x_121, x_8, x_5); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -lean_dec(x_120); -x_124 = lean_expr_update_mdata(x_5, x_119); -lean_inc(x_124); -x_125 = lean_array_uset(x_123, x_8, x_124); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_117, 1, x_126); -lean_ctor_set(x_117, 0, x_124); -return x_117; -} -else -{ -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; -x_127 = lean_ctor_get(x_117, 0); -x_128 = lean_ctor_get(x_117, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_117); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -lean_inc(x_5); -x_130 = lean_array_uset(x_129, x_8, x_5); -x_131 = lean_ctor_get(x_128, 1); -lean_inc(x_131); -lean_dec(x_128); -x_132 = lean_expr_update_mdata(x_5, x_127); -lean_inc(x_132); -x_133 = lean_array_uset(x_131, x_8, x_132); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_130); -lean_ctor_set(x_134, 1, x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_134); -return x_135; -} -} -case 11: -{ -lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_136 = lean_ctor_get(x_5, 2); -lean_inc(x_136); -x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_136, x_6); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_139 = lean_ctor_get(x_137, 0); -x_140 = lean_ctor_get(x_137, 1); -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -lean_inc(x_5); -x_142 = lean_array_uset(x_141, x_8, x_5); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec(x_140); -x_144 = lean_expr_update_proj(x_5, x_139); -lean_inc(x_144); -x_145 = lean_array_uset(x_143, x_8, x_144); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_142); -lean_ctor_set(x_146, 1, x_145); -lean_ctor_set(x_137, 1, x_146); -lean_ctor_set(x_137, 0, x_144); -return x_137; -} -else -{ -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_147 = lean_ctor_get(x_137, 0); -x_148 = lean_ctor_get(x_137, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_137); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -lean_inc(x_5); -x_150 = lean_array_uset(x_149, x_8, x_5); -x_151 = lean_ctor_get(x_148, 1); -lean_inc(x_151); -lean_dec(x_148); -x_152 = lean_expr_update_proj(x_5, x_147); -lean_inc(x_152); -x_153 = lean_array_uset(x_151, x_8, x_152); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_150); -lean_ctor_set(x_154, 1, x_153); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_154); -return x_155; -} -} -case 12: -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_5); -lean_dec(x_3); -x_156 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; -x_157 = l_unreachable_x21___rarg(x_156); -x_158 = lean_apply_1(x_157, x_6); -return x_158; -} -default: -{ -lean_object* x_159; -lean_dec(x_3); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_5); -lean_ctor_set(x_159, 1, x_6); -return x_159; -} -} -} -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_6); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_9 = x_6; -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_10 = lean_array_fget(x_6, x_5); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_fset(x_6, x_5, x_11); -x_13 = x_10; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_15 = lean_ctor_get(x_13, 3); -x_16 = lean_ctor_get(x_13, 4); -x_17 = lean_ctor_get(x_13, 0); -lean_dec(x_17); -x_18 = 8192; -x_19 = l_Lean_Expr_ReplaceImpl_initCache; -lean_inc(x_4); -x_20 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_4, x_18, x_15, x_19); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -lean_inc(x_4); -x_22 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_4, x_18, x_16, x_19); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -lean_inc(x_3); -lean_ctor_set(x_13, 4, x_23); -lean_ctor_set(x_13, 3, x_21); -lean_ctor_set(x_13, 0, x_3); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_5, x_24); -x_26 = x_13; -x_27 = lean_array_fset(x_12, x_5, x_26); -lean_dec(x_5); -x_5 = x_25; -x_6 = x_27; -goto _start; -} -else -{ -uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_29 = lean_ctor_get_uint8(x_13, sizeof(void*)*5); -x_30 = lean_ctor_get(x_13, 1); -x_31 = lean_ctor_get(x_13, 2); -x_32 = lean_ctor_get(x_13, 3); -x_33 = lean_ctor_get(x_13, 4); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_13); -x_34 = 8192; -x_35 = l_Lean_Expr_ReplaceImpl_initCache; -lean_inc(x_4); -x_36 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_4, x_34, x_32, x_35); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -lean_inc(x_4); -x_38 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_4, x_34, x_33, x_35); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -lean_dec(x_38); -lean_inc(x_3); -x_40 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_40, 0, x_3); -lean_ctor_set(x_40, 1, x_30); -lean_ctor_set(x_40, 2, x_31); -lean_ctor_set(x_40, 3, x_37); -lean_ctor_set(x_40, 4, x_39); -lean_ctor_set_uint8(x_40, sizeof(void*)*5, x_29); -x_41 = lean_unsigned_to_nat(1u); -x_42 = lean_nat_add(x_5, x_41); -x_43 = x_40; -x_44 = lean_array_fset(x_12, x_5, x_43); -lean_dec(x_5); -x_5 = x_42; -x_6 = x_44; -goto _start; -} -} -} -} -lean_object* l_Lean_Elab_fixLevelParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -lean_inc(x_1); -x_11 = l___private_Lean_Elab_PreDefinition_5__shareCommon(x_1); -x_12 = l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls(x_11, x_2, x_3, x_4, x_5, 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) -{ -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_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -x_15 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_14); -lean_inc(x_11); -x_16 = x_11; -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_11, x_14, x_15, x_17, x_16); -lean_dec(x_11); -lean_dec(x_1); -x_19 = x_18; -lean_ctor_set(x_12, 0, x_19); -return x_12; -} -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; -x_20 = lean_ctor_get(x_12, 0); -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_12); -lean_inc(x_20); -x_22 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_20); -lean_inc(x_11); -x_23 = x_11; -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_11, x_20, x_22, x_24, x_23); -lean_dec(x_11); -lean_dec(x_1); -x_26 = x_25; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_21); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_11); -lean_dec(x_1); -x_28 = !lean_is_exclusive(x_12); -if (x_28 == 0) -{ -return x_12; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_12, 0); -x_30 = lean_ctor_get(x_12, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_12); -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; -} -} -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___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 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___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: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_7, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___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: -{ -size_t x_7; lean_object* x_8; -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_7, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Lean_Elab_fixLevelParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_fixLevelParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -lean_object* l_Lean_Elab_applyAttributes___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(x_1, x_3, x_2, x_11, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(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* x_10) { -_start: -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_3, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_ctor_get(x_15, 2); -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_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_unsigned_to_nat(0u); -lean_inc(x_9); -lean_inc(x_8); -x_20 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(x_16, x_1, x_18, x_19, x_8, x_9, x_10); -lean_dec(x_18); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_3, x_22); -lean_dec(x_3); -x_3 = x_23; -x_10 = x_21; -goto _start; -} -else -{ -uint8_t x_25; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_25 = !lean_is_exclusive(x_20); -if (x_25 == 0) -{ -return x_20; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_20, 0); -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_20); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_6__applyAttributesOf(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_2, x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l_Lean_Elab_applyAttributes___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_3); -lean_dec(x_3); -x_12 = l_Lean_Elab_applyAttributes___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_12; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___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: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_1); -lean_dec(x_1); -x_12 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_12; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_6__applyAttributesOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_2); -lean_dec(x_2); -x_11 = l___private_Lean_Elab_PreDefinition_6__applyAttributesOf(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_11; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_7__addNonRecAux(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_69; -x_10 = lean_st_ref_get(x_8, x_9); -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 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -x_69 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); -switch (x_69) { -case 0: -{ -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; uint32_t x_77; uint32_t x_78; uint32_t x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; -x_70 = lean_ctor_get(x_1, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_1, 1); -lean_inc(x_71); -x_72 = lean_ctor_get(x_1, 2); -lean_inc(x_72); -x_73 = lean_ctor_get(x_1, 3); -lean_inc(x_73); -x_74 = lean_ctor_get(x_1, 4); -lean_inc(x_74); -x_75 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_70); -lean_ctor_set(x_75, 2, x_73); -lean_inc(x_74); -x_76 = l_Lean_getMaxHeight(x_13, x_74); -x_77 = lean_unbox_uint32(x_76); -lean_dec(x_76); -x_78 = 1; -x_79 = x_77 + x_78; -x_80 = lean_alloc_ctor(2, 0, 4); -lean_ctor_set_uint32(x_80, 0, x_79); -x_81 = lean_ctor_get_uint8(x_71, sizeof(void*)*2 + 3); -lean_dec(x_71); -x_82 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_82, 0, x_75); -lean_ctor_set(x_82, 1, x_74); -lean_ctor_set(x_82, 2, x_80); -lean_ctor_set_uint8(x_82, sizeof(void*)*3, x_81); -x_83 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_83, 0, x_82); -x_14 = x_83; -goto block_68; -} -case 1: -{ -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_dec(x_13); -x_84 = lean_ctor_get(x_1, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_1, 2); -lean_inc(x_85); -x_86 = lean_ctor_get(x_1, 3); -lean_inc(x_86); -x_87 = lean_ctor_get(x_1, 4); -lean_inc(x_87); -x_88 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_84); -lean_ctor_set(x_88, 2, x_86); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -x_90 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_90, 0, x_89); -x_14 = x_90; -goto block_68; -} -case 2: -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_13); -x_91 = l_Lean_Declaration_inhabited; -x_92 = l_unreachable_x21___rarg(x_91); -x_14 = x_92; -goto block_68; -} -case 3: -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_13); -x_93 = lean_ctor_get(x_1, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_1, 1); -lean_inc(x_94); -x_95 = lean_ctor_get(x_1, 2); -lean_inc(x_95); -x_96 = lean_ctor_get(x_1, 3); -lean_inc(x_96); -x_97 = lean_ctor_get(x_1, 4); -lean_inc(x_97); -x_98 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_93); -lean_ctor_set(x_98, 2, x_96); -x_99 = lean_ctor_get_uint8(x_94, sizeof(void*)*2 + 3); -lean_dec(x_94); -x_100 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_97); -lean_ctor_set_uint8(x_100, sizeof(void*)*2, x_99); -x_101 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_101, 0, x_100); -x_14 = x_101; -goto block_68; -} -default: -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_13); -x_102 = lean_ctor_get(x_1, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_1, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_1, 2); -lean_inc(x_104); -x_105 = lean_ctor_get(x_1, 3); -lean_inc(x_105); -x_106 = lean_ctor_get(x_1, 4); -lean_inc(x_106); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_102); -lean_ctor_set(x_107, 2, x_105); -x_108 = lean_ctor_get_uint8(x_103, sizeof(void*)*2 + 3); -lean_dec(x_103); -x_109 = lean_box(1); -x_110 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_110, 0, x_107); -lean_ctor_set(x_110, 1, x_106); -lean_ctor_set(x_110, 2, x_109); -lean_ctor_set_uint8(x_110, sizeof(void*)*3, x_108); -x_111 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_111, 0, x_110); -x_14 = x_111; -goto block_68; -} -} -block_68: -{ -lean_object* x_15; -lean_inc(x_3); -lean_inc(x_14); -x_15 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -lean_inc(x_7); -lean_inc(x_3); -x_17 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_mkOptionalNode___closed__2; -x_20 = lean_array_push(x_19, x_1); -x_21 = 0; -x_22 = lean_unsigned_to_nat(0u); -lean_inc(x_8); -lean_inc(x_7); -x_23 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_21, x_20, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_23) == 0) -{ -if (x_2 == 0) -{ -lean_object* x_24; uint8_t x_25; lean_object* x_26; -lean_dec(x_14); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = 1; -x_26 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_25, x_20, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -lean_dec(x_3); -lean_dec(x_20); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -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); -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 -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_26); -if (x_33 == 0) -{ -return x_26; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_26, 0); -x_35 = lean_ctor_get(x_26, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_26); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_23, 1); -lean_inc(x_37); -lean_dec(x_23); -lean_inc(x_7); -lean_inc(x_3); -x_38 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_37); -lean_dec(x_14); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; uint8_t x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = 1; -x_41 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_40, x_20, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_39); -lean_dec(x_3); -lean_dec(x_20); -if (lean_obj_tag(x_41) == 0) -{ -uint8_t x_42; -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_41, 0); -lean_dec(x_43); -x_44 = lean_box(0); -lean_ctor_set(x_41, 0, x_44); -return x_41; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_41, 1); -lean_inc(x_45); -lean_dec(x_41); -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -else -{ -uint8_t x_48; -x_48 = !lean_is_exclusive(x_41); -if (x_48 == 0) -{ -return x_41; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_41, 0); -x_50 = lean_ctor_get(x_41, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_41); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -else -{ -uint8_t x_52; -lean_dec(x_20); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_52 = !lean_is_exclusive(x_38); -if (x_52 == 0) -{ -return x_38; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_38, 0); -x_54 = lean_ctor_get(x_38, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_38); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -else -{ -uint8_t x_56; -lean_dec(x_20); -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_56 = !lean_is_exclusive(x_23); -if (x_56 == 0) -{ -return x_23; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_23, 0); -x_58 = lean_ctor_get(x_23, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_23); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -uint8_t x_60; -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_60 = !lean_is_exclusive(x_17); -if (x_60 == 0) -{ -return x_17; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_17, 0); -x_62 = lean_ctor_get(x_17, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_17); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_14); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_64 = !lean_is_exclusive(x_15); -if (x_64 == 0) -{ -return x_15; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_15, 0); -x_66 = lean_ctor_get(x_15, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_15); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_7__addNonRecAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_2); -lean_dec(x_2); -x_11 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_11; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_8__addAndCompileNonRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = 1; -x_10 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_8__addAndCompileNonRec___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_8__addAndCompileNonRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_9__addNonRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; lean_object* x_10; -x_9 = 0; -x_10 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_9__addNonRec___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_9__addNonRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___spec__1(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_4, 2); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 3); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 4); -lean_inc(x_9); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_10, 0, x_7); -lean_ctor_set(x_10, 1, x_6); -lean_ctor_set(x_10, 2, x_8); -x_11 = lean_box(0); -x_12 = 1; -x_13 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_13, 0, x_10); -lean_ctor_set(x_13, 1, x_9); -lean_ctor_set(x_13, 2, x_11); -lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_12); -x_14 = l_List_map___main___at___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___spec__1(x_5); -lean_ctor_set(x_1, 1, x_14); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_15 = lean_ctor_get(x_1, 0); -x_16 = lean_ctor_get(x_1, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_1); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 2); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 3); -lean_inc(x_19); -x_20 = lean_ctor_get(x_15, 4); -lean_inc(x_20); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_17); -lean_ctor_set(x_21, 2, x_19); -x_22 = lean_box(0); -x_23 = 1; -x_24 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_20); -lean_ctor_set(x_24, 2, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_23); -x_25 = l_List_map___main___at___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___spec__1(x_16); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe(lean_object* x_1, lean_object* x_2, 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_Array_toList___rarg(x_1); -x_10 = l_List_map___main___at___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___spec__1(x_9); -x_11 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_11, 0, x_10); -lean_inc(x_2); -lean_inc(x_11); -x_12 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -lean_inc(x_6); -lean_inc(x_2); -x_14 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = 0; -x_17 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -lean_inc(x_6); -x_18 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_16, x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_15); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -lean_inc(x_6); -lean_inc(x_2); -x_20 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -lean_dec(x_11); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = 1; -x_23 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_6__applyAttributesOf___spec__2(x_22, x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_21); -lean_dec(x_2); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -x_26 = lean_box(0); -lean_ctor_set(x_23, 0, x_26); -return x_23; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec(x_23); -x_28 = lean_box(0); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; -} -} -else -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_23); -if (x_30 == 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_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; -} -} -} -else -{ -uint8_t x_34; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_20); -if (x_34 == 0) -{ -return x_20; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_20, 0); -x_36 = lean_ctor_get(x_20, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_20); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -else -{ -uint8_t x_38; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_18); -if (x_38 == 0) -{ -return x_18; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_18, 0); -x_40 = lean_ctor_get(x_18, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_18); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -uint8_t x_42; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_42 = !lean_is_exclusive(x_14); -if (x_42 == 0) -{ -return x_14; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_14, 0); -x_44 = lean_ctor_get(x_14, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_14); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_46 = !lean_is_exclusive(x_12); -if (x_46 == 0) -{ -return x_12; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_12, 0); -x_48 = lean_ctor_get(x_12, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_12); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_10__addAndCompileUnsafe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_9; -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__1(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_array_fget(x_3, x_5); -x_9 = lean_ctor_get(x_8, 2); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_name_eq(x_9, x_2); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -goto _start; -} -else -{ -lean_dec(x_5); -return x_10; -} -} -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_159; lean_object* x_160; size_t x_161; uint8_t x_162; -x_5 = lean_ptr_addr(x_3); -x_6 = x_2 == 0 ? 0 : x_5 % x_2; -x_159 = lean_ctor_get(x_4, 0); -lean_inc(x_159); -x_160 = lean_array_uget(x_159, x_6); -x_161 = lean_ptr_addr(x_160); -lean_dec(x_160); -x_162 = x_161 == x_5; -if (x_162 == 0) -{ -if (lean_obj_tag(x_3) == 4) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_163 = lean_ctor_get(x_3, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_3, 1); -lean_inc(x_164); -x_165 = lean_array_get_size(x_1); -x_166 = lean_unsigned_to_nat(0u); -x_167 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__1(x_1, x_163, x_1, x_165, x_166); -lean_dec(x_165); -if (x_167 == 0) -{ -lean_object* x_168; -lean_dec(x_164); -lean_dec(x_163); -lean_dec(x_159); -x_168 = lean_box(0); -x_7 = x_168; -goto block_158; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_169 = l_Lean_Compiler_mkUnsafeRecName___closed__1; -x_170 = lean_name_mk_string(x_163, x_169); -x_171 = l_Lean_mkConst(x_170, x_164); -x_172 = lean_array_uset(x_159, x_6, x_3); -x_173 = lean_ctor_get(x_4, 1); -lean_inc(x_173); -lean_dec(x_4); -lean_inc(x_171); -x_174 = lean_array_uset(x_173, x_6, x_171); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_174); -x_176 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_176, 0, x_171); -lean_ctor_set(x_176, 1, x_175); -return x_176; -} -} -else -{ -lean_object* x_177; -lean_dec(x_159); -x_177 = lean_box(0); -x_7 = x_177; -goto block_158; -} -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_159); -lean_dec(x_3); -x_178 = lean_ctor_get(x_4, 1); -lean_inc(x_178); -x_179 = lean_array_uget(x_178, x_6); -lean_dec(x_178); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_4); -return x_180; -} -block_158: -{ -lean_dec(x_7); -switch (lean_obj_tag(x_3)) { -case 5: -{ -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_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -x_10 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_8, x_4); -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_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_9, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_inc(x_3); -x_18 = lean_array_uset(x_17, x_6, x_3); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_expr_update_app(x_3, x_11, x_15); -lean_inc(x_20); -x_21 = lean_array_uset(x_19, x_6, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_18); -lean_ctor_set(x_22, 1, x_21); -lean_ctor_set(x_13, 1, x_22); -lean_ctor_set(x_13, 0, x_20); -return x_13; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_23 = lean_ctor_get(x_13, 0); -x_24 = lean_ctor_get(x_13, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_13); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -lean_inc(x_3); -x_26 = lean_array_uset(x_25, x_6, x_3); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_expr_update_app(x_3, x_11, x_23); -lean_inc(x_28); -x_29 = lean_array_uset(x_27, x_6, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_26); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -case 6: -{ -lean_object* x_32; lean_object* x_33; uint64_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_3, 2); -lean_inc(x_33); -x_34 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_35 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_32, x_4); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_33, x_37); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_ctor_get(x_38, 1); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -lean_inc(x_3); -x_43 = lean_array_uset(x_42, x_6, x_3); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = (uint8_t)((x_34 << 24) >> 61); -x_46 = lean_expr_update_lambda(x_3, x_45, x_36, x_40); -lean_inc(x_46); -x_47 = lean_array_uset(x_44, x_6, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_43); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set(x_38, 1, x_48); -lean_ctor_set(x_38, 0, x_46); -return x_38; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_49 = lean_ctor_get(x_38, 0); -x_50 = lean_ctor_get(x_38, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_38); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -lean_inc(x_3); -x_52 = lean_array_uset(x_51, x_6, x_3); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = (uint8_t)((x_34 << 24) >> 61); -x_55 = lean_expr_update_lambda(x_3, x_54, x_36, x_49); -lean_inc(x_55); -x_56 = lean_array_uset(x_53, x_6, x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_52); -lean_ctor_set(x_57, 1, x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -case 7: -{ -lean_object* x_59; lean_object* x_60; uint64_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_59 = lean_ctor_get(x_3, 1); -lean_inc(x_59); -x_60 = lean_ctor_get(x_3, 2); -lean_inc(x_60); -x_61 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_62 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_59, x_4); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_60, x_64); -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_67 = lean_ctor_get(x_65, 0); -x_68 = lean_ctor_get(x_65, 1); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -lean_inc(x_3); -x_70 = lean_array_uset(x_69, x_6, x_3); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = (uint8_t)((x_61 << 24) >> 61); -x_73 = lean_expr_update_forall(x_3, x_72, x_63, x_67); -lean_inc(x_73); -x_74 = lean_array_uset(x_71, x_6, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_70); -lean_ctor_set(x_75, 1, x_74); -lean_ctor_set(x_65, 1, x_75); -lean_ctor_set(x_65, 0, x_73); -return x_65; -} -else -{ -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; -x_76 = lean_ctor_get(x_65, 0); -x_77 = lean_ctor_get(x_65, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_65); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -lean_inc(x_3); -x_79 = lean_array_uset(x_78, x_6, x_3); -x_80 = lean_ctor_get(x_77, 1); -lean_inc(x_80); -lean_dec(x_77); -x_81 = (uint8_t)((x_61 << 24) >> 61); -x_82 = lean_expr_update_forall(x_3, x_81, x_63, x_76); -lean_inc(x_82); -x_83 = lean_array_uset(x_80, x_6, x_82); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_79); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_84); -return x_85; -} -} -case 8: -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_86 = lean_ctor_get(x_3, 1); -lean_inc(x_86); -x_87 = lean_ctor_get(x_3, 2); -lean_inc(x_87); -x_88 = lean_ctor_get(x_3, 3); -lean_inc(x_88); -x_89 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_86, x_4); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_87, x_91); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_88, x_94); -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_97 = lean_ctor_get(x_95, 0); -x_98 = lean_ctor_get(x_95, 1); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -lean_inc(x_3); -x_100 = lean_array_uset(x_99, x_6, x_3); -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_dec(x_98); -x_102 = lean_expr_update_let(x_3, x_90, x_93, x_97); -lean_inc(x_102); -x_103 = lean_array_uset(x_101, x_6, x_102); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_103); -lean_ctor_set(x_95, 1, x_104); -lean_ctor_set(x_95, 0, x_102); -return x_95; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_105 = lean_ctor_get(x_95, 0); -x_106 = lean_ctor_get(x_95, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_95); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -lean_inc(x_3); -x_108 = lean_array_uset(x_107, x_6, x_3); -x_109 = lean_ctor_get(x_106, 1); -lean_inc(x_109); -lean_dec(x_106); -x_110 = lean_expr_update_let(x_3, x_90, x_93, x_105); -lean_inc(x_110); -x_111 = lean_array_uset(x_109, x_6, x_110); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_108); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -case 10: -{ -lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_114 = lean_ctor_get(x_3, 1); -lean_inc(x_114); -x_115 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_114, x_4); -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_ctor_get(x_115, 1); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -lean_inc(x_3); -x_120 = lean_array_uset(x_119, x_6, x_3); -x_121 = lean_ctor_get(x_118, 1); -lean_inc(x_121); -lean_dec(x_118); -x_122 = lean_expr_update_mdata(x_3, x_117); -lean_inc(x_122); -x_123 = lean_array_uset(x_121, x_6, x_122); -x_124 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_124, 0, x_120); -lean_ctor_set(x_124, 1, x_123); -lean_ctor_set(x_115, 1, x_124); -lean_ctor_set(x_115, 0, x_122); -return x_115; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_125 = lean_ctor_get(x_115, 0); -x_126 = lean_ctor_get(x_115, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_115); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -lean_inc(x_3); -x_128 = lean_array_uset(x_127, x_6, x_3); -x_129 = lean_ctor_get(x_126, 1); -lean_inc(x_129); -lean_dec(x_126); -x_130 = lean_expr_update_mdata(x_3, x_125); -lean_inc(x_130); -x_131 = lean_array_uset(x_129, x_6, x_130); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_128); -lean_ctor_set(x_132, 1, x_131); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_132); -return x_133; -} -} -case 11: -{ -lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_134 = lean_ctor_get(x_3, 2); -lean_inc(x_134); -x_135 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_2, x_134, x_4); -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_137 = lean_ctor_get(x_135, 0); -x_138 = lean_ctor_get(x_135, 1); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -lean_inc(x_3); -x_140 = lean_array_uset(x_139, x_6, x_3); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec(x_138); -x_142 = lean_expr_update_proj(x_3, x_137); -lean_inc(x_142); -x_143 = lean_array_uset(x_141, x_6, x_142); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_140); -lean_ctor_set(x_144, 1, x_143); -lean_ctor_set(x_135, 1, x_144); -lean_ctor_set(x_135, 0, x_142); -return x_135; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_145 = lean_ctor_get(x_135, 0); -x_146 = lean_ctor_get(x_135, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_135); -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -lean_inc(x_3); -x_148 = lean_array_uset(x_147, x_6, x_3); -x_149 = lean_ctor_get(x_146, 1); -lean_inc(x_149); -lean_dec(x_146); -x_150 = lean_expr_update_proj(x_3, x_145); -lean_inc(x_150); -x_151 = lean_array_uset(x_149, x_6, x_150); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_148); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_152); -return x_153; -} -} -case 12: -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_3); -x_154 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; -x_155 = l_unreachable_x21___rarg(x_154); -x_156 = lean_apply_1(x_155, x_4); -return x_156; -} -default: -{ -lean_object* x_157; -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_3); -lean_ctor_set(x_157, 1, x_4); -return x_157; -} -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t 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; -x_12 = lean_ctor_get(x_10, 2); -x_13 = lean_ctor_get(x_10, 4); -x_14 = lean_ctor_get(x_10, 1); -lean_dec(x_14); -x_15 = l_Lean_Compiler_mkUnsafeRecName___closed__1; -x_16 = lean_name_mk_string(x_12, x_15); -x_17 = 8192; -x_18 = l_Lean_Expr_ReplaceImpl_initCache; -x_19 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_17, x_13, x_18); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Elab_PreDefinition_inhabited___closed__1; -lean_ctor_set(x_10, 4, x_20); -lean_ctor_set(x_10, 2, x_16); -lean_ctor_set(x_10, 1, x_21); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); -x_24 = x_10; -x_25 = lean_array_fset(x_9, x_2, x_24); -lean_dec(x_2); -x_2 = x_23; -x_3 = x_25; -goto _start; -} -else -{ -uint8_t 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; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_27 = lean_ctor_get_uint8(x_10, sizeof(void*)*5); -x_28 = lean_ctor_get(x_10, 0); -x_29 = lean_ctor_get(x_10, 2); -x_30 = lean_ctor_get(x_10, 3); -x_31 = lean_ctor_get(x_10, 4); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_10); -x_32 = l_Lean_Compiler_mkUnsafeRecName___closed__1; -x_33 = lean_name_mk_string(x_29, x_32); -x_34 = 8192; -x_35 = l_Lean_Expr_ReplaceImpl_initCache; -x_36 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_34, x_31, x_35); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -x_38 = l_Lean_Elab_PreDefinition_inhabited___closed__1; -x_39 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_33); -lean_ctor_set(x_39, 3, x_30); -lean_ctor_set(x_39, 4, x_37); -lean_ctor_set_uint8(x_39, sizeof(void*)*5, x_27); -x_40 = lean_unsigned_to_nat(1u); -x_41 = lean_nat_add(x_2, x_40); -x_42 = x_39; -x_43 = lean_array_fset(x_9, x_2, x_42); -lean_dec(x_2); -x_2 = x_41; -x_3 = x_43; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec(lean_object* x_1, lean_object* x_2, 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_inc(x_1); -x_9 = x_1; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3(x_1, x_10, x_9); -lean_dec(x_1); -x_12 = x_11; -x_13 = l___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_12); -return x_13; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___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 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; lean_object* x_6; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__2(x_1, x_5, x_3, x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___spec__3(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_11__addAndCompileUnsafeRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___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) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg___lambda__1), 10, 3); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_3); -lean_closure_set(x_10, 2, x_4); -x_11 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_10, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -return x_11; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) -{ -return x_11; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_11); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg), 9, 0); -return x_2; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_13 = lean_ctor_get(x_1, 2); -lean_inc(x_13); -x_14 = lean_st_ref_get(x_11, x_12); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_15, 2); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_st_ref_take(x_11, x_16); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = !lean_is_exclusive(x_19); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_19, 2); -lean_dec(x_22); -x_23 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_19, 2, x_23); -x_24 = lean_st_ref_set(x_11, x_19, x_20); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_13); -x_26 = l_Lean_Elab_mkInhabitantFor(x_13, x_4, x_5, x_8, x_9, x_10, x_11, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -lean_inc(x_6); -x_29 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_1, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_1, 1); -lean_inc(x_32); -lean_dec(x_1); -x_33 = 3; -x_34 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_32); -lean_ctor_set(x_34, 2, x_13); -lean_ctor_set(x_34, 3, x_2); -lean_ctor_set(x_34, 4, x_27); -lean_ctor_set_uint8(x_34, sizeof(void*)*5, x_33); -x_35 = 0; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_6); -x_36 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_34, x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_37); -lean_dec(x_9); -lean_dec(x_8); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 0); -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_36); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_13); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_43 = lean_ctor_get(x_26, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_26, 1); -lean_inc(x_44); -lean_dec(x_26); -x_45 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_44); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) -{ -lean_object* x_47; -x_47 = lean_ctor_get(x_45, 0); -lean_dec(x_47); -lean_ctor_set_tag(x_45, 1); -lean_ctor_set(x_45, 0, x_43); -return x_45; -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_50 = lean_ctor_get(x_19, 0); -x_51 = lean_ctor_get(x_19, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_19); -x_52 = l_Lean_TraceState_Inhabited___closed__1; -x_53 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set(x_53, 2, x_52); -x_54 = lean_st_ref_set(x_11, x_53, x_20); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_13); -x_56 = l_Lean_Elab_mkInhabitantFor(x_13, x_4, x_5, x_8, x_9, x_10, x_11, x_55); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -lean_inc(x_6); -x_59 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_58); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_ctor_get(x_1, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_1, 1); -lean_inc(x_62); -lean_dec(x_1); -x_63 = 3; -x_64 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -lean_ctor_set(x_64, 2, x_13); -lean_ctor_set(x_64, 3, x_2); -lean_ctor_set(x_64, 4, x_57); -lean_ctor_set_uint8(x_64, sizeof(void*)*5, x_63); -x_65 = 0; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_6); -x_66 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_64, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_60); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = l___private_Lean_Elab_PreDefinition_11__addAndCompileUnsafeRec(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_67); -lean_dec(x_9); -lean_dec(x_8); -return x_68; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_69 = lean_ctor_get(x_66, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_66, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_71 = x_66; -} else { - lean_dec_ref(x_66); - x_71 = lean_box(0); -} -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); -} else { - x_72 = x_71; -} -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; -} -} -else -{ -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_dec(x_13); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_73 = lean_ctor_get(x_56, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_56, 1); -lean_inc(x_74); -lean_dec(x_56); -x_75 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_74); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_77 = x_75; -} else { - lean_dec_ref(x_75); - x_77 = lean_box(0); -} -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); -} else { - x_78 = x_77; - lean_ctor_set_tag(x_78, 1); -} -lean_ctor_set(x_78, 0, x_73); -lean_ctor_set(x_78, 1, x_76); -return x_78; -} -} -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___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) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_1, 3); -lean_inc(x_10); -lean_inc(x_10); -x_11 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__1___boxed), 12, 3); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_10); -lean_closure_set(x_11, 2, x_2); -x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__1___rarg(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_12; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_1, x_13); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2(x_2, x_3, x_4, x_14, x_5, x_6, x_8, x_9, x_10, x_11, x_12); -return x_15; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_3); -x_13 = lean_nat_dec_lt(x_4, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_14 = lean_ctor_get(x_2, 0); -lean_inc(x_14); -lean_dec(x_2); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_box(0); -x_17 = lean_apply_7(x_15, lean_box(0), x_16, x_7, x_8, x_9, x_10, x_11); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_18 = lean_array_fget(x_3, x_4); -x_19 = lean_ctor_get(x_2, 1); -lean_inc(x_19); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_1); -x_20 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__2), 9, 4); -lean_closure_set(x_20, 0, x_18); -lean_closure_set(x_20, 1, x_1); -lean_closure_set(x_20, 2, x_5); -lean_closure_set(x_20, 3, x_6); -x_21 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3___boxed), 12, 6); -lean_closure_set(x_21, 0, x_4); -lean_closure_set(x_21, 1, x_1); -lean_closure_set(x_21, 2, x_2); -lean_closure_set(x_21, 3, x_3); -lean_closure_set(x_21, 4, x_5); -lean_closure_set(x_21, 5, x_6); -x_22 = lean_apply_9(x_19, lean_box(0), lean_box(0), x_20, x_21, x_7, x_8, x_9, x_10, x_11); -return x_22; -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_12__addAndCompilePartial(lean_object* x_1, lean_object* x_2, 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 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_10 = lean_unsigned_to_nat(0u); -lean_inc(x_1); -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2(x_1, x_9, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_11; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___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); -lean_dec(x_7); -return x_13; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_12__addAndCompilePartial___spec__2___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec(x_1); -return x_13; -} -} -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; size_t x_103; size_t x_104; lean_object* x_105; size_t x_106; uint8_t x_107; -x_103 = lean_ptr_addr(x_3); -x_104 = x_2 == 0 ? 0 : x_103 % x_2; -x_105 = lean_array_uget(x_4, x_104); -x_106 = lean_ptr_addr(x_105); -lean_dec(x_105); -x_107 = x_106 == x_103; -if (x_107 == 0) -{ -lean_object* x_108; uint8_t x_109; -lean_inc(x_3); -x_108 = lean_array_uset(x_4, x_104, x_3); -x_109 = 0; -x_5 = x_109; -x_6 = x_108; -goto block_102; -} -else -{ -uint8_t x_110; -x_110 = 1; -x_5 = x_110; -x_6 = x_4; -goto block_102; -} -block_102: -{ -lean_object* x_7; -if (x_5 == 0) -{ -if (lean_obj_tag(x_3) == 4) -{ -lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_93 = lean_ctor_get(x_3, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_1, 2); -x_95 = lean_name_eq(x_94, x_93); -lean_dec(x_93); -if (x_95 == 0) -{ -lean_object* x_96; -x_96 = lean_box(0); -x_7 = x_96; -goto block_92; -} -else -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_97, 0, x_3); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_6); -return x_98; -} -} -else -{ -lean_object* x_99; -x_99 = lean_box(0); -x_7 = x_99; -goto block_92; -} -} -else -{ -lean_object* x_100; lean_object* x_101; -lean_dec(x_3); -x_100 = lean_box(0); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_6); -return x_101; -} -block_92: -{ -lean_dec(x_7); -switch (lean_obj_tag(x_3)) { -case 5: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -lean_dec(x_3); -x_10 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_2, x_8, x_6); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_3 = x_9; -x_4 = x_12; -goto _start; -} -else -{ -uint8_t x_14; -lean_dec(x_9); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_10, 0); -lean_dec(x_15); -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) -{ -return x_10; -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_11, 0); -lean_inc(x_17); -lean_dec(x_11); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_10, 0, x_18); -return x_10; -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_10, 1); -lean_inc(x_19); -lean_dec(x_10); -x_20 = lean_ctor_get(x_11, 0); -lean_inc(x_20); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - x_21 = x_11; -} else { - lean_dec_ref(x_11); - x_21 = lean_box(0); -} -if (lean_is_scalar(x_21)) { - x_22 = lean_alloc_ctor(1, 1, 0); -} else { - x_22 = x_21; -} -lean_ctor_set(x_22, 0, x_20); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -return x_23; -} -} -} -case 6: -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_3, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_3, 2); -lean_inc(x_25); -lean_dec(x_3); -x_26 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_2, x_24, x_6); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_3 = x_25; -x_4 = x_28; -goto _start; -} -else -{ -uint8_t x_30; -lean_dec(x_25); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) -{ -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_26, 0); -lean_dec(x_31); -x_32 = !lean_is_exclusive(x_27); -if (x_32 == 0) -{ -return x_26; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_27, 0); -lean_inc(x_33); -lean_dec(x_27); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_26, 0, x_34); -return x_26; -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_26, 1); -lean_inc(x_35); -lean_dec(x_26); -x_36 = lean_ctor_get(x_27, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - x_37 = x_27; -} else { - lean_dec_ref(x_27); - x_37 = lean_box(0); -} -if (lean_is_scalar(x_37)) { - x_38 = lean_alloc_ctor(1, 1, 0); -} else { - x_38 = x_37; -} -lean_ctor_set(x_38, 0, x_36); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_35); -return x_39; -} -} -} -case 7: -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_3, 1); -lean_inc(x_40); -x_41 = lean_ctor_get(x_3, 2); -lean_inc(x_41); -lean_dec(x_3); -x_42 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_2, x_40, x_6); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_3 = x_41; -x_4 = x_44; -goto _start; -} -else -{ -uint8_t x_46; -lean_dec(x_41); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) -{ -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_42, 0); -lean_dec(x_47); -x_48 = !lean_is_exclusive(x_43); -if (x_48 == 0) -{ -return x_42; -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_43, 0); -lean_inc(x_49); -lean_dec(x_43); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_42, 0, x_50); -return x_42; -} -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_51 = lean_ctor_get(x_42, 1); -lean_inc(x_51); -lean_dec(x_42); -x_52 = lean_ctor_get(x_43, 0); -lean_inc(x_52); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - x_53 = x_43; -} else { - lean_dec_ref(x_43); - x_53 = lean_box(0); -} -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 1, 0); -} else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_52); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_51); -return x_55; -} -} -} -case 8: -{ -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_3, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_3, 2); -lean_inc(x_57); -x_58 = lean_ctor_get(x_3, 3); -lean_inc(x_58); -lean_dec(x_3); -x_59 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_2, x_56, x_6); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_2, x_57, x_61); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_3 = x_58; -x_4 = x_64; -goto _start; -} -else -{ -uint8_t x_66; -lean_dec(x_58); -x_66 = !lean_is_exclusive(x_62); -if (x_66 == 0) -{ -lean_object* x_67; uint8_t x_68; -x_67 = lean_ctor_get(x_62, 0); -lean_dec(x_67); -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) -{ -return x_62; -} -else -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_63, 0); -lean_inc(x_69); -lean_dec(x_63); -x_70 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_62, 0, x_70); -return x_62; -} -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_71 = lean_ctor_get(x_62, 1); -lean_inc(x_71); -lean_dec(x_62); -x_72 = lean_ctor_get(x_63, 0); -lean_inc(x_72); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - x_73 = x_63; -} else { - lean_dec_ref(x_63); - x_73 = lean_box(0); -} -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(1, 1, 0); -} else { - x_74 = x_73; -} -lean_ctor_set(x_74, 0, x_72); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_71); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_58); -lean_dec(x_57); -x_76 = !lean_is_exclusive(x_59); -if (x_76 == 0) -{ -lean_object* x_77; uint8_t x_78; -x_77 = lean_ctor_get(x_59, 0); -lean_dec(x_77); -x_78 = !lean_is_exclusive(x_60); -if (x_78 == 0) -{ -return x_59; -} -else -{ -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_60, 0); -lean_inc(x_79); -lean_dec(x_60); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_59, 0, x_80); -return x_59; -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_81 = lean_ctor_get(x_59, 1); -lean_inc(x_81); -lean_dec(x_59); -x_82 = lean_ctor_get(x_60, 0); -lean_inc(x_82); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - x_83 = x_60; -} else { - lean_dec_ref(x_60); - x_83 = lean_box(0); -} -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(1, 1, 0); -} else { - x_84 = x_83; -} -lean_ctor_set(x_84, 0, x_82); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_81); -return x_85; -} -} -} -case 10: -{ -lean_object* x_86; -x_86 = lean_ctor_get(x_3, 1); -lean_inc(x_86); -lean_dec(x_3); -x_3 = x_86; -x_4 = x_6; -goto _start; -} -case 11: -{ -lean_object* x_88; -x_88 = lean_ctor_get(x_3, 2); -lean_inc(x_88); -lean_dec(x_3); -x_3 = x_88; -x_4 = x_6; -goto _start; -} -default: -{ -lean_object* x_90; lean_object* x_91; -lean_dec(x_3); -x_90 = lean_box(0); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_6); -return x_91; -} -} -} -} -} -} -uint8_t l___private_Lean_Elab_PreDefinition_13__isNonRecursive(lean_object* x_1) { -_start: -{ -lean_object* x_2; size_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = lean_ctor_get(x_1, 4); -lean_inc(x_2); -x_3 = 8192; -x_4 = l_Lean_Expr_FindImpl_initCache; -x_5 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_3, x_2, x_4); -lean_dec(x_1); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -lean_dec(x_5); -if (lean_obj_tag(x_6) == 0) -{ -uint8_t x_7; -x_7 = 1; -return x_7; -} -else -{ -uint8_t x_8; -lean_dec(x_6); -x_8 = 0; -return x_8; -} -} -} -lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; lean_object* x_6; -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_13__isNonRecursive___spec__1(x_1, x_5, x_3, x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_13__isNonRecursive___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_PreDefinition_13__isNonRecursive(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__1(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_4, 2); -lean_inc(x_6); -lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__1(x_5); -lean_ctor_set(x_1, 1, x_7); -lean_ctor_set(x_1, 0, x_6); -return x_1; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_1); -x_10 = lean_ctor_get(x_8, 2); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___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); -return x_12; -} -} -} -} -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_ctor_get(x_7, 2); -lean_inc(x_8); -x_9 = lean_name_eq(x_8, x_1); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_7); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_3, x_10); -lean_dec(x_3); -x_3 = x_11; -goto _start; -} -else -{ -lean_object* x_13; -lean_dec(x_3); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_7); -return x_13; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_array_fget(x_3, x_5); -x_9 = lean_ctor_get(x_8, 2); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_name_eq(x_9, x_2); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -goto _start; -} -else -{ -lean_dec(x_5); -return x_10; -} -} -} -} -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; size_t x_71; uint8_t x_72; -x_66 = lean_ptr_addr(x_3); -x_67 = x_2 == 0 ? 0 : x_66 % x_2; -x_68 = lean_ctor_get(x_5, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_5, 1); -lean_inc(x_69); -x_70 = lean_array_uget(x_68, x_67); -x_71 = lean_ptr_addr(x_70); -lean_dec(x_70); -x_72 = x_71 == x_66; -if (x_72 == 0) -{ -uint8_t x_73; -x_73 = !lean_is_exclusive(x_5); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_74 = lean_ctor_get(x_5, 1); -lean_dec(x_74); -x_75 = lean_ctor_get(x_5, 0); -lean_dec(x_75); -lean_inc(x_3); -x_76 = lean_array_uset(x_68, x_67, x_3); -lean_ctor_set(x_5, 0, x_76); -x_77 = 0; -x_6 = x_77; -x_7 = x_5; -goto block_65; -} -else -{ -lean_object* x_78; lean_object* x_79; uint8_t x_80; -lean_dec(x_5); -lean_inc(x_3); -x_78 = lean_array_uset(x_68, x_67, x_3); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_69); -x_80 = 0; -x_6 = x_80; -x_7 = x_79; -goto block_65; -} -} -else -{ -uint8_t x_81; -lean_dec(x_69); -lean_dec(x_68); -x_81 = 1; -x_6 = x_81; -x_7 = x_5; -goto block_65; -} -block_65: -{ -if (x_6 == 0) -{ -switch (lean_obj_tag(x_3)) { -case 4: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -x_11 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_10, x_8); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_7); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_13 = lean_ctor_get(x_7, 1); -lean_dec(x_13); -x_14 = lean_ctor_get(x_7, 0); -lean_dec(x_14); -lean_inc(x_8); -x_15 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); -lean_ctor_set(x_7, 1, x_15); -x_16 = lean_array_get_size(x_1); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(x_1, x_8, x_1, x_16, x_17); -lean_dec(x_16); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_8); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_4); -lean_ctor_set(x_19, 1, x_7); -return x_19; -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_8); -lean_ctor_set(x_20, 1, x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_7); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_7); -lean_inc(x_8); -x_22 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_9); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_array_get_size(x_1); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(x_1, x_8, x_1, x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; -lean_dec(x_8); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_23); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_8); -lean_ctor_set(x_28, 1, x_4); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -return x_29; -} -} -} -else -{ -lean_object* x_30; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_7); -return x_30; -} -} -case 5: -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_3, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -lean_dec(x_3); -x_33 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_2, x_31, x_4, x_7); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_3 = x_32; -x_4 = x_34; -x_5 = x_35; -goto _start; -} -case 6: -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_3, 1); -lean_inc(x_37); -x_38 = lean_ctor_get(x_3, 2); -lean_inc(x_38); -lean_dec(x_3); -x_39 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_2, x_37, x_4, x_7); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_3 = x_38; -x_4 = x_40; -x_5 = x_41; -goto _start; -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -x_45 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_2, x_43, x_4, x_7); -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_3 = x_44; -x_4 = x_46; -x_5 = x_47; -goto _start; -} -case 8: -{ -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; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_3, 3); -lean_inc(x_51); -lean_dec(x_3); -x_52 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_2, x_49, x_4, x_7); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_2, x_50, x_53, x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_3 = x_51; -x_4 = x_56; -x_5 = x_57; -goto _start; -} -case 10: -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_3, 1); -lean_inc(x_59); -lean_dec(x_3); -x_3 = x_59; -x_5 = x_7; -goto _start; -} -case 11: -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -lean_dec(x_3); -x_3 = x_61; -x_5 = x_7; -goto _start; -} -default: -{ -lean_object* x_63; -lean_dec(x_3); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_4); -lean_ctor_set(x_63, 1, x_7); -return x_63; -} -} -} -else -{ -lean_object* x_64; -lean_dec(x_3); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_4); -lean_ctor_set(x_64, 1, x_7); -return x_64; -} -} -} -} -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; size_t x_71; uint8_t x_72; -x_66 = lean_ptr_addr(x_3); -x_67 = x_2 == 0 ? 0 : x_66 % x_2; -x_68 = lean_ctor_get(x_5, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_5, 1); -lean_inc(x_69); -x_70 = lean_array_uget(x_68, x_67); -x_71 = lean_ptr_addr(x_70); -lean_dec(x_70); -x_72 = x_71 == x_66; -if (x_72 == 0) -{ -uint8_t x_73; -x_73 = !lean_is_exclusive(x_5); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_74 = lean_ctor_get(x_5, 1); -lean_dec(x_74); -x_75 = lean_ctor_get(x_5, 0); -lean_dec(x_75); -lean_inc(x_3); -x_76 = lean_array_uset(x_68, x_67, x_3); -lean_ctor_set(x_5, 0, x_76); -x_77 = 0; -x_6 = x_77; -x_7 = x_5; -goto block_65; -} -else -{ -lean_object* x_78; lean_object* x_79; uint8_t x_80; -lean_dec(x_5); -lean_inc(x_3); -x_78 = lean_array_uset(x_68, x_67, x_3); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_69); -x_80 = 0; -x_6 = x_80; -x_7 = x_79; -goto block_65; -} -} -else -{ -uint8_t x_81; -lean_dec(x_69); -lean_dec(x_68); -x_81 = 1; -x_6 = x_81; -x_7 = x_5; -goto block_65; -} -block_65: -{ -if (x_6 == 0) -{ -switch (lean_obj_tag(x_3)) { -case 4: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -x_11 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_10, x_8); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_7); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_13 = lean_ctor_get(x_7, 1); -lean_dec(x_13); -x_14 = lean_ctor_get(x_7, 0); -lean_dec(x_14); -lean_inc(x_8); -x_15 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); -lean_ctor_set(x_7, 1, x_15); -x_16 = lean_array_get_size(x_1); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(x_1, x_8, x_1, x_16, x_17); -lean_dec(x_16); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_8); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_4); -lean_ctor_set(x_19, 1, x_7); -return x_19; -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_8); -lean_ctor_set(x_20, 1, x_4); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_7); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_7); -lean_inc(x_8); -x_22 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_9); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_array_get_size(x_1); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(x_1, x_8, x_1, x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; -lean_dec(x_8); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_23); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_8); -lean_ctor_set(x_28, 1, x_4); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -return x_29; -} -} -} -else -{ -lean_object* x_30; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_7); -return x_30; -} -} -case 5: -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_3, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_3, 1); -lean_inc(x_32); -lean_dec(x_3); -x_33 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_2, x_31, x_4, x_7); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_3 = x_32; -x_4 = x_34; -x_5 = x_35; -goto _start; -} -case 6: -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_37 = lean_ctor_get(x_3, 1); -lean_inc(x_37); -x_38 = lean_ctor_get(x_3, 2); -lean_inc(x_38); -lean_dec(x_3); -x_39 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_2, x_37, x_4, x_7); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_3 = x_38; -x_4 = x_40; -x_5 = x_41; -goto _start; -} -case 7: -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_3, 1); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 2); -lean_inc(x_44); -lean_dec(x_3); -x_45 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_2, x_43, x_4, x_7); -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_3 = x_44; -x_4 = x_46; -x_5 = x_47; -goto _start; -} -case 8: -{ -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; -x_49 = lean_ctor_get(x_3, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_3, 3); -lean_inc(x_51); -lean_dec(x_3); -x_52 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_2, x_49, x_4, x_7); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_2, x_50, x_53, x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_3 = x_51; -x_4 = x_56; -x_5 = x_57; -goto _start; -} -case 10: -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_3, 1); -lean_inc(x_59); -lean_dec(x_3); -x_3 = x_59; -x_5 = x_7; -goto _start; -} -case 11: -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_3, 2); -lean_inc(x_61); -lean_dec(x_3); -x_3 = x_61; -x_5 = x_7; -goto _start; -} -default: -{ -lean_object* x_63; -lean_dec(x_3); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_4); -lean_ctor_set(x_63, 1, x_7); -return x_63; -} -} -} -else -{ -lean_object* x_64; -lean_dec(x_3); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_4); -lean_ctor_set(x_64, 1, x_7); -return x_64; -} -} -} -} -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_name_eq(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_1, 1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Name_hash(x_2); -x_6 = lean_usize_modn(x_5, x_4); -lean_dec(x_4); -x_7 = lean_array_uget(x_3, x_6); -x_8 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9(x_2, x_7); -lean_dec(x_7); -return x_8; -} -} -lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_2, 2); -lean_inc(x_3); -x_4 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(x_3, x_1); -lean_dec(x_3); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; lean_object* x_6; -x_5 = l___private_Lean_Util_SCC_1__getDataOf___rarg___closed__1; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_2); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -lean_dec(x_4); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_2); -return x_8; -} -} -} -uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_name_eq(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__16(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; 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_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = l_Lean_Name_hash(x_4); -x_8 = lean_usize_modn(x_7, x_6); -lean_dec(x_6); -x_9 = lean_array_uget(x_1, x_8); -lean_ctor_set(x_2, 2, x_9); -x_10 = lean_array_uset(x_1, x_8, x_2); -x_1 = x_10; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_ctor_get(x_2, 1); -x_14 = lean_ctor_get(x_2, 2); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_2); -x_15 = lean_array_get_size(x_1); -x_16 = l_Lean_Name_hash(x_12); -x_17 = lean_usize_modn(x_16, x_15); -lean_dec(x_15); -x_18 = lean_array_uget(x_1, x_17); -x_19 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_19, 2, x_18); -x_20 = lean_array_uset(x_1, x_17, x_19); -x_1 = x_20; -x_2 = x_14; -goto _start; -} -} -} -} -lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__16(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__14(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(2u); -x_5 = lean_nat_mul(x_3, x_4); -lean_dec(x_3); -x_6 = lean_box(0); -x_7 = lean_mk_array(x_5, x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__15(x_8, x_2, x_7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_3, 1); -x_7 = lean_ctor_get(x_3, 2); -x_8 = lean_name_eq(x_5, x_1); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(x_1, x_2, x_7); -lean_ctor_set(x_3, 2, x_9); -return x_3; -} -else -{ -lean_dec(x_6); -lean_dec(x_5); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_1); -return x_3; -} -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_3, 0); -x_11 = lean_ctor_get(x_3, 1); -x_12 = lean_ctor_get(x_3, 2); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_3); -x_13 = lean_name_eq(x_10, x_1); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(x_1, x_2, x_12); -x_15 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_11); -lean_ctor_set(x_15, 2, x_14); -return x_15; -} -else -{ -lean_object* x_16; -lean_dec(x_11); -lean_dec(x_10); -x_16 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_2); -lean_ctor_set(x_16, 2, x_12); -return x_16; -} -} -} -} -} -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_array_get_size(x_6); -x_8 = l_Lean_Name_hash(x_2); -x_9 = lean_usize_modn(x_8, x_7); -x_10 = lean_array_uget(x_6, x_9); -x_11 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13(x_2, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_5, x_12); -lean_dec(x_5); -x_14 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_14, 0, x_2); -lean_ctor_set(x_14, 1, x_3); -lean_ctor_set(x_14, 2, x_10); -x_15 = lean_array_uset(x_6, x_9, x_14); -x_16 = lean_nat_dec_le(x_13, x_7); -lean_dec(x_7); -if (x_16 == 0) -{ -lean_object* x_17; -lean_free_object(x_1); -x_17 = l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__14(x_13, x_15); -return x_17; -} -else -{ -lean_ctor_set(x_1, 1, x_15); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_7); -x_18 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(x_2, x_3, x_10); -x_19 = lean_array_uset(x_6, x_9, x_18); -lean_ctor_set(x_1, 1, x_19); -return x_1; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; -x_20 = lean_ctor_get(x_1, 0); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_1); -x_22 = lean_array_get_size(x_21); -x_23 = l_Lean_Name_hash(x_2); -x_24 = lean_usize_modn(x_23, x_22); -x_25 = lean_array_uget(x_21, x_24); -x_26 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13(x_2, x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_20, x_27); -lean_dec(x_20); -x_29 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_29, 0, x_2); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 2, x_25); -x_30 = lean_array_uset(x_21, x_24, x_29); -x_31 = lean_nat_dec_le(x_28, x_22); -lean_dec(x_22); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__14(x_28, x_30); -return x_32; -} -else -{ -lean_object* x_33; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_28); -lean_ctor_set(x_33, 1, x_30); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_22); -x_34 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__17(x_2, x_3, x_25); -x_35 = lean_array_uset(x_21, x_24, x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_20); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} -lean_object* l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__11(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -lean_inc(x_1); -x_7 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_7, 0, x_1); -lean_ctor_set(x_7, 1, x_4); -x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_add(x_5, x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_5); -x_11 = 1; -lean_inc(x_10); -x_12 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_10); -lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_11); -x_13 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(x_6, x_1, x_12); -lean_ctor_set(x_2, 2, x_13); -lean_ctor_set(x_2, 1, x_9); -lean_ctor_set(x_2, 0, x_7); -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_2); -return x_15; -} -else -{ -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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_16 = lean_ctor_get(x_2, 0); -x_17 = lean_ctor_get(x_2, 1); -x_18 = lean_ctor_get(x_2, 2); -x_19 = lean_ctor_get(x_2, 3); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_2); -lean_inc(x_1); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_16); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_17, x_21); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_17); -x_24 = 1; -lean_inc(x_23); -x_25 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_23); -lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_24); -x_26 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(x_18, x_1, x_25); -x_27 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_27, 0, x_20); -lean_ctor_set(x_27, 1, x_22); -lean_ctor_set(x_27, 2, x_26); -lean_ctor_set(x_27, 3, x_19); -x_28 = lean_box(0); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; -} -} -} -lean_object* l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_ctor_get(x_3, 2); -x_6 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(x_5, x_1); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_3); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_apply_1(x_2, x_9); -x_11 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(x_5, x_1, x_10); -lean_ctor_set(x_3, 2, x_11); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; -} -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_3, 0); -x_15 = lean_ctor_get(x_3, 1); -x_16 = lean_ctor_get(x_3, 2); -x_17 = lean_ctor_get(x_3, 3); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_3); -x_18 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(x_16, x_1); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_2); -lean_dec(x_1); -x_19 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_15); -lean_ctor_set(x_19, 2, x_16); -lean_ctor_set(x_19, 3, x_17); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_22 = lean_ctor_get(x_18, 0); -lean_inc(x_22); -lean_dec(x_18); -x_23 = lean_apply_1(x_2, x_22); -x_24 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__12(x_16, x_1, x_23); -x_25 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_25, 0, x_14); -lean_ctor_set(x_25, 1, x_15); -lean_ctor_set(x_25, 2, x_24); -lean_ctor_set(x_25, 3, x_17); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -} -} -lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_5__updateLowLinkOf___rarg___lambda__1), 2, 1); -lean_closure_set(x_4, 0, x_2); -x_5 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(x_1, x_4, x_3); -return x_5; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -lean_dec(x_3); -x_9 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_7, x_4); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -lean_inc(x_7); -x_13 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(x_1, x_7, x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_7, x_14); -lean_dec(x_7); -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, 1); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_2); -x_19 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(x_2, x_18, x_17); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_3 = x_8; -x_4 = x_20; -goto _start; -} -else -{ -uint8_t x_22; -lean_dec(x_7); -x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*2); -lean_dec(x_10); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(x_11); -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); -lean_dec(x_9); -x_3 = x_8; -x_4 = x_23; -goto _start; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 1); -lean_inc(x_25); -lean_dec(x_9); -lean_inc(x_2); -x_26 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(x_2, x_11, x_25); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_3 = x_8; -x_4 = x_27; -goto _start; -} -} -} -} -} -lean_object* l___private_Lean_Util_SCC_4__resetOnStack___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__23(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; -x_3 = l___private_Lean_Util_SCC_4__resetOnStack___rarg___closed__1; -x_4 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(x_1, x_3, x_2); -return x_4; -} -} -lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = lean_ctor_get(x_4, 3); -x_7 = lean_ctor_get(x_4, 0); -lean_dec(x_7); -x_8 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_8, 0, x_3); -lean_ctor_set(x_8, 1, x_6); -lean_ctor_set(x_4, 3, x_8); -lean_ctor_set(x_4, 0, x_2); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_ctor_get(x_4, 1); -x_12 = lean_ctor_get(x_4, 2); -x_13 = lean_ctor_get(x_4, 3); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_4); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_11); -lean_ctor_set(x_15, 2, x_12); -lean_ctor_set(x_15, 3, x_14); -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_15); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_2); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_2, 0); -x_20 = lean_ctor_get(x_2, 1); -x_21 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1), 1, 0); -lean_inc(x_19); -x_22 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(x_19, x_21, x_4); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_22, 1); -x_25 = lean_ctor_get(x_22, 0); -lean_dec(x_25); -lean_inc(x_19); -lean_ctor_set(x_2, 1, x_3); -x_26 = lean_name_eq(x_1, x_19); -lean_dec(x_19); -if (x_26 == 0) -{ -lean_free_object(x_22); -{ -lean_object* _tmp_1 = x_20; -lean_object* _tmp_2 = x_2; -lean_object* _tmp_3 = x_24; -x_2 = _tmp_1; -x_3 = _tmp_2; -x_4 = _tmp_3; -} -goto _start; -} -else -{ -uint8_t x_28; -x_28 = !lean_is_exclusive(x_24); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_24, 3); -x_30 = lean_ctor_get(x_24, 0); -lean_dec(x_30); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_2); -lean_ctor_set(x_31, 1, x_29); -lean_ctor_set(x_24, 3, x_31); -lean_ctor_set(x_24, 0, x_20); -x_32 = lean_box(0); -lean_ctor_set(x_22, 0, x_32); -return x_22; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_33 = lean_ctor_get(x_24, 1); -x_34 = lean_ctor_get(x_24, 2); -x_35 = lean_ctor_get(x_24, 3); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_24); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_2); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_37, 0, x_20); -lean_ctor_set(x_37, 1, x_33); -lean_ctor_set(x_37, 2, x_34); -lean_ctor_set(x_37, 3, x_36); -x_38 = lean_box(0); -lean_ctor_set(x_22, 1, x_37); -lean_ctor_set(x_22, 0, x_38); -return x_22; -} -} -} -else -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_22, 1); -lean_inc(x_39); -lean_dec(x_22); -lean_inc(x_19); -lean_ctor_set(x_2, 1, x_3); -x_40 = lean_name_eq(x_1, x_19); -lean_dec(x_19); -if (x_40 == 0) -{ -{ -lean_object* _tmp_1 = x_20; -lean_object* _tmp_2 = x_2; -lean_object* _tmp_3 = x_39; -x_2 = _tmp_1; -x_3 = _tmp_2; -x_4 = _tmp_3; -} -goto _start; -} -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; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_39, 2); -lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 3); -lean_inc(x_44); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - lean_ctor_release(x_39, 2); - lean_ctor_release(x_39, 3); - x_45 = x_39; -} else { - lean_dec_ref(x_39); - x_45 = lean_box(0); -} -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_2); -lean_ctor_set(x_46, 1, x_44); -if (lean_is_scalar(x_45)) { - x_47 = lean_alloc_ctor(0, 4, 0); -} else { - x_47 = x_45; -} -lean_ctor_set(x_47, 0, x_20); -lean_ctor_set(x_47, 1, x_42); -lean_ctor_set(x_47, 2, x_43); -lean_ctor_set(x_47, 3, x_46); -x_48 = lean_box(0); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_50 = lean_ctor_get(x_2, 0); -x_51 = lean_ctor_get(x_2, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_2); -x_52 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1), 1, 0); -lean_inc(x_50); -x_53 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__19(x_50, x_52, x_4); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); -} -lean_inc(x_50); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_50); -lean_ctor_set(x_56, 1, x_3); -x_57 = lean_name_eq(x_1, x_50); -lean_dec(x_50); -if (x_57 == 0) -{ -lean_dec(x_55); -x_2 = x_51; -x_3 = x_56; -x_4 = x_54; -goto _start; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_59 = lean_ctor_get(x_54, 1); -lean_inc(x_59); -x_60 = lean_ctor_get(x_54, 2); -lean_inc(x_60); -x_61 = lean_ctor_get(x_54, 3); -lean_inc(x_61); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - lean_ctor_release(x_54, 2); - lean_ctor_release(x_54, 3); - x_62 = x_54; -} else { - lean_dec_ref(x_54); - x_62 = lean_box(0); -} -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_56); -lean_ctor_set(x_63, 1, x_61); -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(0, 4, 0); -} else { - x_64 = x_62; -} -lean_ctor_set(x_64, 0, x_51); -lean_ctor_set(x_64, 1, x_59); -lean_ctor_set(x_64, 2, x_60); -lean_ctor_set(x_64, 3, x_63); -x_65 = lean_box(0); -if (lean_is_scalar(x_55)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_55; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -} -} -} -lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(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_2, 0); -lean_inc(x_3); -x_4 = lean_box(0); -x_5 = l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22(x_1, x_3, x_4, x_2); -return x_5; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_2); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -lean_dec(x_3); -x_9 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_7, x_4); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -lean_inc(x_7); -x_13 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(x_1, x_7, x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_7, x_14); -lean_dec(x_7); -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, 1); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_2); -x_19 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(x_2, x_18, x_17); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_3 = x_8; -x_4 = x_20; -goto _start; -} -else -{ -uint8_t x_22; -lean_dec(x_7); -x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*2); -lean_dec(x_10); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(x_11); -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); -lean_dec(x_9); -x_3 = x_8; -x_4 = x_23; -goto _start; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 1); -lean_inc(x_25); -lean_dec(x_9); -lean_inc(x_2); -x_26 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__18(x_2, x_11, x_25); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_3 = x_8; -x_4 = x_27; -goto _start; -} -} -} -} -} -lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; -lean_inc(x_2); -x_4 = l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__11(x_2, x_3); -x_5 = lean_ctor_get(x_4, 1); -lean_inc(x_5); -lean_dec(x_4); -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2(x_2, x_1, x_6); -x_8 = lean_box(0); -x_9 = 8192; -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_10 = l_Lean_Elab_PreDefinition_inhabited; -x_11 = l_Option_get_x21___rarg___closed__3; -x_12 = lean_panic_fn(x_10, x_11); -x_13 = lean_ctor_get(x_12, 4); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Lean_Expr_FoldConstsImpl_initCache; -x_15 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_9, x_13, x_8, x_14); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -lean_dec(x_15); -lean_inc(x_2); -x_17 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__20(x_1, x_2, x_16, x_5); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_2, x_18); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -lean_dec(x_19); -x_24 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_23); -lean_dec(x_2); -return x_24; -} -else -{ -uint8_t x_25; -lean_dec(x_22); -lean_dec(x_2); -x_25 = !lean_is_exclusive(x_19); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_19, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_19, 0, x_27); -return x_19; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_19, 1); -lean_inc(x_28); -lean_dec(x_19); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -return x_30; -} -} -} -else -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_20, 0); -lean_inc(x_31); -lean_dec(x_20); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -lean_dec(x_21); -lean_dec(x_2); -x_32 = !lean_is_exclusive(x_19); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_19, 0); -lean_dec(x_33); -x_34 = lean_box(0); -lean_ctor_set(x_19, 0, x_34); -return x_19; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_19, 1); -lean_inc(x_35); -lean_dec(x_19); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -else -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_19); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_39 = lean_ctor_get(x_19, 1); -x_40 = lean_ctor_get(x_19, 0); -lean_dec(x_40); -x_41 = lean_ctor_get(x_21, 0); -lean_inc(x_41); -lean_dec(x_21); -x_42 = lean_ctor_get(x_31, 0); -lean_inc(x_42); -lean_dec(x_31); -x_43 = lean_nat_dec_eq(x_41, x_42); -lean_dec(x_42); -lean_dec(x_41); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_2); -x_44 = lean_box(0); -lean_ctor_set(x_19, 0, x_44); -return x_19; -} -else -{ -lean_object* x_45; -lean_free_object(x_19); -x_45 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_39); -lean_dec(x_2); -return x_45; -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_19, 1); -lean_inc(x_46); -lean_dec(x_19); -x_47 = lean_ctor_get(x_21, 0); -lean_inc(x_47); -lean_dec(x_21); -x_48 = lean_ctor_get(x_31, 0); -lean_inc(x_48); -lean_dec(x_31); -x_49 = lean_nat_dec_eq(x_47, x_48); -lean_dec(x_48); -lean_dec(x_47); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -lean_dec(x_2); -x_50 = lean_box(0); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_46); -return x_51; -} -else -{ -lean_object* x_52; -x_52 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_46); -lean_dec(x_2); -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; -x_53 = lean_ctor_get(x_7, 0); -lean_inc(x_53); -lean_dec(x_7); -x_54 = lean_ctor_get(x_53, 4); -lean_inc(x_54); -lean_dec(x_53); -x_55 = l_Lean_Expr_FoldConstsImpl_initCache; -x_56 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_9, x_54, x_8, x_55); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -lean_dec(x_56); -lean_inc(x_2); -x_58 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24(x_1, x_2, x_57, x_5); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_2, x_59); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); -lean_dec(x_61); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -lean_dec(x_60); -x_65 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_64); -lean_dec(x_2); -return x_65; -} -else -{ -uint8_t x_66; -lean_dec(x_63); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_60); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_60, 0); -lean_dec(x_67); -x_68 = lean_box(0); -lean_ctor_set(x_60, 0, x_68); -return x_60; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_60, 1); -lean_inc(x_69); -lean_dec(x_60); -x_70 = lean_box(0); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_69); -return x_71; -} -} -} -else -{ -lean_object* x_72; -x_72 = lean_ctor_get(x_61, 0); -lean_inc(x_72); -lean_dec(x_61); -if (lean_obj_tag(x_72) == 0) -{ -uint8_t x_73; -lean_dec(x_62); -lean_dec(x_2); -x_73 = !lean_is_exclusive(x_60); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_60, 0); -lean_dec(x_74); -x_75 = lean_box(0); -lean_ctor_set(x_60, 0, x_75); -return x_60; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_60, 1); -lean_inc(x_76); -lean_dec(x_60); -x_77 = lean_box(0); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -return x_78; -} -} -else -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_60); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_80 = lean_ctor_get(x_60, 1); -x_81 = lean_ctor_get(x_60, 0); -lean_dec(x_81); -x_82 = lean_ctor_get(x_62, 0); -lean_inc(x_82); -lean_dec(x_62); -x_83 = lean_ctor_get(x_72, 0); -lean_inc(x_83); -lean_dec(x_72); -x_84 = lean_nat_dec_eq(x_82, x_83); -lean_dec(x_83); -lean_dec(x_82); -if (x_84 == 0) -{ -lean_object* x_85; -lean_dec(x_2); -x_85 = lean_box(0); -lean_ctor_set(x_60, 0, x_85); -return x_60; -} -else -{ -lean_object* x_86; -lean_free_object(x_60); -x_86 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_80); -lean_dec(x_2); -return x_86; -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_87 = lean_ctor_get(x_60, 1); -lean_inc(x_87); -lean_dec(x_60); -x_88 = lean_ctor_get(x_62, 0); -lean_inc(x_88); -lean_dec(x_62); -x_89 = lean_ctor_get(x_72, 0); -lean_inc(x_89); -lean_dec(x_72); -x_90 = lean_nat_dec_eq(x_88, x_89); -lean_dec(x_89); -lean_dec(x_88); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_2); -x_91 = lean_box(0); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_87); -return x_92; -} -else -{ -lean_object* x_93; -x_93 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_2, x_87); -lean_dec(x_2); -return x_93; -} -} -} -} -} -} -} -lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__25(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_box(0); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_dec(x_2); -x_8 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_6, x_3); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -lean_dec(x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -x_12 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(x_1, x_6, x_11); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_2 = x_7; -x_3 = x_13; -goto _start; -} -else -{ -lean_object* x_15; -lean_dec(x_10); -lean_dec(x_6); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_dec(x_8); -x_2 = x_7; -x_3 = x_15; -goto _start; -} -} -} -} -lean_object* _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(8u); -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(0); -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1; -x_4 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -lean_ctor_set(x_4, 3, x_1); -return x_4; -} -} -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6(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 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2; -x_4 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__26(x_1, x_2, x_3); -x_5 = lean_ctor_get(x_4, 1); -lean_inc(x_5); -lean_dec(x_4); -x_6 = lean_ctor_get(x_5, 3); -lean_inc(x_6); -lean_dec(x_5); -x_7 = l_List_reverse___rarg(x_6); -return x_7; -} -} -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_ctor_get(x_7, 2); -lean_inc(x_8); -x_9 = lean_name_eq(x_8, x_1); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_7); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_3, x_10); -lean_dec(x_3); -x_3 = x_11; -goto _start; -} -else -{ -lean_object* x_13; -lean_dec(x_3); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_7); -return x_13; -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27(x_10, x_1, x_8); -lean_dec(x_10); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_2, x_12); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l_Lean_Elab_PreDefinition_inhabited; -x_15 = l_Option_get_x21___rarg___closed__3; -x_16 = lean_panic_fn(x_14, x_15); -x_17 = x_16; -x_18 = lean_array_fset(x_9, x_2, x_17); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_18; -goto _start; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_11, 0); -lean_inc(x_20); -lean_dec(x_11); -x_21 = x_20; -x_22 = lean_array_fset(x_9, x_2, x_21); -lean_dec(x_2); -x_2 = x_13; -x_3 = x_22; -goto _start; -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_3); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_2); -x_6 = x_3; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_7 = lean_array_fget(x_3, x_2); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_array_fset(x_3, x_2, x_8); -x_10 = x_7; -x_11 = l_List_redLength___main___rarg(x_10); -x_12 = lean_mk_empty_array_with_capacity(x_11); -lean_dec(x_11); -x_13 = l_List_toArrayAux___main___rarg(x_10, x_12); -x_14 = x_13; -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28(x_1, x_8, x_14); -x_16 = x_15; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_2, x_17); -x_19 = x_16; -x_20 = lean_array_fset(x_9, x_2, x_19); -lean_dec(x_2); -x_2 = x_18; -x_3 = x_20; -goto _start; -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_14__partitionPreDefs(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_2 = l_Array_toList___rarg(x_1); -x_3 = l_List_map___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__1(x_2); -x_4 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6(x_1, x_3); -x_5 = l_List_redLength___main___rarg(x_4); -x_6 = lean_mk_empty_array_with_capacity(x_5); -lean_dec(x_5); -x_7 = l_List_toArrayAux___main___rarg(x_4, x_6); -x_8 = x_7; -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29(x_1, x_9, x_8); -x_11 = x_10; -return x_11; -} -} -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__2(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__3(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___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_2); -lean_dec(x_2); -x_7 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__4(x_1, x_6, x_3, x_4, x_5); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5___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_2); -lean_dec(x_2); -x_7 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__5(x_1, x_6, x_3, x_4, x_5); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__9(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__8(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__7(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__13(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__20___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_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__20(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22___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_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__22(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__21(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24___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_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__24(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__10(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__26___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_PreDefinition_14__partitionPreDefs___spec__26(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__27(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__28(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__29(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l___private_Lean_Elab_PreDefinition_14__partitionPreDefs___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_PreDefinition_14__partitionPreDefs(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("WIP"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(":=\n"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___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_PreDefinition_15__tryStructuralRecursion_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_6, 0); -x_10 = l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; -x_11 = l_Lean_checkTraceOption(x_9, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3; -x_13 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_13; -} -else -{ -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; -x_14 = lean_ctor_get(x_1, 2); -lean_inc(x_14); -x_15 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_ctor_get(x_1, 4); -lean_inc(x_18); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_17); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_10, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3; -x_24 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); -return x_24; -} -} -} -lean_object* l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_15__tryStructuralRecursion_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_9; -} -} -lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("body"); -return x_1; -} -} -lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; -x_2 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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; -x_10 = lean_array_get_size(x_1); -x_11 = lean_nat_dec_lt(x_2, x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_2); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_array_fget(x_1, x_2); -x_15 = lean_ctor_get(x_7, 0); -x_16 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; -x_17 = l_Lean_checkTraceOption(x_15, x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_14); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_2, x_18); -lean_dec(x_2); -x_2 = x_19; -goto _start; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_21 = lean_ctor_get(x_14, 2); -lean_inc(x_21); -x_22 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_24 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_ctor_get(x_14, 3); -lean_inc(x_25); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3; -x_29 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_MessageData_ofList___closed__3; -x_31 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = lean_ctor_get(x_14, 4); -lean_inc(x_32); -lean_dec(x_14); -x_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_16, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_2, x_37); -lean_dec(x_2); -x_2 = x_38; -x_9 = x_36; -goto _start; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_nat_dec_lt(x_4, x_3); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_4); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_array_fget(x_2, x_4); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 3); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_4, x_10); -lean_dec(x_4); -x_4 = x_11; -goto _start; -} -else -{ -lean_dec(x_4); -return x_9; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_nat_dec_lt(x_4, x_3); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_4); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_array_fget(x_2, x_4); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 2); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_4, x_10); -lean_dec(x_4); -x_4 = x_11; -goto _start; -} -else -{ -lean_dec(x_4); -return x_9; -} -} -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_array_get_size(x_1); -x_11 = lean_nat_dec_lt(x_2, x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_14 = lean_array_fget(x_1, x_2); -x_15 = lean_array_get_size(x_14); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_dec_eq(x_15, x_16); -if (x_17 == 0) -{ -lean_object* x_52; -x_52 = lean_box(0); -x_18 = x_52; -goto block_51; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = l_Lean_Elab_PreDefinition_inhabited; -x_54 = lean_unsigned_to_nat(0u); -x_55 = lean_array_get(x_53, x_14, x_54); -lean_inc(x_55); -x_56 = l___private_Lean_Elab_PreDefinition_13__isNonRecursive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; -lean_dec(x_55); -x_57 = lean_box(0); -x_18 = x_57; -goto block_51; -} -else -{ -uint8_t x_58; lean_object* x_59; -lean_dec(x_15); -lean_dec(x_14); -x_58 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_3); -x_59 = l___private_Lean_Elab_PreDefinition_7__addNonRecAux(x_55, x_58, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_nat_add(x_2, x_16); -lean_dec(x_2); -x_2 = x_61; -x_9 = x_60; -goto _start; -} -else -{ -uint8_t x_63; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_63 = !lean_is_exclusive(x_59); -if (x_63 == 0) -{ -return x_59; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_59, 0); -x_65 = lean_ctor_get(x_59, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_59); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -} -block_51: -{ -lean_object* x_19; uint8_t x_20; -lean_dec(x_18); -x_19 = lean_unsigned_to_nat(0u); -x_20 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__2(x_14, x_14, x_15, x_19); -if (x_20 == 0) -{ -uint8_t x_21; -x_21 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(x_14, x_14, x_15, x_19); -lean_dec(x_15); -if (x_21 == 0) -{ -lean_dec(x_2); -if (x_17 == 0) -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -lean_dec(x_14); -x_22 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3; -x_23 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_22, 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); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -return x_23; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_23); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = l_Lean_Elab_PreDefinition_inhabited; -x_29 = lean_array_get(x_28, x_14, x_19); -lean_dec(x_14); -x_30 = l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f(x_29, 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_29); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -return x_30; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_35 = l___private_Lean_Elab_PreDefinition_12__addAndCompilePartial(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_nat_add(x_2, x_16); -lean_dec(x_2); -x_2 = x_37; -x_9 = x_36; -goto _start; -} -else -{ -uint8_t x_39; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_35); -if (x_39 == 0) -{ -return x_35; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_35); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -} -else -{ -lean_object* x_43; -lean_dec(x_15); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_3); -x_43 = l___private_Lean_Elab_PreDefinition_10__addAndCompileUnsafe(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_14); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_nat_add(x_2, x_16); -lean_dec(x_2); -x_2 = x_45; -x_9 = x_44; -goto _start; -} -else -{ -uint8_t x_47; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_47 = !lean_is_exclusive(x_43); -if (x_47 == 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_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; -} -} -} -} -} -} -} -lean_object* l_Lean_Elab_addPreDefinitions(lean_object* x_1, lean_object* x_2, 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 = lean_unsigned_to_nat(0u); -x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l___private_Lean_Elab_PreDefinition_14__partitionPreDefs(x_1); -x_13 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(x_12, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_12); -return x_13; -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; -x_5 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_6 = lean_box(x_5); -return x_6; -} -} -lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3___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_Lean_Elab_addPreDefinitions___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_6 = lean_box(x_5); -return x_6; -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(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_Lean_Elab_addPreDefinitions___boxed(lean_object* x_1, lean_object* x_2, 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_addPreDefinitions(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_1); -return x_9; -} -} lean_object* initialize_Init(lean_object*); -lean_object* initialize_Lean_Util_SCC(lean_object*); -lean_object* initialize_Lean_Elab_MkInhabitant(lean_object*); -lean_object* initialize_Lean_Elab_Term(lean_object*); -lean_object* initialize_Lean_Elab_DefView(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Basic(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Structural(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Main(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_PreDefinition(lean_object* w) { lean_object * res; @@ -7988,48 +25,15 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Util_SCC(lean_io_mk_world()); +res = initialize_Lean_Elab_PreDefinition_Basic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_MkInhabitant(lean_io_mk_world()); +res = initialize_Lean_Elab_PreDefinition_Structural(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_Term(lean_io_mk_world()); +res = initialize_Lean_Elab_PreDefinition_Main(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_DefView(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_PreDefinition_inhabited___closed__1 = _init_l_Lean_Elab_PreDefinition_inhabited___closed__1(); -lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited___closed__1); -l_Lean_Elab_PreDefinition_inhabited___closed__2 = _init_l_Lean_Elab_PreDefinition_inhabited___closed__2(); -lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited___closed__2); -l_Lean_Elab_PreDefinition_inhabited = _init_l_Lean_Elab_PreDefinition_inhabited(); -lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited); -l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1 = _init_l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_4__getLevelParamsPreDecls___closed__1); -l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1(); -lean_mark_persistent(l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__1); -l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2(); -lean_mark_persistent(l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_14__partitionPreDefs___spec__6___closed__2); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__1); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__2); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__3); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__4); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__5 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__5); -l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6 = _init_l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_15__tryStructuralRecursion_x3f___closed__6); -l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1); -l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2); -l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c new file mode 100644 index 0000000000..b1131d3b4c --- /dev/null +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c @@ -0,0 +1,4456 @@ +// Lean compiler output +// Module: Lean.Elab.PreDefinition.Basic +// Imports: Init Lean.Util.SCC Lean.Meta.AbstractNestedProofs Lean.Elab.MkInhabitant Lean.Elab.Term Lean.Elab.DefView +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr___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_fixLevelParams___spec__3(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l_Lean_addDecl___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_USize_decEq(size_t, size_t); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* lean_expr_update_mdata(lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l___private_Lean_Elab_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_5__shareCommon___spec__2(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Declaration_inhabited; +extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +extern lean_object* l_Std_ShareCommon_State_empty; +lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_PreDefinition_inhabited; +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint32_t l_UInt32_add(uint32_t, uint32_t); +lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(lean_object*, uint8_t, 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_fixLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyAttributesOf(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyAttributes___at_Lean_Elab_applyAttributesOf___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_PreDefinition_Basic_4__getLevelParamsPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited___closed__1; +lean_object* lean_state_sharecommon(lean_object*, lean_object*); +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_levelMVarToParamPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___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_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addNonRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1; +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getMaxHeight(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; +lean_object* l_Lean_Elab_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_compileDecl___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_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed(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*); +uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); +lean_object* l_Lean_Elab_fixLevelParams___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_Elab_DefKind_isTheorem(uint8_t); +lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___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_Std_HashSet_Inhabited___closed__1; +lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_mod(size_t, size_t); +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileUnsafeRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_ptr_addr(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___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_PreDefinition_Basic_5__shareCommon(lean_object*); +lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyAttributesOf___boxed(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_fixLevelParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyAttributes___at_Lean_Elab_applyAttributesOf___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__2; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); +extern lean_object* l_Lean_TraceState_Inhabited___closed__1; +lean_object* l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object*); +lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__1___boxed(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*); +extern lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__1; +extern lean_object* l_Lean_Compiler_mkUnsafeRecName___closed__1; +lean_object* l_unsafeCast(lean_object*, lean_object*, 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* lean_expr_update_app(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileNonRec(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_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); +lean_object* l_Std_ShareCommonT_withShareCommon___at___private_Lean_Elab_PreDefinition_Basic_5__shareCommon___spec__1(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; +lean_object* l___private_Lean_Elab_PreDefinition_Basic_3__collectLevelParamsExpr(lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* _init_l_Lean_Elab_PreDefinition_inhabited___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = 0; +x_3 = 0; +x_4 = l_Array_empty___closed__1; +x_5 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 1, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_3); +return x_5; +} +} +lean_object* _init_l_Lean_Elab_PreDefinition_inhabited___closed__2() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = lean_box(0); +x_2 = 0; +x_3 = l_Lean_Elab_PreDefinition_inhabited___closed__1; +x_4 = lean_box(0); +x_5 = l_Lean_Expr_Inhabited___closed__1; +x_6 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set(x_6, 4, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*5, x_2); +return x_6; +} +} +lean_object* _init_l_Lean_Elab_PreDefinition_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_PreDefinition_inhabited___closed__2; +return x_1; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___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; +x_10 = lean_array_get_size(x_2); +x_11 = lean_nat_dec_lt(x_1, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +lean_dec(x_1); +x_12 = x_2; +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; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +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 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 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_19 = lean_ctor_get(x_17, 3); +x_20 = lean_ctor_get(x_17, 4); +lean_inc(x_3); +x_21 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_3); +x_24 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_ctor_set(x_17, 4, x_25); +lean_ctor_set(x_17, 3, x_22); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_1, x_27); +x_29 = x_17; +x_30 = lean_array_fset(x_16, x_1, x_29); +lean_dec(x_1); +x_1 = x_28; +x_2 = x_30; +x_9 = x_26; +goto _start; +} +else +{ +uint8_t 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_32 = lean_ctor_get_uint8(x_17, sizeof(void*)*5); +x_33 = lean_ctor_get(x_17, 0); +x_34 = lean_ctor_get(x_17, 1); +x_35 = lean_ctor_get(x_17, 2); +x_36 = lean_ctor_get(x_17, 3); +x_37 = lean_ctor_get(x_17, 4); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_17); +lean_inc(x_3); +x_38 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +lean_inc(x_3); +x_41 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_44, 0, x_33); +lean_ctor_set(x_44, 1, x_34); +lean_ctor_set(x_44, 2, x_35); +lean_ctor_set(x_44, 3, x_39); +lean_ctor_set(x_44, 4, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*5, x_32); +x_45 = lean_unsigned_to_nat(1u); +x_46 = lean_nat_add(x_1, x_45); +x_47 = x_44; +x_48 = lean_array_fset(x_16, x_1, x_47); +lean_dec(x_1); +x_1 = x_46; +x_2 = x_48; +x_9 = x_43; +goto _start; +} +} +} +} +lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(lean_object* x_1, lean_object* x_2, 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_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed), 9, 2); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +x_12 = x_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_Lean_Elab_instantiateMVarsAtPreDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_umapMAux___main___at_Lean_Elab_instantiateMVarsAtPreDecls___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_5); +lean_dec(x_4); +return x_10; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_19; +x_10 = lean_st_ref_get(x_2, x_9); +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_Term_levelMVarToParam(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_st_ref_set(x_2, x_17, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_16); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_PreDefinition_Basic_1__levelMVarToParamExpr(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); +return x_10; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___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; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_1, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_4); +lean_dec(x_1); +x_13 = x_2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_array_fget(x_2, x_1); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_fset(x_2, x_1, x_16); +x_18 = x_15; +x_19 = !lean_is_exclusive(x_18); +if (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; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_20 = lean_ctor_get(x_18, 3); +x_21 = lean_ctor_get(x_18, 4); +lean_inc(x_4); +x_22 = l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_4); +x_25 = l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_ctor_set(x_18, 4, x_26); +lean_ctor_set(x_18, 3, x_23); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_1, x_28); +x_30 = x_18; +x_31 = lean_array_fset(x_17, x_1, x_30); +lean_dec(x_1); +x_1 = x_29; +x_2 = x_31; +x_10 = x_27; +goto _start; +} +else +{ +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; 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_33 = lean_ctor_get_uint8(x_18, sizeof(void*)*5); +x_34 = lean_ctor_get(x_18, 0); +x_35 = lean_ctor_get(x_18, 1); +x_36 = lean_ctor_get(x_18, 2); +x_37 = lean_ctor_get(x_18, 3); +x_38 = lean_ctor_get(x_18, 4); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_18); +lean_inc(x_4); +x_39 = l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_4); +x_42 = l___private_Lean_Elab_PreDefinition_Basic_1__levelMVarToParamExpr(x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_41); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_45, 0, x_34); +lean_ctor_set(x_45, 1, x_35); +lean_ctor_set(x_45, 2, x_36); +lean_ctor_set(x_45, 3, x_40); +lean_ctor_set(x_45, 4, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*5, x_33); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_1, x_46); +x_48 = x_45; +x_49 = lean_array_fset(x_17, x_1, x_48); +lean_dec(x_1); +x_1 = x_47; +x_2 = x_49; +x_10 = x_44; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; +x_10 = x_1; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___spec__1___boxed), 10, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_10); +x_13 = x_12; +x_14 = lean_apply_8(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_14; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___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_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux___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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object* x_1, lean_object* x_2, 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 = lean_unsigned_to_nat(1u); +x_10 = lean_st_mk_ref(x_9, x_8); +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); +lean_inc(x_11); +x_13 = l___private_Lean_Elab_PreDefinition_Basic_2__levelMVarToParamPreDeclsAux(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_get(x_11, x_15); +lean_dec(x_11); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_14); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_11); +x_21 = !lean_is_exclusive(x_13); +if (x_21 == 0) +{ +return x_13; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_3__collectLevelParamsExpr(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_Lean_CollectLevelParams_main___main(x_1, x_2); +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_1); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_8 = lean_array_fget(x_1, x_2); +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +x_10 = l___private_Lean_Elab_PreDefinition_Basic_3__collectLevelParamsExpr(x_9, x_3); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_8, 4); +lean_inc(x_12); +lean_dec(x_8); +x_13 = l___private_Lean_Elab_PreDefinition_Basic_3__collectLevelParamsExpr(x_12, x_11); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_2, x_15); +lean_dec(x_2); +x_2 = x_16; +x_3 = x_14; +goto _start; +} +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_HashSet_Inhabited___closed__1; +x_2 = l_Array_empty___closed__1; +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_unsigned_to_nat(0u); +x_12 = l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1; +x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1(x_1, x_11, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_14, 2); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_Elab_sortDeclLevelParams(x_2, x_3, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, 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); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_4); +x_21 = lean_ctor_get(x_16, 0); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_10); +return x_22; +} +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___spec__1(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls(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_1); +return x_11; +} +} +lean_object* l_Std_ShareCommonT_withShareCommon___at___private_Lean_Elab_PreDefinition_Basic_5__shareCommon___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_state_sharecommon(x_2, x_1); +return x_3; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_5__shareCommon___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = x_2; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_8 = lean_array_fget(x_2, x_1); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_array_fset(x_2, x_1, x_9); +x_11 = x_8; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_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; +x_13 = lean_ctor_get(x_11, 3); +x_14 = lean_ctor_get(x_11, 4); +x_15 = lean_state_sharecommon(x_3, 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_state_sharecommon(x_17, x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +lean_ctor_set(x_11, 4, x_19); +lean_ctor_set(x_11, 3, x_16); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_1, x_21); +x_23 = x_11; +x_24 = lean_array_fset(x_10, x_1, x_23); +lean_dec(x_1); +x_1 = x_22; +x_2 = x_24; +x_3 = x_20; +goto _start; +} +else +{ +uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*5); +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +x_29 = lean_ctor_get(x_11, 2); +x_30 = lean_ctor_get(x_11, 3); +x_31 = lean_ctor_get(x_11, 4); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_32 = lean_state_sharecommon(x_3, x_30); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_state_sharecommon(x_34, x_31); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_28); +lean_ctor_set(x_38, 2, x_29); +lean_ctor_set(x_38, 3, x_33); +lean_ctor_set(x_38, 4, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*5, x_26); +x_39 = lean_unsigned_to_nat(1u); +x_40 = lean_nat_add(x_1, x_39); +x_41 = x_38; +x_42 = lean_array_fset(x_10, x_1, x_41); +lean_dec(x_1); +x_1 = x_40; +x_2 = x_42; +x_3 = x_37; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_5__shareCommon(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_2 = x_1; +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Basic_5__shareCommon___spec__2), 3, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +x_5 = l_Std_ShareCommon_State_empty; +x_6 = x_4; +x_7 = lean_apply_1(x_6, x_5); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +return x_8; +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_161; lean_object* x_162; size_t x_163; uint8_t x_164; +x_7 = lean_ptr_addr(x_5); +x_8 = x_4 == 0 ? 0 : x_7 % x_4; +x_161 = lean_ctor_get(x_6, 0); +lean_inc(x_161); +x_162 = lean_array_uget(x_161, x_8); +x_163 = lean_ptr_addr(x_162); +lean_dec(x_162); +x_164 = x_163 == x_7; +if (x_164 == 0) +{ +if (lean_obj_tag(x_5) == 4) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_165 = lean_ctor_get(x_5, 0); +lean_inc(x_165); +x_166 = lean_array_get_size(x_2); +x_167 = lean_unsigned_to_nat(0u); +x_168 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_165, x_2, x_166, x_167); +lean_dec(x_166); +if (x_168 == 0) +{ +lean_object* x_169; +lean_dec(x_165); +lean_dec(x_161); +x_169 = lean_box(0); +x_9 = x_169; +goto block_160; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_170 = l_Lean_mkConst(x_165, x_3); +x_171 = lean_array_uset(x_161, x_8, x_5); +x_172 = lean_ctor_get(x_6, 1); +lean_inc(x_172); +lean_dec(x_6); +lean_inc(x_170); +x_173 = lean_array_uset(x_172, x_8, x_170); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_173); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_170); +lean_ctor_set(x_175, 1, x_174); +return x_175; +} +} +else +{ +lean_object* x_176; +lean_dec(x_161); +x_176 = lean_box(0); +x_9 = x_176; +goto block_160; +} +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_161); +lean_dec(x_5); +lean_dec(x_3); +x_177 = lean_ctor_get(x_6, 1); +lean_inc(x_177); +x_178 = lean_array_uget(x_177, x_8); +lean_dec(x_177); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_6); +return x_179; +} +block_160: +{ +lean_dec(x_9); +switch (lean_obj_tag(x_5)) { +case 5: +{ +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_5, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_inc(x_3); +x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_10, x_6); +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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_11, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_inc(x_5); +x_20 = lean_array_uset(x_19, x_8, x_5); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_expr_update_app(x_5, x_13, x_17); +lean_inc(x_22); +x_23 = lean_array_uset(x_21, x_8, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_15, 1, x_24); +lean_ctor_set(x_15, 0, x_22); +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_inc(x_5); +x_28 = lean_array_uset(x_27, x_8, x_5); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_expr_update_app(x_5, x_13, x_25); +lean_inc(x_30); +x_31 = lean_array_uset(x_29, x_8, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +case 6: +{ +lean_object* x_34; lean_object* x_35; uint64_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +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_uint64(x_5, sizeof(void*)*3); +lean_inc(x_3); +x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_34, x_6); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_35, x_39); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_inc(x_5); +x_45 = lean_array_uset(x_44, x_8, x_5); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = (uint8_t)((x_36 << 24) >> 61); +x_48 = lean_expr_update_lambda(x_5, x_47, x_38, x_42); +lean_inc(x_48); +x_49 = lean_array_uset(x_46, x_8, x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_45); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_40, 1, x_50); +lean_ctor_set(x_40, 0, x_48); +return x_40; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_51 = lean_ctor_get(x_40, 0); +x_52 = lean_ctor_get(x_40, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_40); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +lean_inc(x_5); +x_54 = lean_array_uset(x_53, x_8, x_5); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = (uint8_t)((x_36 << 24) >> 61); +x_57 = lean_expr_update_lambda(x_5, x_56, x_38, x_51); +lean_inc(x_57); +x_58 = lean_array_uset(x_55, x_8, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +case 7: +{ +lean_object* x_61; lean_object* x_62; uint64_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_61 = lean_ctor_get(x_5, 1); +lean_inc(x_61); +x_62 = lean_ctor_get(x_5, 2); +lean_inc(x_62); +x_63 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); +lean_inc(x_3); +x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_61, x_6); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_62, x_66); +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_69 = lean_ctor_get(x_67, 0); +x_70 = lean_ctor_get(x_67, 1); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +lean_inc(x_5); +x_72 = lean_array_uset(x_71, x_8, x_5); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = (uint8_t)((x_63 << 24) >> 61); +x_75 = lean_expr_update_forall(x_5, x_74, x_65, x_69); +lean_inc(x_75); +x_76 = lean_array_uset(x_73, x_8, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_72); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_67, 1, x_77); +lean_ctor_set(x_67, 0, x_75); +return x_67; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_78 = lean_ctor_get(x_67, 0); +x_79 = lean_ctor_get(x_67, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_67); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +lean_inc(x_5); +x_81 = lean_array_uset(x_80, x_8, x_5); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = (uint8_t)((x_63 << 24) >> 61); +x_84 = lean_expr_update_forall(x_5, x_83, x_65, x_78); +lean_inc(x_84); +x_85 = lean_array_uset(x_82, x_8, x_84); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_81); +lean_ctor_set(x_86, 1, x_85); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +case 8: +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_88 = lean_ctor_get(x_5, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_5, 2); +lean_inc(x_89); +x_90 = lean_ctor_get(x_5, 3); +lean_inc(x_90); +lean_inc(x_3); +x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_88, x_6); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +lean_inc(x_3); +x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_89, x_93); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_90, x_96); +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_99 = lean_ctor_get(x_97, 0); +x_100 = lean_ctor_get(x_97, 1); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +lean_inc(x_5); +x_102 = lean_array_uset(x_101, x_8, x_5); +x_103 = lean_ctor_get(x_100, 1); +lean_inc(x_103); +lean_dec(x_100); +x_104 = lean_expr_update_let(x_5, x_92, x_95, x_99); +lean_inc(x_104); +x_105 = lean_array_uset(x_103, x_8, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_97, 1, x_106); +lean_ctor_set(x_97, 0, x_104); +return x_97; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_107 = lean_ctor_get(x_97, 0); +x_108 = lean_ctor_get(x_97, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_97); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +lean_inc(x_5); +x_110 = lean_array_uset(x_109, x_8, x_5); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = lean_expr_update_let(x_5, x_92, x_95, x_107); +lean_inc(x_112); +x_113 = lean_array_uset(x_111, x_8, x_112); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_110); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +case 10: +{ +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_5, 1); +lean_inc(x_116); +x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_116, x_6); +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_119 = lean_ctor_get(x_117, 0); +x_120 = lean_ctor_get(x_117, 1); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +lean_inc(x_5); +x_122 = lean_array_uset(x_121, x_8, x_5); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = lean_expr_update_mdata(x_5, x_119); +lean_inc(x_124); +x_125 = lean_array_uset(x_123, x_8, x_124); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_122); +lean_ctor_set(x_126, 1, x_125); +lean_ctor_set(x_117, 1, x_126); +lean_ctor_set(x_117, 0, x_124); +return x_117; +} +else +{ +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; +x_127 = lean_ctor_get(x_117, 0); +x_128 = lean_ctor_get(x_117, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_117); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +lean_inc(x_5); +x_130 = lean_array_uset(x_129, x_8, x_5); +x_131 = lean_ctor_get(x_128, 1); +lean_inc(x_131); +lean_dec(x_128); +x_132 = lean_expr_update_mdata(x_5, x_127); +lean_inc(x_132); +x_133 = lean_array_uset(x_131, x_8, x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_130); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +case 11: +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_5, 2); +lean_inc(x_136); +x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_4, x_136, x_6); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +lean_inc(x_5); +x_142 = lean_array_uset(x_141, x_8, x_5); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_expr_update_proj(x_5, x_139); +lean_inc(x_144); +x_145 = lean_array_uset(x_143, x_8, x_144); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_142); +lean_ctor_set(x_146, 1, x_145); +lean_ctor_set(x_137, 1, x_146); +lean_ctor_set(x_137, 0, x_144); +return x_137; +} +else +{ +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_147 = lean_ctor_get(x_137, 0); +x_148 = lean_ctor_get(x_137, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_137); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +lean_inc(x_5); +x_150 = lean_array_uset(x_149, x_8, x_5); +x_151 = lean_ctor_get(x_148, 1); +lean_inc(x_151); +lean_dec(x_148); +x_152 = lean_expr_update_proj(x_5, x_147); +lean_inc(x_152); +x_153 = lean_array_uset(x_151, x_8, x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_150); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +case 12: +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_5); +lean_dec(x_3); +x_156 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; +x_157 = l_unreachable_x21___rarg(x_156); +x_158 = lean_apply_1(x_157, x_6); +return x_158; +} +default: +{ +lean_object* x_159; +lean_dec(x_3); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_5); +lean_ctor_set(x_159, 1, x_6); +return x_159; +} +} +} +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_161; lean_object* x_162; size_t x_163; uint8_t x_164; +x_7 = lean_ptr_addr(x_5); +x_8 = x_4 == 0 ? 0 : x_7 % x_4; +x_161 = lean_ctor_get(x_6, 0); +lean_inc(x_161); +x_162 = lean_array_uget(x_161, x_8); +x_163 = lean_ptr_addr(x_162); +lean_dec(x_162); +x_164 = x_163 == x_7; +if (x_164 == 0) +{ +if (lean_obj_tag(x_5) == 4) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_165 = lean_ctor_get(x_5, 0); +lean_inc(x_165); +x_166 = lean_array_get_size(x_2); +x_167 = lean_unsigned_to_nat(0u); +x_168 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_165, x_2, x_166, x_167); +lean_dec(x_166); +if (x_168 == 0) +{ +lean_object* x_169; +lean_dec(x_165); +lean_dec(x_161); +x_169 = lean_box(0); +x_9 = x_169; +goto block_160; +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_170 = l_Lean_mkConst(x_165, x_3); +x_171 = lean_array_uset(x_161, x_8, x_5); +x_172 = lean_ctor_get(x_6, 1); +lean_inc(x_172); +lean_dec(x_6); +lean_inc(x_170); +x_173 = lean_array_uset(x_172, x_8, x_170); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_173); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_170); +lean_ctor_set(x_175, 1, x_174); +return x_175; +} +} +else +{ +lean_object* x_176; +lean_dec(x_161); +x_176 = lean_box(0); +x_9 = x_176; +goto block_160; +} +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_161); +lean_dec(x_5); +lean_dec(x_3); +x_177 = lean_ctor_get(x_6, 1); +lean_inc(x_177); +x_178 = lean_array_uget(x_177, x_8); +lean_dec(x_177); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_6); +return x_179; +} +block_160: +{ +lean_dec(x_9); +switch (lean_obj_tag(x_5)) { +case 5: +{ +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_5, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_inc(x_3); +x_12 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_10, x_6); +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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_11, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_inc(x_5); +x_20 = lean_array_uset(x_19, x_8, x_5); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_expr_update_app(x_5, x_13, x_17); +lean_inc(x_22); +x_23 = lean_array_uset(x_21, x_8, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_15, 1, x_24); +lean_ctor_set(x_15, 0, x_22); +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_inc(x_5); +x_28 = lean_array_uset(x_27, x_8, x_5); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_expr_update_app(x_5, x_13, x_25); +lean_inc(x_30); +x_31 = lean_array_uset(x_29, x_8, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +case 6: +{ +lean_object* x_34; lean_object* x_35; uint64_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +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_uint64(x_5, sizeof(void*)*3); +lean_inc(x_3); +x_37 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_34, x_6); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_35, x_39); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_inc(x_5); +x_45 = lean_array_uset(x_44, x_8, x_5); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = (uint8_t)((x_36 << 24) >> 61); +x_48 = lean_expr_update_lambda(x_5, x_47, x_38, x_42); +lean_inc(x_48); +x_49 = lean_array_uset(x_46, x_8, x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_45); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_40, 1, x_50); +lean_ctor_set(x_40, 0, x_48); +return x_40; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_51 = lean_ctor_get(x_40, 0); +x_52 = lean_ctor_get(x_40, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_40); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +lean_inc(x_5); +x_54 = lean_array_uset(x_53, x_8, x_5); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = (uint8_t)((x_36 << 24) >> 61); +x_57 = lean_expr_update_lambda(x_5, x_56, x_38, x_51); +lean_inc(x_57); +x_58 = lean_array_uset(x_55, x_8, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +case 7: +{ +lean_object* x_61; lean_object* x_62; uint64_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_61 = lean_ctor_get(x_5, 1); +lean_inc(x_61); +x_62 = lean_ctor_get(x_5, 2); +lean_inc(x_62); +x_63 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); +lean_inc(x_3); +x_64 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_61, x_6); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_62, x_66); +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_69 = lean_ctor_get(x_67, 0); +x_70 = lean_ctor_get(x_67, 1); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +lean_inc(x_5); +x_72 = lean_array_uset(x_71, x_8, x_5); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = (uint8_t)((x_63 << 24) >> 61); +x_75 = lean_expr_update_forall(x_5, x_74, x_65, x_69); +lean_inc(x_75); +x_76 = lean_array_uset(x_73, x_8, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_72); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_67, 1, x_77); +lean_ctor_set(x_67, 0, x_75); +return x_67; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_78 = lean_ctor_get(x_67, 0); +x_79 = lean_ctor_get(x_67, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_67); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +lean_inc(x_5); +x_81 = lean_array_uset(x_80, x_8, x_5); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = (uint8_t)((x_63 << 24) >> 61); +x_84 = lean_expr_update_forall(x_5, x_83, x_65, x_78); +lean_inc(x_84); +x_85 = lean_array_uset(x_82, x_8, x_84); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_81); +lean_ctor_set(x_86, 1, x_85); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +case 8: +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_88 = lean_ctor_get(x_5, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_5, 2); +lean_inc(x_89); +x_90 = lean_ctor_get(x_5, 3); +lean_inc(x_90); +lean_inc(x_3); +x_91 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_88, x_6); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +lean_inc(x_3); +x_94 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_89, x_93); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_90, x_96); +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_99 = lean_ctor_get(x_97, 0); +x_100 = lean_ctor_get(x_97, 1); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +lean_inc(x_5); +x_102 = lean_array_uset(x_101, x_8, x_5); +x_103 = lean_ctor_get(x_100, 1); +lean_inc(x_103); +lean_dec(x_100); +x_104 = lean_expr_update_let(x_5, x_92, x_95, x_99); +lean_inc(x_104); +x_105 = lean_array_uset(x_103, x_8, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_97, 1, x_106); +lean_ctor_set(x_97, 0, x_104); +return x_97; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_107 = lean_ctor_get(x_97, 0); +x_108 = lean_ctor_get(x_97, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_97); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +lean_inc(x_5); +x_110 = lean_array_uset(x_109, x_8, x_5); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +x_112 = lean_expr_update_let(x_5, x_92, x_95, x_107); +lean_inc(x_112); +x_113 = lean_array_uset(x_111, x_8, x_112); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_110); +lean_ctor_set(x_114, 1, x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +case 10: +{ +lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_116 = lean_ctor_get(x_5, 1); +lean_inc(x_116); +x_117 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_116, x_6); +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_119 = lean_ctor_get(x_117, 0); +x_120 = lean_ctor_get(x_117, 1); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +lean_inc(x_5); +x_122 = lean_array_uset(x_121, x_8, x_5); +x_123 = lean_ctor_get(x_120, 1); +lean_inc(x_123); +lean_dec(x_120); +x_124 = lean_expr_update_mdata(x_5, x_119); +lean_inc(x_124); +x_125 = lean_array_uset(x_123, x_8, x_124); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_122); +lean_ctor_set(x_126, 1, x_125); +lean_ctor_set(x_117, 1, x_126); +lean_ctor_set(x_117, 0, x_124); +return x_117; +} +else +{ +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; +x_127 = lean_ctor_get(x_117, 0); +x_128 = lean_ctor_get(x_117, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_117); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +lean_inc(x_5); +x_130 = lean_array_uset(x_129, x_8, x_5); +x_131 = lean_ctor_get(x_128, 1); +lean_inc(x_131); +lean_dec(x_128); +x_132 = lean_expr_update_mdata(x_5, x_127); +lean_inc(x_132); +x_133 = lean_array_uset(x_131, x_8, x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_130); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +case 11: +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_5, 2); +lean_inc(x_136); +x_137 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_4, x_136, x_6); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +lean_inc(x_5); +x_142 = lean_array_uset(x_141, x_8, x_5); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_expr_update_proj(x_5, x_139); +lean_inc(x_144); +x_145 = lean_array_uset(x_143, x_8, x_144); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_142); +lean_ctor_set(x_146, 1, x_145); +lean_ctor_set(x_137, 1, x_146); +lean_ctor_set(x_137, 0, x_144); +return x_137; +} +else +{ +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_147 = lean_ctor_get(x_137, 0); +x_148 = lean_ctor_get(x_137, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_137); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +lean_inc(x_5); +x_150 = lean_array_uset(x_149, x_8, x_5); +x_151 = lean_ctor_get(x_148, 1); +lean_inc(x_151); +lean_dec(x_148); +x_152 = lean_expr_update_proj(x_5, x_147); +lean_inc(x_152); +x_153 = lean_array_uset(x_151, x_8, x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_150); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +case 12: +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_5); +lean_dec(x_3); +x_156 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; +x_157 = l_unreachable_x21___rarg(x_156); +x_158 = lean_apply_1(x_157, x_6); +return x_158; +} +default: +{ +lean_object* x_159; +lean_dec(x_3); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_5); +lean_ctor_set(x_159, 1, x_6); +return x_159; +} +} +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_6); +x_8 = lean_nat_dec_lt(x_5, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_9 = x_6; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_array_fget(x_6, x_5); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_array_fset(x_6, x_5, x_11); +x_13 = x_10; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_15 = lean_ctor_get(x_13, 3); +x_16 = lean_ctor_get(x_13, 4); +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = 8192; +x_19 = l_Lean_Expr_ReplaceImpl_initCache; +lean_inc(x_4); +x_20 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_4, x_18, x_15, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +lean_inc(x_4); +x_22 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_4, x_18, x_16, x_19); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +lean_dec(x_22); +lean_inc(x_3); +lean_ctor_set(x_13, 4, x_23); +lean_ctor_set(x_13, 3, x_21); +lean_ctor_set(x_13, 0, x_3); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_5, x_24); +x_26 = x_13; +x_27 = lean_array_fset(x_12, x_5, x_26); +lean_dec(x_5); +x_5 = x_25; +x_6 = x_27; +goto _start; +} +else +{ +uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_29 = lean_ctor_get_uint8(x_13, sizeof(void*)*5); +x_30 = lean_ctor_get(x_13, 1); +x_31 = lean_ctor_get(x_13, 2); +x_32 = lean_ctor_get(x_13, 3); +x_33 = lean_ctor_get(x_13, 4); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_13); +x_34 = 8192; +x_35 = l_Lean_Expr_ReplaceImpl_initCache; +lean_inc(x_4); +x_36 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_4, x_34, x_32, x_35); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +lean_inc(x_4); +x_38 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_4, x_34, x_33, x_35); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +lean_dec(x_38); +lean_inc(x_3); +x_40 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_40, 0, x_3); +lean_ctor_set(x_40, 1, x_30); +lean_ctor_set(x_40, 2, x_31); +lean_ctor_set(x_40, 3, x_37); +lean_ctor_set(x_40, 4, x_39); +lean_ctor_set_uint8(x_40, sizeof(void*)*5, x_29); +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_5, x_41); +x_43 = x_40; +x_44 = lean_array_fset(x_12, x_5, x_43); +lean_dec(x_5); +x_5 = x_42; +x_6 = x_44; +goto _start; +} +} +} +} +lean_object* l_Lean_Elab_fixLevelParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +lean_inc(x_1); +x_11 = l___private_Lean_Elab_PreDefinition_Basic_5__shareCommon(x_1); +x_12 = l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls(x_11, x_2, x_3, x_4, x_5, 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) +{ +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_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_14); +lean_inc(x_11); +x_16 = x_11; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_11, x_14, x_15, x_17, x_16); +lean_dec(x_11); +lean_dec(x_1); +x_19 = x_18; +lean_ctor_set(x_12, 0, x_19); +return x_12; +} +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; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +lean_inc(x_20); +x_22 = l_List_map___main___at_Lean_Meta_addGlobalInstanceImp___spec__1(x_20); +lean_inc(x_11); +x_23 = x_11; +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_11, x_20, x_22, x_24, x_23); +lean_dec(x_11); +lean_dec(x_1); +x_26 = x_25; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_21); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_11); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_12); +if (x_28 == 0) +{ +return x_12; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_12, 0); +x_30 = lean_ctor_get(x_12, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_12); +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; +} +} +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___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 = l_Array_anyRangeMAux___main___at_Lean_Elab_fixLevelParams___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___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: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__2(x_1, x_2, x_3, x_7, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___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: +{ +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_fixLevelParams___spec__3(x_1, x_2, x_3, x_7, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_umapMAux___main___at_Lean_Elab_fixLevelParams___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Elab_fixLevelParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_fixLevelParams(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Lean_Elab_applyAttributes___at_Lean_Elab_applyAttributesOf___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(x_1, x_3, x_2, x_11, x_8, x_9, x_10); +return x_12; +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(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* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_3, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_array_fget(x_2, x_3); +x_16 = lean_ctor_get(x_15, 2); +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_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_unsigned_to_nat(0u); +lean_inc(x_9); +lean_inc(x_8); +x_20 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesImp___spec__1(x_16, x_1, x_18, x_19, x_8, x_9, x_10); +lean_dec(x_18); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_3, x_22); +lean_dec(x_3); +x_3 = x_23; +x_10 = x_21; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +return x_20; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +} +lean_object* l_Lean_Elab_applyAttributesOf(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_2, x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_Elab_applyAttributes___at_Lean_Elab_applyAttributesOf___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Lean_Elab_applyAttributes___at_Lean_Elab_applyAttributesOf___spec__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_12; +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_12; +} +} +lean_object* l_Lean_Elab_applyAttributesOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_2); +lean_dec(x_2); +x_11 = l_Lean_Elab_applyAttributesOf(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_abstractNestedProofs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 2); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 3); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 4); +lean_inc(x_12); +x_13 = l_Lean_Elab_DefKind_isTheorem(x_7); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Elab_DefKind_isExample(x_7); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_1); +if (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; +x_16 = lean_ctor_get(x_1, 4); +lean_dec(x_16); +x_17 = lean_ctor_get(x_1, 3); +lean_dec(x_17); +x_18 = lean_ctor_get(x_1, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_1, 1); +lean_dec(x_19); +x_20 = lean_ctor_get(x_1, 0); +lean_dec(x_20); +lean_inc(x_10); +x_21 = l_Lean_Meta_abstractNestedProofs(x_10, x_12, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_ctor_set(x_1, 4, x_23); +lean_ctor_set(x_21, 0, x_1); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_21); +lean_ctor_set(x_1, 4, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_1); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_free_object(x_1); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +return x_21; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_21); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +lean_object* x_31; +lean_dec(x_1); +lean_inc(x_10); +x_31 = l_Lean_Meta_abstractNestedProofs(x_10, x_12, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_34 = x_31; +} else { + lean_dec_ref(x_31); + x_34 = lean_box(0); +} +x_35 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_35, 0, x_8); +lean_ctor_set(x_35, 1, x_9); +lean_ctor_set(x_35, 2, x_10); +lean_ctor_set(x_35, 3, x_11); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_7); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_37 = lean_ctor_get(x_31, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_31, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_39 = x_31; +} else { + lean_dec_ref(x_31); + x_39 = lean_box(0); +} +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 2, 0); +} else { + x_40 = x_39; +} +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +} +else +{ +lean_object* x_41; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_1); +lean_ctor_set(x_41, 1, x_6); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_6); +return x_42; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_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; uint8_t x_17; +x_10 = lean_st_ref_get(x_8, x_9); +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 = lean_ctor_get(x_11, 2); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_take(x_8, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_15, 2); +lean_dec(x_18); +x_19 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_15, 2, x_19); +x_20 = lean_st_ref_set(x_8, x_15, x_16); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_22 = l_Lean_Elab_abstractNestedProofs(x_1, x_5, x_6, x_7, x_8, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t 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; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_st_ref_get(x_8, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get_uint8(x_23, sizeof(void*)*5); +x_32 = lean_ctor_get(x_23, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +x_34 = lean_ctor_get(x_23, 2); +lean_inc(x_34); +x_35 = lean_ctor_get(x_23, 3); +lean_inc(x_35); +x_36 = lean_ctor_get(x_23, 4); +lean_inc(x_36); +switch (x_31) { +case 0: +{ +lean_object* x_99; lean_object* x_100; uint32_t x_101; uint32_t x_102; uint32_t x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; +x_99 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_99, 0, x_34); +lean_ctor_set(x_99, 1, x_32); +lean_ctor_set(x_99, 2, x_35); +lean_inc(x_36); +x_100 = l_Lean_getMaxHeight(x_30, x_36); +x_101 = lean_unbox_uint32(x_100); +lean_dec(x_100); +x_102 = 1; +x_103 = x_101 + x_102; +x_104 = lean_alloc_ctor(2, 0, 4); +lean_ctor_set_uint32(x_104, 0, x_103); +x_105 = lean_ctor_get_uint8(x_33, sizeof(void*)*2 + 3); +lean_dec(x_33); +x_106 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_106, 0, x_99); +lean_ctor_set(x_106, 1, x_36); +lean_ctor_set(x_106, 2, x_104); +lean_ctor_set_uint8(x_106, sizeof(void*)*3, x_105); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, x_106); +x_37 = x_107; +goto block_98; +} +case 1: +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_33); +lean_dec(x_30); +x_108 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_108, 0, x_34); +lean_ctor_set(x_108, 1, x_32); +lean_ctor_set(x_108, 2, x_35); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_36); +x_110 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_37 = x_110; +goto block_98; +} +case 2: +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_30); +x_111 = l_Lean_Declaration_inhabited; +x_112 = l_unreachable_x21___rarg(x_111); +x_37 = x_112; +goto block_98; +} +case 3: +{ +lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_30); +x_113 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_113, 0, x_34); +lean_ctor_set(x_113, 1, x_32); +lean_ctor_set(x_113, 2, x_35); +x_114 = lean_ctor_get_uint8(x_33, sizeof(void*)*2 + 3); +lean_dec(x_33); +x_115 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_36); +lean_ctor_set_uint8(x_115, sizeof(void*)*2, x_114); +x_116 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_116, 0, x_115); +x_37 = x_116; +goto block_98; +} +default: +{ +lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_30); +x_117 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_117, 0, x_34); +lean_ctor_set(x_117, 1, x_32); +lean_ctor_set(x_117, 2, x_35); +x_118 = lean_ctor_get_uint8(x_33, sizeof(void*)*2 + 3); +lean_dec(x_33); +x_119 = lean_box(1); +x_120 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_36); +lean_ctor_set(x_120, 2, x_119); +lean_ctor_set_uint8(x_120, sizeof(void*)*3, x_118); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +x_37 = x_121; +goto block_98; +} +} +block_98: +{ +lean_object* x_38; +lean_inc(x_7); +lean_inc(x_3); +x_38 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l_Lean_mkOptionalNode___closed__2; +x_41 = lean_array_push(x_40, x_23); +x_42 = 0; +x_43 = lean_unsigned_to_nat(0u); +lean_inc(x_8); +lean_inc(x_7); +x_44 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_42, x_41, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +if (lean_obj_tag(x_44) == 0) +{ +if (x_2 == 0) +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; +lean_dec(x_37); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = 1; +x_47 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_46, x_41, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_41); +if (lean_obj_tag(x_47) == 0) +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +x_50 = lean_box(0); +lean_ctor_set(x_47, 0, x_50); +return x_47; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_47, 1); +lean_inc(x_51); +lean_dec(x_47); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +else +{ +uint8_t x_54; +x_54 = !lean_is_exclusive(x_47); +if (x_54 == 0) +{ +return x_47; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_47, 0); +x_56 = lean_ctor_get(x_47, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_47); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_44, 1); +lean_inc(x_58); +lean_dec(x_44); +x_59 = l_Lean_Elab_DefKind_isTheorem(x_31); +if (x_59 == 0) +{ +lean_object* x_60; +lean_inc(x_7); +lean_inc(x_3); +x_60 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_58); +lean_dec(x_37); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; uint8_t x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = 1; +x_63 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_62, x_41, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_41); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +x_66 = lean_box(0); +lean_ctor_set(x_63, 0, x_66); +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_dec(x_63); +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +else +{ +uint8_t x_70; +x_70 = !lean_is_exclusive(x_63); +if (x_70 == 0) +{ +return x_63; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_63, 0); +x_72 = lean_ctor_get(x_63, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_63); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +else +{ +uint8_t x_74; +lean_dec(x_41); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_74 = !lean_is_exclusive(x_60); +if (x_74 == 0) +{ +return x_60; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_60, 0); +x_76 = lean_ctor_get(x_60, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_60); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; lean_object* x_79; +lean_dec(x_37); +x_78 = 1; +x_79 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_78, x_41, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_58); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_41); +if (lean_obj_tag(x_79) == 0) +{ +uint8_t x_80; +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +x_82 = lean_box(0); +lean_ctor_set(x_79, 0, x_82); +return x_79; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +else +{ +uint8_t x_86; +x_86 = !lean_is_exclusive(x_79); +if (x_86 == 0) +{ +return x_79; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_79, 0); +x_88 = lean_ctor_get(x_79, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_79); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_41); +lean_dec(x_37); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_90 = !lean_is_exclusive(x_44); +if (x_90 == 0) +{ +return x_44; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_44, 0); +x_92 = lean_ctor_get(x_44, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_44); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_37); +lean_dec(x_23); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_94 = !lean_is_exclusive(x_38); +if (x_94 == 0) +{ +return x_38; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_38, 0); +x_96 = lean_ctor_get(x_38, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_38); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_122 = lean_ctor_get(x_22, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_22, 1); +lean_inc(x_123); +lean_dec(x_22); +x_124 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_123); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_125 = !lean_is_exclusive(x_124); +if (x_125 == 0) +{ +lean_object* x_126; +x_126 = lean_ctor_get(x_124, 0); +lean_dec(x_126); +lean_ctor_set_tag(x_124, 1); +lean_ctor_set(x_124, 0, x_122); +return x_124; +} +else +{ +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_124, 1); +lean_inc(x_127); +lean_dec(x_124); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_122); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +} +else +{ +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; +x_129 = lean_ctor_get(x_15, 0); +x_130 = lean_ctor_get(x_15, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_15); +x_131 = l_Lean_TraceState_Inhabited___closed__1; +x_132 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +lean_ctor_set(x_132, 2, x_131); +x_133 = lean_st_ref_set(x_8, x_132, x_16); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_135 = l_Lean_Elab_abstractNestedProofs(x_1, x_5, x_6, x_7, x_8, x_134); +if (lean_obj_tag(x_135) == 0) +{ +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; uint8_t x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +lean_inc(x_3); +x_138 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_137); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +x_140 = lean_st_ref_get(x_8, x_139); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_ctor_get_uint8(x_136, sizeof(void*)*5); +x_145 = lean_ctor_get(x_136, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_136, 1); +lean_inc(x_146); +x_147 = lean_ctor_get(x_136, 2); +lean_inc(x_147); +x_148 = lean_ctor_get(x_136, 3); +lean_inc(x_148); +x_149 = lean_ctor_get(x_136, 4); +lean_inc(x_149); +switch (x_144) { +case 0: +{ +lean_object* x_206; lean_object* x_207; uint32_t x_208; uint32_t x_209; uint32_t x_210; lean_object* x_211; uint8_t x_212; lean_object* x_213; lean_object* x_214; +x_206 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_206, 0, x_147); +lean_ctor_set(x_206, 1, x_145); +lean_ctor_set(x_206, 2, x_148); +lean_inc(x_149); +x_207 = l_Lean_getMaxHeight(x_143, x_149); +x_208 = lean_unbox_uint32(x_207); +lean_dec(x_207); +x_209 = 1; +x_210 = x_208 + x_209; +x_211 = lean_alloc_ctor(2, 0, 4); +lean_ctor_set_uint32(x_211, 0, x_210); +x_212 = lean_ctor_get_uint8(x_146, sizeof(void*)*2 + 3); +lean_dec(x_146); +x_213 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_213, 0, x_206); +lean_ctor_set(x_213, 1, x_149); +lean_ctor_set(x_213, 2, x_211); +lean_ctor_set_uint8(x_213, sizeof(void*)*3, x_212); +x_214 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_214, 0, x_213); +x_150 = x_214; +goto block_205; +} +case 1: +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_146); +lean_dec(x_143); +x_215 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_215, 0, x_147); +lean_ctor_set(x_215, 1, x_145); +lean_ctor_set(x_215, 2, x_148); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_149); +x_217 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_217, 0, x_216); +x_150 = x_217; +goto block_205; +} +case 2: +{ +lean_object* x_218; lean_object* x_219; +lean_dec(x_149); +lean_dec(x_148); +lean_dec(x_147); +lean_dec(x_146); +lean_dec(x_145); +lean_dec(x_143); +x_218 = l_Lean_Declaration_inhabited; +x_219 = l_unreachable_x21___rarg(x_218); +x_150 = x_219; +goto block_205; +} +case 3: +{ +lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_143); +x_220 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_220, 0, x_147); +lean_ctor_set(x_220, 1, x_145); +lean_ctor_set(x_220, 2, x_148); +x_221 = lean_ctor_get_uint8(x_146, sizeof(void*)*2 + 3); +lean_dec(x_146); +x_222 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_222, 0, x_220); +lean_ctor_set(x_222, 1, x_149); +lean_ctor_set_uint8(x_222, sizeof(void*)*2, x_221); +x_223 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_223, 0, x_222); +x_150 = x_223; +goto block_205; +} +default: +{ +lean_object* x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +lean_dec(x_143); +x_224 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_224, 0, x_147); +lean_ctor_set(x_224, 1, x_145); +lean_ctor_set(x_224, 2, x_148); +x_225 = lean_ctor_get_uint8(x_146, sizeof(void*)*2 + 3); +lean_dec(x_146); +x_226 = lean_box(1); +x_227 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_227, 0, x_224); +lean_ctor_set(x_227, 1, x_149); +lean_ctor_set(x_227, 2, x_226); +lean_ctor_set_uint8(x_227, sizeof(void*)*3, x_225); +x_228 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_228, 0, x_227); +x_150 = x_228; +goto block_205; +} +} +block_205: +{ +lean_object* x_151; +lean_inc(x_7); +lean_inc(x_3); +x_151 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_150, x_3, x_4, x_5, x_6, x_7, x_8, x_142); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_153 = l_Lean_mkOptionalNode___closed__2; +x_154 = lean_array_push(x_153, x_136); +x_155 = 0; +x_156 = lean_unsigned_to_nat(0u); +lean_inc(x_8); +lean_inc(x_7); +x_157 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_155, x_154, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_152); +if (lean_obj_tag(x_157) == 0) +{ +if (x_2 == 0) +{ +lean_object* x_158; uint8_t x_159; lean_object* x_160; +lean_dec(x_150); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_159 = 1; +x_160 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_159, x_154, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_158); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_154); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_162 = x_160; +} else { + lean_dec_ref(x_160); + x_162 = lean_box(0); +} +x_163 = lean_box(0); +if (lean_is_scalar(x_162)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_162; +} +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_161); +return x_164; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_165 = lean_ctor_get(x_160, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_160, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_167 = x_160; +} else { + lean_dec_ref(x_160); + x_167 = lean_box(0); +} +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); +} else { + x_168 = x_167; +} +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; +} +} +else +{ +lean_object* x_169; uint8_t x_170; +x_169 = lean_ctor_get(x_157, 1); +lean_inc(x_169); +lean_dec(x_157); +x_170 = l_Lean_Elab_DefKind_isTheorem(x_144); +if (x_170 == 0) +{ +lean_object* x_171; +lean_inc(x_7); +lean_inc(x_3); +x_171 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_150, x_3, x_4, x_5, x_6, x_7, x_8, x_169); +lean_dec(x_150); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; uint8_t x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_171, 1); +lean_inc(x_172); +lean_dec(x_171); +x_173 = 1; +x_174 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_173, x_154, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_172); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_154); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_175 = lean_ctor_get(x_174, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_176 = x_174; +} else { + lean_dec_ref(x_174); + x_176 = lean_box(0); +} +x_177 = lean_box(0); +if (lean_is_scalar(x_176)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_176; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_175); +return x_178; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_179 = lean_ctor_get(x_174, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_174, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + x_181 = x_174; +} else { + lean_dec_ref(x_174); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_154); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_183 = lean_ctor_get(x_171, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_171, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_185 = x_171; +} else { + lean_dec_ref(x_171); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +} +else +{ +uint8_t x_187; lean_object* x_188; +lean_dec(x_150); +x_187 = 1; +x_188 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_187, x_154, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_169); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_154); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_190 = x_188; +} else { + lean_dec_ref(x_188); + x_190 = lean_box(0); +} +x_191 = lean_box(0); +if (lean_is_scalar(x_190)) { + x_192 = lean_alloc_ctor(0, 2, 0); +} else { + x_192 = x_190; +} +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_189); +return x_192; +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_193 = lean_ctor_get(x_188, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_188, 1); +lean_inc(x_194); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_195 = x_188; +} else { + lean_dec_ref(x_188); + x_195 = lean_box(0); +} +if (lean_is_scalar(x_195)) { + x_196 = lean_alloc_ctor(1, 2, 0); +} else { + x_196 = x_195; +} +lean_ctor_set(x_196, 0, x_193); +lean_ctor_set(x_196, 1, x_194); +return x_196; +} +} +} +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_154); +lean_dec(x_150); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_197 = lean_ctor_get(x_157, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_157, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_199 = x_157; +} else { + lean_dec_ref(x_157); + x_199 = lean_box(0); +} +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +return x_200; +} +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +lean_dec(x_150); +lean_dec(x_136); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_201 = lean_ctor_get(x_151, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_151, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_203 = x_151; +} else { + lean_dec_ref(x_151); + x_203 = lean_box(0); +} +if (lean_is_scalar(x_203)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_203; +} +lean_ctor_set(x_204, 0, x_201); +lean_ctor_set(x_204, 1, x_202); +return x_204; +} +} +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_229 = lean_ctor_get(x_135, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_135, 1); +lean_inc(x_230); +lean_dec(x_135); +x_231 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_230); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_232 = lean_ctor_get(x_231, 1); +lean_inc(x_232); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_233 = x_231; +} else { + lean_dec_ref(x_231); + x_233 = lean_box(0); +} +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_233; + lean_ctor_set_tag(x_234, 1); +} +lean_ctor_set(x_234, 0, x_229); +lean_ctor_set(x_234, 1, x_232); +return x_234; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_2); +lean_dec(x_2); +x_11 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_11; +} +} +lean_object* l_Lean_Elab_addAndCompileNonRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = 1; +x_10 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +lean_object* l_Lean_Elab_addAndCompileNonRec___boxed(lean_object* x_1, lean_object* x_2, 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_addAndCompileNonRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_Lean_Elab_addNonRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = 0; +x_10 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +lean_object* l_Lean_Elab_addNonRec___boxed(lean_object* x_1, lean_object* x_2, 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_addNonRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 2); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 3); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 4); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_10, 0, x_7); +lean_ctor_set(x_10, 1, x_6); +lean_ctor_set(x_10, 2, x_8); +x_11 = lean_box(0); +x_12 = 1; +x_13 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_9); +lean_ctor_set(x_13, 2, x_11); +lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_12); +x_14 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_5); +lean_ctor_set(x_1, 1, x_14); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +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; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_15 = lean_ctor_get(x_1, 0); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_1); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 2); +lean_inc(x_18); +x_19 = lean_ctor_get(x_15, 3); +lean_inc(x_19); +x_20 = lean_ctor_get(x_15, 4); +lean_inc(x_20); +lean_dec(x_15); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_17); +lean_ctor_set(x_21, 2, x_19); +x_22 = lean_box(0); +x_23 = 1; +x_24 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_20); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_23); +x_25 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_16); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object* x_1, lean_object* x_2, 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_Array_toList___rarg(x_1); +x_10 = l_List_map___main___at_Lean_Elab_addAndCompileUnsafe___spec__1(x_9); +x_11 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_11, 0, x_10); +lean_inc(x_6); +lean_inc(x_2); +x_12 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = 0; +x_15 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +lean_inc(x_6); +x_16 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_14, x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +lean_inc(x_6); +lean_inc(x_2); +x_18 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +lean_dec(x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = l_Array_forMAux___main___at_Lean_Elab_applyAttributesOf___spec__2(x_20, x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_19); +lean_dec(x_2); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_21); +if (x_28 == 0) +{ +return x_21; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_21, 0); +x_30 = lean_ctor_get(x_21, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_21); +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_32; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_18); +if (x_32 == 0) +{ +return x_18; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_ctor_get(x_18, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_18); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +uint8_t x_36; +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_36 = !lean_is_exclusive(x_16); +if (x_36 == 0) +{ +return x_16; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_16, 0); +x_38 = lean_ctor_get(x_16, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_16); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_12); +if (x_40 == 0) +{ +return x_12; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_12, 0); +x_42 = lean_ctor_get(x_12, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_12); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +lean_object* l_Lean_Elab_addAndCompileUnsafe___boxed(lean_object* x_1, lean_object* x_2, 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_addAndCompileUnsafe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__1(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_159; lean_object* x_160; size_t x_161; uint8_t x_162; +x_5 = lean_ptr_addr(x_3); +x_6 = x_2 == 0 ? 0 : x_5 % x_2; +x_159 = lean_ctor_get(x_4, 0); +lean_inc(x_159); +x_160 = lean_array_uget(x_159, x_6); +x_161 = lean_ptr_addr(x_160); +lean_dec(x_160); +x_162 = x_161 == x_5; +if (x_162 == 0) +{ +if (lean_obj_tag(x_3) == 4) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_163 = lean_ctor_get(x_3, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_3, 1); +lean_inc(x_164); +x_165 = lean_array_get_size(x_1); +x_166 = lean_unsigned_to_nat(0u); +x_167 = l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__1(x_1, x_163, x_1, x_165, x_166); +lean_dec(x_165); +if (x_167 == 0) +{ +lean_object* x_168; +lean_dec(x_164); +lean_dec(x_163); +lean_dec(x_159); +x_168 = lean_box(0); +x_7 = x_168; +goto block_158; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_169 = l_Lean_Compiler_mkUnsafeRecName___closed__1; +x_170 = lean_name_mk_string(x_163, x_169); +x_171 = l_Lean_mkConst(x_170, x_164); +x_172 = lean_array_uset(x_159, x_6, x_3); +x_173 = lean_ctor_get(x_4, 1); +lean_inc(x_173); +lean_dec(x_4); +lean_inc(x_171); +x_174 = lean_array_uset(x_173, x_6, x_171); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_171); +lean_ctor_set(x_176, 1, x_175); +return x_176; +} +} +else +{ +lean_object* x_177; +lean_dec(x_159); +x_177 = lean_box(0); +x_7 = x_177; +goto block_158; +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_159); +lean_dec(x_3); +x_178 = lean_ctor_get(x_4, 1); +lean_inc(x_178); +x_179 = lean_array_uget(x_178, x_6); +lean_dec(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_4); +return x_180; +} +block_158: +{ +lean_dec(x_7); +switch (lean_obj_tag(x_3)) { +case 5: +{ +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_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_3, 1); +lean_inc(x_9); +x_10 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_8, x_4); +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_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_9, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_inc(x_3); +x_18 = lean_array_uset(x_17, x_6, x_3); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_expr_update_app(x_3, x_11, x_15); +lean_inc(x_20); +x_21 = lean_array_uset(x_19, x_6, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_18); +lean_ctor_set(x_22, 1, x_21); +lean_ctor_set(x_13, 1, x_22); +lean_ctor_set(x_13, 0, x_20); +return x_13; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_23 = lean_ctor_get(x_13, 0); +x_24 = lean_ctor_get(x_13, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_13); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_inc(x_3); +x_26 = lean_array_uset(x_25, x_6, x_3); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_expr_update_app(x_3, x_11, x_23); +lean_inc(x_28); +x_29 = lean_array_uset(x_27, x_6, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_26); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_28); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +case 6: +{ +lean_object* x_32; lean_object* x_33; uint64_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_32 = lean_ctor_get(x_3, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_3, 2); +lean_inc(x_33); +x_34 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_35 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_32, x_4); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_33, x_37); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_inc(x_3); +x_43 = lean_array_uset(x_42, x_6, x_3); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = (uint8_t)((x_34 << 24) >> 61); +x_46 = lean_expr_update_lambda(x_3, x_45, x_36, x_40); +lean_inc(x_46); +x_47 = lean_array_uset(x_44, x_6, x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_38, 1, x_48); +lean_ctor_set(x_38, 0, x_46); +return x_38; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_49 = lean_ctor_get(x_38, 0); +x_50 = lean_ctor_get(x_38, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_38); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +lean_inc(x_3); +x_52 = lean_array_uset(x_51, x_6, x_3); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = (uint8_t)((x_34 << 24) >> 61); +x_55 = lean_expr_update_lambda(x_3, x_54, x_36, x_49); +lean_inc(x_55); +x_56 = lean_array_uset(x_53, x_6, x_55); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_52); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +case 7: +{ +lean_object* x_59; lean_object* x_60; uint64_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_3, 2); +lean_inc(x_60); +x_61 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_62 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_59, x_4); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_60, x_64); +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_ctor_get(x_65, 1); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +lean_inc(x_3); +x_70 = lean_array_uset(x_69, x_6, x_3); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_dec(x_68); +x_72 = (uint8_t)((x_61 << 24) >> 61); +x_73 = lean_expr_update_forall(x_3, x_72, x_63, x_67); +lean_inc(x_73); +x_74 = lean_array_uset(x_71, x_6, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_70); +lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_65, 1, x_75); +lean_ctor_set(x_65, 0, x_73); +return x_65; +} +else +{ +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; +x_76 = lean_ctor_get(x_65, 0); +x_77 = lean_ctor_get(x_65, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_65); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +lean_inc(x_3); +x_79 = lean_array_uset(x_78, x_6, x_3); +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); +x_81 = (uint8_t)((x_61 << 24) >> 61); +x_82 = lean_expr_update_forall(x_3, x_81, x_63, x_76); +lean_inc(x_82); +x_83 = lean_array_uset(x_80, x_6, x_82); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_79); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +case 8: +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_86 = lean_ctor_get(x_3, 1); +lean_inc(x_86); +x_87 = lean_ctor_get(x_3, 2); +lean_inc(x_87); +x_88 = lean_ctor_get(x_3, 3); +lean_inc(x_88); +x_89 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_86, x_4); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_87, x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_88, x_94); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_97 = lean_ctor_get(x_95, 0); +x_98 = lean_ctor_get(x_95, 1); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +lean_inc(x_3); +x_100 = lean_array_uset(x_99, x_6, x_3); +x_101 = lean_ctor_get(x_98, 1); +lean_inc(x_101); +lean_dec(x_98); +x_102 = lean_expr_update_let(x_3, x_90, x_93, x_97); +lean_inc(x_102); +x_103 = lean_array_uset(x_101, x_6, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_100); +lean_ctor_set(x_104, 1, x_103); +lean_ctor_set(x_95, 1, x_104); +lean_ctor_set(x_95, 0, x_102); +return x_95; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_105 = lean_ctor_get(x_95, 0); +x_106 = lean_ctor_get(x_95, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_95); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +lean_inc(x_3); +x_108 = lean_array_uset(x_107, x_6, x_3); +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +lean_dec(x_106); +x_110 = lean_expr_update_let(x_3, x_90, x_93, x_105); +lean_inc(x_110); +x_111 = lean_array_uset(x_109, x_6, x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_108); +lean_ctor_set(x_112, 1, x_111); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +case 10: +{ +lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_114 = lean_ctor_get(x_3, 1); +lean_inc(x_114); +x_115 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_114, x_4); +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_117 = lean_ctor_get(x_115, 0); +x_118 = lean_ctor_get(x_115, 1); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +lean_inc(x_3); +x_120 = lean_array_uset(x_119, x_6, x_3); +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_dec(x_118); +x_122 = lean_expr_update_mdata(x_3, x_117); +lean_inc(x_122); +x_123 = lean_array_uset(x_121, x_6, x_122); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_120); +lean_ctor_set(x_124, 1, x_123); +lean_ctor_set(x_115, 1, x_124); +lean_ctor_set(x_115, 0, x_122); +return x_115; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_125 = lean_ctor_get(x_115, 0); +x_126 = lean_ctor_get(x_115, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_115); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +lean_inc(x_3); +x_128 = lean_array_uset(x_127, x_6, x_3); +x_129 = lean_ctor_get(x_126, 1); +lean_inc(x_129); +lean_dec(x_126); +x_130 = lean_expr_update_mdata(x_3, x_125); +lean_inc(x_130); +x_131 = lean_array_uset(x_129, x_6, x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_128); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_133, 0, x_130); +lean_ctor_set(x_133, 1, x_132); +return x_133; +} +} +case 11: +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_3, 2); +lean_inc(x_134); +x_135 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_2, x_134, x_4); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_137 = lean_ctor_get(x_135, 0); +x_138 = lean_ctor_get(x_135, 1); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +lean_inc(x_3); +x_140 = lean_array_uset(x_139, x_6, x_3); +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_expr_update_proj(x_3, x_137); +lean_inc(x_142); +x_143 = lean_array_uset(x_141, x_6, x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_140); +lean_ctor_set(x_144, 1, x_143); +lean_ctor_set(x_135, 1, x_144); +lean_ctor_set(x_135, 0, x_142); +return x_135; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_145 = lean_ctor_get(x_135, 0); +x_146 = lean_ctor_get(x_135, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_135); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +lean_inc(x_3); +x_148 = lean_array_uset(x_147, x_6, x_3); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_149); +lean_dec(x_146); +x_150 = lean_expr_update_proj(x_3, x_145); +lean_inc(x_150); +x_151 = lean_array_uset(x_149, x_6, x_150); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_148); +lean_ctor_set(x_152, 1, x_151); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_152); +return x_153; +} +} +case 12: +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_3); +x_154 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___closed__2; +x_155 = l_unreachable_x21___rarg(x_154); +x_156 = lean_apply_1(x_155, x_4); +return x_156; +} +default: +{ +lean_object* x_157; +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_3); +lean_ctor_set(x_157, 1, x_4); +return x_157; +} +} +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t 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; +x_12 = lean_ctor_get(x_10, 2); +x_13 = lean_ctor_get(x_10, 4); +x_14 = lean_ctor_get(x_10, 1); +lean_dec(x_14); +x_15 = l_Lean_Compiler_mkUnsafeRecName___closed__1; +x_16 = lean_name_mk_string(x_12, x_15); +x_17 = 8192; +x_18 = l_Lean_Expr_ReplaceImpl_initCache; +x_19 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_17, x_13, x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_Elab_PreDefinition_inhabited___closed__1; +lean_ctor_set(x_10, 4, x_20); +lean_ctor_set(x_10, 2, x_16); +lean_ctor_set(x_10, 1, x_21); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_2, x_22); +x_24 = x_10; +x_25 = lean_array_fset(x_9, x_2, x_24); +lean_dec(x_2); +x_2 = x_23; +x_3 = x_25; +goto _start; +} +else +{ +uint8_t 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; size_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_27 = lean_ctor_get_uint8(x_10, sizeof(void*)*5); +x_28 = lean_ctor_get(x_10, 0); +x_29 = lean_ctor_get(x_10, 2); +x_30 = lean_ctor_get(x_10, 3); +x_31 = lean_ctor_get(x_10, 4); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_10); +x_32 = l_Lean_Compiler_mkUnsafeRecName___closed__1; +x_33 = lean_name_mk_string(x_29, x_32); +x_34 = 8192; +x_35 = l_Lean_Expr_ReplaceImpl_initCache; +x_36 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_34, x_31, x_35); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_Lean_Elab_PreDefinition_inhabited___closed__1; +x_39 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_39, 0, x_28); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_33); +lean_ctor_set(x_39, 3, x_30); +lean_ctor_set(x_39, 4, x_37); +lean_ctor_set_uint8(x_39, sizeof(void*)*5, x_27); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_2, x_40); +x_42 = x_39; +x_43 = lean_array_fset(x_9, x_2, x_42); +lean_dec(x_2); +x_2 = x_41; +x_3 = x_43; +goto _start; +} +} +} +} +lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object* x_1, lean_object* x_2, 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_inc(x_1); +x_9 = x_1; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3(x_1, x_10, x_9); +lean_dec(x_1); +x_12 = x_11; +x_13 = l_Lean_Elab_addAndCompileUnsafe(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_12); +return x_13; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___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 = l_Array_anyRangeMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; lean_object* x_6; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__2(x_1, x_5, x_3, x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at_Lean_Elab_addAndCompileUnsafeRec___spec__3(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Elab_addAndCompileUnsafeRec___boxed(lean_object* x_1, lean_object* x_2, 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_addAndCompileUnsafeRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Util_SCC(lean_object*); +lean_object* initialize_Lean_Meta_AbstractNestedProofs(lean_object*); +lean_object* initialize_Lean_Elab_MkInhabitant(lean_object*); +lean_object* initialize_Lean_Elab_Term(lean_object*); +lean_object* initialize_Lean_Elab_DefView(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_PreDefinition_Basic(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_SCC(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_AbstractNestedProofs(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_MkInhabitant(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Term(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_DefView(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_PreDefinition_inhabited___closed__1 = _init_l_Lean_Elab_PreDefinition_inhabited___closed__1(); +lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited___closed__1); +l_Lean_Elab_PreDefinition_inhabited___closed__2 = _init_l_Lean_Elab_PreDefinition_inhabited___closed__2(); +lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited___closed__2); +l_Lean_Elab_PreDefinition_inhabited = _init_l_Lean_Elab_PreDefinition_inhabited(); +lean_mark_persistent(l_Lean_Elab_PreDefinition_inhabited); +l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Basic_4__getLevelParamsPreDecls___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c new file mode 100644 index 0000000000..e5abcd0c41 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -0,0 +1,4807 @@ +// Lean compiler output +// Module: Lean.Elab.PreDefinition.Main +// Imports: Init Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Structural Lean.Elab.PreDefinition.WF +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_List_reverse___rarg(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__14(lean_object*, lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +extern lean_object* l_Lean_MessageData_ofList___closed__3; +uint8_t l_USize_decEq(size_t, size_t); +lean_object* lean_array_uget(lean_object*, size_t); +uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Option_get_x21___rarg___closed__3; +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_PreDefinition_inhabited; +lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__1(lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef(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_PreDefinition_Main_3__partitionPreDefs___spec__24(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_collectMVarsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___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_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1(lean_object*); +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1; +extern lean_object* l_Lean_Meta_getMVarsImp___closed__1; +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_4__resetOnStack___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__23(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___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_mkInhabitantFor(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*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Util_SCC_4__resetOnStack___rarg___closed__1; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___boxed(lean_object*); +lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__16(lean_object*, lean_object*); +size_t l_Lean_Name_hash(lean_object*); +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2; +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs(lean_object*); +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(lean_object*, size_t, lean_object*, lean_object*, lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(lean_object*, size_t, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Util_SCC_1__getDataOf___rarg___closed__1; +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__11(lean_object*, lean_object*); +lean_object* l_Lean_Elab_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___boxed(lean_object*); +size_t lean_usize_modn(size_t, lean_object*); +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13___boxed(lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9___boxed(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_redLength___main___rarg(lean_object*); +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_mod(size_t, size_t); +lean_object* l_Lean_Elab_addPreDefinitions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_FindImpl_initCache; +size_t lean_ptr_addr(lean_object*); +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__25(lean_object*); +lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21___boxed(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef___boxed(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_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_TraceState_Inhabited___closed__1; +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29(lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_FoldConstsImpl_initCache; +lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__1(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8___boxed(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive(lean_object*); +lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__15(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addPreDefinitions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3; +lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__26(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1), 10, 3); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_4); +x_11 = l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(x_1, x_10, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__1___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_13 = lean_ctor_get(x_1, 2); +lean_inc(x_13); +x_14 = lean_st_ref_get(x_11, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 2); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_st_ref_take(x_11, x_16); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_19, 2); +lean_dec(x_22); +x_23 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_19, 2, x_23); +x_24 = lean_st_ref_set(x_11, x_19, x_20); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_13); +x_26 = l_Lean_Elab_mkInhabitantFor(x_13, x_4, x_5, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +lean_inc(x_6); +x_29 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_ctor_get(x_1, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 1); +lean_inc(x_32); +lean_dec(x_1); +x_33 = 3; +x_34 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_34, 2, x_13); +lean_ctor_set(x_34, 3, x_2); +lean_ctor_set(x_34, 4, x_27); +lean_ctor_set_uint8(x_34, sizeof(void*)*5, x_33); +x_35 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_36 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_34, x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_Lean_Elab_addAndCompileUnsafeRec(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_37); +lean_dec(x_9); +lean_dec(x_8); +return x_38; +} +else +{ +uint8_t x_39; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_36); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +lean_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_43 = lean_ctor_get(x_26, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_26, 1); +lean_inc(x_44); +lean_dec(x_26); +x_45 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set_tag(x_45, 1); +lean_ctor_set(x_45, 0, x_43); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_43); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_50 = lean_ctor_get(x_19, 0); +x_51 = lean_ctor_get(x_19, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_19); +x_52 = l_Lean_TraceState_Inhabited___closed__1; +x_53 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +lean_ctor_set(x_53, 2, x_52); +x_54 = lean_st_ref_set(x_11, x_53, x_20); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_13); +x_56 = l_Lean_Elab_mkInhabitantFor(x_13, x_4, x_5, x_8, x_9, x_10, x_11, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +lean_inc(x_6); +x_59 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_58); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = lean_ctor_get(x_1, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_1, 1); +lean_inc(x_62); +lean_dec(x_1); +x_63 = 3; +x_64 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +lean_ctor_set(x_64, 2, x_13); +lean_ctor_set(x_64, 3, x_2); +lean_ctor_set(x_64, 4, x_57); +lean_ctor_set_uint8(x_64, sizeof(void*)*5, x_63); +x_65 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_66 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_64, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_60); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = l_Lean_Elab_addAndCompileUnsafeRec(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +lean_dec(x_9); +lean_dec(x_8); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_69 = lean_ctor_get(x_66, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_71 = x_66; +} else { + lean_dec_ref(x_66); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +else +{ +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_dec(x_13); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_73 = lean_ctor_get(x_56, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_56, 1); +lean_inc(x_74); +lean_dec(x_56); +x_75 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_74); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_77 = x_75; +} else { + lean_dec_ref(x_75); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_77; + lean_ctor_set_tag(x_78, 1); +} +lean_ctor_set(x_78, 0, x_73); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_1, 3); +lean_inc(x_10); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__1___boxed), 12, 3); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_10); +lean_closure_set(x_11, 2, x_2); +x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__1___rarg(x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_1, x_13); +x_15 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2(x_2, x_3, x_4, x_14, x_5, x_6, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_3); +x_13 = lean_nat_dec_lt(x_4, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_box(0); +x_17 = lean_apply_7(x_15, lean_box(0), x_16, x_7, x_8, x_9, x_10, x_11); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_array_fget(x_3, x_4); +x_19 = lean_ctor_get(x_2, 1); +lean_inc(x_19); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_20 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__2), 9, 4); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_1); +lean_closure_set(x_20, 2, x_5); +lean_closure_set(x_20, 3, x_6); +x_21 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3___boxed), 12, 6); +lean_closure_set(x_21, 0, x_4); +lean_closure_set(x_21, 1, x_1); +lean_closure_set(x_21, 2, x_2); +lean_closure_set(x_21, 3, x_3); +lean_closure_set(x_21, 4, x_5); +lean_closure_set(x_21, 5, x_6); +x_22 = lean_apply_9(x_19, lean_box(0), lean_box(0), x_20, x_21, x_7, x_8, x_9, x_10, x_11); +return x_22; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial(lean_object* x_1, lean_object* x_2, 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 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; +x_10 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_11 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2(x_1, x_9, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___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); +lean_dec(x_7); +return x_13; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_forMAux___main___at___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial___spec__2___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; size_t x_103; size_t x_104; lean_object* x_105; size_t x_106; uint8_t x_107; +x_103 = lean_ptr_addr(x_3); +x_104 = x_2 == 0 ? 0 : x_103 % x_2; +x_105 = lean_array_uget(x_4, x_104); +x_106 = lean_ptr_addr(x_105); +lean_dec(x_105); +x_107 = x_106 == x_103; +if (x_107 == 0) +{ +lean_object* x_108; uint8_t x_109; +lean_inc(x_3); +x_108 = lean_array_uset(x_4, x_104, x_3); +x_109 = 0; +x_5 = x_109; +x_6 = x_108; +goto block_102; +} +else +{ +uint8_t x_110; +x_110 = 1; +x_5 = x_110; +x_6 = x_4; +goto block_102; +} +block_102: +{ +lean_object* x_7; +if (x_5 == 0) +{ +if (lean_obj_tag(x_3) == 4) +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = lean_ctor_get(x_3, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_1, 2); +x_95 = lean_name_eq(x_94, x_93); +lean_dec(x_93); +if (x_95 == 0) +{ +lean_object* x_96; +x_96 = lean_box(0); +x_7 = x_96; +goto block_92; +} +else +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_3); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_6); +return x_98; +} +} +else +{ +lean_object* x_99; +x_99 = lean_box(0); +x_7 = x_99; +goto block_92; +} +} +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_3); +x_100 = lean_box(0); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_6); +return x_101; +} +block_92: +{ +lean_dec(x_7); +switch (lean_obj_tag(x_3)) { +case 5: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_3, 1); +lean_inc(x_9); +lean_dec(x_3); +x_10 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_2, x_8, x_6); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_3 = x_9; +x_4 = x_12; +goto _start; +} +else +{ +uint8_t x_14; +lean_dec(x_9); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_10, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_10; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_10, 0, x_18); +return x_10; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_ctor_get(x_11, 0); +lean_inc(x_20); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + x_21 = x_11; +} else { + lean_dec_ref(x_11); + x_21 = lean_box(0); +} +if (lean_is_scalar(x_21)) { + x_22 = lean_alloc_ctor(1, 1, 0); +} else { + x_22 = x_21; +} +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_19); +return x_23; +} +} +} +case 6: +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_3, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 2); +lean_inc(x_25); +lean_dec(x_3); +x_26 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_2, x_24, x_6); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_3 = x_25; +x_4 = x_28; +goto _start; +} +else +{ +uint8_t x_30; +lean_dec(x_25); +x_30 = !lean_is_exclusive(x_26); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_26, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ +return x_26; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_27, 0); +lean_inc(x_33); +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_26, 0, x_34); +return x_26; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = lean_ctor_get(x_27, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + x_37 = x_27; +} else { + lean_dec_ref(x_27); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 1, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_35); +return x_39; +} +} +} +case 7: +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_3, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_3, 2); +lean_inc(x_41); +lean_dec(x_3); +x_42 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_2, x_40, x_6); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_3 = x_41; +x_4 = x_44; +goto _start; +} +else +{ +uint8_t x_46; +lean_dec(x_41); +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_42, 0); +lean_dec(x_47); +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +return x_42; +} +else +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_43, 0); +lean_inc(x_49); +lean_dec(x_43); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_42, 0, x_50); +return x_42; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_42, 1); +lean_inc(x_51); +lean_dec(x_42); +x_52 = lean_ctor_get(x_43, 0); +lean_inc(x_52); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + x_53 = x_43; +} else { + lean_dec_ref(x_43); + x_53 = lean_box(0); +} +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 1, 0); +} else { + x_54 = x_53; +} +lean_ctor_set(x_54, 0, x_52); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_51); +return x_55; +} +} +} +case 8: +{ +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_3, 1); +lean_inc(x_56); +x_57 = lean_ctor_get(x_3, 2); +lean_inc(x_57); +x_58 = lean_ctor_get(x_3, 3); +lean_inc(x_58); +lean_dec(x_3); +x_59 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_2, x_56, x_6); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_2, x_57, x_61); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_3 = x_58; +x_4 = x_64; +goto _start; +} +else +{ +uint8_t x_66; +lean_dec(x_58); +x_66 = !lean_is_exclusive(x_62); +if (x_66 == 0) +{ +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_62, 0); +lean_dec(x_67); +x_68 = !lean_is_exclusive(x_63); +if (x_68 == 0) +{ +return x_62; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_63, 0); +lean_inc(x_69); +lean_dec(x_63); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_62, 0, x_70); +return x_62; +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_71 = lean_ctor_get(x_62, 1); +lean_inc(x_71); +lean_dec(x_62); +x_72 = lean_ctor_get(x_63, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + x_73 = x_63; +} else { + lean_dec_ref(x_63); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 1, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_72); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_71); +return x_75; +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_58); +lean_dec(x_57); +x_76 = !lean_is_exclusive(x_59); +if (x_76 == 0) +{ +lean_object* x_77; uint8_t x_78; +x_77 = lean_ctor_get(x_59, 0); +lean_dec(x_77); +x_78 = !lean_is_exclusive(x_60); +if (x_78 == 0) +{ +return x_59; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_60, 0); +lean_inc(x_79); +lean_dec(x_60); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_59, 0, x_80); +return x_59; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_59, 1); +lean_inc(x_81); +lean_dec(x_59); +x_82 = lean_ctor_get(x_60, 0); +lean_inc(x_82); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + x_83 = x_60; +} else { + lean_dec_ref(x_60); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 1, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_81); +return x_85; +} +} +} +case 10: +{ +lean_object* x_86; +x_86 = lean_ctor_get(x_3, 1); +lean_inc(x_86); +lean_dec(x_3); +x_3 = x_86; +x_4 = x_6; +goto _start; +} +case 11: +{ +lean_object* x_88; +x_88 = lean_ctor_get(x_3, 2); +lean_inc(x_88); +lean_dec(x_3); +x_3 = x_88; +x_4 = x_6; +goto _start; +} +default: +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_3); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_6); +return x_91; +} +} +} +} +} +} +uint8_t l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive(lean_object* x_1) { +_start: +{ +lean_object* x_2; size_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 4); +lean_inc(x_2); +x_3 = 8192; +x_4 = l_Lean_Expr_FindImpl_initCache; +x_5 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_3, x_2, x_4); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +else +{ +uint8_t x_8; +lean_dec(x_6); +x_8 = 0; +return x_8; +} +} +} +lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; lean_object* x_6; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___spec__1(x_1, x_5, x_3, x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_4, 2); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__1(x_5); +lean_ctor_set(x_1, 1, x_7); +lean_ctor_set(x_1, 0, x_6); +return x_1; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 2); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___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); +return x_12; +} +} +} +} +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_3); +x_8 = lean_ctor_get(x_7, 2); +lean_inc(x_8); +x_9 = lean_name_eq(x_8, x_1); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_7); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; +lean_dec(x_3); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_7); +return x_13; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; size_t x_71; uint8_t x_72; +x_66 = lean_ptr_addr(x_3); +x_67 = x_2 == 0 ? 0 : x_66 % x_2; +x_68 = lean_ctor_get(x_5, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_5, 1); +lean_inc(x_69); +x_70 = lean_array_uget(x_68, x_67); +x_71 = lean_ptr_addr(x_70); +lean_dec(x_70); +x_72 = x_71 == x_66; +if (x_72 == 0) +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_5); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_74 = lean_ctor_get(x_5, 1); +lean_dec(x_74); +x_75 = lean_ctor_get(x_5, 0); +lean_dec(x_75); +lean_inc(x_3); +x_76 = lean_array_uset(x_68, x_67, x_3); +lean_ctor_set(x_5, 0, x_76); +x_77 = 0; +x_6 = x_77; +x_7 = x_5; +goto block_65; +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_dec(x_5); +lean_inc(x_3); +x_78 = lean_array_uset(x_68, x_67, x_3); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_69); +x_80 = 0; +x_6 = x_80; +x_7 = x_79; +goto block_65; +} +} +else +{ +uint8_t x_81; +lean_dec(x_69); +lean_dec(x_68); +x_81 = 1; +x_6 = x_81; +x_7 = x_5; +goto block_65; +} +block_65: +{ +if (x_6 == 0) +{ +switch (lean_obj_tag(x_3)) { +case 4: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +x_11 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_10, x_8); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_7, 1); +lean_dec(x_13); +x_14 = lean_ctor_get(x_7, 0); +lean_dec(x_14); +lean_inc(x_8); +x_15 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); +lean_ctor_set(x_7, 1, x_15); +x_16 = lean_array_get_size(x_1); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(x_1, x_8, x_1, x_16, x_17); +lean_dec(x_16); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_8); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_7); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_4); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_7); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_7); +lean_inc(x_8); +x_22 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_9); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_array_get_size(x_1); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(x_1, x_8, x_1, x_24, x_25); +lean_dec(x_24); +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec(x_8); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_8); +lean_ctor_set(x_28, 1, x_4); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_23); +return x_29; +} +} +} +else +{ +lean_object* x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_4); +lean_ctor_set(x_30, 1, x_7); +return x_30; +} +} +case 5: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_3, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_3, 1); +lean_inc(x_32); +lean_dec(x_3); +x_33 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_2, x_31, x_4, x_7); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_3 = x_32; +x_4 = x_34; +x_5 = x_35; +goto _start; +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +x_39 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_2, x_37, x_4, x_7); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_3 = x_38; +x_4 = x_40; +x_5 = x_41; +goto _start; +} +case 7: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_3, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_3, 2); +lean_inc(x_44); +lean_dec(x_3); +x_45 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_2, x_43, x_4, x_7); +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_3 = x_44; +x_4 = x_46; +x_5 = x_47; +goto _start; +} +case 8: +{ +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; +x_49 = lean_ctor_get(x_3, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_3, 2); +lean_inc(x_50); +x_51 = lean_ctor_get(x_3, 3); +lean_inc(x_51); +lean_dec(x_3); +x_52 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_2, x_49, x_4, x_7); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_2, x_50, x_53, x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_3 = x_51; +x_4 = x_56; +x_5 = x_57; +goto _start; +} +case 10: +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +lean_dec(x_3); +x_3 = x_59; +x_5 = x_7; +goto _start; +} +case 11: +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_3, 2); +lean_inc(x_61); +lean_dec(x_3); +x_3 = x_61; +x_5 = x_7; +goto _start; +} +default: +{ +lean_object* x_63; +lean_dec(x_3); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_4); +lean_ctor_set(x_63, 1, x_7); +return x_63; +} +} +} +else +{ +lean_object* x_64; +lean_dec(x_3); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_4); +lean_ctor_set(x_64, 1, x_7); +return x_64; +} +} +} +} +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; size_t x_71; uint8_t x_72; +x_66 = lean_ptr_addr(x_3); +x_67 = x_2 == 0 ? 0 : x_66 % x_2; +x_68 = lean_ctor_get(x_5, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_5, 1); +lean_inc(x_69); +x_70 = lean_array_uget(x_68, x_67); +x_71 = lean_ptr_addr(x_70); +lean_dec(x_70); +x_72 = x_71 == x_66; +if (x_72 == 0) +{ +uint8_t x_73; +x_73 = !lean_is_exclusive(x_5); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_74 = lean_ctor_get(x_5, 1); +lean_dec(x_74); +x_75 = lean_ctor_get(x_5, 0); +lean_dec(x_75); +lean_inc(x_3); +x_76 = lean_array_uset(x_68, x_67, x_3); +lean_ctor_set(x_5, 0, x_76); +x_77 = 0; +x_6 = x_77; +x_7 = x_5; +goto block_65; +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_dec(x_5); +lean_inc(x_3); +x_78 = lean_array_uset(x_68, x_67, x_3); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_69); +x_80 = 0; +x_6 = x_80; +x_7 = x_79; +goto block_65; +} +} +else +{ +uint8_t x_81; +lean_dec(x_69); +lean_dec(x_68); +x_81 = 1; +x_6 = x_81; +x_7 = x_5; +goto block_65; +} +block_65: +{ +if (x_6 == 0) +{ +switch (lean_obj_tag(x_3)) { +case 4: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +x_11 = l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(x_10, x_8); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_7, 1); +lean_dec(x_13); +x_14 = lean_ctor_get(x_7, 0); +lean_dec(x_14); +lean_inc(x_8); +x_15 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); +lean_ctor_set(x_7, 1, x_15); +x_16 = lean_array_get_size(x_1); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(x_1, x_8, x_1, x_16, x_17); +lean_dec(x_16); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_8); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_7); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_4); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_7); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_7); +lean_inc(x_8); +x_22 = l_Std_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_10, x_8); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_9); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_array_get_size(x_1); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(x_1, x_8, x_1, x_24, x_25); +lean_dec(x_24); +if (x_26 == 0) +{ +lean_object* x_27; +lean_dec(x_8); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_23); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_8); +lean_ctor_set(x_28, 1, x_4); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_23); +return x_29; +} +} +} +else +{ +lean_object* x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_4); +lean_ctor_set(x_30, 1, x_7); +return x_30; +} +} +case 5: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_3, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_3, 1); +lean_inc(x_32); +lean_dec(x_3); +x_33 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_2, x_31, x_4, x_7); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_3 = x_32; +x_4 = x_34; +x_5 = x_35; +goto _start; +} +case 6: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_3, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 2); +lean_inc(x_38); +lean_dec(x_3); +x_39 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_2, x_37, x_4, x_7); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_3 = x_38; +x_4 = x_40; +x_5 = x_41; +goto _start; +} +case 7: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_3, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_3, 2); +lean_inc(x_44); +lean_dec(x_3); +x_45 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_2, x_43, x_4, x_7); +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_3 = x_44; +x_4 = x_46; +x_5 = x_47; +goto _start; +} +case 8: +{ +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; +x_49 = lean_ctor_get(x_3, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_3, 2); +lean_inc(x_50); +x_51 = lean_ctor_get(x_3, 3); +lean_inc(x_51); +lean_dec(x_3); +x_52 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_2, x_49, x_4, x_7); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_2, x_50, x_53, x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_3 = x_51; +x_4 = x_56; +x_5 = x_57; +goto _start; +} +case 10: +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_3, 1); +lean_inc(x_59); +lean_dec(x_3); +x_3 = x_59; +x_5 = x_7; +goto _start; +} +case 11: +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_3, 2); +lean_inc(x_61); +lean_dec(x_3); +x_3 = x_61; +x_5 = x_7; +goto _start; +} +default: +{ +lean_object* x_63; +lean_dec(x_3); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_4); +lean_ctor_set(x_63, 1, x_7); +return x_63; +} +} +} +else +{ +lean_object* x_64; +lean_dec(x_3); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_4); +lean_ctor_set(x_64, 1, x_7); +return x_64; +} +} +} +} +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_name_eq(x_4, x_1); +if (x_7 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_9; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +return x_9; +} +} +} +} +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = l_Lean_Name_hash(x_2); +x_6 = lean_usize_modn(x_5, x_4); +lean_dec(x_4); +x_7 = lean_array_uget(x_3, x_6); +x_8 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9(x_2, x_7); +lean_dec(x_7); +return x_8; +} +} +lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_2, 2); +lean_inc(x_3); +x_4 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(x_3, x_1); +lean_dec(x_3); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Util_SCC_1__getDataOf___rarg___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_2); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_2); +return x_8; +} +} +} +uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_name_eq(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__16(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; 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_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_array_get_size(x_1); +x_7 = l_Lean_Name_hash(x_4); +x_8 = lean_usize_modn(x_7, x_6); +lean_dec(x_6); +x_9 = lean_array_uget(x_1, x_8); +lean_ctor_set(x_2, 2, x_9); +x_10 = lean_array_uset(x_1, x_8, x_2); +x_1 = x_10; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +x_14 = lean_ctor_get(x_2, 2); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_2); +x_15 = lean_array_get_size(x_1); +x_16 = l_Lean_Name_hash(x_12); +x_17 = lean_usize_modn(x_16, x_15); +lean_dec(x_15); +x_18 = lean_array_uget(x_1, x_17); +x_19 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_13); +lean_ctor_set(x_19, 2, x_18); +x_20 = lean_array_uset(x_1, x_17, x_19); +x_1 = x_20; +x_2 = x_14; +goto _start; +} +} +} +} +lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_box(0); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__16(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__14(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_mk_array(x_5, x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__15(x_8, x_2, x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +lean_object* l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_3, 2); +x_8 = lean_name_eq(x_5, x_1); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(x_1, x_2, x_7); +lean_ctor_set(x_3, 2, x_9); +return x_3; +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_ctor_get(x_3, 2); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_3); +x_13 = lean_name_eq(x_10, x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(x_1, x_2, x_12); +x_15 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_11); +lean_ctor_set(x_15, 2, x_14); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_2); +lean_ctor_set(x_16, 2, x_12); +return x_16; +} +} +} +} +} +lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_array_get_size(x_6); +x_8 = l_Lean_Name_hash(x_2); +x_9 = lean_usize_modn(x_8, x_7); +x_10 = lean_array_uget(x_6, x_9); +x_11 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13(x_2, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_14 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_3); +lean_ctor_set(x_14, 2, x_10); +x_15 = lean_array_uset(x_6, x_9, x_14); +x_16 = lean_nat_dec_le(x_13, x_7); +lean_dec(x_7); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_1); +x_17 = l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__14(x_13, x_15); +return x_17; +} +else +{ +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_7); +x_18 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(x_2, x_3, x_10); +x_19 = lean_array_uset(x_6, x_9, x_18); +lean_ctor_set(x_1, 1, x_19); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = lean_array_get_size(x_21); +x_23 = l_Lean_Name_hash(x_2); +x_24 = lean_usize_modn(x_23, x_22); +x_25 = lean_array_uget(x_21, x_24); +x_26 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13(x_2, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_20, x_27); +lean_dec(x_20); +x_29 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_3); +lean_ctor_set(x_29, 2, x_25); +x_30 = lean_array_uset(x_21, x_24, x_29); +x_31 = lean_nat_dec_le(x_28, x_22); +lean_dec(x_22); +if (x_31 == 0) +{ +lean_object* x_32; +x_32 = l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__14(x_28, x_30); +return x_32; +} +else +{ +lean_object* x_33; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_22); +x_34 = l_Std_AssocList_replace___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__17(x_2, x_3, x_25); +x_35 = lean_array_uset(x_21, x_24, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_20); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} +lean_object* l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__11(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +lean_inc(x_1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_4); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_5, x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_5); +x_11 = 1; +lean_inc(x_10); +x_12 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_11); +x_13 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(x_6, x_1, x_12); +lean_ctor_set(x_2, 2, x_13); +lean_ctor_set(x_2, 1, x_9); +lean_ctor_set(x_2, 0, x_7); +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_2); +return x_15; +} +else +{ +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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_16 = lean_ctor_get(x_2, 0); +x_17 = lean_ctor_get(x_2, 1); +x_18 = lean_ctor_get(x_2, 2); +x_19 = lean_ctor_get(x_2, 3); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_2); +lean_inc(x_1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_16); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_17, x_21); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_17); +x_24 = 1; +lean_inc(x_23); +x_25 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_23); +lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_24); +x_26 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(x_18, x_1, x_25); +x_27 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_27, 0, x_20); +lean_ctor_set(x_27, 1, x_22); +lean_ctor_set(x_27, 2, x_26); +lean_ctor_set(x_27, 3, x_19); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +lean_object* l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 2); +x_6 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(x_5, x_1); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_3); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_apply_1(x_2, x_9); +x_11 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(x_5, x_1, x_10); +lean_ctor_set(x_3, 2, x_11); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_ctor_get(x_3, 1); +x_16 = lean_ctor_get(x_3, 2); +x_17 = lean_ctor_get(x_3, 3); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_3); +x_18 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(x_16, x_1); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_19, 0, x_14); +lean_ctor_set(x_19, 1, x_15); +lean_ctor_set(x_19, 2, x_16); +lean_ctor_set(x_19, 3, x_17); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_18, 0); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_apply_1(x_2, x_22); +x_24 = l_Std_HashMapImp_insert___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__12(x_16, x_1, x_23); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_14); +lean_ctor_set(x_25, 1, x_15); +lean_ctor_set(x_25, 2, x_24); +lean_ctor_set(x_25, 3, x_17); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +} +} +lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_5__updateLowLinkOf___rarg___lambda__1), 2, 1); +lean_closure_set(x_4, 0, x_2); +x_5 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(x_1, x_4, x_3); +return x_5; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_3, 1); +lean_inc(x_8); +lean_dec(x_3); +x_9 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_7, x_4); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +lean_inc(x_7); +x_13 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(x_1, x_7, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_7, x_14); +lean_dec(x_7); +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, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_2); +x_19 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(x_2, x_18, x_17); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_3 = x_8; +x_4 = x_20; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_7); +x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*2); +lean_dec(x_10); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_11); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_dec(x_9); +x_3 = x_8; +x_4 = x_23; +goto _start; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 1); +lean_inc(x_25); +lean_dec(x_9); +lean_inc(x_2); +x_26 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(x_2, x_11, x_25); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_3 = x_8; +x_4 = x_27; +goto _start; +} +} +} +} +} +lean_object* l___private_Lean_Util_SCC_4__resetOnStack___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__23(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l___private_Lean_Util_SCC_4__resetOnStack___rarg___closed__1; +x_4 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(x_1, x_3, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_4, 3); +x_7 = lean_ctor_get(x_4, 0); +lean_dec(x_7); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_6); +lean_ctor_set(x_4, 3, x_8); +lean_ctor_set(x_4, 0, x_2); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_4, 1); +x_12 = lean_ctor_get(x_4, 2); +x_13 = lean_ctor_get(x_4, 3); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_4); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_11); +lean_ctor_set(x_15, 2, x_12); +lean_ctor_set(x_15, 3, x_14); +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_15); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_2); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_2, 0); +x_20 = lean_ctor_get(x_2, 1); +x_21 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1), 1, 0); +lean_inc(x_19); +x_22 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(x_19, x_21, x_4); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_22, 1); +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +lean_inc(x_19); +lean_ctor_set(x_2, 1, x_3); +x_26 = lean_name_eq(x_1, x_19); +lean_dec(x_19); +if (x_26 == 0) +{ +lean_free_object(x_22); +{ +lean_object* _tmp_1 = x_20; +lean_object* _tmp_2 = x_2; +lean_object* _tmp_3 = x_24; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_4 = _tmp_3; +} +goto _start; +} +else +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_24, 3); +x_30 = lean_ctor_get(x_24, 0); +lean_dec(x_30); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_2); +lean_ctor_set(x_31, 1, x_29); +lean_ctor_set(x_24, 3, x_31); +lean_ctor_set(x_24, 0, x_20); +x_32 = lean_box(0); +lean_ctor_set(x_22, 0, x_32); +return x_22; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_24, 1); +x_34 = lean_ctor_get(x_24, 2); +x_35 = lean_ctor_get(x_24, 3); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_24); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_2); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_37, 0, x_20); +lean_ctor_set(x_37, 1, x_33); +lean_ctor_set(x_37, 2, x_34); +lean_ctor_set(x_37, 3, x_36); +x_38 = lean_box(0); +lean_ctor_set(x_22, 1, x_37); +lean_ctor_set(x_22, 0, x_38); +return x_22; +} +} +} +else +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_22, 1); +lean_inc(x_39); +lean_dec(x_22); +lean_inc(x_19); +lean_ctor_set(x_2, 1, x_3); +x_40 = lean_name_eq(x_1, x_19); +lean_dec(x_19); +if (x_40 == 0) +{ +{ +lean_object* _tmp_1 = x_20; +lean_object* _tmp_2 = x_2; +lean_object* _tmp_3 = x_39; +x_2 = _tmp_1; +x_3 = _tmp_2; +x_4 = _tmp_3; +} +goto _start; +} +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; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_39, 2); +lean_inc(x_43); +x_44 = lean_ctor_get(x_39, 3); +lean_inc(x_44); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + x_45 = x_39; +} else { + lean_dec_ref(x_39); + x_45 = lean_box(0); +} +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_2); +lean_ctor_set(x_46, 1, x_44); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 4, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_20); +lean_ctor_set(x_47, 1, x_42); +lean_ctor_set(x_47, 2, x_43); +lean_ctor_set(x_47, 3, x_46); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_50 = lean_ctor_get(x_2, 0); +x_51 = lean_ctor_get(x_2, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_2); +x_52 = lean_alloc_closure((void*)(l___private_Lean_Util_SCC_4__resetOnStack___rarg___lambda__1), 1, 0); +lean_inc(x_50); +x_53 = l___private_Lean_Util_SCC_3__modifyDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__19(x_50, x_52, x_4); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_55 = x_53; +} else { + lean_dec_ref(x_53); + x_55 = lean_box(0); +} +lean_inc(x_50); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_50); +lean_ctor_set(x_56, 1, x_3); +x_57 = lean_name_eq(x_1, x_50); +lean_dec(x_50); +if (x_57 == 0) +{ +lean_dec(x_55); +x_2 = x_51; +x_3 = x_56; +x_4 = x_54; +goto _start; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_59 = lean_ctor_get(x_54, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_54, 3); +lean_inc(x_61); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + lean_ctor_release(x_54, 2); + lean_ctor_release(x_54, 3); + x_62 = x_54; +} else { + lean_dec_ref(x_54); + x_62 = lean_box(0); +} +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set(x_63, 1, x_61); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 4, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_51); +lean_ctor_set(x_64, 1, x_59); +lean_ctor_set(x_64, 2, x_60); +lean_ctor_set(x_64, 3, x_63); +x_65 = lean_box(0); +if (lean_is_scalar(x_55)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_55; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +} +} +lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(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_2, 0); +lean_inc(x_3); +x_4 = lean_box(0); +x_5 = l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22(x_1, x_3, x_4, x_2); +return x_5; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_3, 1); +lean_inc(x_8); +lean_dec(x_3); +x_9 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_7, x_4); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +lean_inc(x_7); +x_13 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(x_1, x_7, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_7, x_14); +lean_dec(x_7); +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, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_2); +x_19 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(x_2, x_18, x_17); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_3 = x_8; +x_4 = x_20; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_7); +x_22 = lean_ctor_get_uint8(x_10, sizeof(void*)*2); +lean_dec(x_10); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_11); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_dec(x_9); +x_3 = x_8; +x_4 = x_23; +goto _start; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 1); +lean_inc(x_25); +lean_dec(x_9); +lean_inc(x_2); +x_26 = l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__18(x_2, x_11, x_25); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_3 = x_8; +x_4 = x_27; +goto _start; +} +} +} +} +} +lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; +lean_inc(x_2); +x_4 = l___private_Lean_Util_SCC_2__push___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__11(x_2, x_3); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2(x_2, x_1, x_6); +x_8 = lean_box(0); +x_9 = 8192; +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_10 = l_Lean_Elab_PreDefinition_inhabited; +x_11 = l_Option_get_x21___rarg___closed__3; +x_12 = lean_panic_fn(x_10, x_11); +x_13 = lean_ctor_get(x_12, 4); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_Expr_FoldConstsImpl_initCache; +x_15 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_9, x_13, x_8, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +lean_inc(x_2); +x_17 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20(x_1, x_2, x_16, x_5); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_2, x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_23); +lean_dec(x_2); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_22); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_19, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_19, 0, x_27); +return x_19; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +} +else +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_20, 0); +lean_inc(x_31); +lean_dec(x_20); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +lean_dec(x_21); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_19, 0); +lean_dec(x_33); +x_34 = lean_box(0); +lean_ctor_set(x_19, 0, x_34); +return x_19; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_19, 1); +lean_inc(x_35); +lean_dec(x_19); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +else +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_19); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_39 = lean_ctor_get(x_19, 1); +x_40 = lean_ctor_get(x_19, 0); +lean_dec(x_40); +x_41 = lean_ctor_get(x_21, 0); +lean_inc(x_41); +lean_dec(x_21); +x_42 = lean_ctor_get(x_31, 0); +lean_inc(x_42); +lean_dec(x_31); +x_43 = lean_nat_dec_eq(x_41, x_42); +lean_dec(x_42); +lean_dec(x_41); +if (x_43 == 0) +{ +lean_object* x_44; +lean_dec(x_2); +x_44 = lean_box(0); +lean_ctor_set(x_19, 0, x_44); +return x_19; +} +else +{ +lean_object* x_45; +lean_free_object(x_19); +x_45 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_39); +lean_dec(x_2); +return x_45; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_46 = lean_ctor_get(x_19, 1); +lean_inc(x_46); +lean_dec(x_19); +x_47 = lean_ctor_get(x_21, 0); +lean_inc(x_47); +lean_dec(x_21); +x_48 = lean_ctor_get(x_31, 0); +lean_inc(x_48); +lean_dec(x_31); +x_49 = lean_nat_dec_eq(x_47, x_48); +lean_dec(x_48); +lean_dec(x_47); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_2); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +else +{ +lean_object* x_52; +x_52 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_46); +lean_dec(x_2); +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; +x_53 = lean_ctor_get(x_7, 0); +lean_inc(x_53); +lean_dec(x_7); +x_54 = lean_ctor_get(x_53, 4); +lean_inc(x_54); +lean_dec(x_53); +x_55 = l_Lean_Expr_FoldConstsImpl_initCache; +x_56 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_9, x_54, x_8, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +lean_dec(x_56); +lean_inc(x_2); +x_58 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__24(x_1, x_2, x_57, x_5); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_2, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +lean_dec(x_61); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_65 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_64); +lean_dec(x_2); +return x_65; +} +else +{ +uint8_t x_66; +lean_dec(x_63); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_60); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_60, 0); +lean_dec(x_67); +x_68 = lean_box(0); +lean_ctor_set(x_60, 0, x_68); +return x_60; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_60, 1); +lean_inc(x_69); +lean_dec(x_60); +x_70 = lean_box(0); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +} +else +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_61, 0); +lean_inc(x_72); +lean_dec(x_61); +if (lean_obj_tag(x_72) == 0) +{ +uint8_t x_73; +lean_dec(x_62); +lean_dec(x_2); +x_73 = !lean_is_exclusive(x_60); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_60, 0); +lean_dec(x_74); +x_75 = lean_box(0); +lean_ctor_set(x_60, 0, x_75); +return x_60; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_60, 1); +lean_inc(x_76); +lean_dec(x_60); +x_77 = lean_box(0); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} +else +{ +uint8_t x_79; +x_79 = !lean_is_exclusive(x_60); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_80 = lean_ctor_get(x_60, 1); +x_81 = lean_ctor_get(x_60, 0); +lean_dec(x_81); +x_82 = lean_ctor_get(x_62, 0); +lean_inc(x_82); +lean_dec(x_62); +x_83 = lean_ctor_get(x_72, 0); +lean_inc(x_83); +lean_dec(x_72); +x_84 = lean_nat_dec_eq(x_82, x_83); +lean_dec(x_83); +lean_dec(x_82); +if (x_84 == 0) +{ +lean_object* x_85; +lean_dec(x_2); +x_85 = lean_box(0); +lean_ctor_set(x_60, 0, x_85); +return x_60; +} +else +{ +lean_object* x_86; +lean_free_object(x_60); +x_86 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_80); +lean_dec(x_2); +return x_86; +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_60, 1); +lean_inc(x_87); +lean_dec(x_60); +x_88 = lean_ctor_get(x_62, 0); +lean_inc(x_88); +lean_dec(x_62); +x_89 = lean_ctor_get(x_72, 0); +lean_inc(x_89); +lean_dec(x_72); +x_90 = lean_nat_dec_eq(x_88, x_89); +lean_dec(x_89); +lean_dec(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_2); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_87); +return x_92; +} +else +{ +lean_object* x_93; +x_93 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_2, x_87); +lean_dec(x_2); +return x_93; +} +} +} +} +} +} +} +lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__25(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_6, x_3); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +x_12 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(x_1, x_6, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_2 = x_7; +x_3 = x_13; +goto _start; +} +else +{ +lean_object* x_15; +lean_dec(x_10); +lean_dec(x_6); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_dec(x_8); +x_2 = x_7; +x_3 = x_15; +goto _start; +} +} +} +} +lean_object* _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1; +x_4 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +lean_ctor_set(x_4, 3, x_1); +return x_4; +} +} +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6(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 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2; +x_4 = l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__26(x_1, x_2, x_3); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_5, 3); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_List_reverse___rarg(x_6); +return x_7; +} +} +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_3); +x_8 = lean_ctor_get(x_7, 2); +lean_inc(x_8); +x_9 = lean_name_eq(x_8, x_1); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_7); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; +lean_dec(x_3); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_7); +return x_13; +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27(x_10, x_1, x_8); +lean_dec(x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = l_Lean_Elab_PreDefinition_inhabited; +x_15 = l_Option_get_x21___rarg___closed__3; +x_16 = lean_panic_fn(x_14, x_15); +x_17 = x_16; +x_18 = lean_array_fset(x_9, x_2, x_17); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_18; +goto _start; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 0); +lean_inc(x_20); +lean_dec(x_11); +x_21 = x_20; +x_22 = lean_array_fset(x_9, x_2, x_21); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_22; +goto _start; +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_List_redLength___main___rarg(x_10); +x_12 = lean_mk_empty_array_with_capacity(x_11); +lean_dec(x_11); +x_13 = l_List_toArrayAux___main___rarg(x_10, x_12); +x_14 = x_13; +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28(x_1, x_8, x_14); +x_16 = x_15; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_2, x_17); +x_19 = x_16; +x_20 = lean_array_fset(x_9, x_2, x_19); +lean_dec(x_2); +x_2 = x_18; +x_3 = x_20; +goto _start; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_2 = l_Array_toList___rarg(x_1); +x_3 = l_List_map___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__1(x_2); +x_4 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6(x_1, x_3); +x_5 = l_List_redLength___main___rarg(x_4); +x_6 = lean_mk_empty_array_with_capacity(x_5); +lean_dec(x_5); +x_7 = l_List_toArrayAux___main___rarg(x_4, x_6); +x_8 = x_7; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29(x_1, x_9, x_8); +x_11 = x_10; +return x_11; +} +} +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__2(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___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_2); +lean_dec(x_2); +x_7 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__4(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5___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_2); +lean_dec(x_2); +x_7 = l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__5(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__9(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__8(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__7(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_AssocList_contains___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__13(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20___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_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__20(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22___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_Util_SCC_6__addSCCAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__22(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Util_SCC_7__addSCC___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__21(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__24___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_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__24(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_Util_SCC_8__sccAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__10(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__26___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_PreDefinition_Main_3__partitionPreDefs___spec__26(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_findMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__27(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__28(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__29(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 4); +lean_inc(x_8); +x_9 = l_Lean_Meta_collectMVarsAux___main(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_1, 3); +lean_inc(x_11); +lean_dec(x_1); +x_12 = l_Lean_Meta_collectMVarsAux___main(x_11, x_2, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_7 = l_Lean_Meta_getMVarsImp___closed__1; +x_8 = lean_st_mk_ref(x_7, x_6); +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___private_Lean_Elab_PreDefinition_Main_4__collectMVarsAtPreDef(x_1, x_9, x_2, x_3, x_4, x_5, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_9, x_12); +lean_dec(x_9); +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_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +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_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 2); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_st_ref_take(x_7, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +x_18 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_14, 2, x_18); +x_19 = lean_st_ref_set(x_7, x_14, x_15); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef(x_1, x_4, x_5, x_6, x_7, x_20); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Elab_Term_logUnassignedUsingErrorContext(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +lean_dec(x_22); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_26); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_26, 0); +lean_dec(x_30); +x_31 = lean_box(0); +lean_ctor_set(x_26, 0, x_31); +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_dec(x_26); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_dec(x_26); +x_36 = l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(x_35); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_37 = lean_ctor_get(x_14, 0); +x_38 = lean_ctor_get(x_14, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_14); +x_39 = l_Lean_TraceState_Inhabited___closed__1; +x_40 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 2, x_39); +x_41 = lean_st_ref_set(x_7, x_40, x_15); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = l___private_Lean_Elab_PreDefinition_Main_5__getMVarsAtPreDef(x_1, x_4, x_5, x_6, x_7, x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_2); +x_46 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_45); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l_Lean_Elab_Term_logUnassignedUsingErrorContext(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_47); +lean_dec(x_44); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_unbox(x_49); +lean_dec(x_49); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_52 = x_48; +} else { + lean_dec_ref(x_48); + x_52 = lean_box(0); +} +x_53 = lean_box(0); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_48, 1); +lean_inc(x_55); +lean_dec(x_48); +x_56 = l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(x_55); +return x_56; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef___boxed(lean_object* x_1, lean_object* x_2, 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_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("body"); +return x_1; +} +} +lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +x_2 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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; +x_10 = lean_array_get_size(x_1); +x_11 = lean_nat_dec_lt(x_2, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_array_fget(x_1, x_2); +x_15 = lean_ctor_get(x_7, 0); +x_16 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; +x_17 = l_Lean_checkTraceOption(x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_14); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_2, x_18); +lean_dec(x_2); +x_2 = x_19; +goto _start; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_21 = lean_ctor_get(x_14, 2); +lean_inc(x_21); +x_22 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_ctor_get(x_14, 3); +lean_inc(x_25); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_MessageData_ofList___closed__3; +x_31 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_ctor_get(x_14, 4); +lean_inc(x_32); +lean_dec(x_14); +x_33 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_16, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_2, x_37); +lean_dec(x_2); +x_2 = x_38; +x_9 = x_36; +goto _start; +} +} +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_1); +x_11 = lean_nat_dec_lt(x_2, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_fget(x_1, x_2); +lean_inc(x_3); +x_15 = l___private_Lean_Elab_PreDefinition_Main_6__ensureNoUnassignedMVarsAtPreDef(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_2, x_17); +lean_dec(x_2); +x_2 = x_18; +x_9 = x_16; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_3); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_4); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 3); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +else +{ +lean_dec(x_4); +return x_9; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_4); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 2); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +else +{ +lean_dec(x_4); +return x_9; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_4); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 3); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +else +{ +lean_dec(x_4); +return x_9; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_4); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*2 + 2); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +else +{ +lean_dec(x_4); +return x_9; +} +} +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_20; uint8_t x_21; +x_20 = lean_array_get_size(x_1); +x_21 = lean_nat_dec_lt(x_2, x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_9); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_array_fget(x_1, x_2); +x_25 = lean_array_get_size(x_24); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_dec_eq(x_25, x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3(x_24, x_24, x_25, x_28); +if (x_29 == 0) +{ +uint8_t x_30; +x_30 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__4(x_24, x_24, x_25, x_28); +lean_dec(x_25); +if (x_30 == 0) +{ +lean_object* x_31; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_31 = l_Lean_Elab_structuralRecursion(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +lean_dec(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +lean_inc(x_3); +x_35 = l_Lean_Elab_WFRecursion___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_34); +x_10 = x_35; +goto block_19; +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_31, 0); +lean_dec(x_37); +x_38 = lean_box(0); +lean_ctor_set(x_31, 0, x_38); +x_10 = x_31; +goto block_19; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_dec(x_31); +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); +x_10 = x_41; +goto block_19; +} +} +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_31); +if (x_42 == 0) +{ +x_10 = x_31; +goto block_19; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_31, 0); +x_44 = lean_ctor_get(x_31, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_31); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_10 = x_45; +goto block_19; +} +} +} +else +{ +lean_object* x_46; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_46 = l___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = x_46; +goto block_19; +} +} +else +{ +lean_object* x_47; +lean_dec(x_25); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +x_47 = l_Lean_Elab_addAndCompileUnsafe(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_24); +x_10 = x_47; +goto block_19; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_48 = l_Lean_Elab_PreDefinition_inhabited; +x_49 = lean_unsigned_to_nat(0u); +x_50 = lean_array_get(x_48, x_24, x_49); +lean_inc(x_50); +x_51 = l___private_Lean_Elab_PreDefinition_Main_2__isNonRecursive(x_50); +if (x_51 == 0) +{ +uint8_t x_52; +lean_dec(x_50); +x_52 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5(x_24, x_24, x_25, x_49); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__6(x_24, x_24, x_25, x_49); +lean_dec(x_25); +if (x_53 == 0) +{ +lean_object* x_54; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_54 = l_Lean_Elab_structuralRecursion(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +lean_inc(x_3); +x_58 = l_Lean_Elab_WFRecursion___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_57); +x_10 = x_58; +goto block_19; +} +else +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_54); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_54, 0); +lean_dec(x_60); +x_61 = lean_box(0); +lean_ctor_set(x_54, 0, x_61); +x_10 = x_54; +goto block_19; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_54, 1); +lean_inc(x_62); +lean_dec(x_54); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_10 = x_64; +goto block_19; +} +} +} +else +{ +uint8_t x_65; +x_65 = !lean_is_exclusive(x_54); +if (x_65 == 0) +{ +x_10 = x_54; +goto block_19; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_54, 0); +x_67 = lean_ctor_get(x_54, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_54); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_10 = x_68; +goto block_19; +} +} +} +else +{ +lean_object* x_69; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_69 = l___private_Lean_Elab_PreDefinition_Main_1__addAndCompilePartial(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = x_69; +goto block_19; +} +} +else +{ +lean_object* x_70; +lean_dec(x_25); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +x_70 = l_Lean_Elab_addAndCompileUnsafe(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_24); +x_10 = x_70; +goto block_19; +} +} +else +{ +uint8_t x_71; lean_object* x_72; +lean_dec(x_25); +lean_dec(x_24); +x_71 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +x_72 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_50, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = x_72; +goto block_19; +} +} +} +block_19: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +lean_dec(x_2); +x_2 = x_13; +x_9 = x_11; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_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_addPreDefinitions(lean_object* x_1, lean_object* x_2, 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 = lean_unsigned_to_nat(0u); +x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +lean_inc(x_2); +x_12 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__2(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs(x_1); +x_15 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7(x_14, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_13); +lean_dec(x_14); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_12); +x_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; +} +} +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___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); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__3___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_Lean_Elab_addPreDefinitions___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__4___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_Lean_Elab_addPreDefinitions___spec__4(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__5(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_addPreDefinitions___spec__6___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_Lean_Elab_addPreDefinitions___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__7(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_Lean_Elab_addPreDefinitions___boxed(lean_object* x_1, lean_object* x_2, 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_addPreDefinitions(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Basic(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Structural(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_WF(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_PreDefinition_Main(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Structural(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_WF(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1(); +lean_mark_persistent(l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__1); +l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2(); +lean_mark_persistent(l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_3__partitionPreDefs___spec__6___closed__2); +l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1(); +lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__1); +l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2(); +lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__2); +l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3 = _init_l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3(); +lean_mark_persistent(l_Array_forMAux___main___at_Lean_Elab_addPreDefinitions___spec__1___closed__3); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c new file mode 100644 index 0000000000..e8ad6c8690 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -0,0 +1,5738 @@ +// Lean compiler output +// Module: Lean.Elab.PreDefinition.Structural +// Imports: Init Lean.Util.ForEachExpr Lean.Meta.RecursorInfo Lean.Elab.PreDefinition.Basic +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +extern lean_object* l_Lean_Meta_binductionOnSuffix; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1; +uint8_t l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_Array_indexOfAux___main___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__5(lean_object*); +extern lean_object* l_Std_HashMap_inhabited___closed__1; +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___boxed(lean_object*, lean_object*); +lean_object* lean_environment_find(lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addAndCompileUnsafeRec(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_PreDefinition_Structural_2__getIndexMinPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18; +lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_PreDefinition_inhabited; +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4; +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn___main(lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28; +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14; +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +uint8_t l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_8__regTraceClasses(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_HasRepr___rarg___closed__1; +lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_brecOnSuffix; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f(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*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21; +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5___boxed(lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19; +lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_repr(lean_object*); +extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2; +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1; +lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__2(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*); +uint8_t l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__2; +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l_Lean_Elab_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3; +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22; +lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at_Lean_Expr_forEach___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___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_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16; +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__2___boxed(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_PreDefinition_Structural_2__getIndexMinPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11; +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isFVar(lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27; +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_TraceState_Inhabited___closed__1; +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___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_PreDefinition_Structural_6__findRecArg_x3f(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13; +lean_object* l_Array_toList___rarg(lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Nat_Inhabited; +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25; +lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29; +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main(lean_object*); +lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3___boxed(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_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20; +lean_object* l_runST___rarg(lean_object*); +uint8_t l_Lean_LocalDecl_isLet(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_4, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_4); +x_7 = 1; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_1, x_4); +x_9 = lean_array_fget(x_2, x_4); +x_10 = lean_expr_eqv(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +uint8_t x_11; +lean_dec(x_4); +x_11 = 0; +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_3 = lean_box(0); +x_4 = x_13; +goto _start; +} +} +} +} +uint8_t l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_le(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2(x_1, x_2, lean_box(0), x_7); +return x_8; +} +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; uint8_t x_28; lean_object* x_29; uint8_t x_116; lean_object* x_117; lean_object* x_121; +x_121 = lean_st_ref_get(x_5, x_7); +if (lean_obj_tag(x_121) == 0) +{ +uint8_t x_122; +x_122 = !lean_is_exclusive(x_121); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_121, 0); +x_124 = lean_ctor_get(x_121, 1); +x_125 = l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(x_123, x_4); +lean_dec(x_123); +if (lean_obj_tag(x_125) == 0) +{ +uint8_t x_126; +lean_free_object(x_121); +x_126 = l_Lean_Expr_isAppOf(x_4, x_1); +if (x_126 == 0) +{ +uint8_t x_127; +x_127 = 1; +x_116 = x_127; +x_117 = x_124; +goto block_120; +} +else +{ +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; +x_128 = lean_unsigned_to_nat(0u); +x_129 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_128); +x_130 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_129); +x_131 = lean_mk_array(x_129, x_130); +x_132 = lean_unsigned_to_nat(1u); +x_133 = lean_nat_sub(x_129, x_132); +lean_dec(x_129); +lean_inc(x_4); +x_134 = l___private_Lean_Expr_3__getAppArgsAux___main(x_4, x_131, x_133); +x_135 = lean_st_ref_take(x_6, x_124); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = lean_array_get_size(x_134); +x_139 = lean_nat_dec_lt(x_138, x_136); +if (x_139 == 0) +{ +lean_object* x_140; +lean_dec(x_138); +x_140 = lean_st_ref_set(x_6, x_136, x_137); +if (lean_obj_tag(x_140) == 0) +{ +lean_object* x_141; uint8_t x_142; +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +lean_dec(x_140); +x_142 = l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(x_134, x_2); +lean_dec(x_134); +if (x_142 == 0) +{ +uint8_t x_143; +x_143 = 1; +x_116 = x_143; +x_117 = x_141; +goto block_120; +} +else +{ +uint8_t x_144; +x_144 = 0; +x_116 = x_144; +x_117 = x_141; +goto block_120; +} +} +else +{ +uint8_t x_145; +lean_dec(x_134); +lean_dec(x_4); +x_145 = !lean_is_exclusive(x_140); +if (x_145 == 0) +{ +return x_140; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_140, 0); +x_147 = lean_ctor_get(x_140, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_140); +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; +} +} +} +else +{ +lean_object* x_149; +lean_dec(x_136); +x_149 = lean_st_ref_set(x_6, x_138, x_137); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; uint8_t x_151; +x_150 = lean_ctor_get(x_149, 1); +lean_inc(x_150); +lean_dec(x_149); +x_151 = l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(x_134, x_2); +lean_dec(x_134); +if (x_151 == 0) +{ +uint8_t x_152; +x_152 = 1; +x_116 = x_152; +x_117 = x_150; +goto block_120; +} +else +{ +uint8_t x_153; +x_153 = 0; +x_116 = x_153; +x_117 = x_150; +goto block_120; +} +} +else +{ +uint8_t x_154; +lean_dec(x_134); +lean_dec(x_4); +x_154 = !lean_is_exclusive(x_149); +if (x_154 == 0) +{ +return x_149; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_149, 0); +x_156 = lean_ctor_get(x_149, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_149); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; +} +} +} +} +else +{ +uint8_t x_158; +lean_dec(x_134); +lean_dec(x_4); +x_158 = !lean_is_exclusive(x_135); +if (x_158 == 0) +{ +return x_135; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_135, 0); +x_160 = lean_ctor_get(x_135, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_135); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; +} +} +} +} +else +{ +lean_object* x_162; +lean_dec(x_4); +x_162 = lean_ctor_get(x_125, 0); +lean_inc(x_162); +lean_dec(x_125); +lean_ctor_set(x_121, 0, x_162); +return x_121; +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_121, 0); +x_164 = lean_ctor_get(x_121, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_121); +x_165 = l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(x_163, x_4); +lean_dec(x_163); +if (lean_obj_tag(x_165) == 0) +{ +uint8_t x_166; +x_166 = l_Lean_Expr_isAppOf(x_4, x_1); +if (x_166 == 0) +{ +uint8_t x_167; +x_167 = 1; +x_116 = x_167; +x_117 = x_164; +goto block_120; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_168 = lean_unsigned_to_nat(0u); +x_169 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_168); +x_170 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_169); +x_171 = lean_mk_array(x_169, x_170); +x_172 = lean_unsigned_to_nat(1u); +x_173 = lean_nat_sub(x_169, x_172); +lean_dec(x_169); +lean_inc(x_4); +x_174 = l___private_Lean_Expr_3__getAppArgsAux___main(x_4, x_171, x_173); +x_175 = lean_st_ref_take(x_6, x_164); +if (lean_obj_tag(x_175) == 0) +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +lean_dec(x_175); +x_178 = lean_array_get_size(x_174); +x_179 = lean_nat_dec_lt(x_178, x_176); +if (x_179 == 0) +{ +lean_object* x_180; +lean_dec(x_178); +x_180 = lean_st_ref_set(x_6, x_176, x_177); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; uint8_t x_182; +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +lean_dec(x_180); +x_182 = l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(x_174, x_2); +lean_dec(x_174); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = 1; +x_116 = x_183; +x_117 = x_181; +goto block_120; +} +else +{ +uint8_t x_184; +x_184 = 0; +x_116 = x_184; +x_117 = x_181; +goto block_120; +} +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_174); +lean_dec(x_4); +x_185 = lean_ctor_get(x_180, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_180, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_187 = x_180; +} else { + lean_dec_ref(x_180); + x_187 = lean_box(0); +} +if (lean_is_scalar(x_187)) { + x_188 = lean_alloc_ctor(1, 2, 0); +} else { + x_188 = x_187; +} +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +return x_188; +} +} +else +{ +lean_object* x_189; +lean_dec(x_176); +x_189 = lean_st_ref_set(x_6, x_178, x_177); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; uint8_t x_191; +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(x_174, x_2); +lean_dec(x_174); +if (x_191 == 0) +{ +uint8_t x_192; +x_192 = 1; +x_116 = x_192; +x_117 = x_190; +goto block_120; +} +else +{ +uint8_t x_193; +x_193 = 0; +x_116 = x_193; +x_117 = x_190; +goto block_120; +} +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_174); +lean_dec(x_4); +x_194 = lean_ctor_get(x_189, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_189, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_196 = x_189; +} else { + lean_dec_ref(x_189); + x_196 = lean_box(0); +} +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); +} else { + x_197 = x_196; +} +lean_ctor_set(x_197, 0, x_194); +lean_ctor_set(x_197, 1, x_195); +return x_197; +} +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_174); +lean_dec(x_4); +x_198 = lean_ctor_get(x_175, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_175, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_200 = x_175; +} else { + lean_dec_ref(x_175); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +else +{ +lean_object* x_202; lean_object* x_203; +lean_dec(x_4); +x_202 = lean_ctor_get(x_165, 0); +lean_inc(x_202); +lean_dec(x_165); +x_203 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_164); +return x_203; +} +} +} +else +{ +uint8_t x_204; +lean_dec(x_4); +x_204 = !lean_is_exclusive(x_121); +if (x_204 == 0) +{ +return x_121; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_121, 0); +x_206 = lean_ctor_get(x_121, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_121); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +return x_207; +} +} +block_27: +{ +lean_object* x_10; +x_10 = lean_st_ref_take(x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +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); +lean_inc(x_8); +x_13 = l_Std_HashMapImp_insert___at_Lean_Expr_forEach___spec__4(x_11, x_4, x_8); +x_14 = lean_st_ref_set(x_5, x_13, x_12); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_8); +return x_14; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_8); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_4); +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) +{ +return x_10; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_10); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +block_115: +{ +if (x_28 == 0) +{ +switch (lean_obj_tag(x_4)) { +case 5: +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_4, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_4, 1); +lean_inc(x_31); +x_32 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_30, x_5, x_6, x_29); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_31, x_5, x_6, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_8 = x_35; +x_9 = x_36; +goto block_27; +} +else +{ +uint8_t x_37; +lean_dec(x_4); +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) +{ +return x_34; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_34); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_31); +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_32); +if (x_41 == 0) +{ +return x_32; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_ctor_get(x_32, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_32); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +case 6: +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_4, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_4, 2); +lean_inc(x_46); +x_47 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_45, x_5, x_6, x_29); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_46, x_5, x_6, x_48); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_8 = x_50; +x_9 = x_51; +goto block_27; +} +else +{ +uint8_t x_52; +lean_dec(x_4); +x_52 = !lean_is_exclusive(x_49); +if (x_52 == 0) +{ +return x_49; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_49, 0); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_49); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_46); +lean_dec(x_4); +x_56 = !lean_is_exclusive(x_47); +if (x_56 == 0) +{ +return x_47; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_47, 0); +x_58 = lean_ctor_get(x_47, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_47); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +case 7: +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_4, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_4, 2); +lean_inc(x_61); +x_62 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_60, x_5, x_6, x_29); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_61, x_5, x_6, x_63); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_8 = x_65; +x_9 = x_66; +goto block_27; +} +else +{ +uint8_t x_67; +lean_dec(x_4); +x_67 = !lean_is_exclusive(x_64); +if (x_67 == 0) +{ +return x_64; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_64); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_62); +if (x_71 == 0) +{ +return x_62; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_62, 0); +x_73 = lean_ctor_get(x_62, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_62); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +case 8: +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_4, 1); +lean_inc(x_75); +x_76 = lean_ctor_get(x_4, 2); +lean_inc(x_76); +x_77 = lean_ctor_get(x_4, 3); +lean_inc(x_77); +x_78 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_75, x_5, x_6, x_29); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_76, x_5, x_6, x_79); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_77, x_5, x_6, x_81); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_8 = x_83; +x_9 = x_84; +goto block_27; +} +else +{ +uint8_t x_85; +lean_dec(x_4); +x_85 = !lean_is_exclusive(x_82); +if (x_85 == 0) +{ +return x_82; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_82, 0); +x_87 = lean_ctor_get(x_82, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_82); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +uint8_t x_89; +lean_dec(x_77); +lean_dec(x_4); +x_89 = !lean_is_exclusive(x_80); +if (x_89 == 0) +{ +return x_80; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_80, 0); +x_91 = lean_ctor_get(x_80, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_80); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +} +else +{ +uint8_t x_93; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_4); +x_93 = !lean_is_exclusive(x_78); +if (x_93 == 0) +{ +return x_78; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_78, 0); +x_95 = lean_ctor_get(x_78, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_78); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +} +case 10: +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_4, 1); +lean_inc(x_97); +x_98 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_97, x_5, x_6, x_29); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_8 = x_99; +x_9 = x_100; +goto block_27; +} +else +{ +uint8_t x_101; +lean_dec(x_4); +x_101 = !lean_is_exclusive(x_98); +if (x_101 == 0) +{ +return x_98; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_98, 0); +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_98); +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; +} +} +} +case 11: +{ +lean_object* x_105; lean_object* x_106; +x_105 = lean_ctor_get(x_4, 2); +lean_inc(x_105); +x_106 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, lean_box(0), x_105, x_5, x_6, x_29); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_8 = x_107; +x_9 = x_108; +goto block_27; +} +else +{ +uint8_t x_109; +lean_dec(x_4); +x_109 = !lean_is_exclusive(x_106); +if (x_109 == 0) +{ +return x_106; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_106, 0); +x_111 = lean_ctor_get(x_106, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_106); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +} +} +default: +{ +lean_object* x_113; +x_113 = lean_box(0); +x_8 = x_113; +x_9 = x_29; +goto block_27; +} +} +} +else +{ +lean_object* x_114; +x_114 = lean_box(0); +x_8 = x_114; +x_9 = x_29; +goto block_27; +} +} +block_120: +{ +if (x_116 == 0) +{ +uint8_t x_118; +x_118 = 1; +x_28 = x_118; +x_29 = x_117; +goto block_115; +} +else +{ +uint8_t x_119; +x_119 = 0; +x_28 = x_119; +x_29 = x_117; +goto block_115; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___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; +x_6 = lean_array_get_size(x_1); +x_7 = lean_st_mk_ref(x_6, x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Std_HashMap_inhabited___closed__1; +x_11 = lean_st_mk_ref(x_10, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_2, x_1, lean_box(0), x_3, x_12, x_8, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_st_ref_get(x_12, x_15); +lean_dec(x_12); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_st_ref_get(x_8, x_17); +lean_dec(x_8); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +return x_18; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_18); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +uint8_t x_27; +lean_dec(x_8); +x_27 = !lean_is_exclusive(x_16); +if (x_27 == 0) +{ +return x_16; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_16, 0); +x_29 = lean_ctor_get(x_16, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_16); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_12); +lean_dec(x_8); +x_31 = !lean_is_exclusive(x_14); +if (x_31 == 0) +{ +return x_14; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_14, 0); +x_33 = lean_ctor_get(x_14, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_14); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_8); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_11); +if (x_35 == 0) +{ +return x_11; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_11, 0); +x_37 = lean_ctor_get(x_11, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_11); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_3); +x_39 = !lean_is_exclusive(x_7); +if (x_39 == 0) +{ +return x_7; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_7, 0); +x_41 = lean_ctor_get(x_7, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_7); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___lambda__1___boxed), 5, 3); +lean_closure_set(x_4, 0, x_2); +lean_closure_set(x_4, 1, x_1); +lean_closure_set(x_4, 2, x_3); +x_5 = l_runST___rarg(x_4); +return x_5; +} +} +lean_object* l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = l_Array_isPrefixOfAux___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_isPrefixOf___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___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___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___spec__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; 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); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Array_indexOfAux___main___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__1(x_1, x_8, x_9); +lean_dec(x_8); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +if (lean_obj_tag(x_10) == 0) +{ +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_nat_dec_lt(x_14, x_5); +if (x_15 == 0) +{ +lean_dec(x_14); +x_4 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +x_4 = x_12; +x_5 = x_14; +goto _start; +} +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_array_get_size(x_1); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___spec__1(x_1, x_2, x_2, x_4, x_3); +return x_5; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___spec__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_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_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; uint8_t x_17; +x_10 = lean_st_ref_get(x_8, x_9); +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 = lean_ctor_get(x_11, 2); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_take(x_8, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; uint8_t x_29; +x_18 = lean_ctor_get(x_15, 2); +lean_dec(x_18); +x_19 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_15, 2, x_19); +x_20 = lean_st_ref_set(x_8, x_15, x_16); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_get(x_6, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_MetavarContext_exprDependsOn(x_25, x_1, x_2); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +x_28 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = lean_box(x_27); +lean_ctor_set(x_28, 0, x_31); +return x_28; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +x_33 = lean_box(x_27); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_ctor_get(x_15, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_15); +x_37 = l_Lean_TraceState_Inhabited___closed__1; +x_38 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_36); +lean_ctor_set(x_38, 2, x_37); +x_39 = lean_st_ref_set(x_8, x_38, x_16); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_st_ref_get(x_6, x_40); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_MetavarContext_exprDependsOn(x_44, x_1, x_2); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +x_47 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_43); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +x_50 = lean_box(x_46); +if (lean_is_scalar(x_49)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_49; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_4); +x_14 = lean_nat_dec_lt(x_5, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +return x_16; +} +else +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_array_fget(x_4, x_5); +x_18 = l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(x_1, x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = l_Lean_Expr_fvarId_x21(x_17); +lean_inc(x_6); +lean_inc(x_3); +x_20 = l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1(x_3, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_17); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_5, x_24); +lean_dec(x_5); +x_5 = x_25; +x_12 = x_23; +goto _start; +} +else +{ +uint8_t x_27; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_20, 0); +lean_dec(x_28); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_17); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_20, 0, x_30); +return x_20; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_dec(x_20); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_2); +lean_ctor_set(x_32, 1, x_17); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_17); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_5, x_35); +lean_dec(x_5); +x_5 = x_36; +goto _start; +} +} +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_3); +x_13 = lean_nat_dec_lt(x_4, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +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_11); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_array_fget(x_3, x_4); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_16); +x_17 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_21 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__2(x_2, x_16, x_18, x_1, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_4, x_24); +lean_dec(x_4); +x_4 = x_25; +x_11 = x_23; +goto _start; +} +else +{ +uint8_t x_27; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_21, 0); +lean_dec(x_28); +return x_21; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_dec(x_21); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +x_31 = !lean_is_exclusive(x_17); +if (x_31 == 0) +{ +return x_17; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_17, 0); +x_33 = lean_ctor_get(x_17, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_17); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(x_1, x_2, x_2, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___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_5); +lean_dec(x_4); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_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* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_PreDefinition_Structural_3__hasBadIndexDep_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_3); +x_13 = lean_nat_dec_lt(x_4, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +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_11); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_array_fget(x_3, x_4); +x_17 = l_Lean_Expr_fvarId_x21(x_16); +lean_inc(x_5); +lean_inc(x_2); +x_18 = l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__1(x_2, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_16); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_4, x_22); +lean_dec(x_4); +x_4 = x_23; +x_11 = x_21; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_18, 0); +lean_dec(x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_16); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_18, 0, x_28); +return x_18; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_18, 1); +lean_inc(x_29); +lean_dec(x_18); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_16); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_29); +return x_32; +} +} +} +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_3, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_fget(x_2, x_3); +lean_inc(x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_15); +x_16 = l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_20 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1(x_15, x_17, x_1, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_3, x_23); +lean_dec(x_3); +x_3 = x_24; +x_10 = x_22; +goto _start; +} +else +{ +uint8_t x_26; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_20, 0); +lean_dec(x_27); +return x_20; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_21); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_15); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) +{ +return x_16; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_16); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__2(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_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +return x_12; +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_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* 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_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___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_8); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_PreDefinition_Structural_4__hasBadParamDep_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_9 = l_Lean_Expr_fvarId_x21(x_1); +x_10 = lean_st_ref_get(x_7, x_8); +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 = lean_ctor_get(x_11, 2); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_take(x_7, x_12); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_15, 2); +lean_dec(x_18); +x_19 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_15, 2, x_19); +x_20 = lean_st_ref_set(x_7, x_15, x_16); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +lean_inc(x_4); +x_22 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_9, x_4, x_5, x_6, x_7, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_24); +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_22, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_31); +lean_dec(x_4); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set_tag(x_32, 1); +lean_ctor_set(x_32, 0, x_30); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_37 = lean_ctor_get(x_15, 0); +x_38 = lean_ctor_get(x_15, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_15); +x_39 = l_Lean_TraceState_Inhabited___closed__1; +x_40 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 2, x_39); +x_41 = lean_st_ref_set(x_7, x_40, x_16); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +lean_inc(x_4); +x_43 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_9, x_4, x_5, x_6, x_7, x_42); +if (lean_obj_tag(x_43) == 0) +{ +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_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_46 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_45); +lean_dec(x_4); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_48 = x_46; +} else { + lean_dec_ref(x_46); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_44); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_43, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_43, 1); +lean_inc(x_51); +lean_dec(x_43); +x_52 = l___private_Lean_Elab_Term_4__liftMetaMFinalizer(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_51); +lean_dec(x_4); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(1, 2, 0); +} else { + x_55 = x_54; + lean_ctor_set_tag(x_55, 1); +} +lean_ctor_set(x_55, 0, x_50); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +} +} +lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_4, 0); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; +x_12 = 1; +lean_ctor_set_uint8(x_10, 5, x_12); +x_13 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(x_1, 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; +} +} +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; +} +} +} +else +{ +uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_22 = lean_ctor_get_uint8(x_10, 0); +x_23 = lean_ctor_get_uint8(x_10, 1); +x_24 = lean_ctor_get_uint8(x_10, 2); +x_25 = lean_ctor_get_uint8(x_10, 3); +x_26 = lean_ctor_get_uint8(x_10, 4); +x_27 = lean_ctor_get_uint8(x_10, 6); +x_28 = lean_ctor_get_uint8(x_10, 7); +lean_dec(x_10); +x_29 = 1; +x_30 = lean_alloc_ctor(0, 0, 8); +lean_ctor_set_uint8(x_30, 0, x_22); +lean_ctor_set_uint8(x_30, 1, x_23); +lean_ctor_set_uint8(x_30, 2, x_24); +lean_ctor_set_uint8(x_30, 3, x_25); +lean_ctor_set_uint8(x_30, 4, x_26); +lean_ctor_set_uint8(x_30, 5, x_29); +lean_ctor_set_uint8(x_30, 6, x_27); +lean_ctor_set_uint8(x_30, 7, x_28); +lean_ctor_set(x_4, 0, x_30); +x_31 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_34 = x_31; +} else { + lean_dec_ref(x_31); + x_34 = lean_box(0); +} +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(0, 2, 0); +} else { + x_35 = x_34; +} +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_38 = x_31; +} else { + lean_dec_ref(x_31); + x_38 = lean_box(0); +} +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(1, 2, 0); +} else { + x_39 = x_38; +} +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_40 = lean_ctor_get(x_4, 0); +x_41 = lean_ctor_get(x_4, 1); +x_42 = lean_ctor_get(x_4, 2); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_4); +x_43 = lean_ctor_get_uint8(x_40, 0); +x_44 = lean_ctor_get_uint8(x_40, 1); +x_45 = lean_ctor_get_uint8(x_40, 2); +x_46 = lean_ctor_get_uint8(x_40, 3); +x_47 = lean_ctor_get_uint8(x_40, 4); +x_48 = lean_ctor_get_uint8(x_40, 6); +x_49 = lean_ctor_get_uint8(x_40, 7); +if (lean_is_exclusive(x_40)) { + x_50 = x_40; +} else { + lean_dec_ref(x_40); + x_50 = lean_box(0); +} +x_51 = 1; +if (lean_is_scalar(x_50)) { + x_52 = lean_alloc_ctor(0, 0, 8); +} else { + x_52 = x_50; +} +lean_ctor_set_uint8(x_52, 0, x_43); +lean_ctor_set_uint8(x_52, 1, x_44); +lean_ctor_set_uint8(x_52, 2, x_45); +lean_ctor_set_uint8(x_52, 3, x_46); +lean_ctor_set_uint8(x_52, 4, x_47); +lean_ctor_set_uint8(x_52, 5, x_51); +lean_ctor_set_uint8(x_52, 6, x_48); +lean_ctor_set_uint8(x_52, 7, x_49); +x_53 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_41); +lean_ctor_set(x_53, 2, x_42); +x_54 = l_Lean_Meta_whnf___at___private_Lean_Elab_Term_7__isTypeApp_x3f___spec__1(x_1, x_2, x_3, x_53, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; +} else { + lean_dec_ref(x_54); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_57; +} +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_54, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_61 = x_54; +} else { + lean_dec_ref(x_54); + x_61 = lean_box(0); +} +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(1, 2, 0); +} else { + x_62 = x_61; +} +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_60); +return x_62; +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = x_3; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_array_fget(x_3, x_2); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_array_fset(x_3, x_2, x_8); +x_10 = x_7; +x_11 = l_Array_indexOfAux___main___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__1(x_1, x_10, x_8); +lean_dec(x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = l_Nat_Inhabited; +x_15 = l_unreachable_x21___rarg(x_14); +x_16 = x_15; +x_17 = lean_array_fset(x_9, x_2, x_16); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_17; +goto _start; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +lean_dec(x_11); +x_20 = x_19; +x_21 = lean_array_fset(x_9, x_2, x_20); +lean_dec(x_2); +x_2 = x_13; +x_3 = x_21; +goto _start; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_Expr_isFVar(x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +x_10 = 1; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +} +} +} +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_3, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_3, x_7); +lean_dec(x_3); +x_9 = lean_array_fget(x_1, x_8); +x_10 = lean_expr_eqv(x_2, x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +x_3 = x_8; +x_4 = lean_box(0); +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_8); +x_12 = 0; +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_3); +x_13 = 1; +return x_13; +} +} +} +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_array_get_size(x_1); +x_4 = lean_nat_dec_lt(x_2, x_3); +lean_dec(x_3); +if (x_4 == 0) +{ +uint8_t x_5; +lean_dec(x_2); +x_5 = 1; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_fget(x_1, x_2); +lean_inc(x_2); +x_7 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6(x_1, x_6, x_2, lean_box(0)); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_2); +x_8 = 0; +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_2, x_9); +lean_dec(x_2); +x_2 = x_10; +goto _start; +} +} +} +} +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___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) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Environment_contains(x_12, x_1); +x_14 = lean_box(x_13); +lean_ctor_set(x_9, 0, x_14); +return x_9; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_9); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Environment_contains(x_17, x_1); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_16); +return x_20; +} +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structural"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_DefView_1__regTraceClasses___closed__2; +x_2 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("argument #"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" was not used because its type is an inductive datatype"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("and parameter"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("depends on"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" was not used because its type is an inductive family"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("and index"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("depends on the non index"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" was not used because its type is an inductive family and indices are not pairwise distinct"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" was not used because its type is an inductive family and indices are not variables"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28; +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_PreDefinition_Structural_5__findRecArgAux_x3f___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) { +_start: +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_2); +x_13 = lean_nat_dec_lt(x_4, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_12); +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_1); +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_11); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_array_fget(x_2, x_4); +lean_inc(x_7); +lean_inc(x_5); +x_17 = l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_16); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = l_Lean_LocalDecl_isLet(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_free_object(x_17); +x_22 = l_Lean_LocalDecl_type(x_19); +lean_dec(x_19); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_23 = l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__2(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +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 = l_Lean_Expr_getAppFn___main(x_24); +if (lean_obj_tag(x_26) == 4) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_st_ref_get(x_10, x_25); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_environment_find(x_31, x_27); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_24); +lean_dec(x_12); +x_33 = lean_unsigned_to_nat(1u); +x_34 = lean_nat_add(x_4, x_33); +lean_dec(x_4); +x_4 = x_34; +x_11 = x_30; +goto _start; +} +else +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_32, 0); +lean_inc(x_36); +lean_dec(x_32); +if (lean_obj_tag(x_36) == 5) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +lean_dec(x_38); +x_231 = l_Lean_Meta_brecOnSuffix; +lean_inc(x_39); +x_232 = lean_name_mk_string(x_39, x_231); +x_233 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(x_232, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_232); +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_unbox(x_234); +lean_dec(x_234); +if (x_235 == 0) +{ +lean_object* x_236; uint8_t x_237; +x_236 = lean_ctor_get(x_233, 1); +lean_inc(x_236); +lean_dec(x_233); +x_237 = 1; +x_40 = x_237; +x_41 = x_236; +goto block_230; +} +else +{ +lean_object* x_238; uint8_t x_239; +x_238 = lean_ctor_get(x_233, 1); +lean_inc(x_238); +lean_dec(x_233); +x_239 = 0; +x_40 = x_239; +x_41 = x_238; +goto block_230; +} +block_230: +{ +uint8_t x_42; lean_object* x_43; +if (x_40 == 0) +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_218 = l_Lean_Meta_binductionOnSuffix; +x_219 = lean_name_mk_string(x_39, x_218); +x_220 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(x_219, x_5, x_6, x_7, x_8, x_9, x_10, x_41); +lean_dec(x_219); +x_221 = lean_ctor_get_uint8(x_37, sizeof(void*)*5 + 2); +if (x_221 == 0) +{ +lean_object* x_222; +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_42 = x_40; +x_43 = x_222; +goto block_217; +} +else +{ +lean_object* x_223; uint8_t x_224; +x_223 = lean_ctor_get(x_220, 0); +lean_inc(x_223); +x_224 = lean_unbox(x_223); +lean_dec(x_223); +if (x_224 == 0) +{ +lean_object* x_225; +x_225 = lean_ctor_get(x_220, 1); +lean_inc(x_225); +lean_dec(x_220); +x_42 = x_221; +x_43 = x_225; +goto block_217; +} +else +{ +lean_object* x_226; +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +lean_dec(x_220); +x_42 = x_40; +x_43 = x_226; +goto block_217; +} +} +} +else +{ +lean_object* x_227; lean_object* x_228; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_24); +lean_dec(x_12); +x_227 = lean_unsigned_to_nat(1u); +x_228 = lean_nat_add(x_4, x_227); +lean_dec(x_4); +x_4 = x_228; +x_11 = x_41; +goto _start; +} +block_217: +{ +if (x_42 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_171; uint8_t x_172; +x_44 = lean_unsigned_to_nat(0u); +x_45 = l_Lean_Expr_getAppNumArgsAux___main(x_24, x_44); +x_46 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_45); +x_47 = lean_mk_array(x_45, x_46); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_sub(x_45, x_48); +lean_dec(x_45); +lean_inc(x_24); +x_50 = l___private_Lean_Expr_3__getAppArgsAux___main(x_24, x_47, x_49); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +x_52 = l_Array_extract___rarg(x_50, x_44, x_51); +x_53 = lean_array_get_size(x_50); +x_54 = l_Array_extract___rarg(x_50, x_51, x_53); +lean_dec(x_53); +lean_dec(x_50); +x_171 = lean_array_get_size(x_54); +x_172 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4(x_24, x_37, x_54, x_171, x_44); +lean_dec(x_171); +if (x_172 == 0) +{ +uint8_t x_173; +x_173 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5(x_54, x_44); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; uint8_t x_176; +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_37); +lean_dec(x_12); +x_174 = lean_ctor_get(x_9, 0); +lean_inc(x_174); +x_175 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_176 = l_Lean_checkTraceOption(x_174, x_175); +lean_dec(x_174); +if (x_176 == 0) +{ +lean_object* x_177; +lean_dec(x_24); +x_177 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +x_4 = x_177; +x_11 = x_43; +goto _start; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_179 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +lean_inc(x_179); +x_180 = l_Nat_repr(x_179); +x_181 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_181, 0, x_180); +x_182 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_182, 0, x_181); +x_183 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_184 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +x_185 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26; +x_186 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_187, 0, x_24); +x_188 = l_Lean_indentExpr(x_187); +x_189 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_188); +x_190 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_175, x_189, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +x_191 = lean_ctor_get(x_190, 1); +lean_inc(x_191); +lean_dec(x_190); +x_4 = x_179; +x_11 = x_191; +goto _start; +} +} +else +{ +lean_object* x_193; uint8_t x_194; +x_193 = l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos(x_2, x_54); +x_194 = lean_nat_dec_lt(x_193, x_1); +if (x_194 == 0) +{ +lean_dec(x_193); +lean_inc(x_1); +x_55 = x_1; +goto block_170; +} +else +{ +x_55 = x_193; +goto block_170; +} +} +} +else +{ +lean_object* x_195; lean_object* x_196; uint8_t x_197; +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_37); +lean_dec(x_12); +x_195 = lean_ctor_get(x_9, 0); +lean_inc(x_195); +x_196 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_197 = l_Lean_checkTraceOption(x_195, x_196); +lean_dec(x_195); +if (x_197 == 0) +{ +lean_object* x_198; +lean_dec(x_24); +x_198 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +x_4 = x_198; +x_11 = x_43; +goto _start; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_200 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +lean_inc(x_200); +x_201 = l_Nat_repr(x_200); +x_202 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_202, 0, x_201); +x_203 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_203, 0, x_202); +x_204 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_205 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +x_206 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29; +x_207 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +x_208 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_208, 0, x_24); +x_209 = l_Lean_indentExpr(x_208); +x_210 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_210, 0, x_207); +lean_ctor_set(x_210, 1, x_209); +x_211 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_196, x_210, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); +lean_dec(x_211); +x_4 = x_200; +x_11 = x_212; +goto _start; +} +} +block_170: +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = l_Array_extract___rarg(x_2, x_44, x_55); +x_57 = l_Array_extract___rarg(x_2, x_55, x_12); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_58 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(x_57, x_54, x_54, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_61 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__2(x_57, x_52, x_44, x_5, x_6, x_7, x_8, x_9, x_10, x_60); +lean_dec(x_52); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_24); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = x_54; +x_65 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3(x_57, x_44, x_64); +x_66 = x_65; +x_67 = lean_array_get_size(x_56); +x_68 = lean_nat_sub(x_4, x_67); +lean_dec(x_67); +x_69 = lean_ctor_get_uint8(x_37, sizeof(void*)*5 + 2); +lean_dec(x_37); +x_70 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_70, 0, x_56); +lean_ctor_set(x_70, 1, x_57); +lean_ctor_set(x_70, 2, x_68); +lean_ctor_set(x_70, 3, x_66); +lean_ctor_set_uint8(x_70, sizeof(void*)*4, x_69); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_71 = lean_apply_8(x_3, x_70, x_5, x_6, x_7, x_8, x_9, x_10, x_63); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +x_4 = x_74; +x_11 = x_73; +goto _start; +} +else +{ +uint8_t x_76; +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_1); +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) +{ +lean_object* x_77; uint8_t x_78; +x_77 = lean_ctor_get(x_71, 0); +lean_dec(x_77); +x_78 = !lean_is_exclusive(x_72); +if (x_78 == 0) +{ +return x_71; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_72, 0); +lean_inc(x_79); +lean_dec(x_72); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_71, 0, x_80); +return x_71; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_71, 1); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_ctor_get(x_72, 0); +lean_inc(x_82); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + x_83 = x_72; +} else { + lean_dec_ref(x_72); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 1, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_81); +return x_85; +} +} +} +else +{ +uint8_t x_86; +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_1); +x_86 = !lean_is_exclusive(x_71); +if (x_86 == 0) +{ +return x_71; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_71, 0); +x_88 = lean_ctor_get(x_71, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_71); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_54); +lean_dec(x_37); +x_90 = lean_ctor_get(x_62, 0); +lean_inc(x_90); +lean_dec(x_62); +x_91 = lean_ctor_get(x_61, 1); +lean_inc(x_91); +lean_dec(x_61); +x_92 = lean_ctor_get(x_90, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_ctor_get(x_9, 0); +lean_inc(x_94); +x_95 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_96 = l_Lean_checkTraceOption(x_94, x_95); +lean_dec(x_94); +if (x_96 == 0) +{ +lean_object* x_97; +lean_dec(x_93); +lean_dec(x_92); +lean_dec(x_24); +x_97 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +x_4 = x_97; +x_11 = x_91; +goto _start; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_99 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +lean_inc(x_99); +x_100 = l_Nat_repr(x_99); +x_101 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_103 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_104 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_102); +x_105 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8; +x_106 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +x_107 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_107, 0, x_24); +x_108 = l_Lean_indentExpr(x_107); +x_109 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_MessageData_ofList___closed__3; +x_111 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11; +x_113 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +x_114 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_114, 0, x_92); +x_115 = l_Lean_indentExpr(x_114); +x_116 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_110); +x_118 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14; +x_119 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +x_120 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_120, 0, x_93); +x_121 = l_Lean_indentExpr(x_120); +x_122 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_95, x_122, x_5, x_6, x_7, x_8, x_9, x_10, x_91); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); +x_4 = x_99; +x_11 = x_124; +goto _start; +} +} +} +else +{ +uint8_t x_126; +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_54); +lean_dec(x_37); +lean_dec(x_24); +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_1); +x_126 = !lean_is_exclusive(x_61); +if (x_126 == 0) +{ +return x_61; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_61, 0); +x_128 = lean_ctor_get(x_61, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_61); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; +} +} +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_37); +x_130 = lean_ctor_get(x_59, 0); +lean_inc(x_130); +lean_dec(x_59); +x_131 = lean_ctor_get(x_58, 1); +lean_inc(x_131); +lean_dec(x_58); +x_132 = lean_ctor_get(x_130, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_130, 1); +lean_inc(x_133); +lean_dec(x_130); +x_134 = lean_ctor_get(x_9, 0); +lean_inc(x_134); +x_135 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_136 = l_Lean_checkTraceOption(x_134, x_135); +lean_dec(x_134); +if (x_136 == 0) +{ +lean_object* x_137; +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_24); +x_137 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +x_4 = x_137; +x_11 = x_131; +goto _start; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_139 = lean_nat_add(x_4, x_48); +lean_dec(x_4); +lean_inc(x_139); +x_140 = l_Nat_repr(x_139); +x_141 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_141, 0, x_140); +x_142 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_142, 0, x_141); +x_143 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_144 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17; +x_146 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_147 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_147, 0, x_24); +x_148 = l_Lean_indentExpr(x_147); +x_149 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Lean_MessageData_ofList___closed__3; +x_151 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20; +x_153 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_154, 0, x_132); +x_155 = l_Lean_indentExpr(x_154); +x_156 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_155); +x_157 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_150); +x_158 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23; +x_159 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +x_160 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_160, 0, x_133); +x_161 = l_Lean_indentExpr(x_160); +x_162 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_161); +x_163 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_135, x_162, x_5, x_6, x_7, x_8, x_9, x_10, x_131); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec(x_163); +x_4 = x_139; +x_11 = x_164; +goto _start; +} +} +} +else +{ +uint8_t x_166; +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_37); +lean_dec(x_24); +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_1); +x_166 = !lean_is_exclusive(x_58); +if (x_166 == 0) +{ +return x_58; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_58, 0); +x_168 = lean_ctor_get(x_58, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_58); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +} +} +else +{ +lean_object* x_214; lean_object* x_215; +lean_dec(x_37); +lean_dec(x_24); +lean_dec(x_12); +x_214 = lean_unsigned_to_nat(1u); +x_215 = lean_nat_add(x_4, x_214); +lean_dec(x_4); +x_4 = x_215; +x_11 = x_43; +goto _start; +} +} +} +} +else +{ +lean_object* x_240; lean_object* x_241; +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_12); +x_240 = lean_unsigned_to_nat(1u); +x_241 = lean_nat_add(x_4, x_240); +lean_dec(x_4); +x_4 = x_241; +x_11 = x_30; +goto _start; +} +} +} +else +{ +lean_object* x_243; lean_object* x_244; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_12); +x_243 = lean_unsigned_to_nat(1u); +x_244 = lean_nat_add(x_4, x_243); +lean_dec(x_4); +x_4 = x_244; +x_11 = x_25; +goto _start; +} +} +else +{ +uint8_t x_246; +lean_dec(x_12); +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_1); +x_246 = !lean_is_exclusive(x_23); +if (x_246 == 0) +{ +return x_23; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_247 = lean_ctor_get(x_23, 0); +x_248 = lean_ctor_get(x_23, 1); +lean_inc(x_248); +lean_inc(x_247); +lean_dec(x_23); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_248); +return x_249; +} +} +} +else +{ +lean_object* x_250; +lean_dec(x_19); +lean_dec(x_12); +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_1); +x_250 = lean_box(0); +lean_ctor_set(x_17, 0, x_250); +return x_17; +} +} +else +{ +lean_object* x_251; lean_object* x_252; uint8_t x_253; +x_251 = lean_ctor_get(x_17, 0); +x_252 = lean_ctor_get(x_17, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_17); +x_253 = l_Lean_LocalDecl_isLet(x_251); +if (x_253 == 0) +{ +lean_object* x_254; lean_object* x_255; +x_254 = l_Lean_LocalDecl_type(x_251); +lean_dec(x_251); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_255 = l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__2(x_254, x_5, x_6, x_7, x_8, x_9, x_10, x_252); +if (lean_obj_tag(x_255) == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +lean_dec(x_255); +x_258 = l_Lean_Expr_getAppFn___main(x_256); +if (lean_obj_tag(x_258) == 4) +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_259 = lean_ctor_get(x_258, 0); +lean_inc(x_259); +lean_dec(x_258); +x_260 = lean_st_ref_get(x_10, x_257); +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +lean_dec(x_260); +x_263 = lean_ctor_get(x_261, 0); +lean_inc(x_263); +lean_dec(x_261); +x_264 = lean_environment_find(x_263, x_259); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; lean_object* x_266; +lean_dec(x_256); +lean_dec(x_12); +x_265 = lean_unsigned_to_nat(1u); +x_266 = lean_nat_add(x_4, x_265); +lean_dec(x_4); +x_4 = x_266; +x_11 = x_262; +goto _start; +} +else +{ +lean_object* x_268; +x_268 = lean_ctor_get(x_264, 0); +lean_inc(x_268); +lean_dec(x_264); +if (lean_obj_tag(x_268) == 5) +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +lean_dec(x_268); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +lean_dec(x_270); +x_459 = l_Lean_Meta_brecOnSuffix; +lean_inc(x_271); +x_460 = lean_name_mk_string(x_271, x_459); +x_461 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(x_460, x_5, x_6, x_7, x_8, x_9, x_10, x_262); +lean_dec(x_460); +x_462 = lean_ctor_get(x_461, 0); +lean_inc(x_462); +x_463 = lean_unbox(x_462); +lean_dec(x_462); +if (x_463 == 0) +{ +lean_object* x_464; uint8_t x_465; +x_464 = lean_ctor_get(x_461, 1); +lean_inc(x_464); +lean_dec(x_461); +x_465 = 1; +x_272 = x_465; +x_273 = x_464; +goto block_458; +} +else +{ +lean_object* x_466; uint8_t x_467; +x_466 = lean_ctor_get(x_461, 1); +lean_inc(x_466); +lean_dec(x_461); +x_467 = 0; +x_272 = x_467; +x_273 = x_466; +goto block_458; +} +block_458: +{ +uint8_t x_274; lean_object* x_275; +if (x_272 == 0) +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; +x_446 = l_Lean_Meta_binductionOnSuffix; +x_447 = lean_name_mk_string(x_271, x_446); +x_448 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(x_447, x_5, x_6, x_7, x_8, x_9, x_10, x_273); +lean_dec(x_447); +x_449 = lean_ctor_get_uint8(x_269, sizeof(void*)*5 + 2); +if (x_449 == 0) +{ +lean_object* x_450; +x_450 = lean_ctor_get(x_448, 1); +lean_inc(x_450); +lean_dec(x_448); +x_274 = x_272; +x_275 = x_450; +goto block_445; +} +else +{ +lean_object* x_451; uint8_t x_452; +x_451 = lean_ctor_get(x_448, 0); +lean_inc(x_451); +x_452 = lean_unbox(x_451); +lean_dec(x_451); +if (x_452 == 0) +{ +lean_object* x_453; +x_453 = lean_ctor_get(x_448, 1); +lean_inc(x_453); +lean_dec(x_448); +x_274 = x_449; +x_275 = x_453; +goto block_445; +} +else +{ +lean_object* x_454; +x_454 = lean_ctor_get(x_448, 1); +lean_inc(x_454); +lean_dec(x_448); +x_274 = x_272; +x_275 = x_454; +goto block_445; +} +} +} +else +{ +lean_object* x_455; lean_object* x_456; +lean_dec(x_271); +lean_dec(x_269); +lean_dec(x_256); +lean_dec(x_12); +x_455 = lean_unsigned_to_nat(1u); +x_456 = lean_nat_add(x_4, x_455); +lean_dec(x_4); +x_4 = x_456; +x_11 = x_273; +goto _start; +} +block_445: +{ +if (x_274 == 0) +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_399; uint8_t x_400; +x_276 = lean_unsigned_to_nat(0u); +x_277 = l_Lean_Expr_getAppNumArgsAux___main(x_256, x_276); +x_278 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_277); +x_279 = lean_mk_array(x_277, x_278); +x_280 = lean_unsigned_to_nat(1u); +x_281 = lean_nat_sub(x_277, x_280); +lean_dec(x_277); +lean_inc(x_256); +x_282 = l___private_Lean_Expr_3__getAppArgsAux___main(x_256, x_279, x_281); +x_283 = lean_ctor_get(x_269, 1); +lean_inc(x_283); +x_284 = l_Array_extract___rarg(x_282, x_276, x_283); +x_285 = lean_array_get_size(x_282); +x_286 = l_Array_extract___rarg(x_282, x_283, x_285); +lean_dec(x_285); +lean_dec(x_282); +x_399 = lean_array_get_size(x_286); +x_400 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4(x_256, x_269, x_286, x_399, x_276); +lean_dec(x_399); +if (x_400 == 0) +{ +uint8_t x_401; +x_401 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5(x_286, x_276); +if (x_401 == 0) +{ +lean_object* x_402; lean_object* x_403; uint8_t x_404; +lean_dec(x_286); +lean_dec(x_284); +lean_dec(x_269); +lean_dec(x_12); +x_402 = lean_ctor_get(x_9, 0); +lean_inc(x_402); +x_403 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_404 = l_Lean_checkTraceOption(x_402, x_403); +lean_dec(x_402); +if (x_404 == 0) +{ +lean_object* x_405; +lean_dec(x_256); +x_405 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +x_4 = x_405; +x_11 = x_275; +goto _start; +} +else +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +x_407 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +lean_inc(x_407); +x_408 = l_Nat_repr(x_407); +x_409 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_409, 0, x_408); +x_410 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_410, 0, x_409); +x_411 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_412 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_410); +x_413 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26; +x_414 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_414, 0, x_412); +lean_ctor_set(x_414, 1, x_413); +x_415 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_415, 0, x_256); +x_416 = l_Lean_indentExpr(x_415); +x_417 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_417, 0, x_414); +lean_ctor_set(x_417, 1, x_416); +x_418 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_403, x_417, x_5, x_6, x_7, x_8, x_9, x_10, x_275); +x_419 = lean_ctor_get(x_418, 1); +lean_inc(x_419); +lean_dec(x_418); +x_4 = x_407; +x_11 = x_419; +goto _start; +} +} +else +{ +lean_object* x_421; uint8_t x_422; +x_421 = l___private_Lean_Elab_PreDefinition_Structural_2__getIndexMinPos(x_2, x_286); +x_422 = lean_nat_dec_lt(x_421, x_1); +if (x_422 == 0) +{ +lean_dec(x_421); +lean_inc(x_1); +x_287 = x_1; +goto block_398; +} +else +{ +x_287 = x_421; +goto block_398; +} +} +} +else +{ +lean_object* x_423; lean_object* x_424; uint8_t x_425; +lean_dec(x_286); +lean_dec(x_284); +lean_dec(x_269); +lean_dec(x_12); +x_423 = lean_ctor_get(x_9, 0); +lean_inc(x_423); +x_424 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_425 = l_Lean_checkTraceOption(x_423, x_424); +lean_dec(x_423); +if (x_425 == 0) +{ +lean_object* x_426; +lean_dec(x_256); +x_426 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +x_4 = x_426; +x_11 = x_275; +goto _start; +} +else +{ +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_428 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +lean_inc(x_428); +x_429 = l_Nat_repr(x_428); +x_430 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_430, 0, x_429); +x_431 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_431, 0, x_430); +x_432 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_433 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_433, 0, x_432); +lean_ctor_set(x_433, 1, x_431); +x_434 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29; +x_435 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_435, 0, x_433); +lean_ctor_set(x_435, 1, x_434); +x_436 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_436, 0, x_256); +x_437 = l_Lean_indentExpr(x_436); +x_438 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_437); +x_439 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_424, x_438, x_5, x_6, x_7, x_8, x_9, x_10, x_275); +x_440 = lean_ctor_get(x_439, 1); +lean_inc(x_440); +lean_dec(x_439); +x_4 = x_428; +x_11 = x_440; +goto _start; +} +} +block_398: +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = l_Array_extract___rarg(x_2, x_276, x_287); +x_289 = l_Array_extract___rarg(x_2, x_287, x_12); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_290 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_3__hasBadIndexDep_x3f___spec__3(x_289, x_286, x_286, x_276, x_5, x_6, x_7, x_8, x_9, x_10, x_275); +if (lean_obj_tag(x_290) == 0) +{ +lean_object* x_291; +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +if (lean_obj_tag(x_291) == 0) +{ +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_290, 1); +lean_inc(x_292); +lean_dec(x_290); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +x_293 = l_Array_findSomeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_4__hasBadParamDep_x3f___spec__2(x_289, x_284, x_276, x_5, x_6, x_7, x_8, x_9, x_10, x_292); +lean_dec(x_284); +if (lean_obj_tag(x_293) == 0) +{ +lean_object* x_294; +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +if (lean_obj_tag(x_294) == 0) +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; lean_object* x_302; lean_object* x_303; +lean_dec(x_256); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +x_296 = x_286; +x_297 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3(x_289, x_276, x_296); +x_298 = x_297; +x_299 = lean_array_get_size(x_288); +x_300 = lean_nat_sub(x_4, x_299); +lean_dec(x_299); +x_301 = lean_ctor_get_uint8(x_269, sizeof(void*)*5 + 2); +lean_dec(x_269); +x_302 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_302, 0, x_288); +lean_ctor_set(x_302, 1, x_289); +lean_ctor_set(x_302, 2, x_300); +lean_ctor_set(x_302, 3, x_298); +lean_ctor_set_uint8(x_302, sizeof(void*)*4, x_301); +lean_inc(x_3); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_303 = lean_apply_8(x_3, x_302, x_5, x_6, x_7, x_8, x_9, x_10, x_295); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +if (lean_obj_tag(x_304) == 0) +{ +lean_object* x_305; lean_object* x_306; +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +x_4 = x_306; +x_11 = x_305; +goto _start; +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +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_1); +x_308 = lean_ctor_get(x_303, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_309 = x_303; +} else { + lean_dec_ref(x_303); + x_309 = lean_box(0); +} +x_310 = lean_ctor_get(x_304, 0); +lean_inc(x_310); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + x_311 = x_304; +} else { + lean_dec_ref(x_304); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 1, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_310); +if (lean_is_scalar(x_309)) { + x_313 = lean_alloc_ctor(0, 2, 0); +} else { + x_313 = x_309; +} +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_308); +return x_313; +} +} +else +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +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_1); +x_314 = lean_ctor_get(x_303, 0); +lean_inc(x_314); +x_315 = lean_ctor_get(x_303, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_316 = x_303; +} else { + lean_dec_ref(x_303); + x_316 = lean_box(0); +} +if (lean_is_scalar(x_316)) { + x_317 = lean_alloc_ctor(1, 2, 0); +} else { + x_317 = x_316; +} +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_315); +return x_317; +} +} +else +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_286); +lean_dec(x_269); +x_318 = lean_ctor_get(x_294, 0); +lean_inc(x_318); +lean_dec(x_294); +x_319 = lean_ctor_get(x_293, 1); +lean_inc(x_319); +lean_dec(x_293); +x_320 = lean_ctor_get(x_318, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_318, 1); +lean_inc(x_321); +lean_dec(x_318); +x_322 = lean_ctor_get(x_9, 0); +lean_inc(x_322); +x_323 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_324 = l_Lean_checkTraceOption(x_322, x_323); +lean_dec(x_322); +if (x_324 == 0) +{ +lean_object* x_325; +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_256); +x_325 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +x_4 = x_325; +x_11 = x_319; +goto _start; +} +else +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_327 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +lean_inc(x_327); +x_328 = l_Nat_repr(x_327); +x_329 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_329, 0, x_328); +x_330 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_330, 0, x_329); +x_331 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_332 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_332, 0, x_331); +lean_ctor_set(x_332, 1, x_330); +x_333 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8; +x_334 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_334, 0, x_332); +lean_ctor_set(x_334, 1, x_333); +x_335 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_335, 0, x_256); +x_336 = l_Lean_indentExpr(x_335); +x_337 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_337, 0, x_334); +lean_ctor_set(x_337, 1, x_336); +x_338 = l_Lean_MessageData_ofList___closed__3; +x_339 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_339, 0, x_337); +lean_ctor_set(x_339, 1, x_338); +x_340 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11; +x_341 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_341, 0, x_339); +lean_ctor_set(x_341, 1, x_340); +x_342 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_342, 0, x_320); +x_343 = l_Lean_indentExpr(x_342); +x_344 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_344, 0, x_341); +lean_ctor_set(x_344, 1, x_343); +x_345 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_345, 0, x_344); +lean_ctor_set(x_345, 1, x_338); +x_346 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14; +x_347 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_347, 0, x_345); +lean_ctor_set(x_347, 1, x_346); +x_348 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_348, 0, x_321); +x_349 = l_Lean_indentExpr(x_348); +x_350 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_350, 0, x_347); +lean_ctor_set(x_350, 1, x_349); +x_351 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_323, x_350, x_5, x_6, x_7, x_8, x_9, x_10, x_319); +x_352 = lean_ctor_get(x_351, 1); +lean_inc(x_352); +lean_dec(x_351); +x_4 = x_327; +x_11 = x_352; +goto _start; +} +} +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_286); +lean_dec(x_269); +lean_dec(x_256); +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_1); +x_354 = lean_ctor_get(x_293, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_293, 1); +lean_inc(x_355); +if (lean_is_exclusive(x_293)) { + lean_ctor_release(x_293, 0); + lean_ctor_release(x_293, 1); + x_356 = x_293; +} else { + lean_dec_ref(x_293); + x_356 = lean_box(0); +} +if (lean_is_scalar(x_356)) { + x_357 = lean_alloc_ctor(1, 2, 0); +} else { + x_357 = x_356; +} +lean_ctor_set(x_357, 0, x_354); +lean_ctor_set(x_357, 1, x_355); +return x_357; +} +} +else +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; uint8_t x_364; +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_286); +lean_dec(x_284); +lean_dec(x_269); +x_358 = lean_ctor_get(x_291, 0); +lean_inc(x_358); +lean_dec(x_291); +x_359 = lean_ctor_get(x_290, 1); +lean_inc(x_359); +lean_dec(x_290); +x_360 = lean_ctor_get(x_358, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_358, 1); +lean_inc(x_361); +lean_dec(x_358); +x_362 = lean_ctor_get(x_9, 0); +lean_inc(x_362); +x_363 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_364 = l_Lean_checkTraceOption(x_362, x_363); +lean_dec(x_362); +if (x_364 == 0) +{ +lean_object* x_365; +lean_dec(x_361); +lean_dec(x_360); +lean_dec(x_256); +x_365 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +x_4 = x_365; +x_11 = x_359; +goto _start; +} +else +{ +lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_367 = lean_nat_add(x_4, x_280); +lean_dec(x_4); +lean_inc(x_367); +x_368 = l_Nat_repr(x_367); +x_369 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_369, 0, x_368); +x_370 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_370, 0, x_369); +x_371 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5; +x_372 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_370); +x_373 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17; +x_374 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_374, 0, x_372); +lean_ctor_set(x_374, 1, x_373); +x_375 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_375, 0, x_256); +x_376 = l_Lean_indentExpr(x_375); +x_377 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_377, 0, x_374); +lean_ctor_set(x_377, 1, x_376); +x_378 = l_Lean_MessageData_ofList___closed__3; +x_379 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +x_380 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20; +x_381 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_381, 0, x_379); +lean_ctor_set(x_381, 1, x_380); +x_382 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_382, 0, x_360); +x_383 = l_Lean_indentExpr(x_382); +x_384 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_384, 0, x_381); +lean_ctor_set(x_384, 1, x_383); +x_385 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_385, 0, x_384); +lean_ctor_set(x_385, 1, x_378); +x_386 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23; +x_387 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +x_388 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_388, 0, x_361); +x_389 = l_Lean_indentExpr(x_388); +x_390 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_390, 0, x_387); +lean_ctor_set(x_390, 1, x_389); +x_391 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_363, x_390, x_5, x_6, x_7, x_8, x_9, x_10, x_359); +x_392 = lean_ctor_get(x_391, 1); +lean_inc(x_392); +lean_dec(x_391); +x_4 = x_367; +x_11 = x_392; +goto _start; +} +} +} +else +{ +lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_286); +lean_dec(x_284); +lean_dec(x_269); +lean_dec(x_256); +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_1); +x_394 = lean_ctor_get(x_290, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_290, 1); +lean_inc(x_395); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_396 = x_290; +} else { + lean_dec_ref(x_290); + x_396 = lean_box(0); +} +if (lean_is_scalar(x_396)) { + x_397 = lean_alloc_ctor(1, 2, 0); +} else { + x_397 = x_396; +} +lean_ctor_set(x_397, 0, x_394); +lean_ctor_set(x_397, 1, x_395); +return x_397; +} +} +} +else +{ +lean_object* x_442; lean_object* x_443; +lean_dec(x_269); +lean_dec(x_256); +lean_dec(x_12); +x_442 = lean_unsigned_to_nat(1u); +x_443 = lean_nat_add(x_4, x_442); +lean_dec(x_4); +x_4 = x_443; +x_11 = x_275; +goto _start; +} +} +} +} +else +{ +lean_object* x_468; lean_object* x_469; +lean_dec(x_268); +lean_dec(x_256); +lean_dec(x_12); +x_468 = lean_unsigned_to_nat(1u); +x_469 = lean_nat_add(x_4, x_468); +lean_dec(x_4); +x_4 = x_469; +x_11 = x_262; +goto _start; +} +} +} +else +{ +lean_object* x_471; lean_object* x_472; +lean_dec(x_258); +lean_dec(x_256); +lean_dec(x_12); +x_471 = lean_unsigned_to_nat(1u); +x_472 = lean_nat_add(x_4, x_471); +lean_dec(x_4); +x_4 = x_472; +x_11 = x_257; +goto _start; +} +} +else +{ +lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; +lean_dec(x_12); +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_1); +x_474 = lean_ctor_get(x_255, 0); +lean_inc(x_474); +x_475 = lean_ctor_get(x_255, 1); +lean_inc(x_475); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_476 = x_255; +} else { + lean_dec_ref(x_255); + x_476 = lean_box(0); +} +if (lean_is_scalar(x_476)) { + x_477 = lean_alloc_ctor(1, 2, 0); +} else { + x_477 = x_476; +} +lean_ctor_set(x_477, 0, x_474); +lean_ctor_set(x_477, 1, x_475); +return x_477; +} +} +else +{ +lean_object* x_478; lean_object* x_479; +lean_dec(x_251); +lean_dec(x_12); +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_1); +x_478 = lean_box(0); +x_479 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_479, 0, x_478); +lean_ctor_set(x_479, 1, x_252); +return x_479; +} +} +} +else +{ +uint8_t x_480; +lean_dec(x_12); +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_1); +x_480 = !lean_is_exclusive(x_17); +if (x_480 == 0) +{ +return x_17; +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; +x_481 = lean_ctor_get(x_17, 0); +x_482 = lean_ctor_get(x_17, 1); +lean_inc(x_482); +lean_inc(x_481); +lean_dec(x_17); +x_483 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_483, 0, x_481); +lean_ctor_set(x_483, 1, x_482); +return x_483; +} +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___boxed), 11, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__3(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__5(x_1, x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___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) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg(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_2); +return x_12; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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_PreDefinition_Structural_5__findRecArgAux_x3f___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_PreDefinition_Structural_5__findRecArgAux_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___rarg___boxed), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___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) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___rarg(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_2); +return x_12; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___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_inc(x_1); +x_11 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg(x_1, x_2, x_3, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___rarg___boxed), 10, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_PreDefinition_Structural_6__findRecArg_x3f___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___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) { +_start: +{ +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg___lambda__1), 10, 3); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_4); +x_11 = 1; +x_12 = l___private_Lean_Meta_Basic_23__lambdaTelescopeImp___rarg(x_1, x_11, x_10, x_5, x_6, x_7, x_8, x_9); +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_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg), 9, 0); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("try "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___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_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_1); +x_11 = l_Lean_checkTraceOption(x_10, x_1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_2); +lean_dec(x_1); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_MessageData_coeOfArrayExpr___closed__2; +x_17 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_14, x_15, x_16); +lean_dec(x_14); +x_18 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3; +x_19 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; +x_21 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +x_23 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_22, x_15, x_16); +lean_dec(x_22); +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_20); +x_26 = lean_ctor_get(x_2, 2); +lean_inc(x_26); +x_27 = l_Nat_repr(x_26); +x_28 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +x_32 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_ctor_get(x_2, 3); +lean_inc(x_33); +lean_dec(x_2); +x_34 = l_Array_toList___rarg(x_33); +lean_dec(x_33); +x_35 = l_List_toString___at_Lean_Meta_RecursorInfo_HasToString___spec__5(x_34); +x_36 = l_Array_HasRepr___rarg___closed__1; +x_37 = lean_string_append(x_36, x_35); +lean_dec(x_35); +x_38 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_40, 0, x_32); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_1, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +x_44 = lean_box(0); +lean_ctor_set(x_41, 0, x_44); +return x_41; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_41, 1); +lean_inc(x_45); +lean_dec(x_41); +x_46 = lean_box(0); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___boxed), 9, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" :=\n"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3; +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_PreDefinition_Structural_7__elimRecursion_x3f___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_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_8, 0); +lean_inc(x_17); +x_18 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_19 = l_Lean_checkTraceOption(x_17, x_18); +lean_dec(x_17); +if (x_19 == 0) +{ +x_11 = x_10; +goto block_16; +} +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; lean_object* x_33; +x_20 = lean_ctor_get(x_1, 2); +lean_inc(x_20); +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; +x_23 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Lean_MessageData_coeOfArrayExpr___closed__2; +x_26 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_2, x_24, x_25); +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +x_28 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_inc(x_3); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_3); +x_31 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_18, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_11 = x_33; +goto block_16; +} +block_16: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_1, 2); +lean_inc(x_12); +lean_dec(x_1); +lean_inc(x_2); +x_13 = l___private_Lean_Elab_PreDefinition_Structural_1__getFixedPrefix(x_12, x_2, x_3); +x_14 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1; +lean_inc(x_13); +x_15 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg(x_13, x_2, x_14, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_11); +lean_dec(x_2); +return x_15; +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_1, 4); +lean_inc(x_9); +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2), 10, 1); +lean_closure_set(x_10, 0, x_1); +x_11 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___spec__1___rarg(x_9, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_Elab_structuralRecursion(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_array_get_size(x_1); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +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_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_8); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = l_Lean_Elab_PreDefinition_inhabited; +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_get(x_15, x_1, x_16); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_18 = l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +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_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +x_22 = 0; +x_23 = lean_box(x_22); +lean_ctor_set(x_18, 0, x_23); +return x_18; +} +else +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_dec(x_18); +x_25 = 0; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_dec(x_18); +x_29 = lean_ctor_get(x_19, 0); +lean_inc(x_29); +lean_dec(x_19); +x_30 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_31 = l___private_Lean_Elab_PreDefinition_Basic_6__addNonRecAux(x_29, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = l_Lean_Elab_addAndCompileUnsafeRec(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_32); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +x_36 = 1; +x_37 = lean_box(x_36); +lean_ctor_set(x_33, 0, x_37); +return x_33; +} +else +{ +lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_dec(x_33); +x_39 = 1; +x_40 = lean_box(x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_33); +if (x_42 == 0) +{ +return x_33; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_33, 0); +x_44 = lean_ctor_get(x_33, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_33); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_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_46 = !lean_is_exclusive(x_31); +if (x_46 == 0) +{ +return x_31; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_31, 0); +x_48 = lean_ctor_get(x_31, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_31); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_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_50 = !lean_is_exclusive(x_18); +if (x_50 == 0) +{ +return x_18; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_18, 0); +x_52 = lean_ctor_get(x_18, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_18); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +} +lean_object* l___private_Lean_Elab_PreDefinition_Structural_8__regTraceClasses(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2; +x_3 = l_Lean_registerTraceClass(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_dec(x_5); +x_6 = lean_box(0); +lean_ctor_set(x_3, 0, x_6); +return x_3; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +lean_dec(x_3); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +return x_3; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_3, 0); +x_12 = lean_ctor_get(x_3, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_3); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Util_ForEachExpr(lean_object*); +lean_object* initialize_Lean_Meta_RecursorInfo(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Basic(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_PreDefinition_Structural(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_ForEachExpr(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_RecursorInfo(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__1); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__2); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__3); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__4); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__5); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__6); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__7); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__8); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__9); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__10); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__11); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__12); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__13); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__14); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__15); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__16); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__17); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__18); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__19); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__20); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__21); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__22); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__23); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__24); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__25); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__26); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__27); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__28); +l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29 = _init_l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_5__findRecArgAux_x3f___main___rarg___closed__29); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__1); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__2); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__1___closed__3); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__1); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__2); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__3); +l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4 = _init_l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_7__elimRecursion_x3f___lambda__2___closed__4); +res = l___private_Lean_Elab_PreDefinition_Structural_8__regTraceClasses(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF.c new file mode 100644 index 0000000000..af7a4587d1 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF.c @@ -0,0 +1,114 @@ +// Lean compiler output +// Module: Lean.Elab.PreDefinition.WF +// Imports: Init Lean.Elab.PreDefinition.Basic +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_Elab_WFRecursion(lean_object*); +lean_object* l_Lean_Elab_WFRecursion___boxed(lean_object*); +lean_object* l_Lean_Elab_WFRecursion___rarg___closed__3; +lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_WFRecursion___rarg___closed__1; +lean_object* l_Lean_Elab_WFRecursion___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_WFRecursion___rarg___closed__2; +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* _init_l_Lean_Elab_WFRecursion___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("WIP"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_WFRecursion___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_WFRecursion___rarg___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_WFRecursion___rarg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_WFRecursion___rarg___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = l_Lean_Elab_WFRecursion___rarg___closed__3; +x_9 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +lean_object* l_Lean_Elab_WFRecursion(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_WFRecursion___rarg___boxed), 7, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_WFRecursion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_WFRecursion___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Lean_Elab_WFRecursion___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_WFRecursion(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Basic(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_PreDefinition_WF(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Basic(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_WFRecursion___rarg___closed__1 = _init_l_Lean_Elab_WFRecursion___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_WFRecursion___rarg___closed__1); +l_Lean_Elab_WFRecursion___rarg___closed__2 = _init_l_Lean_Elab_WFRecursion___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_WFRecursion___rarg___closed__2); +l_Lean_Elab_WFRecursion___rarg___closed__3 = _init_l_Lean_Elab_WFRecursion___rarg___closed__3(); +lean_mark_persistent(l_Lean_Elab_WFRecursion___rarg___closed__3); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 49793d58b7..3a39e42e16 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -182,6 +182,7 @@ lean_object* l_Lean_Elab_Term_StructInst_Struct_structName(lean_object*); extern lean_object* l___private_Lean_Elab_Term_5__hasCDot___main___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11; lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___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_StructInst_25__elabStructInstAux___closed__2; @@ -246,7 +247,6 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSynt lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___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_StructInst_DefaultFields_getFieldName___boxed(lean_object*); -extern lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_object*); extern lean_object* l_Std_PersistentArray_Stats_toString___closed__4; lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(lean_object*); @@ -375,7 +375,6 @@ lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed_ lean_object* l_Std_AssocList_find_x3f___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; -extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; extern lean_object* l___private_Lean_Elab_App_22__elabAppFn___main___closed__13; uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5; @@ -515,6 +514,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, extern lean_object* l_Lean_arrayToExpr___rarg___closed__2; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat; +extern lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS(lean_object*); @@ -2600,7 +2600,7 @@ x_81 = lean_array_push(x_79, x_80); x_82 = lean_array_push(x_81, x_53); x_83 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__45; x_84 = lean_array_push(x_82, x_83); -x_85 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; +x_85 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; x_86 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); @@ -2866,7 +2866,7 @@ x_218 = lean_array_push(x_216, x_217); x_219 = lean_array_push(x_218, x_188); x_220 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__45; x_221 = lean_array_push(x_219, x_220); -x_222 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_27__expandApp___spec__1___closed__2; +x_222 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; x_223 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_223, 0, x_222); lean_ctor_set(x_223, 1, x_221); @@ -9341,7 +9341,7 @@ lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; +x_1 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__11; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 691e2f67c4..d99e497460 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -16114,7 +16114,6 @@ x_29 = l_Lean_LocalDecl_binderInfo(x_19); x_30 = l_Lean_LocalDecl_type(x_19); lean_dec(x_19); x_31 = l_Lean_mkForall(x_28, x_29, x_30, x_26); -lean_dec(x_28); x_2 = x_14; x_3 = x_31; x_10 = x_23; @@ -16143,7 +16142,6 @@ x_39 = l_Lean_LocalDecl_binderInfo(x_19); x_40 = l_Lean_LocalDecl_type(x_19); lean_dec(x_19); x_41 = l_Lean_mkForall(x_38, x_39, x_40, x_26); -lean_dec(x_38); x_2 = x_14; x_3 = x_41; x_10 = x_23; diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 577133cca4..402246ce72 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -30,6 +30,7 @@ lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux(lean_object*, lean_obje lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__79; +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_7__elabKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__116; extern lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__8; @@ -98,7 +99,6 @@ lean_object* l_Lean_Elab_Command_expandMixfix___closed__6; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__104; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__33; lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_object*); lean_object* l___private_Lean_Elab_Syntax_8__antiquote___boxed(lean_object*, lean_object*); @@ -138,9 +138,9 @@ lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__9; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__140; lean_object* l_Lean_Elab_Command_elabSyntax___closed__16; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__151; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__118; +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__39; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_registerUnsupportedSyntaxId___closed__1; @@ -217,7 +217,6 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__28; lean_object* l_Lean_Elab_Command_expandMixfix___closed__21; lean_object* l_Lean_Elab_Command_expandElab___closed__28; lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__14; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__123; @@ -304,7 +303,6 @@ lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__9; extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTermQuot___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__40; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__67; lean_object* l___private_Lean_Elab_Syntax_9__expandNotationAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__83; @@ -331,6 +329,7 @@ extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRules___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__160; +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_strLitToPattern___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__20; extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; @@ -675,6 +674,7 @@ lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__99; lean_object* l_Lean_Elab_Command_expandElab___closed__8; lean_object* l_Lean_Elab_Command_expandMixfix___closed__20; +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__11; lean_object* l_Lean_Elab_Command_expandElab___closed__6; extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; @@ -10139,7 +10139,7 @@ return x_13; } } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -10239,7 +10239,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } @@ -11314,11 +11314,11 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } @@ -11408,7 +11408,7 @@ lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -11550,7 +11550,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } @@ -12124,11 +12124,11 @@ return x_105; } } } -lean_object* l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_LeanInit_13__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_LeanInit_14__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } @@ -12889,30 +12889,30 @@ return x_3; lean_object* l_Lean_Elab_Command_expandMixfix(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_338; uint8_t x_339; -x_338 = l_Lean_Elab_Command_expandMixfix___closed__2; +uint8_t x_4; lean_object* x_397; uint8_t x_398; +x_397 = l_Lean_Elab_Command_expandMixfix___closed__2; lean_inc(x_1); -x_339 = l_Lean_Syntax_isOfKind(x_1, x_338); -if (x_339 == 0) +x_398 = l_Lean_Syntax_isOfKind(x_1, x_397); +if (x_398 == 0) { -uint8_t x_340; -x_340 = 0; -x_4 = x_340; -goto block_337; +uint8_t x_399; +x_399 = 0; +x_4 = x_399; +goto block_396; } else { -lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; -x_341 = l_Lean_Syntax_getArgs(x_1); -x_342 = lean_array_get_size(x_341); -lean_dec(x_341); -x_343 = lean_unsigned_to_nat(5u); -x_344 = lean_nat_dec_eq(x_342, x_343); -lean_dec(x_342); -x_4 = x_344; -goto block_337; +lean_object* x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; +x_400 = l_Lean_Syntax_getArgs(x_1); +x_401 = lean_array_get_size(x_400); +lean_dec(x_400); +x_402 = lean_unsigned_to_nat(5u); +x_403 = lean_nat_dec_eq(x_401, x_402); +lean_dec(x_401); +x_4 = x_403; +goto block_396; } -block_337: +block_396: { if (x_4 == 0) { @@ -12927,32 +12927,32 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_69; uint8_t x_133; uint8_t x_216; uint8_t x_290; lean_object* x_330; uint8_t x_331; +lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_80; uint8_t x_155; uint8_t x_249; uint8_t x_334; lean_object* x_389; uint8_t x_390; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_330 = l_Lean_Elab_Command_expandMixfix___closed__32; +x_389 = l_Lean_Elab_Command_expandMixfix___closed__32; lean_inc(x_8); -x_331 = l_Lean_Syntax_isOfKind(x_8, x_330); -if (x_331 == 0) +x_390 = l_Lean_Syntax_isOfKind(x_8, x_389); +if (x_390 == 0) { -uint8_t x_332; -x_332 = 0; -x_290 = x_332; -goto block_329; +uint8_t x_391; +x_391 = 0; +x_334 = x_391; +goto block_388; } else { -lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; -x_333 = l_Lean_Syntax_getArgs(x_8); -x_334 = lean_array_get_size(x_333); -lean_dec(x_333); -x_335 = lean_unsigned_to_nat(1u); -x_336 = lean_nat_dec_eq(x_334, x_335); -lean_dec(x_334); -x_290 = x_336; -goto block_329; +lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; +x_392 = l_Lean_Syntax_getArgs(x_8); +x_393 = lean_array_get_size(x_392); +lean_dec(x_392); +x_394 = lean_unsigned_to_nat(1u); +x_395 = lean_nat_dec_eq(x_393, x_394); +lean_dec(x_393); +x_334 = x_395; +goto block_388; } -block_68: +block_79: { if (x_9 == 0) { @@ -12967,32 +12967,31 @@ return x_11; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_61; uint8_t x_62; +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_73; uint8_t x_74; x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_61 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_73 = l_Lean_nullKind___closed__2; lean_inc(x_13); -x_62 = l_Lean_Syntax_isOfKind(x_13, x_61); -if (x_62 == 0) +x_74 = l_Lean_Syntax_isOfKind(x_13, x_73); +if (x_74 == 0) { -uint8_t x_63; -x_63 = 0; -x_14 = x_63; -goto block_60; +uint8_t x_75; +x_75 = 0; +x_14 = x_75; +goto block_72; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_64 = l_Lean_Syntax_getArgs(x_13); -x_65 = lean_array_get_size(x_64); -lean_dec(x_64); -x_66 = lean_unsigned_to_nat(2u); -x_67 = lean_nat_dec_eq(x_65, x_66); -lean_dec(x_65); -x_14 = x_67; -goto block_60; +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = l_Lean_Syntax_getArgs(x_13); +x_77 = lean_array_get_size(x_76); +lean_dec(x_76); +x_78 = lean_nat_dec_eq(x_77, x_12); +lean_dec(x_77); +x_14 = x_78; +goto block_72; } -block_60: +block_72: { if (x_14 == 0) { @@ -13008,675 +13007,891 @@ return x_16; } 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; 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; 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_17 = l_Lean_Syntax_getArg(x_13, x_12); +lean_object* x_17; uint8_t x_18; lean_object* x_65; uint8_t x_66; +x_17 = l_Lean_Syntax_getArg(x_13, x_7); lean_dec(x_13); -x_18 = lean_unsigned_to_nat(2u); -x_19 = l_Lean_Syntax_getArg(x_1, x_18); -x_20 = lean_unsigned_to_nat(4u); -x_21 = l_Lean_Syntax_getArg(x_1, x_20); -lean_dec(x_1); -x_22 = lean_ctor_get(x_2, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_2, 0); -lean_inc(x_23); +x_65 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_inc(x_17); +x_66 = l_Lean_Syntax_isOfKind(x_17, x_65); +if (x_66 == 0) +{ +uint8_t x_67; +x_67 = 0; +x_18 = x_67; +goto block_64; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = l_Lean_Syntax_getArgs(x_17); +x_69 = lean_array_get_size(x_68); +lean_dec(x_68); +x_70 = lean_unsigned_to_nat(2u); +x_71 = lean_nat_dec_eq(x_69, x_70); +lean_dec(x_69); +x_18 = x_71; +goto block_64; +} +block_64: +{ +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_17); lean_dec(x_2); -x_24 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_25 = lean_array_push(x_24, x_17); -x_26 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Array_empty___closed__1; -x_29 = lean_array_push(x_28, x_27); -x_30 = l_Lean_nullKind___closed__2; +lean_dec(x_1); +x_19 = lean_box(1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 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; 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; +x_21 = l_Lean_Syntax_getArg(x_17, x_12); +lean_dec(x_17); +x_22 = lean_unsigned_to_nat(2u); +x_23 = l_Lean_Syntax_getArg(x_1, x_22); +x_24 = lean_unsigned_to_nat(4u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +lean_dec(x_1); +x_26 = lean_ctor_get(x_2, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_2, 0); +lean_inc(x_27); +lean_dec(x_2); +x_28 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_29 = lean_array_push(x_28, x_21); +x_30 = l_Lean_Elab_Command_expandMixfix___closed__4; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Elab_Command_expandMixfix___closed__8; +x_32 = l_Array_empty___closed__1; x_33 = lean_array_push(x_32, x_31); -x_34 = l_Lean_Elab_Command_expandMixfix___closed__14; -x_35 = l_Lean_addMacroScope(x_23, x_34, x_22); -x_36 = lean_box(0); -x_37 = l_Lean_SourceInfo_inhabited___closed__1; -x_38 = l_Lean_Elab_Command_expandMixfix___closed__13; -x_39 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_35); -lean_ctor_set(x_39, 3, x_36); -x_40 = lean_array_push(x_28, x_39); -x_41 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; -lean_inc(x_40); -x_42 = lean_array_push(x_40, x_41); -x_43 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = lean_array_push(x_28, x_44); -x_46 = lean_array_push(x_45, x_19); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_30); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_array_push(x_33, x_47); -x_49 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_50 = lean_array_push(x_48, x_49); -x_51 = lean_array_push(x_28, x_21); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_30); -lean_ctor_set(x_52, 1, x_40); -x_53 = lean_array_push(x_51, x_52); -x_54 = l_Lean_mkAppStx___closed__8; -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = lean_array_push(x_50, x_55); -x_57 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = lean_alloc_ctor(0, 2, 0); +x_34 = l_Lean_nullKind___closed__2; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_Elab_Command_expandMixfix___closed__8; +x_37 = lean_array_push(x_36, x_35); +x_38 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_39 = l_Lean_addMacroScope(x_27, x_38, x_26); +x_40 = lean_box(0); +x_41 = l_Lean_SourceInfo_inhabited___closed__1; +x_42 = l_Lean_Elab_Command_expandMixfix___closed__13; +x_43 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_39); +lean_ctor_set(x_43, 3, x_40); +x_44 = lean_array_push(x_32, x_43); +x_45 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +lean_inc(x_44); +x_46 = lean_array_push(x_44, x_45); +x_47 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = lean_array_push(x_32, x_48); +x_50 = lean_array_push(x_49, x_23); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_34); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_array_push(x_37, x_51); +x_53 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_54 = lean_array_push(x_52, x_53); +x_55 = lean_array_push(x_32, x_25); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_34); +lean_ctor_set(x_56, 1, x_44); +x_57 = lean_array_push(x_55, x_56); +x_58 = l_Lean_mkAppStx___closed__8; +x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_3); -return x_59; +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_array_push(x_54, x_59); +x_61 = l_Lean_Elab_Command_expandMixfix___closed__6; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_3); +return x_63; } } } } -block_132: +} +} +block_154: { -if (x_69 == 0) +if (x_80 == 0) { -lean_object* x_70; uint8_t x_71; -x_70 = l_Lean_Elab_Command_expandMixfix___closed__16; +lean_object* x_81; uint8_t x_82; +x_81 = l_Lean_Elab_Command_expandMixfix___closed__16; lean_inc(x_8); -x_71 = l_Lean_Syntax_isOfKind(x_8, x_70); -if (x_71 == 0) +x_82 = l_Lean_Syntax_isOfKind(x_8, x_81); +if (x_82 == 0) { -uint8_t x_72; +uint8_t x_83; lean_dec(x_8); -x_72 = 0; -x_9 = x_72; -goto block_68; +x_83 = 0; +x_9 = x_83; +goto block_79; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_73 = l_Lean_Syntax_getArgs(x_8); +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = l_Lean_Syntax_getArgs(x_8); lean_dec(x_8); -x_74 = lean_array_get_size(x_73); -lean_dec(x_73); -x_75 = lean_unsigned_to_nat(1u); -x_76 = lean_nat_dec_eq(x_74, x_75); -lean_dec(x_74); -x_9 = x_76; -goto block_68; +x_85 = lean_array_get_size(x_84); +lean_dec(x_84); +x_86 = lean_unsigned_to_nat(1u); +x_87 = lean_nat_dec_eq(x_85, x_86); +lean_dec(x_85); +x_9 = x_87; +goto block_79; } } else { -lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_125; uint8_t x_126; +lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_148; uint8_t x_149; lean_dec(x_8); -x_77 = lean_unsigned_to_nat(1u); -x_78 = l_Lean_Syntax_getArg(x_1, x_77); -x_125 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_78); -x_126 = l_Lean_Syntax_isOfKind(x_78, x_125); -if (x_126 == 0) +x_88 = lean_unsigned_to_nat(1u); +x_89 = l_Lean_Syntax_getArg(x_1, x_88); +x_148 = l_Lean_nullKind___closed__2; +lean_inc(x_89); +x_149 = l_Lean_Syntax_isOfKind(x_89, x_148); +if (x_149 == 0) { -uint8_t x_127; -x_127 = 0; -x_79 = x_127; -goto block_124; +uint8_t x_150; +x_150 = 0; +x_90 = x_150; +goto block_147; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; -x_128 = l_Lean_Syntax_getArgs(x_78); -x_129 = lean_array_get_size(x_128); -lean_dec(x_128); -x_130 = lean_unsigned_to_nat(2u); -x_131 = lean_nat_dec_eq(x_129, x_130); -lean_dec(x_129); -x_79 = x_131; -goto block_124; +lean_object* x_151; lean_object* x_152; uint8_t x_153; +x_151 = l_Lean_Syntax_getArgs(x_89); +x_152 = lean_array_get_size(x_151); +lean_dec(x_151); +x_153 = lean_nat_dec_eq(x_152, x_88); +lean_dec(x_152); +x_90 = x_153; +goto block_147; } -block_124: +block_147: { -if (x_79 == 0) +if (x_90 == 0) { -lean_object* x_80; lean_object* x_81; -lean_dec(x_78); +lean_object* x_91; lean_object* x_92; +lean_dec(x_89); lean_dec(x_2); lean_dec(x_1); -x_80 = lean_box(1); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_3); -return x_81; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_82 = l_Lean_Syntax_getArg(x_78, x_77); -lean_dec(x_78); -x_83 = lean_unsigned_to_nat(2u); -x_84 = l_Lean_Syntax_getArg(x_1, x_83); -x_85 = lean_unsigned_to_nat(4u); -x_86 = l_Lean_Syntax_getArg(x_1, x_85); -lean_dec(x_1); -x_87 = lean_ctor_get(x_2, 1); -lean_inc(x_87); -x_88 = lean_ctor_get(x_2, 0); -lean_inc(x_88); -lean_dec(x_2); -x_89 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_90 = lean_array_push(x_89, x_82); -x_91 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_91 = lean_box(1); x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -x_93 = l_Array_empty___closed__1; -x_94 = lean_array_push(x_93, x_92); -x_95 = l_Lean_nullKind___closed__2; +lean_ctor_set(x_92, 1, x_3); +return x_92; +} +else +{ +lean_object* x_93; uint8_t x_94; lean_object* x_140; uint8_t x_141; +x_93 = l_Lean_Syntax_getArg(x_89, x_7); +lean_dec(x_89); +x_140 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_inc(x_93); +x_141 = l_Lean_Syntax_isOfKind(x_93, x_140); +if (x_141 == 0) +{ +uint8_t x_142; +x_142 = 0; +x_94 = x_142; +goto block_139; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_143 = l_Lean_Syntax_getArgs(x_93); +x_144 = lean_array_get_size(x_143); +lean_dec(x_143); +x_145 = lean_unsigned_to_nat(2u); +x_146 = lean_nat_dec_eq(x_144, x_145); +lean_dec(x_144); +x_94 = x_146; +goto block_139; +} +block_139: +{ +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_93); +lean_dec(x_2); +lean_dec(x_1); +x_95 = lean_box(1); x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -x_97 = l_Lean_Elab_Command_expandMixfix___closed__8; -lean_inc(x_96); -x_98 = lean_array_push(x_97, x_96); -x_99 = lean_array_push(x_93, x_84); -x_100 = l_Lean_Elab_Command_expandMixfix___closed__14; -x_101 = l_Lean_addMacroScope(x_88, x_100, x_87); -x_102 = lean_box(0); -x_103 = l_Lean_SourceInfo_inhabited___closed__1; -x_104 = l_Lean_Elab_Command_expandMixfix___closed__13; -x_105 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -lean_ctor_set(x_105, 2, x_101); -lean_ctor_set(x_105, 3, x_102); -x_106 = lean_array_push(x_93, x_105); -lean_inc(x_106); -x_107 = lean_array_push(x_106, x_96); -x_108 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -x_110 = lean_array_push(x_99, x_109); +lean_ctor_set(x_96, 1, x_3); +return x_96; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 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; +x_97 = l_Lean_Syntax_getArg(x_93, x_88); +lean_dec(x_93); +x_98 = lean_unsigned_to_nat(2u); +x_99 = l_Lean_Syntax_getArg(x_1, x_98); +x_100 = lean_unsigned_to_nat(4u); +x_101 = l_Lean_Syntax_getArg(x_1, x_100); +lean_dec(x_1); +x_102 = lean_ctor_get(x_2, 1); +lean_inc(x_102); +x_103 = lean_ctor_get(x_2, 0); +lean_inc(x_103); +lean_dec(x_2); +x_104 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_105 = lean_array_push(x_104, x_97); +x_106 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +x_108 = l_Array_empty___closed__1; +x_109 = lean_array_push(x_108, x_107); +x_110 = l_Lean_nullKind___closed__2; x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_95); -lean_ctor_set(x_111, 1, x_110); -x_112 = lean_array_push(x_98, x_111); -x_113 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_114 = lean_array_push(x_112, x_113); -x_115 = lean_array_push(x_93, x_86); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_95); -lean_ctor_set(x_116, 1, x_106); -x_117 = lean_array_push(x_115, x_116); -x_118 = l_Lean_mkAppStx___closed__8; -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = lean_array_push(x_114, x_119); -x_121 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_3); -return x_123; +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +x_112 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_111); +x_113 = lean_array_push(x_112, x_111); +x_114 = lean_array_push(x_108, x_99); +x_115 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_116 = l_Lean_addMacroScope(x_103, x_115, x_102); +x_117 = lean_box(0); +x_118 = l_Lean_SourceInfo_inhabited___closed__1; +x_119 = l_Lean_Elab_Command_expandMixfix___closed__13; +x_120 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +x_121 = lean_array_push(x_108, x_120); +lean_inc(x_121); +x_122 = lean_array_push(x_121, x_111); +x_123 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +x_125 = lean_array_push(x_114, x_124); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_110); +lean_ctor_set(x_126, 1, x_125); +x_127 = lean_array_push(x_113, x_126); +x_128 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_129 = lean_array_push(x_127, x_128); +x_130 = lean_array_push(x_108, x_101); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_110); +lean_ctor_set(x_131, 1, x_121); +x_132 = lean_array_push(x_130, x_131); +x_133 = l_Lean_mkAppStx___closed__8; +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +x_135 = lean_array_push(x_129, x_134); +x_136 = l_Lean_Elab_Command_expandMixfix___closed__6; +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_3); +return x_138; } } } } -block_215: +} +} +block_248: { -if (x_133 == 0) +if (x_155 == 0) { -lean_object* x_134; uint8_t x_135; -x_134 = l_Lean_Elab_Command_expandMixfix___closed__18; +lean_object* x_156; uint8_t x_157; +x_156 = l_Lean_Elab_Command_expandMixfix___closed__18; lean_inc(x_8); -x_135 = l_Lean_Syntax_isOfKind(x_8, x_134); -if (x_135 == 0) +x_157 = l_Lean_Syntax_isOfKind(x_8, x_156); +if (x_157 == 0) { -uint8_t x_136; -x_136 = 0; -x_69 = x_136; -goto block_132; +uint8_t x_158; +x_158 = 0; +x_80 = x_158; +goto block_154; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = l_Lean_Syntax_getArgs(x_8); -x_138 = lean_array_get_size(x_137); -lean_dec(x_137); -x_139 = lean_unsigned_to_nat(1u); -x_140 = lean_nat_dec_eq(x_138, x_139); -lean_dec(x_138); -x_69 = x_140; -goto block_132; +lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_159 = l_Lean_Syntax_getArgs(x_8); +x_160 = lean_array_get_size(x_159); +lean_dec(x_159); +x_161 = lean_unsigned_to_nat(1u); +x_162 = lean_nat_dec_eq(x_160, x_161); +lean_dec(x_160); +x_80 = x_162; +goto block_154; } } else { -lean_object* x_141; lean_object* x_142; uint8_t x_143; lean_object* x_208; uint8_t x_209; +lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_242; uint8_t x_243; lean_dec(x_8); -x_141 = lean_unsigned_to_nat(1u); -x_142 = l_Lean_Syntax_getArg(x_1, x_141); -x_208 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_142); -x_209 = l_Lean_Syntax_isOfKind(x_142, x_208); -if (x_209 == 0) +x_163 = lean_unsigned_to_nat(1u); +x_164 = l_Lean_Syntax_getArg(x_1, x_163); +x_242 = l_Lean_nullKind___closed__2; +lean_inc(x_164); +x_243 = l_Lean_Syntax_isOfKind(x_164, x_242); +if (x_243 == 0) { -uint8_t x_210; -x_210 = 0; -x_143 = x_210; -goto block_207; +uint8_t x_244; +x_244 = 0; +x_165 = x_244; +goto block_241; } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_211 = l_Lean_Syntax_getArgs(x_142); -x_212 = lean_array_get_size(x_211); -lean_dec(x_211); -x_213 = lean_unsigned_to_nat(2u); -x_214 = lean_nat_dec_eq(x_212, x_213); -lean_dec(x_212); -x_143 = x_214; -goto block_207; +lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_245 = l_Lean_Syntax_getArgs(x_164); +x_246 = lean_array_get_size(x_245); +lean_dec(x_245); +x_247 = lean_nat_dec_eq(x_246, x_163); +lean_dec(x_246); +x_165 = x_247; +goto block_241; } -block_207: +block_241: { -if (x_143 == 0) +if (x_165 == 0) { -lean_object* x_144; lean_object* x_145; -lean_dec(x_142); +lean_object* x_166; lean_object* x_167; +lean_dec(x_164); lean_dec(x_2); lean_dec(x_1); -x_144 = lean_box(1); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_3); -return x_145; +x_166 = lean_box(1); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_3); +return x_167; } else { -lean_object* 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; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_146 = l_Lean_Syntax_getArg(x_142, x_141); -lean_dec(x_142); -x_147 = lean_unsigned_to_nat(2u); -x_148 = l_Lean_Syntax_getArg(x_1, x_147); -x_149 = lean_unsigned_to_nat(4u); -x_150 = l_Lean_Syntax_getArg(x_1, x_149); -lean_dec(x_1); -x_151 = l_Lean_Syntax_toNat(x_146); -x_152 = lean_nat_add(x_151, x_141); -lean_dec(x_151); -x_153 = l_Nat_repr(x_152); -x_154 = l_Lean_numLitKind; -x_155 = l_Lean_SourceInfo_inhabited___closed__1; -x_156 = l_Lean_mkStxLit(x_154, x_153, x_155); -x_157 = lean_ctor_get(x_2, 1); -lean_inc(x_157); -x_158 = lean_ctor_get(x_2, 0); -lean_inc(x_158); +lean_object* x_168; uint8_t x_169; lean_object* x_234; uint8_t x_235; +x_168 = l_Lean_Syntax_getArg(x_164, x_7); +lean_dec(x_164); +x_234 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_inc(x_168); +x_235 = l_Lean_Syntax_isOfKind(x_168, x_234); +if (x_235 == 0) +{ +uint8_t x_236; +x_236 = 0; +x_169 = x_236; +goto block_233; +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; +x_237 = l_Lean_Syntax_getArgs(x_168); +x_238 = lean_array_get_size(x_237); +lean_dec(x_237); +x_239 = lean_unsigned_to_nat(2u); +x_240 = lean_nat_dec_eq(x_238, x_239); +lean_dec(x_238); +x_169 = x_240; +goto block_233; +} +block_233: +{ +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_168); lean_dec(x_2); -x_159 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_160 = lean_array_push(x_159, x_146); -x_161 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = l_Array_empty___closed__1; -x_164 = lean_array_push(x_163, x_162); -x_165 = l_Lean_nullKind___closed__2; -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -x_167 = l_Lean_Elab_Command_expandMixfix___closed__8; -x_168 = lean_array_push(x_167, x_166); -x_169 = l_Lean_Elab_Command_expandMixfix___closed__22; -lean_inc(x_157); -lean_inc(x_158); -x_170 = l_Lean_addMacroScope(x_158, x_169, x_157); -x_171 = lean_box(0); -x_172 = l_Lean_Elab_Command_expandMixfix___closed__21; -x_173 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_173, 0, x_155); -lean_ctor_set(x_173, 1, x_172); -lean_ctor_set(x_173, 2, x_170); -lean_ctor_set(x_173, 3, x_171); -x_174 = lean_array_push(x_163, x_173); -x_175 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; -lean_inc(x_174); -x_176 = lean_array_push(x_174, x_175); -x_177 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_176); -x_179 = lean_array_push(x_163, x_178); -x_180 = lean_array_push(x_179, x_148); -x_181 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_182 = l_Lean_addMacroScope(x_158, x_181, x_157); -x_183 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_184 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_184, 0, x_155); -lean_ctor_set(x_184, 1, x_183); -lean_ctor_set(x_184, 2, x_182); -lean_ctor_set(x_184, 3, x_171); +lean_dec(x_1); +x_170 = lean_box(1); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_3); +return x_171; +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_172 = l_Lean_Syntax_getArg(x_168, x_163); +lean_dec(x_168); +x_173 = lean_unsigned_to_nat(2u); +x_174 = l_Lean_Syntax_getArg(x_1, x_173); +x_175 = lean_unsigned_to_nat(4u); +x_176 = l_Lean_Syntax_getArg(x_1, x_175); +lean_dec(x_1); +x_177 = l_Lean_Syntax_toNat(x_172); +x_178 = lean_nat_add(x_177, x_163); +lean_dec(x_177); +x_179 = l_Nat_repr(x_178); +x_180 = l_Lean_numLitKind; +x_181 = l_Lean_SourceInfo_inhabited___closed__1; +x_182 = l_Lean_mkStxLit(x_180, x_179, x_181); +x_183 = lean_ctor_get(x_2, 1); +lean_inc(x_183); +x_184 = lean_ctor_get(x_2, 0); lean_inc(x_184); -x_185 = lean_array_push(x_163, x_184); -x_186 = lean_array_push(x_159, x_156); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_161); -lean_ctor_set(x_187, 1, x_186); -x_188 = lean_array_push(x_163, x_187); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_165); -lean_ctor_set(x_189, 1, x_188); -x_190 = lean_array_push(x_185, x_189); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_177); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_array_push(x_180, x_191); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_165); -lean_ctor_set(x_193, 1, x_192); -x_194 = lean_array_push(x_168, x_193); -x_195 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_196 = lean_array_push(x_194, x_195); -x_197 = lean_array_push(x_163, x_150); -x_198 = lean_array_push(x_174, x_184); -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_165); -lean_ctor_set(x_199, 1, x_198); -x_200 = lean_array_push(x_197, x_199); -x_201 = l_Lean_mkAppStx___closed__8; -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_200); -x_203 = lean_array_push(x_196, x_202); -x_204 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_3); -return x_206; -} -} -} -} -block_289: -{ -if (x_216 == 0) -{ -lean_object* x_217; uint8_t x_218; -x_217 = l_Lean_Elab_Command_expandMixfix___closed__24; -lean_inc(x_8); -x_218 = l_Lean_Syntax_isOfKind(x_8, x_217); -if (x_218 == 0) -{ -uint8_t x_219; -x_219 = 0; -x_133 = x_219; -goto block_215; -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; -x_220 = l_Lean_Syntax_getArgs(x_8); -x_221 = lean_array_get_size(x_220); -lean_dec(x_220); -x_222 = lean_unsigned_to_nat(1u); -x_223 = lean_nat_dec_eq(x_221, x_222); -lean_dec(x_221); -x_133 = x_223; -goto block_215; -} -} -else -{ -lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_282; uint8_t x_283; -lean_dec(x_8); -x_224 = lean_unsigned_to_nat(1u); -x_225 = l_Lean_Syntax_getArg(x_1, x_224); -x_282 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_225); -x_283 = l_Lean_Syntax_isOfKind(x_225, x_282); -if (x_283 == 0) -{ -uint8_t x_284; -x_284 = 0; -x_226 = x_284; -goto block_281; -} -else -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; -x_285 = l_Lean_Syntax_getArgs(x_225); -x_286 = lean_array_get_size(x_285); -lean_dec(x_285); -x_287 = lean_unsigned_to_nat(2u); -x_288 = lean_nat_dec_eq(x_286, x_287); -lean_dec(x_286); -x_226 = x_288; -goto block_281; -} -block_281: -{ -if (x_226 == 0) -{ -lean_object* x_227; lean_object* x_228; -lean_dec(x_225); lean_dec(x_2); -lean_dec(x_1); -x_227 = lean_box(1); +x_185 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_186 = lean_array_push(x_185, x_172); +x_187 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_186); +x_189 = l_Array_empty___closed__1; +x_190 = lean_array_push(x_189, x_188); +x_191 = l_Lean_nullKind___closed__2; +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_190); +x_193 = l_Lean_Elab_Command_expandMixfix___closed__8; +x_194 = lean_array_push(x_193, x_192); +x_195 = l_Lean_Elab_Command_expandMixfix___closed__22; +lean_inc(x_183); +lean_inc(x_184); +x_196 = l_Lean_addMacroScope(x_184, x_195, x_183); +x_197 = lean_box(0); +x_198 = l_Lean_Elab_Command_expandMixfix___closed__21; +x_199 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_199, 0, x_181); +lean_ctor_set(x_199, 1, x_198); +lean_ctor_set(x_199, 2, x_196); +lean_ctor_set(x_199, 3, x_197); +x_200 = lean_array_push(x_189, x_199); +x_201 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +lean_inc(x_200); +x_202 = lean_array_push(x_200, x_201); +x_203 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +x_205 = lean_array_push(x_189, x_204); +x_206 = lean_array_push(x_205, x_174); +x_207 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_208 = l_Lean_addMacroScope(x_184, x_207, x_183); +x_209 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_210 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_210, 0, x_181); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_210, 2, x_208); +lean_ctor_set(x_210, 3, x_197); +lean_inc(x_210); +x_211 = lean_array_push(x_189, x_210); +x_212 = lean_array_push(x_185, x_182); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_187); +lean_ctor_set(x_213, 1, x_212); +x_214 = lean_array_push(x_189, x_213); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_191); +lean_ctor_set(x_215, 1, x_214); +x_216 = lean_array_push(x_211, x_215); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_203); +lean_ctor_set(x_217, 1, x_216); +x_218 = lean_array_push(x_206, x_217); +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_191); +lean_ctor_set(x_219, 1, x_218); +x_220 = lean_array_push(x_194, x_219); +x_221 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_222 = lean_array_push(x_220, x_221); +x_223 = lean_array_push(x_189, x_176); +x_224 = lean_array_push(x_200, x_210); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_191); +lean_ctor_set(x_225, 1, x_224); +x_226 = lean_array_push(x_223, x_225); +x_227 = l_Lean_mkAppStx___closed__8; x_228 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_3); -return x_228; +lean_ctor_set(x_228, 1, x_226); +x_229 = lean_array_push(x_222, x_228); +x_230 = l_Lean_Elab_Command_expandMixfix___closed__6; +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_229); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_3); +return x_232; +} +} +} +} +} +} +block_333: +{ +if (x_249 == 0) +{ +lean_object* x_250; uint8_t x_251; +x_250 = l_Lean_Elab_Command_expandMixfix___closed__24; +lean_inc(x_8); +x_251 = l_Lean_Syntax_isOfKind(x_8, x_250); +if (x_251 == 0) +{ +uint8_t x_252; +x_252 = 0; +x_155 = x_252; +goto block_248; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_229 = l_Lean_Syntax_getArg(x_225, x_224); -lean_dec(x_225); -x_230 = lean_unsigned_to_nat(2u); -x_231 = l_Lean_Syntax_getArg(x_1, x_230); -x_232 = lean_unsigned_to_nat(4u); -x_233 = l_Lean_Syntax_getArg(x_1, x_232); -lean_dec(x_1); -x_234 = lean_ctor_get(x_2, 1); -lean_inc(x_234); -x_235 = lean_ctor_get(x_2, 0); -lean_inc(x_235); +lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; +x_253 = l_Lean_Syntax_getArgs(x_8); +x_254 = lean_array_get_size(x_253); +lean_dec(x_253); +x_255 = lean_unsigned_to_nat(1u); +x_256 = lean_nat_dec_eq(x_254, x_255); +lean_dec(x_254); +x_155 = x_256; +goto block_248; +} +} +else +{ +lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_327; uint8_t x_328; +lean_dec(x_8); +x_257 = lean_unsigned_to_nat(1u); +x_258 = l_Lean_Syntax_getArg(x_1, x_257); +x_327 = l_Lean_nullKind___closed__2; +lean_inc(x_258); +x_328 = l_Lean_Syntax_isOfKind(x_258, x_327); +if (x_328 == 0) +{ +uint8_t x_329; +x_329 = 0; +x_259 = x_329; +goto block_326; +} +else +{ +lean_object* x_330; lean_object* x_331; uint8_t x_332; +x_330 = l_Lean_Syntax_getArgs(x_258); +x_331 = lean_array_get_size(x_330); +lean_dec(x_330); +x_332 = lean_nat_dec_eq(x_331, x_257); +lean_dec(x_331); +x_259 = x_332; +goto block_326; +} +block_326: +{ +if (x_259 == 0) +{ +lean_object* x_260; lean_object* x_261; +lean_dec(x_258); lean_dec(x_2); -x_236 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_237 = lean_array_push(x_236, x_229); -x_238 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); -x_240 = l_Array_empty___closed__1; -x_241 = lean_array_push(x_240, x_239); -x_242 = l_Lean_nullKind___closed__2; -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_241); -x_244 = l_Lean_Elab_Command_expandMixfix___closed__8; -lean_inc(x_243); -x_245 = lean_array_push(x_244, x_243); -x_246 = l_Lean_Elab_Command_expandMixfix___closed__22; -lean_inc(x_234); -lean_inc(x_235); -x_247 = l_Lean_addMacroScope(x_235, x_246, x_234); -x_248 = lean_box(0); -x_249 = l_Lean_SourceInfo_inhabited___closed__1; -x_250 = l_Lean_Elab_Command_expandMixfix___closed__21; -x_251 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_250); -lean_ctor_set(x_251, 2, x_247); -lean_ctor_set(x_251, 3, x_248); -x_252 = lean_array_push(x_240, x_251); -x_253 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; -lean_inc(x_252); -x_254 = lean_array_push(x_252, x_253); -x_255 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_254); -x_257 = lean_array_push(x_240, x_256); -x_258 = lean_array_push(x_257, x_231); -x_259 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_260 = l_Lean_addMacroScope(x_235, x_259, x_234); -x_261 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_262 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_262, 0, x_249); -lean_ctor_set(x_262, 1, x_261); -lean_ctor_set(x_262, 2, x_260); -lean_ctor_set(x_262, 3, x_248); +lean_dec(x_1); +x_260 = lean_box(1); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_3); +return x_261; +} +else +{ +lean_object* x_262; uint8_t x_263; lean_object* x_319; uint8_t x_320; +x_262 = l_Lean_Syntax_getArg(x_258, x_7); +lean_dec(x_258); +x_319 = l_Lean_Elab_Command_expandMixfix___closed__4; lean_inc(x_262); -x_263 = lean_array_push(x_240, x_262); -x_264 = lean_array_push(x_263, x_243); +x_320 = l_Lean_Syntax_isOfKind(x_262, x_319); +if (x_320 == 0) +{ +uint8_t x_321; +x_321 = 0; +x_263 = x_321; +goto block_318; +} +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; +x_322 = l_Lean_Syntax_getArgs(x_262); +x_323 = lean_array_get_size(x_322); +lean_dec(x_322); +x_324 = lean_unsigned_to_nat(2u); +x_325 = lean_nat_dec_eq(x_323, x_324); +lean_dec(x_323); +x_263 = x_325; +goto block_318; +} +block_318: +{ +if (x_263 == 0) +{ +lean_object* x_264; lean_object* x_265; +lean_dec(x_262); +lean_dec(x_2); +lean_dec(x_1); +x_264 = lean_box(1); x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_255); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_array_push(x_258, x_265); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_242); -lean_ctor_set(x_267, 1, x_266); -x_268 = lean_array_push(x_245, x_267); -x_269 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_270 = lean_array_push(x_268, x_269); -x_271 = lean_array_push(x_240, x_233); -x_272 = lean_array_push(x_252, x_262); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_242); -lean_ctor_set(x_273, 1, x_272); -x_274 = lean_array_push(x_271, x_273); -x_275 = l_Lean_mkAppStx___closed__8; +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_3); +return x_265; +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_266 = l_Lean_Syntax_getArg(x_262, x_257); +lean_dec(x_262); +x_267 = lean_unsigned_to_nat(2u); +x_268 = l_Lean_Syntax_getArg(x_1, x_267); +x_269 = lean_unsigned_to_nat(4u); +x_270 = l_Lean_Syntax_getArg(x_1, x_269); +lean_dec(x_1); +x_271 = lean_ctor_get(x_2, 1); +lean_inc(x_271); +x_272 = lean_ctor_get(x_2, 0); +lean_inc(x_272); +lean_dec(x_2); +x_273 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_274 = lean_array_push(x_273, x_266); +x_275 = l_Lean_Elab_Command_expandMixfix___closed__4; x_276 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_276, 0, x_275); lean_ctor_set(x_276, 1, x_274); -x_277 = lean_array_push(x_270, x_276); -x_278 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_279 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_279, 0, x_278); -lean_ctor_set(x_279, 1, x_277); -x_280 = lean_alloc_ctor(0, 2, 0); +x_277 = l_Array_empty___closed__1; +x_278 = lean_array_push(x_277, x_276); +x_279 = l_Lean_nullKind___closed__2; +x_280 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_3); -return x_280; +lean_ctor_set(x_280, 1, x_278); +x_281 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_280); +x_282 = lean_array_push(x_281, x_280); +x_283 = l_Lean_Elab_Command_expandMixfix___closed__22; +lean_inc(x_271); +lean_inc(x_272); +x_284 = l_Lean_addMacroScope(x_272, x_283, x_271); +x_285 = lean_box(0); +x_286 = l_Lean_SourceInfo_inhabited___closed__1; +x_287 = l_Lean_Elab_Command_expandMixfix___closed__21; +x_288 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +lean_ctor_set(x_288, 2, x_284); +lean_ctor_set(x_288, 3, x_285); +x_289 = lean_array_push(x_277, x_288); +x_290 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +lean_inc(x_289); +x_291 = lean_array_push(x_289, x_290); +x_292 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_293 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_291); +x_294 = lean_array_push(x_277, x_293); +x_295 = lean_array_push(x_294, x_268); +x_296 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_297 = l_Lean_addMacroScope(x_272, x_296, x_271); +x_298 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_299 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_299, 0, x_286); +lean_ctor_set(x_299, 1, x_298); +lean_ctor_set(x_299, 2, x_297); +lean_ctor_set(x_299, 3, x_285); +lean_inc(x_299); +x_300 = lean_array_push(x_277, x_299); +x_301 = lean_array_push(x_300, x_280); +x_302 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_302, 0, x_292); +lean_ctor_set(x_302, 1, x_301); +x_303 = lean_array_push(x_295, x_302); +x_304 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_304, 0, x_279); +lean_ctor_set(x_304, 1, x_303); +x_305 = lean_array_push(x_282, x_304); +x_306 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_307 = lean_array_push(x_305, x_306); +x_308 = lean_array_push(x_277, x_270); +x_309 = lean_array_push(x_289, x_299); +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_279); +lean_ctor_set(x_310, 1, x_309); +x_311 = lean_array_push(x_308, x_310); +x_312 = l_Lean_mkAppStx___closed__8; +x_313 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_311); +x_314 = lean_array_push(x_307, x_313); +x_315 = l_Lean_Elab_Command_expandMixfix___closed__6; +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_314); +x_317 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_3); +return x_317; } } } } -block_329: +} +} +block_388: { -if (x_290 == 0) +if (x_334 == 0) { -lean_object* x_291; uint8_t x_292; -x_291 = l_Lean_Elab_Command_expandMixfix___closed__26; +lean_object* x_335; uint8_t x_336; +x_335 = l_Lean_Elab_Command_expandMixfix___closed__26; lean_inc(x_8); -x_292 = l_Lean_Syntax_isOfKind(x_8, x_291); -if (x_292 == 0) +x_336 = l_Lean_Syntax_isOfKind(x_8, x_335); +if (x_336 == 0) { -uint8_t x_293; -x_293 = 0; -x_216 = x_293; -goto block_289; +uint8_t x_337; +x_337 = 0; +x_249 = x_337; +goto block_333; } else { -lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -x_294 = l_Lean_Syntax_getArgs(x_8); -x_295 = lean_array_get_size(x_294); -lean_dec(x_294); -x_296 = lean_unsigned_to_nat(1u); -x_297 = lean_nat_dec_eq(x_295, x_296); -lean_dec(x_295); -x_216 = x_297; -goto block_289; +lean_object* x_338; lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_338 = l_Lean_Syntax_getArgs(x_8); +x_339 = lean_array_get_size(x_338); +lean_dec(x_338); +x_340 = lean_unsigned_to_nat(1u); +x_341 = lean_nat_dec_eq(x_339, x_340); +lean_dec(x_339); +x_249 = x_341; +goto block_333; } } else { -lean_object* x_298; lean_object* x_299; uint8_t x_300; lean_object* x_322; uint8_t x_323; +lean_object* x_342; lean_object* x_343; uint8_t x_344; lean_object* x_382; uint8_t x_383; lean_dec(x_8); lean_dec(x_2); -x_298 = lean_unsigned_to_nat(1u); -x_299 = l_Lean_Syntax_getArg(x_1, x_298); -x_322 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_299); -x_323 = l_Lean_Syntax_isOfKind(x_299, x_322); -if (x_323 == 0) +x_342 = lean_unsigned_to_nat(1u); +x_343 = l_Lean_Syntax_getArg(x_1, x_342); +x_382 = l_Lean_nullKind___closed__2; +lean_inc(x_343); +x_383 = l_Lean_Syntax_isOfKind(x_343, x_382); +if (x_383 == 0) { -uint8_t x_324; -x_324 = 0; -x_300 = x_324; -goto block_321; +uint8_t x_384; +x_384 = 0; +x_344 = x_384; +goto block_381; } else { -lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; -x_325 = l_Lean_Syntax_getArgs(x_299); -x_326 = lean_array_get_size(x_325); -lean_dec(x_325); -x_327 = lean_unsigned_to_nat(2u); -x_328 = lean_nat_dec_eq(x_326, x_327); -lean_dec(x_326); -x_300 = x_328; -goto block_321; +lean_object* x_385; lean_object* x_386; uint8_t x_387; +x_385 = l_Lean_Syntax_getArgs(x_343); +x_386 = lean_array_get_size(x_385); +lean_dec(x_385); +x_387 = lean_nat_dec_eq(x_386, x_342); +lean_dec(x_386); +x_344 = x_387; +goto block_381; } -block_321: +block_381: { -if (x_300 == 0) +if (x_344 == 0) { -lean_object* x_301; lean_object* x_302; -lean_dec(x_299); +lean_object* x_345; lean_object* x_346; +lean_dec(x_343); lean_dec(x_1); -x_301 = lean_box(1); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_3); -return x_302; +x_345 = lean_box(1); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_3); +return x_346; } else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_303 = l_Lean_Syntax_getArg(x_299, x_298); -lean_dec(x_299); -x_304 = lean_unsigned_to_nat(2u); -x_305 = l_Lean_Syntax_getArg(x_1, x_304); -x_306 = lean_unsigned_to_nat(4u); -x_307 = l_Lean_Syntax_getArg(x_1, x_306); +lean_object* x_347; uint8_t x_348; lean_object* x_374; uint8_t x_375; +x_347 = l_Lean_Syntax_getArg(x_343, x_7); +lean_dec(x_343); +x_374 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_inc(x_347); +x_375 = l_Lean_Syntax_isOfKind(x_347, x_374); +if (x_375 == 0) +{ +uint8_t x_376; +x_376 = 0; +x_348 = x_376; +goto block_373; +} +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; +x_377 = l_Lean_Syntax_getArgs(x_347); +x_378 = lean_array_get_size(x_377); +lean_dec(x_377); +x_379 = lean_unsigned_to_nat(2u); +x_380 = lean_nat_dec_eq(x_378, x_379); +lean_dec(x_378); +x_348 = x_380; +goto block_373; +} +block_373: +{ +if (x_348 == 0) +{ +lean_object* x_349; lean_object* x_350; +lean_dec(x_347); lean_dec(x_1); -x_308 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_309 = lean_array_push(x_308, x_303); -x_310 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_311 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_309); -x_312 = l_Lean_Elab_Command_expandMixfix___closed__30; -x_313 = lean_array_push(x_312, x_311); -x_314 = lean_array_push(x_313, x_305); -x_315 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; -x_316 = lean_array_push(x_314, x_315); -x_317 = lean_array_push(x_316, x_307); -x_318 = l_Lean_Elab_Command_expandMixfix___closed__2; -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_317); -x_320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_3); -return x_320; +x_349 = lean_box(1); +x_350 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_350, 0, x_349); +lean_ctor_set(x_350, 1, x_3); +return x_350; +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_351 = l_Lean_Syntax_getArg(x_347, x_342); +lean_dec(x_347); +x_352 = lean_unsigned_to_nat(2u); +x_353 = l_Lean_Syntax_getArg(x_1, x_352); +x_354 = lean_unsigned_to_nat(4u); +x_355 = l_Lean_Syntax_getArg(x_1, x_354); +lean_dec(x_1); +x_356 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_357 = lean_array_push(x_356, x_351); +x_358 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_359 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_357); +x_360 = l_Array_empty___closed__1; +x_361 = lean_array_push(x_360, x_359); +x_362 = l_Lean_nullKind___closed__2; +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_362); +lean_ctor_set(x_363, 1, x_361); +x_364 = l_Lean_Elab_Command_expandMixfix___closed__30; +x_365 = lean_array_push(x_364, x_363); +x_366 = lean_array_push(x_365, x_353); +x_367 = l_Lean_Elab_Term_expandCDot_x3f___closed__6; +x_368 = lean_array_push(x_366, x_367); +x_369 = lean_array_push(x_368, x_355); +x_370 = l_Lean_Elab_Command_expandMixfix___closed__2; +x_371 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_369); +x_372 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_3); +return x_372; +} +} } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 9e79ee43d4..ebcbff72e0 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -332,7 +332,6 @@ lean_object* l_Lean_Elab_Tactic_saveAllState___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_State_inhabited; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at___private_Lean_Elab_Tactic_Basic_5__sortFVarIds___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; lean_object* l_Std_mkHashMap___at_Lean_Elab_Tactic_tacticElabAttribute___spec__2(lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned___at_Lean_Elab_Tactic_pruneSolvedGoals___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_Std_AssocList_find_x3f___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(lean_object*, lean_object*); @@ -377,6 +376,7 @@ lean_object* l_Lean_Elab_Tactic_evalTactic___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock(lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM___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_environment_main_module(lean_object*); +extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; lean_object* l_Lean_Elab_Tactic_evalSubst___closed__2; lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___closed__3; @@ -450,7 +450,6 @@ lean_object* l_Lean_Elab_Tactic_adaptExpander(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Tactic_evalTraceState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; lean_object* l_Lean_Meta_getMVars___at_Lean_Elab_Tactic_ensureHasNoMVars___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___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__3; lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -515,6 +514,7 @@ lean_object* lean_usize_to_nat(size_t); extern lean_object* l_Lean_Elab_mkMacroAttribute___closed__2; lean_object* l_Lean_Elab_Tactic_orelse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getCurrMacroScope(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_getFVarIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__4(lean_object*, size_t, lean_object*); @@ -9725,7 +9725,7 @@ lean_object* l_Lean_Elab_Tactic_evalIntro(lean_object* x_1, lean_object* x_2, le _start: { uint8_t x_11; lean_object* x_190; uint8_t x_191; -x_190 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_190 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; lean_inc(x_1); x_191 = l_Lean_Syntax_isOfKind(x_1, x_190); if (x_191 == 0) @@ -9819,9 +9819,9 @@ x_28 = l_Lean_nullKind___closed__2; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); -x_30 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_30 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; x_31 = lean_array_push(x_30, x_29); -x_32 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_32 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -9970,10 +9970,10 @@ x_82 = l_Lean_nullKind___closed__2; x_83 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_83, 0, x_82); lean_ctor_set(x_83, 1, x_81); -x_84 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; +x_84 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__9; lean_inc(x_83); x_85 = lean_array_push(x_84, x_83); -x_86 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_86 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_86); lean_ctor_set(x_87, 1, x_85); @@ -10019,7 +10019,7 @@ x_116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_116, 0, x_82); lean_ctor_set(x_116, 1, x_115); x_117 = lean_array_push(x_102, x_116); -x_118 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; +x_118 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; x_119 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_119, 0, x_118); lean_ctor_set(x_119, 1, x_117); @@ -10228,7 +10228,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_3 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__5; +x_3 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__7; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalIntro___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c index 480e9d0b6a..6d3088df28 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Meta_introN(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -33,7 +32,6 @@ lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_obj extern lean_object* l_Lean_Elab_Tactic_liftMetaTactic___closed__1; lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_2__getVarName___boxed(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___closed__1; lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -471,6 +469,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_39 = !lean_is_exclusive(x_23); if (x_39 == 0) @@ -501,6 +501,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_43 = !lean_is_exclusive(x_20); if (x_43 == 0) @@ -530,6 +532,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_47 = !lean_is_exclusive(x_16); if (x_47 == 0) @@ -556,6 +560,8 @@ else lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_12); lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_51 = lean_ctor_get(x_10, 1); lean_inc(x_51); @@ -577,6 +583,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_54 = !lean_is_exclusive(x_10); if (x_54 == 0) @@ -625,7 +633,7 @@ x_18 = lean_alloc_closure((void*)(l_Lean_Meta_generalize), 8, 3); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_2); lean_closure_set(x_18, 2, x_3); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed), 9, 3); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1), 9, 3); lean_closure_set(x_19, 0, x_2); lean_closure_set(x_19, 1, x_1); lean_closure_set(x_19, 2, x_3); @@ -681,16 +689,6 @@ return x_30; } } } -lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___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: { @@ -744,6 +742,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_27 = !lean_is_exclusive(x_14); @@ -774,6 +774,8 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_31 = !lean_is_exclusive(x_11); @@ -820,7 +822,7 @@ lean_inc(x_2); x_18 = lean_alloc_closure((void*)(l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1), 6, 1); lean_closure_set(x_18, 0, x_2); lean_inc(x_16); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1___boxed), 10, 4); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1), 10, 4); lean_closure_set(x_19, 0, x_16); lean_closure_set(x_19, 1, x_2); lean_closure_set(x_19, 2, x_1); @@ -877,16 +879,6 @@ return x_30; } } } -lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_4); -lean_dec(x_3); -return x_11; -} -} lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index 5b95f007c0..1a096597e5 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -20,7 +20,6 @@ extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___clos lean_object* l_Lean_Elab_Tactic_evalMatch___closed__2; lean_object* l_Lean_Elab_Tactic_mkTacticSeq___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___lambda__1___closed__4; extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; lean_object* l___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -39,7 +38,6 @@ lean_object* l_Lean_Elab_Tactic_mkTacticSeq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Match_32__elabMatchAux___closed__2; lean_object* l___private_Lean_Elab_Tactic_Match_2__mkAuxiliaryMatchTerm___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalMatch___spec__1___rarg(lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalCase___closed__4; @@ -57,16 +55,16 @@ lean_object* l___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux(lean_ extern lean_object* l_Lean_Parser_Error_toString___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalMatch___closed__1; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_FirstTokens_toStr___closed__3; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; +extern lean_object* l___private_Lean_Elab_Match_36__elabMatchAux___closed__2; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalRefine___closed__1; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Tactic_evalTactic___main(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_getArgs(lean_object*); @@ -78,15 +76,17 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Basic_1__evalTa lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalMatch___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Match_2__mkAuxiliaryMatchTerm(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__2; +extern lean_object* l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; lean_object* l_Lean_Elab_Tactic_evalMatch___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -192,7 +192,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } @@ -335,7 +335,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; x_46 = lean_ctor_get(x_3, 0); -x_47 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__2; +x_47 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__2; lean_inc(x_46); x_48 = l_Lean_Name_appendIndexAfter(x_47, x_46); x_49 = l_Lean_Name_append___main(x_1, x_48); @@ -367,7 +367,7 @@ x_60 = lean_ctor_get(x_3, 1); lean_inc(x_60); lean_inc(x_59); lean_dec(x_3); -x_61 = l___private_Lean_Elab_Match_32__elabMatchAux___closed__2; +x_61 = l___private_Lean_Elab_Match_36__elabMatchAux___closed__2; lean_inc(x_59); x_62 = l_Lean_Name_appendIndexAfter(x_61, x_59); x_63 = l_Lean_Name_append___main(x_1, x_62); @@ -538,11 +538,11 @@ return x_48; } } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_LeanInit_15__mapSepElemsMAux___main___at___private_Lean_Elab_Tactic_Match_1__mkAuxiliaryMatchTermAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } @@ -1086,7 +1086,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_3 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__10; +x_3 = l___private_Lean_Elab_Binders_16__expandMatchAltsIntoMatchAux___main___closed__12; x_4 = l___regBuiltin_Lean_Elab_Tactic_evalMatch___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 47232aa693..5b50a2bc7f 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -45,6 +45,7 @@ lean_object* l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(lean_object extern lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__2; lean_object* l_Lean_mkSort(lean_object*); +lean_object* l___private_Lean_Elab_Term_20__resolveLocalNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Elab_Term_monadLog___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -70,7 +71,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__7; -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2; lean_object* l_Lean_Elab_Term_ppGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); @@ -106,16 +106,15 @@ lean_object* l_Lean_Elab_Term_MonadLiftT___rarg___boxed(lean_object*, lean_objec lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__3; lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1; +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5; lean_object* l_Lean_Meta_getMVarsAtDeclImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Prod_HasRepr___rarg___closed__1; +lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__2; lean_object* l___private_Lean_Elab_Term_4__liftMetaMFinalizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabQuotedName___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_Term_23__mkFreshLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__saveTraceAsMessages___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_hasEval___rarg___closed__2; lean_object* l_Lean_Elab_Term_saveAllState(lean_object*); @@ -126,20 +125,19 @@ extern lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed_ lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe___closed__2; lean_object* l_Lean_Elab_Term_resolveName___closed__3; +lean_object* l___private_Lean_Elab_Term_20__resolveLocalNameAux(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__2; lean_object* l_Lean_Elab_Term_elabTypeStx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_10__exceptionToSorry___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateRefT_x27_get___at_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_21__resolveLocalNameAux(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__6; lean_object* l___private_Lean_Elab_Term_5__hasCDot___main___closed__3; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_logUnassignedUsingErrorContext___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors___closed__2; extern lean_object* l_Lean_charLitKind___closed__2; -lean_object* l___private_Lean_Elab_Term_25__mkSomeContext___closed__1; lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; lean_object* l_Lean_Elab_Term_withDeclName(lean_object*); @@ -168,7 +166,6 @@ lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ctorName___closed__4; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_22__resolveLocalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); @@ -177,6 +174,7 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName___closed__3; lean_object* l___private_Lean_Meta_LevelDefEq_13__processPostponed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__7; +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabProp(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Meta_commitWhen___at_Lean_Elab_Term_isDefEqNoConstantApprox___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -196,6 +194,7 @@ extern lean_object* l_String_splitAux___main___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; lean_object* l___private_Lean_Elab_Term_16__tryCoeSort___closed__3; +lean_object* l___private_Lean_Elab_Term_21__resolveLocalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_9__tryPureCoe_x3f(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_Level_elabLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,6 +202,7 @@ lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_o extern lean_object* l_List_repr___rarg___closed__3; extern lean_object* l_Lean_unitToExpr___lambda__1___closed__3; lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_8__isMonad_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__2; lean_object* l___private_Lean_Elab_Term_16__tryCoeSort___closed__5; lean_object* l_Lean_Elab_Term_elabSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -218,7 +218,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic(lean_object*); lean_object* l_Lean_mkAtom(lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames(lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__6; -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MonadLiftT(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___regBuiltin_Lean_Elab_Term_elabTypeStx(lean_object*); @@ -231,6 +230,7 @@ lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__5; extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; extern lean_object* l_Lean_listToExpr___rarg___closed__4; lean_object* l_Lean_Elab_Term_resolveName___closed__5; +lean_object* l___private_Lean_Elab_Term_23__mkConsts___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_LVal_hasToString(lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambda___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabImplicitLambda___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -294,10 +294,11 @@ lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCo lean_object* l_Lean_Elab_Term_monadLog___closed__5; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabTermAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_termParser___closed__1; -lean_object* l___private_Lean_Elab_Term_23__mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_15__isLambdaWithImplicit___spec__1___closed__2; lean_object* l___private_Lean_Elab_Term_5__hasCDot___main___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Term_17__elabOptLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_16__tryCoeSort___closed__8; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -307,17 +308,17 @@ lean_object* l_Lean_Elab_Term_elabParen___closed__4; lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MonadLiftT___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__1; +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__saveTraceAsMessages___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__saveTraceAsMessages___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__4; @@ -335,25 +336,24 @@ lean_object* l_Lean_Elab_Term_State_inhabited___closed__1; extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MonadIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_elabImplicitLambda___main___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermWithoutImplicitLambdas(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalIdent_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe___closed__1; lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_isDefEqNoConstantApprox___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerMVarErrorContext___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_mkExplicitBinder___closed__7; lean_object* l_Lean_Elab_Term_mkConst___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_getCurrNamespace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_24__mkConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run(lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__4; lean_object* l_Lean_Elab_Term_tryCoe___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_Term_24__mkSomeContext___closed__2; lean_object* l_Lean_Meta_getDecLevel___at_Lean_Elab_Term_tryLiftAndCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__9; lean_object* l_Lean_Elab_Term_isExprMVarAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -361,9 +361,9 @@ lean_object* l_Lean_Elab_Term_elabProp___rarg(lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l___private_Lean_Elab_Term_16__tryCoeSort___closed__2; lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Elab_Term_elabUsingElabFns___spec__6___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_23__mkConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__1; lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__8; -lean_object* l___private_Lean_Elab_Term_18__elabOptLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName(lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__2; @@ -389,7 +389,6 @@ lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, l lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_hasSyntheticSorry(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_termElabAttribute___spec__1___closed__1; lean_object* l_Lean_Elab_Term_getMVarDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -404,8 +403,10 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l___private_Lean_MonadEnv_1__mkAuxNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNumLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_blockImplicitLambda___boxed(lean_object*); @@ -427,7 +428,6 @@ lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__1; lean_object* l_Lean_Elab_Term_withFreshMacroScope(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__7; -lean_object* l___private_Lean_Elab_Term_24__mkConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef___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_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -468,16 +468,16 @@ lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_objec extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabProp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_Term_25__mkSomeContext___closed__2; lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit___closed__11; lean_object* l_Lean_Elab_Term_monadQuotation___closed__4; lean_object* l_Lean_Elab_Term_getMainModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MonadError___closed__5; +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4; lean_object* l_Lean_Elab_Term_mkTermElabAttribute(lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__5; @@ -486,13 +486,13 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabTermAux_ lean_object* l_Lean_Elab_Term_monadLog___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; +lean_object* l___private_Lean_Elab_Term_24__mkSomeContext; extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_Elab_Term_expandArrayLit___closed__9; lean_object* l_Lean_Elab_Term_getMessageLog___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_useImplicitLambda_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___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_elabLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___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_Term_12__elabUsingElabFnsAux___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___regBuiltin_Lean_Elab_Term_elabProp___closed__2; size_t lean_usize_modn(size_t, lean_object*); @@ -506,6 +506,7 @@ lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_1__ lean_object* l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM(lean_object*); @@ -527,6 +528,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandListLit___closed__1; lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorContext_logError___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; +lean_object* l___private_Lean_Elab_Term_24__mkSomeContext___closed__1; lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__5; lean_object* l___private_Lean_Elab_Term_1__mkMessageAux(lean_object*, lean_object*, lean_object*, uint8_t); uint8_t l_Lean_Expr_isForall(lean_object*); @@ -534,7 +536,6 @@ lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg(lean_object*, lean_obje 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*); lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4; lean_object* l_Lean_Elab_Term_TermElabM_inhabited___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_expandListLit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); @@ -581,13 +582,12 @@ lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__1; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__2; lean_object* l_Lean_Elab_Term_monadLog___closed__2; lean_object* l_Lean_Elab_Term_dropTermParens___main(lean_object*); +lean_object* l___private_Lean_Elab_Term_19__elabCDot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_20__elabCDot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_commitWhenSome_x3f___at_Lean_Elab_Term_isDefEqNoConstantApprox___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel___at_Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_25__mkSomeContext; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_expandArrayLit(lean_object*); @@ -602,7 +602,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_MVarErrorContext_log lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_3__saveTraceAsMessages___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_inhabited___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3; extern lean_object* l_Lean_prodToExpr___rarg___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_savingMCtx(lean_object*); lean_object* l_Lean_Elab_Term_elabHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -620,7 +619,6 @@ extern lean_object* l_Lean_mkAppStx___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit(lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_whnfForall___at_Lean_Elab_Term_useImplicitLambda_x3f___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_Term_17__mkAuxNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabNumLit___closed__1; extern lean_object* l_Lean_Elab_macroAttribute; @@ -648,7 +646,6 @@ lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Term_ensureType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Elab_Term_MVarErrorContext_logError(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ReaderT_monadError___rarg(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -656,7 +653,6 @@ lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___private_Lean_Elab_Term_6__expandCDot___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__1; -lean_object* l___private_Lean_Elab_Term_21__resolveLocalNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__3; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -687,6 +683,7 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfMVar___boxed(lean_object*, lean_objec extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; extern lean_object* l_Lean_Meta_whnfRef; lean_object* l___private_Lean_Elab_Term_1__mkMessageAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_8__isMonad_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveGlobalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_8__isMonad_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -701,7 +698,6 @@ lean_object* l_Lean_Elab_Term_MonadError___lambda__1___boxed(lean_object*, lean_ lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCharLit___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_elabHole___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_Term_17__mkAuxNameAux(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_evalNat___main___closed__8; lean_object* l_List_foldlM___main___at_Lean_Elab_Term_logUnassignedUsingErrorContext___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); @@ -748,12 +744,13 @@ lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__3; lean_object* l_Lean_Elab_Term_MonadError; lean_object* l_Lean_Elab_Term_MonadError___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_decLevel___at_Lean_Elab_Term_elabNumLit___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_Term_22__resolveLocalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__12; 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_Term_mkTacticMVar___closed__2; lean_object* l_Lean_Elab_Term_liftCoreM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_21__resolveLocalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__1; lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__2___boxed(lean_object*, lean_object*); @@ -766,6 +763,7 @@ lean_object* l_Lean_Elab_Term_elabByTactic___closed__3; lean_object* l_Lean_Elab_Term_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift___boxed(lean_object*); lean_object* l_Lean_Elab_Term_getOpenDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_expandArrayLit___closed__1; @@ -797,6 +795,7 @@ lean_object* l_Lean_Elab_Term_MonadError___lambda__3(lean_object*, lean_object*, lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_check___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_16__tryCoeSort___closed__6; lean_object* l_Lean_Elab_Term_monadQuotation___closed__3; +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Term_14__isExplicitApp(lean_object*); lean_object* l___private_Lean_Elab_Term_13__isExplicit___closed__1; extern lean_object* l_Lean_arrayToExpr___rarg___lambda__1___closed__2; @@ -831,6 +830,7 @@ lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_objec lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__saveTraceAsMessages___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2; lean_object* l___private_Lean_Elab_Term_13__isExplicit___boxed(lean_object*); lean_object* l_Lean_Elab_Term_mkTacticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); @@ -845,19 +845,20 @@ lean_object* l_Lean_Elab_Term_mkAuxName___boxed(lean_object*, lean_object*, lean lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabStrLit(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___private_Lean_Elab_Term_23__mkFreshLevelMVars___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_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___boxed(lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_isDefEqNoConstantApprox___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5; lean_object* l_Lean_Elab_Term_resolveName___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_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*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_15__isLambdaWithImplicit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__6; +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__1; lean_object* l_Lean_Elab_Term_mkAuxName___closed__1; +lean_object* l___private_Lean_Elab_Term_25__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -874,9 +875,10 @@ lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Ter lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__1; lean_object* l_Lean_Elab_Term_mkTacticMVar___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_throwTypeMismatchError___rarg___closed__1; +lean_object* l___private_Lean_Elab_Term_17__elabOptLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTacticMVar___closed__1; -lean_object* l___private_Lean_Elab_Term_26__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_throwTypeMismatchError___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* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_expandListLit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; lean_object* l_Lean_addMessageDataContextFull___at_Lean_Meta_Lean_AddMessageDataContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -896,6 +898,7 @@ lean_object* l_Lean_Elab_Term_monadLog___closed__4; lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__1; lean_object* l_Lean_Elab_Term_MVarErrorContext_logError___closed__3; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__5___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_25__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_6__expandCDot(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -915,7 +918,6 @@ lean_object* l_Lean_Elab_Term_TermElabM_toIO(lean_object*); lean_object* l_Lean_Elab_Term_expandCDot_x3f(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; lean_object* l_List_foldlM___main___at_Lean_Elab_Term_logUnassignedUsingErrorContext___spec__5(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_Term_18__elabOptLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabBadCDot(lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -923,12 +925,10 @@ lean_object* l_Lean_Elab_Term_mkAuxName___closed__2; lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_tryLiftAndCoe___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNumLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_26__regTraceClasses(lean_object*); lean_object* l___private_Lean_Elab_Term_7__isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__6; lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__3; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_23__mkFreshLevelMVars___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_Term_expandArrayLit___closed__5; uint8_t l_Lean_Syntax_isIdent(lean_object*); extern lean_object* l_Lean_Elab_registerPostponeId___closed__1; @@ -26139,42 +26139,42 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_Term_17__mkAuxNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___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_4; uint8_t x_5; -lean_inc(x_3); -lean_inc(x_2); -x_4 = l_Lean_Name_appendIndexAfter(x_2, x_3); -lean_inc(x_1); -x_5 = l_Lean_Environment_contains(x_1, x_4); -if (x_5 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; +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_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_13, x_1, x_2); +lean_ctor_set(x_10, 0, x_14); +return x_10; } else { -lean_object* x_6; lean_object* x_7; -lean_dec(x_4); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_add(x_3, x_6); -lean_dec(x_3); -x_3 = x_7; -goto _start; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_17, x_1, x_2); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; } } } -lean_object* l___private_Lean_Elab_Term_17__mkAuxNameAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Lean_Elab_Term_17__mkAuxNameAux___main(x_1, x_2, x_3); -return x_4; -} -} lean_object* _init_l_Lean_Elab_Term_mkAuxName___closed__1() { _start: { @@ -26206,67 +26206,44 @@ return x_2; lean_object* l_Lean_Elab_Term_mkAuxName(lean_object* x_1, lean_object* x_2, 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; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_2, 3); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) +lean_object* x_9; +x_9 = lean_ctor_get(x_2, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_dec(x_1); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Elab_Term_mkAuxName___closed__3; -x_13 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_13; +x_10 = l_Lean_Elab_Term_mkAuxName___closed__3; +x_11 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_11; } else { -uint8_t x_14; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_Lean_Name_append___main(x_12, x_1); +lean_dec(x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__1(x_13, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); -x_14 = !lean_is_exclusive(x_9); -if (x_14 == 0) +return x_15; +} +} +} +lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_10, 0); -lean_inc(x_16); -lean_dec(x_10); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Name_append___main(x_16, x_1); -lean_dec(x_16); -x_19 = lean_unsigned_to_nat(1u); -x_20 = l___private_Lean_Elab_Term_17__mkAuxNameAux___main(x_17, x_18, x_19); -lean_ctor_set(x_9, 0, x_20); -return x_9; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_21 = lean_ctor_get(x_9, 0); -x_22 = lean_ctor_get(x_9, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_9); -x_23 = lean_ctor_get(x_10, 0); -lean_inc(x_23); -lean_dec(x_10); -x_24 = lean_ctor_get(x_21, 0); -lean_inc(x_24); -lean_dec(x_21); -x_25 = l_Lean_Name_append___main(x_23, x_1); -lean_dec(x_23); -x_26 = lean_unsigned_to_nat(1u); -x_27 = l___private_Lean_Elab_Term_17__mkAuxNameAux___main(x_24, x_25, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_22); -return x_28; -} -} +lean_object* x_10; +x_10 = l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___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_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; } } lean_object* l_Lean_Elab_Term_mkAuxName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -26354,7 +26331,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Term_18__elabOptLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_17__elabOptLevel(lean_object* x_1, lean_object* x_2, 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; @@ -26379,11 +26356,11 @@ return x_14; } } } -lean_object* l___private_Lean_Elab_Term_18__elabOptLevel___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_17__elabOptLevel___boxed(lean_object* x_1, lean_object* x_2, 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_Term_18__elabOptLevel(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Term_17__elabOptLevel(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); @@ -26399,7 +26376,7 @@ _start: lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_unsigned_to_nat(1u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_12 = l___private_Lean_Elab_Term_18__elabOptLevel(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_Term_17__elabOptLevel(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { @@ -26502,7 +26479,7 @@ _start: lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_unsigned_to_nat(1u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_12 = l___private_Lean_Elab_Term_18__elabOptLevel(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_Term_17__elabOptLevel(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { @@ -27004,7 +26981,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1() { _start: { lean_object* x_1; @@ -27012,22 +26989,22 @@ x_1 = lean_mk_string("Prod.mk"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1; +x_1 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1; +x_1 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2; +x_3 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -27035,7 +27012,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -27047,19 +27024,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4; +x_2 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main(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; @@ -27090,8 +27067,8 @@ lean_inc(x_14); x_15 = l_Lean_prodToExpr___rarg___lambda__1___closed__4; x_16 = l_Lean_addMacroScope(x_14, x_15, x_13); x_17 = l_Lean_SourceInfo_inhabited___closed__1; -x_18 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3; -x_19 = l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5; +x_18 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3; +x_19 = l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5; x_20 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_20, 0, x_17); lean_ctor_set(x_20, 1, x_18); @@ -27116,28 +27093,28 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___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_Term_19__mkPairsAux___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Term_18__mkPairsAux___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux(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_Term_19__mkPairsAux___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Term_18__mkPairsAux___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Term_19__mkPairsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___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_Term_19__mkPairsAux(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Term_18__mkPairsAux(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } @@ -27151,7 +27128,7 @@ x_5 = lean_unsigned_to_nat(1u); x_6 = lean_nat_sub(x_4, x_5); lean_dec(x_4); x_7 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_1); -x_8 = l___private_Lean_Elab_Term_19__mkPairsAux___main(x_1, x_6, x_7, x_2, x_3); +x_8 = l___private_Lean_Elab_Term_18__mkPairsAux___main(x_1, x_6, x_7, x_2, x_3); return x_8; } } @@ -27164,7 +27141,7 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -27175,15 +27152,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg), 1, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg), 1, 0); return x_7; } } -lean_object* l___private_Lean_Elab_Term_20__elabCDot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Term_19__elabCDot(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_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; @@ -27340,7 +27317,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___rarg(x_47); +x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___rarg(x_47); x_83 = !lean_is_exclusive(x_82); if (x_83 == 0) { @@ -27443,11 +27420,11 @@ return x_36; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_20__elabCDot___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_19__elabCDot___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -27798,7 +27775,7 @@ return x_55; else { lean_object* x_56; -x_56 = l___private_Lean_Elab_Term_20__elabCDot(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_56 = l___private_Lean_Elab_Term_19__elabCDot(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_56; } } @@ -28018,7 +27995,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_116); -x_117 = l___private_Lean_Elab_Term_20__elabCDot(x_44, x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_115); +x_117 = l___private_Lean_Elab_Term_19__elabCDot(x_44, x_116, x_3, x_4, x_5, x_6, x_7, x_8, x_115); if (lean_obj_tag(x_117) == 0) { lean_object* x_118; lean_object* x_119; lean_object* x_120; @@ -28479,7 +28456,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Term_21__resolveLocalNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Term_20__resolveLocalNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -28549,15 +28526,15 @@ return x_17; } } } -lean_object* l___private_Lean_Elab_Term_21__resolveLocalNameAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Term_20__resolveLocalNameAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_Term_21__resolveLocalNameAux___main(x_1, x_2, x_3); +x_4 = l___private_Lean_Elab_Term_20__resolveLocalNameAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Lean_Elab_Term_22__resolveLocalName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_21__resolveLocalName(lean_object* x_1, lean_object* x_2, 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; @@ -28565,18 +28542,18 @@ x_9 = lean_ctor_get(x_4, 1); lean_inc(x_9); lean_dec(x_4); x_10 = lean_box(0); -x_11 = l___private_Lean_Elab_Term_21__resolveLocalNameAux___main(x_9, x_1, x_10); +x_11 = l___private_Lean_Elab_Term_20__resolveLocalNameAux___main(x_9, x_1, x_10); x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_8); return x_12; } } -lean_object* l___private_Lean_Elab_Term_22__resolveLocalName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_21__resolveLocalName___boxed(lean_object* x_1, lean_object* x_2, 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_Term_22__resolveLocalName(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Term_21__resolveLocalName(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); @@ -28594,7 +28571,7 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; x_9 = lean_ctor_get(x_1, 2); lean_inc(x_9); lean_dec(x_1); -x_10 = l___private_Lean_Elab_Term_22__resolveLocalName(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Lean_Elab_Term_21__resolveLocalName(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_11) == 0) @@ -28783,7 +28760,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_23__mkFreshLevelMVars___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_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___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; @@ -28822,22 +28799,22 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Term_23__mkFreshLevelMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object* x_1, lean_object* x_2, 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; x_9 = lean_box(0); lean_inc(x_1); -x_10 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_23__mkFreshLevelMVars___spec__1(x_1, x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(x_1, x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_1); return x_10; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_23__mkFreshLevelMVars___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_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___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_Nat_foldMAux___main___at___private_Lean_Elab_Term_23__mkFreshLevelMVars___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_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___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); @@ -28847,11 +28824,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Term_23__mkFreshLevelMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars___boxed(lean_object* x_1, lean_object* x_2, 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_Term_23__mkFreshLevelMVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Term_22__mkFreshLevelMVars(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); @@ -29006,7 +28983,7 @@ lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_nat_sub(x_15, x_16); lean_dec(x_16); lean_dec(x_15); -x_19 = l___private_Lean_Elab_Term_23__mkFreshLevelMVars(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_19 = l___private_Lean_Elab_Term_22__mkFreshLevelMVars(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) { @@ -29098,7 +29075,7 @@ lean_dec(x_4); return x_10; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___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_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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) @@ -29316,7 +29293,7 @@ return x_52; } } } -lean_object* l___private_Lean_Elab_Term_24__mkConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Term_23__mkConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -29325,15 +29302,15 @@ x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); x_12 = lean_box(0); -x_13 = l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___spec__1(x_2, x_12, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(x_2, x_12, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_11); return x_13; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___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_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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_foldlM___main___at___private_Lean_Elab_Term_24__mkConsts___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_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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); @@ -29342,11 +29319,11 @@ lean_dec(x_5); return x_11; } } -lean_object* l___private_Lean_Elab_Term_24__mkConsts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_Elab_Term_23__mkConsts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Term_24__mkConsts(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Term_23__mkConsts(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); @@ -29506,7 +29483,7 @@ _start: lean_object* x_11; lean_object* x_12; lean_inc(x_6); lean_inc(x_1); -x_11 = l___private_Lean_Elab_Term_22__resolveLocalName(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_Term_21__resolveLocalName(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); if (lean_obj_tag(x_12) == 0) @@ -29520,7 +29497,7 @@ if (x_14 == 0) { lean_object* x_15; lean_dec(x_1); -x_15 = l___private_Lean_Elab_Term_24__mkConsts(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_15 = l___private_Lean_Elab_Term_23__mkConsts(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_6); return x_15; } @@ -29540,7 +29517,7 @@ if (x_19 == 0) { lean_object* x_20; lean_dec(x_1); -x_20 = l___private_Lean_Elab_Term_24__mkConsts(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_20 = l___private_Lean_Elab_Term_23__mkConsts(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); lean_dec(x_6); return x_20; } @@ -30668,7 +30645,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l___private_Lean_Elab_Term_25__mkSomeContext___closed__1() { +lean_object* _init_l___private_Lean_Elab_Term_24__mkSomeContext___closed__1() { _start: { lean_object* x_1; @@ -30676,13 +30653,13 @@ x_1 = lean_mk_string(""); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Term_25__mkSomeContext___closed__2() { +lean_object* _init_l___private_Lean_Elab_Term_24__mkSomeContext___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; x_1 = lean_box(0); x_2 = lean_box(0); -x_3 = l___private_Lean_Elab_Term_25__mkSomeContext___closed__1; +x_3 = l___private_Lean_Elab_Term_24__mkSomeContext___closed__1; x_4 = l_Lean_FileMap_Inhabited___closed__1; x_5 = lean_box(0); x_6 = l_Lean_firstFrontendMacroScope; @@ -30702,11 +30679,11 @@ lean_ctor_set_uint8(x_8, sizeof(void*)*8 + 2, x_7); return x_8; } } -lean_object* _init_l___private_Lean_Elab_Term_25__mkSomeContext() { +lean_object* _init_l___private_Lean_Elab_Term_24__mkSomeContext() { _start: { lean_object* x_1; -x_1 = l___private_Lean_Elab_Term_25__mkSomeContext___closed__2; +x_1 = l___private_Lean_Elab_Term_24__mkSomeContext___closed__2; return x_1; } } @@ -31101,7 +31078,7 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); lean_dec(x_38); -x_41 = l___private_Lean_Elab_Term_25__mkSomeContext; +x_41 = l___private_Lean_Elab_Term_24__mkSomeContext; x_42 = l_Lean_Meta_hasEval___rarg___closed__2; lean_inc(x_31); lean_inc(x_26); @@ -31262,7 +31239,7 @@ x_8 = l_Lean_Elab_Term_MetaHasEval___rarg(x_1, x_2, x_3, x_4, x_7, x_6); return x_8; } } -lean_object* _init_l___private_Lean_Elab_Term_26__regTraceClasses___closed__1() { +lean_object* _init_l___private_Lean_Elab_Term_25__regTraceClasses___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -31272,7 +31249,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Term_26__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Term_25__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -31284,7 +31261,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Lean_Elab_Term_26__regTraceClasses___closed__1; +x_5 = l___private_Lean_Elab_Term_25__regTraceClasses___closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -31822,16 +31799,16 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__3); res = l___regBuiltin_Lean_Elab_Term_elabByTactic(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1 = _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__1); -l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2 = _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__2); -l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3 = _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__3); -l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4 = _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__4); -l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5 = _init_l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Term_19__mkPairsAux___main___closed__5); +l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1 = _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1); +l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2 = _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2); +l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3 = _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3); +l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4 = _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__4); +l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5 = _init_l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5); l_Lean_Elab_Term_elabParen___closed__1 = _init_l_Lean_Elab_Term_elabParen___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabParen___closed__1); l_Lean_Elab_Term_elabParen___closed__2 = _init_l_Lean_Elab_Term_elabParen___closed__2(); @@ -31948,15 +31925,15 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__3); res = l___regBuiltin_Lean_Elab_Term_elabQuotedName(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Term_25__mkSomeContext___closed__1 = _init_l___private_Lean_Elab_Term_25__mkSomeContext___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Term_25__mkSomeContext___closed__1); -l___private_Lean_Elab_Term_25__mkSomeContext___closed__2 = _init_l___private_Lean_Elab_Term_25__mkSomeContext___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Term_25__mkSomeContext___closed__2); -l___private_Lean_Elab_Term_25__mkSomeContext = _init_l___private_Lean_Elab_Term_25__mkSomeContext(); -lean_mark_persistent(l___private_Lean_Elab_Term_25__mkSomeContext); -l___private_Lean_Elab_Term_26__regTraceClasses___closed__1 = _init_l___private_Lean_Elab_Term_26__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Term_26__regTraceClasses___closed__1); -res = l___private_Lean_Elab_Term_26__regTraceClasses(lean_io_mk_world()); +l___private_Lean_Elab_Term_24__mkSomeContext___closed__1 = _init_l___private_Lean_Elab_Term_24__mkSomeContext___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Term_24__mkSomeContext___closed__1); +l___private_Lean_Elab_Term_24__mkSomeContext___closed__2 = _init_l___private_Lean_Elab_Term_24__mkSomeContext___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Term_24__mkSomeContext___closed__2); +l___private_Lean_Elab_Term_24__mkSomeContext = _init_l___private_Lean_Elab_Term_24__mkSomeContext(); +lean_mark_persistent(l___private_Lean_Elab_Term_24__mkSomeContext); +l___private_Lean_Elab_Term_25__regTraceClasses___closed__1 = _init_l___private_Lean_Elab_Term_25__regTraceClasses___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Term_25__regTraceClasses___closed__1); +res = l___private_Lean_Elab_Term_25__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index 762cdcb2cb..21d29a23d1 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -31,7 +31,6 @@ lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*); uint8_t l_Lean_Expr_isCharLit(lean_object*); lean_object* l_Lean_Expr_letName_x21(lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); -lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l_Lean_mkFreshMVarId___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVar___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkThunkType___closed__2; @@ -507,6 +506,7 @@ lean_object* l___private_Lean_Expr_7__betaRevAux___boxed(lean_object*, lean_obje uint8_t l_Lean_Expr_binderInfo(lean_object*); size_t lean_usize_mix_hash(size_t, size_t); uint8_t l_Lean_Expr_isOptParam(lean_object*); +uint8_t l_Lean_Expr_isAtomic(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__12; @@ -534,6 +534,7 @@ lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lea lean_object* l_Lean_mkDecIsFalse___closed__3; lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object*); lean_object* l___private_Lean_Expr_6__mkAppRevRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_isAtomic___boxed(lean_object*); lean_object* l_Lean_Expr_Data_nonDepLet___boxed(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Expr_7__betaRevAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -3570,158 +3571,91 @@ return x_76; lean_object* l_Lean_mkLambda(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t 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; uint8_t x_17; uint8_t x_18; uint8_t x_19; -x_5 = l_Lean_Name_eraseMacroScopes(x_1); -x_6 = 31; -x_7 = l_Lean_Expr_hash(x_3); -x_8 = l_Lean_Expr_hash(x_4); -x_9 = lean_usize_mix_hash(x_7, x_8); -x_10 = lean_usize_mix_hash(x_6, x_9); -x_11 = l_Lean_Expr_looseBVarRange(x_3); -x_12 = l_Lean_Expr_looseBVarRange(x_4); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_12, x_13); -lean_dec(x_12); -x_15 = l_Nat_max(x_11, x_14); -lean_dec(x_14); +size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; +x_5 = 31; +x_6 = l_Lean_Expr_hash(x_3); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_mix_hash(x_6, x_7); +x_9 = lean_usize_mix_hash(x_5, x_8); +x_10 = l_Lean_Expr_looseBVarRange(x_3); +x_11 = l_Lean_Expr_looseBVarRange(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_11, x_12); lean_dec(x_11); -x_16 = l_Lean_Expr_hasFVar(x_3); -x_17 = l_Lean_Expr_hasExprMVar(x_3); -x_18 = l_Lean_Expr_hasLevelMVar(x_3); -x_19 = l_Lean_Expr_hasLevelParam(x_3); +x_14 = l_Nat_max(x_10, x_13); +lean_dec(x_13); +lean_dec(x_10); +x_15 = l_Lean_Expr_hasFVar(x_3); +x_16 = l_Lean_Expr_hasExprMVar(x_3); +x_17 = l_Lean_Expr_hasLevelMVar(x_3); +x_18 = l_Lean_Expr_hasLevelParam(x_3); +if (x_15 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Expr_hasFVar(x_4); if (x_16 == 0) { uint8_t x_20; -x_20 = l_Lean_Expr_hasFVar(x_4); +x_20 = l_Lean_Expr_hasExprMVar(x_4); if (x_17 == 0) { uint8_t x_21; -x_21 = l_Lean_Expr_hasExprMVar(x_4); +x_21 = l_Lean_Expr_hasLevelMVar(x_4); if (x_18 == 0) { -uint8_t x_22; -x_22 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_23; uint64_t x_24; lean_object* x_25; -x_23 = l_Lean_Expr_hasLevelParam(x_4); -x_24 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_23, x_2); -lean_dec(x_15); -x_25 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_25, 0, x_5); -lean_ctor_set(x_25, 1, x_3); -lean_ctor_set(x_25, 2, x_4); -lean_ctor_set_uint64(x_25, sizeof(void*)*3, x_24); -return x_25; +uint8_t x_22; uint64_t x_23; lean_object* x_24; +x_22 = l_Lean_Expr_hasLevelParam(x_4); +x_23 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_21, x_22, x_2); +lean_dec(x_14); +x_24 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_4); +lean_ctor_set_uint64(x_24, sizeof(void*)*3, x_23); +return x_24; } else { -uint8_t x_26; uint64_t x_27; lean_object* x_28; -x_26 = 1; -x_27 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_26, x_2); -lean_dec(x_15); -x_28 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_28, 0, x_5); -lean_ctor_set(x_28, 1, x_3); -lean_ctor_set(x_28, 2, x_4); -lean_ctor_set_uint64(x_28, sizeof(void*)*3, x_27); -return x_28; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_29; uint8_t x_30; uint64_t x_31; lean_object* x_32; -x_29 = l_Lean_Expr_hasLevelParam(x_4); -x_30 = 1; -x_31 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_30, x_29, x_2); -lean_dec(x_15); -x_32 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_32, 0, x_5); -lean_ctor_set(x_32, 1, x_3); -lean_ctor_set(x_32, 2, x_4); -lean_ctor_set_uint64(x_32, sizeof(void*)*3, x_31); -return x_32; -} -else -{ -uint8_t x_33; uint64_t x_34; lean_object* x_35; -x_33 = 1; -x_34 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_33, x_33, x_2); -lean_dec(x_15); -x_35 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_35, 0, x_5); -lean_ctor_set(x_35, 1, x_3); -lean_ctor_set(x_35, 2, x_4); -lean_ctor_set_uint64(x_35, sizeof(void*)*3, x_34); -return x_35; -} +uint8_t x_25; uint64_t x_26; lean_object* x_27; +x_25 = 1; +x_26 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_21, x_25, x_2); +lean_dec(x_14); +x_27 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_3); +lean_ctor_set(x_27, 2, x_4); +lean_ctor_set_uint64(x_27, sizeof(void*)*3, x_26); +return x_27; } } else { if (x_18 == 0) { -uint8_t x_36; -x_36 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_37; uint8_t x_38; uint64_t x_39; lean_object* x_40; -x_37 = l_Lean_Expr_hasLevelParam(x_4); -x_38 = 1; -x_39 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_38, x_36, x_37, x_2); -lean_dec(x_15); -x_40 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_40, 0, x_5); -lean_ctor_set(x_40, 1, x_3); -lean_ctor_set(x_40, 2, x_4); -lean_ctor_set_uint64(x_40, sizeof(void*)*3, x_39); -return x_40; +uint8_t x_28; uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_28 = l_Lean_Expr_hasLevelParam(x_4); +x_29 = 1; +x_30 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_29, x_28, x_2); +lean_dec(x_14); +x_31 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_3); +lean_ctor_set(x_31, 2, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*3, x_30); +return x_31; } else { -uint8_t x_41; uint64_t x_42; lean_object* x_43; -x_41 = 1; -x_42 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_41, x_36, x_41, x_2); -lean_dec(x_15); -x_43 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_43, 0, x_5); -lean_ctor_set(x_43, 1, x_3); -lean_ctor_set(x_43, 2, x_4); -lean_ctor_set_uint64(x_43, sizeof(void*)*3, x_42); -return x_43; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_44; uint8_t x_45; uint64_t x_46; lean_object* x_47; -x_44 = l_Lean_Expr_hasLevelParam(x_4); -x_45 = 1; -x_46 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_45, x_45, x_44, x_2); -lean_dec(x_15); -x_47 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_47, 0, x_5); -lean_ctor_set(x_47, 1, x_3); -lean_ctor_set(x_47, 2, x_4); -lean_ctor_set_uint64(x_47, sizeof(void*)*3, x_46); -return x_47; -} -else -{ -uint8_t x_48; uint64_t x_49; lean_object* x_50; -x_48 = 1; -x_49 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_48, x_48, x_48, x_2); -lean_dec(x_15); -x_50 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_50, 0, x_5); -lean_ctor_set(x_50, 1, x_3); -lean_ctor_set(x_50, 2, x_4); -lean_ctor_set_uint64(x_50, sizeof(void*)*3, x_49); -return x_50; -} +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_32, x_32, x_2); +lean_dec(x_14); +x_34 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_3); +lean_ctor_set(x_34, 2, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*3, x_33); +return x_34; } } } @@ -3729,133 +3663,199 @@ else { if (x_17 == 0) { +uint8_t x_35; +x_35 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_36; uint8_t x_37; uint64_t x_38; lean_object* x_39; +x_36 = l_Lean_Expr_hasLevelParam(x_4); +x_37 = 1; +x_38 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_37, x_35, x_36, x_2); +lean_dec(x_14); +x_39 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set_uint64(x_39, sizeof(void*)*3, x_38); +return x_39; +} +else +{ +uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_40 = 1; +x_41 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_40, x_35, x_40, x_2); +lean_dec(x_14); +x_42 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_3); +lean_ctor_set(x_42, 2, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*3, x_41); +return x_42; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_43; uint8_t x_44; uint64_t x_45; lean_object* x_46; +x_43 = l_Lean_Expr_hasLevelParam(x_4); +x_44 = 1; +x_45 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_44, x_44, x_43, x_2); +lean_dec(x_14); +x_46 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_3); +lean_ctor_set(x_46, 2, x_4); +lean_ctor_set_uint64(x_46, sizeof(void*)*3, x_45); +return x_46; +} +else +{ +uint8_t x_47; uint64_t x_48; lean_object* x_49; +x_47 = 1; +x_48 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_47, x_47, x_47, x_2); +lean_dec(x_14); +x_49 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_4); +lean_ctor_set_uint64(x_49, sizeof(void*)*3, x_48); +return x_49; +} +} +} +} +else +{ +if (x_16 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ uint8_t x_51; -x_51 = l_Lean_Expr_hasExprMVar(x_4); +x_51 = l_Lean_Expr_hasLevelMVar(x_4); if (x_18 == 0) { -uint8_t x_52; -x_52 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; -x_53 = l_Lean_Expr_hasLevelParam(x_4); -x_54 = 1; -x_55 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_54, x_51, x_52, x_53, x_2); -lean_dec(x_15); -x_56 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_56, 0, x_5); -lean_ctor_set(x_56, 1, x_3); -lean_ctor_set(x_56, 2, x_4); -lean_ctor_set_uint64(x_56, sizeof(void*)*3, x_55); -return x_56; +uint8_t x_52; uint8_t x_53; uint64_t x_54; lean_object* x_55; +x_52 = l_Lean_Expr_hasLevelParam(x_4); +x_53 = 1; +x_54 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_53, x_50, x_51, x_52, x_2); +lean_dec(x_14); +x_55 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_55, 1, x_3); +lean_ctor_set(x_55, 2, x_4); +lean_ctor_set_uint64(x_55, sizeof(void*)*3, x_54); +return x_55; } else { -uint8_t x_57; uint64_t x_58; lean_object* x_59; -x_57 = 1; -x_58 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_57, x_51, x_52, x_57, x_2); -lean_dec(x_15); -x_59 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_59, 0, x_5); -lean_ctor_set(x_59, 1, x_3); -lean_ctor_set(x_59, 2, x_4); -lean_ctor_set_uint64(x_59, sizeof(void*)*3, x_58); -return x_59; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_60; uint8_t x_61; uint64_t x_62; lean_object* x_63; -x_60 = l_Lean_Expr_hasLevelParam(x_4); -x_61 = 1; -x_62 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_61, x_51, x_61, x_60, x_2); -lean_dec(x_15); -x_63 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_63, 0, x_5); -lean_ctor_set(x_63, 1, x_3); -lean_ctor_set(x_63, 2, x_4); -lean_ctor_set_uint64(x_63, sizeof(void*)*3, x_62); -return x_63; -} -else -{ -uint8_t x_64; uint64_t x_65; lean_object* x_66; -x_64 = 1; -x_65 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_64, x_51, x_64, x_64, x_2); -lean_dec(x_15); -x_66 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_66, 0, x_5); -lean_ctor_set(x_66, 1, x_3); -lean_ctor_set(x_66, 2, x_4); -lean_ctor_set_uint64(x_66, sizeof(void*)*3, x_65); -return x_66; -} +uint8_t x_56; uint64_t x_57; lean_object* x_58; +x_56 = 1; +x_57 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_56, x_50, x_51, x_56, x_2); +lean_dec(x_14); +x_58 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_3); +lean_ctor_set(x_58, 2, x_4); +lean_ctor_set_uint64(x_58, sizeof(void*)*3, x_57); +return x_58; } } else { if (x_18 == 0) { -uint8_t x_67; -x_67 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_68; uint8_t x_69; uint64_t x_70; lean_object* x_71; -x_68 = l_Lean_Expr_hasLevelParam(x_4); -x_69 = 1; -x_70 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_69, x_69, x_67, x_68, x_2); -lean_dec(x_15); -x_71 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_71, 0, x_5); -lean_ctor_set(x_71, 1, x_3); -lean_ctor_set(x_71, 2, x_4); -lean_ctor_set_uint64(x_71, sizeof(void*)*3, x_70); -return x_71; +uint8_t x_59; uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_59 = l_Lean_Expr_hasLevelParam(x_4); +x_60 = 1; +x_61 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_60, x_50, x_60, x_59, x_2); +lean_dec(x_14); +x_62 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_3); +lean_ctor_set(x_62, 2, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*3, x_61); +return x_62; } else { -uint8_t x_72; uint64_t x_73; lean_object* x_74; -x_72 = 1; -x_73 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_72, x_72, x_67, x_72, x_2); -lean_dec(x_15); -x_74 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_74, 0, x_5); -lean_ctor_set(x_74, 1, x_3); -lean_ctor_set(x_74, 2, x_4); -lean_ctor_set_uint64(x_74, sizeof(void*)*3, x_73); -return x_74; +uint8_t x_63; uint64_t x_64; lean_object* x_65; +x_63 = 1; +x_64 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_63, x_50, x_63, x_63, x_2); +lean_dec(x_14); +x_65 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_65, 0, x_1); +lean_ctor_set(x_65, 1, x_3); +lean_ctor_set(x_65, 2, x_4); +lean_ctor_set_uint64(x_65, sizeof(void*)*3, x_64); +return x_65; +} } } else { -if (x_19 == 0) +if (x_17 == 0) { -uint8_t x_75; uint8_t x_76; uint64_t x_77; lean_object* x_78; -x_75 = l_Lean_Expr_hasLevelParam(x_4); -x_76 = 1; -x_77 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_76, x_76, x_76, x_75, x_2); -lean_dec(x_15); -x_78 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_78, 0, x_5); -lean_ctor_set(x_78, 1, x_3); -lean_ctor_set(x_78, 2, x_4); -lean_ctor_set_uint64(x_78, sizeof(void*)*3, x_77); -return x_78; +uint8_t x_66; +x_66 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_67; uint8_t x_68; uint64_t x_69; lean_object* x_70; +x_67 = l_Lean_Expr_hasLevelParam(x_4); +x_68 = 1; +x_69 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_68, x_68, x_66, x_67, x_2); +lean_dec(x_14); +x_70 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_3); +lean_ctor_set(x_70, 2, x_4); +lean_ctor_set_uint64(x_70, sizeof(void*)*3, x_69); +return x_70; } else { -uint8_t x_79; uint64_t x_80; lean_object* x_81; -x_79 = 1; -x_80 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_79, x_79, x_79, x_79, x_2); -lean_dec(x_15); -x_81 = lean_alloc_ctor(6, 3, 8); -lean_ctor_set(x_81, 0, x_5); -lean_ctor_set(x_81, 1, x_3); -lean_ctor_set(x_81, 2, x_4); -lean_ctor_set_uint64(x_81, sizeof(void*)*3, x_80); -return x_81; +uint8_t x_71; uint64_t x_72; lean_object* x_73; +x_71 = 1; +x_72 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_71, x_71, x_66, x_71, x_2); +lean_dec(x_14); +x_73 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_3); +lean_ctor_set(x_73, 2, x_4); +lean_ctor_set_uint64(x_73, sizeof(void*)*3, x_72); +return x_73; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_74; uint8_t x_75; uint64_t x_76; lean_object* x_77; +x_74 = l_Lean_Expr_hasLevelParam(x_4); +x_75 = 1; +x_76 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_75, x_75, x_75, x_74, x_2); +lean_dec(x_14); +x_77 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_3); +lean_ctor_set(x_77, 2, x_4); +lean_ctor_set_uint64(x_77, sizeof(void*)*3, x_76); +return x_77; +} +else +{ +uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_78 = 1; +x_79 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_78, x_78, x_78, x_78, x_2); +lean_dec(x_14); +x_80 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_3); +lean_ctor_set(x_80, 2, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*3, x_79); +return x_80; } } } @@ -3869,165 +3869,97 @@ uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); x_6 = l_Lean_mkLambda(x_1, x_5, x_3, x_4); -lean_dec(x_1); return x_6; } } lean_object* l_Lean_mkForall(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t 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; uint8_t x_17; uint8_t x_18; uint8_t x_19; -x_5 = l_Lean_Name_eraseMacroScopes(x_1); -x_6 = 37; -x_7 = l_Lean_Expr_hash(x_3); -x_8 = l_Lean_Expr_hash(x_4); -x_9 = lean_usize_mix_hash(x_7, x_8); -x_10 = lean_usize_mix_hash(x_6, x_9); -x_11 = l_Lean_Expr_looseBVarRange(x_3); -x_12 = l_Lean_Expr_looseBVarRange(x_4); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_12, x_13); -lean_dec(x_12); -x_15 = l_Nat_max(x_11, x_14); -lean_dec(x_14); +size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; +x_5 = 37; +x_6 = l_Lean_Expr_hash(x_3); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_mix_hash(x_6, x_7); +x_9 = lean_usize_mix_hash(x_5, x_8); +x_10 = l_Lean_Expr_looseBVarRange(x_3); +x_11 = l_Lean_Expr_looseBVarRange(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_11, x_12); lean_dec(x_11); -x_16 = l_Lean_Expr_hasFVar(x_3); -x_17 = l_Lean_Expr_hasExprMVar(x_3); -x_18 = l_Lean_Expr_hasLevelMVar(x_3); -x_19 = l_Lean_Expr_hasLevelParam(x_3); +x_14 = l_Nat_max(x_10, x_13); +lean_dec(x_13); +lean_dec(x_10); +x_15 = l_Lean_Expr_hasFVar(x_3); +x_16 = l_Lean_Expr_hasExprMVar(x_3); +x_17 = l_Lean_Expr_hasLevelMVar(x_3); +x_18 = l_Lean_Expr_hasLevelParam(x_3); +if (x_15 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Expr_hasFVar(x_4); if (x_16 == 0) { uint8_t x_20; -x_20 = l_Lean_Expr_hasFVar(x_4); +x_20 = l_Lean_Expr_hasExprMVar(x_4); if (x_17 == 0) { uint8_t x_21; -x_21 = l_Lean_Expr_hasExprMVar(x_4); +x_21 = l_Lean_Expr_hasLevelMVar(x_4); if (x_18 == 0) { -uint8_t x_22; -x_22 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_23; uint64_t x_24; lean_object* x_25; -x_23 = l_Lean_Expr_hasLevelParam(x_4); -x_24 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_23, x_2); -lean_dec(x_15); -x_25 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_25, 0, x_5); -lean_ctor_set(x_25, 1, x_3); -lean_ctor_set(x_25, 2, x_4); -lean_ctor_set_uint64(x_25, sizeof(void*)*3, x_24); -return x_25; +uint8_t x_22; uint64_t x_23; lean_object* x_24; +x_22 = l_Lean_Expr_hasLevelParam(x_4); +x_23 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_21, x_22, x_2); +lean_dec(x_14); +x_24 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_4); +lean_ctor_set_uint64(x_24, sizeof(void*)*3, x_23); +return x_24; } else { -uint8_t x_26; uint64_t x_27; lean_object* x_28; -x_26 = 1; -x_27 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_26, x_2); -lean_dec(x_15); -x_28 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_28, 0, x_5); -lean_ctor_set(x_28, 1, x_3); -lean_ctor_set(x_28, 2, x_4); -lean_ctor_set_uint64(x_28, sizeof(void*)*3, x_27); -return x_28; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_29; uint8_t x_30; uint64_t x_31; lean_object* x_32; -x_29 = l_Lean_Expr_hasLevelParam(x_4); -x_30 = 1; -x_31 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_30, x_29, x_2); -lean_dec(x_15); -x_32 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_32, 0, x_5); -lean_ctor_set(x_32, 1, x_3); -lean_ctor_set(x_32, 2, x_4); -lean_ctor_set_uint64(x_32, sizeof(void*)*3, x_31); -return x_32; -} -else -{ -uint8_t x_33; uint64_t x_34; lean_object* x_35; -x_33 = 1; -x_34 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_33, x_33, x_2); -lean_dec(x_15); -x_35 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_35, 0, x_5); -lean_ctor_set(x_35, 1, x_3); -lean_ctor_set(x_35, 2, x_4); -lean_ctor_set_uint64(x_35, sizeof(void*)*3, x_34); -return x_35; -} +uint8_t x_25; uint64_t x_26; lean_object* x_27; +x_25 = 1; +x_26 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_21, x_25, x_2); +lean_dec(x_14); +x_27 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_3); +lean_ctor_set(x_27, 2, x_4); +lean_ctor_set_uint64(x_27, sizeof(void*)*3, x_26); +return x_27; } } else { if (x_18 == 0) { -uint8_t x_36; -x_36 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_37; uint8_t x_38; uint64_t x_39; lean_object* x_40; -x_37 = l_Lean_Expr_hasLevelParam(x_4); -x_38 = 1; -x_39 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_38, x_36, x_37, x_2); -lean_dec(x_15); -x_40 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_40, 0, x_5); -lean_ctor_set(x_40, 1, x_3); -lean_ctor_set(x_40, 2, x_4); -lean_ctor_set_uint64(x_40, sizeof(void*)*3, x_39); -return x_40; +uint8_t x_28; uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_28 = l_Lean_Expr_hasLevelParam(x_4); +x_29 = 1; +x_30 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_29, x_28, x_2); +lean_dec(x_14); +x_31 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_3); +lean_ctor_set(x_31, 2, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*3, x_30); +return x_31; } else { -uint8_t x_41; uint64_t x_42; lean_object* x_43; -x_41 = 1; -x_42 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_41, x_36, x_41, x_2); -lean_dec(x_15); -x_43 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_43, 0, x_5); -lean_ctor_set(x_43, 1, x_3); -lean_ctor_set(x_43, 2, x_4); -lean_ctor_set_uint64(x_43, sizeof(void*)*3, x_42); -return x_43; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_44; uint8_t x_45; uint64_t x_46; lean_object* x_47; -x_44 = l_Lean_Expr_hasLevelParam(x_4); -x_45 = 1; -x_46 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_45, x_45, x_44, x_2); -lean_dec(x_15); -x_47 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_47, 0, x_5); -lean_ctor_set(x_47, 1, x_3); -lean_ctor_set(x_47, 2, x_4); -lean_ctor_set_uint64(x_47, sizeof(void*)*3, x_46); -return x_47; -} -else -{ -uint8_t x_48; uint64_t x_49; lean_object* x_50; -x_48 = 1; -x_49 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_48, x_48, x_48, x_2); -lean_dec(x_15); -x_50 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_50, 0, x_5); -lean_ctor_set(x_50, 1, x_3); -lean_ctor_set(x_50, 2, x_4); -lean_ctor_set_uint64(x_50, sizeof(void*)*3, x_49); -return x_50; -} +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_20, x_32, x_32, x_2); +lean_dec(x_14); +x_34 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_3); +lean_ctor_set(x_34, 2, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*3, x_33); +return x_34; } } } @@ -4035,133 +3967,199 @@ else { if (x_17 == 0) { +uint8_t x_35; +x_35 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_36; uint8_t x_37; uint64_t x_38; lean_object* x_39; +x_36 = l_Lean_Expr_hasLevelParam(x_4); +x_37 = 1; +x_38 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_37, x_35, x_36, x_2); +lean_dec(x_14); +x_39 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set_uint64(x_39, sizeof(void*)*3, x_38); +return x_39; +} +else +{ +uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_40 = 1; +x_41 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_40, x_35, x_40, x_2); +lean_dec(x_14); +x_42 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_3); +lean_ctor_set(x_42, 2, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*3, x_41); +return x_42; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_43; uint8_t x_44; uint64_t x_45; lean_object* x_46; +x_43 = l_Lean_Expr_hasLevelParam(x_4); +x_44 = 1; +x_45 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_44, x_44, x_43, x_2); +lean_dec(x_14); +x_46 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_3); +lean_ctor_set(x_46, 2, x_4); +lean_ctor_set_uint64(x_46, sizeof(void*)*3, x_45); +return x_46; +} +else +{ +uint8_t x_47; uint64_t x_48; lean_object* x_49; +x_47 = 1; +x_48 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_19, x_47, x_47, x_47, x_2); +lean_dec(x_14); +x_49 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_4); +lean_ctor_set_uint64(x_49, sizeof(void*)*3, x_48); +return x_49; +} +} +} +} +else +{ +if (x_16 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ uint8_t x_51; -x_51 = l_Lean_Expr_hasExprMVar(x_4); +x_51 = l_Lean_Expr_hasLevelMVar(x_4); if (x_18 == 0) { -uint8_t x_52; -x_52 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; -x_53 = l_Lean_Expr_hasLevelParam(x_4); -x_54 = 1; -x_55 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_54, x_51, x_52, x_53, x_2); -lean_dec(x_15); -x_56 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_56, 0, x_5); -lean_ctor_set(x_56, 1, x_3); -lean_ctor_set(x_56, 2, x_4); -lean_ctor_set_uint64(x_56, sizeof(void*)*3, x_55); -return x_56; +uint8_t x_52; uint8_t x_53; uint64_t x_54; lean_object* x_55; +x_52 = l_Lean_Expr_hasLevelParam(x_4); +x_53 = 1; +x_54 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_53, x_50, x_51, x_52, x_2); +lean_dec(x_14); +x_55 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_55, 1, x_3); +lean_ctor_set(x_55, 2, x_4); +lean_ctor_set_uint64(x_55, sizeof(void*)*3, x_54); +return x_55; } else { -uint8_t x_57; uint64_t x_58; lean_object* x_59; -x_57 = 1; -x_58 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_57, x_51, x_52, x_57, x_2); -lean_dec(x_15); -x_59 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_59, 0, x_5); -lean_ctor_set(x_59, 1, x_3); -lean_ctor_set(x_59, 2, x_4); -lean_ctor_set_uint64(x_59, sizeof(void*)*3, x_58); -return x_59; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_60; uint8_t x_61; uint64_t x_62; lean_object* x_63; -x_60 = l_Lean_Expr_hasLevelParam(x_4); -x_61 = 1; -x_62 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_61, x_51, x_61, x_60, x_2); -lean_dec(x_15); -x_63 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_63, 0, x_5); -lean_ctor_set(x_63, 1, x_3); -lean_ctor_set(x_63, 2, x_4); -lean_ctor_set_uint64(x_63, sizeof(void*)*3, x_62); -return x_63; -} -else -{ -uint8_t x_64; uint64_t x_65; lean_object* x_66; -x_64 = 1; -x_65 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_64, x_51, x_64, x_64, x_2); -lean_dec(x_15); -x_66 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_66, 0, x_5); -lean_ctor_set(x_66, 1, x_3); -lean_ctor_set(x_66, 2, x_4); -lean_ctor_set_uint64(x_66, sizeof(void*)*3, x_65); -return x_66; -} +uint8_t x_56; uint64_t x_57; lean_object* x_58; +x_56 = 1; +x_57 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_56, x_50, x_51, x_56, x_2); +lean_dec(x_14); +x_58 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_3); +lean_ctor_set(x_58, 2, x_4); +lean_ctor_set_uint64(x_58, sizeof(void*)*3, x_57); +return x_58; } } else { if (x_18 == 0) { -uint8_t x_67; -x_67 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_19 == 0) -{ -uint8_t x_68; uint8_t x_69; uint64_t x_70; lean_object* x_71; -x_68 = l_Lean_Expr_hasLevelParam(x_4); -x_69 = 1; -x_70 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_69, x_69, x_67, x_68, x_2); -lean_dec(x_15); -x_71 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_71, 0, x_5); -lean_ctor_set(x_71, 1, x_3); -lean_ctor_set(x_71, 2, x_4); -lean_ctor_set_uint64(x_71, sizeof(void*)*3, x_70); -return x_71; +uint8_t x_59; uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_59 = l_Lean_Expr_hasLevelParam(x_4); +x_60 = 1; +x_61 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_60, x_50, x_60, x_59, x_2); +lean_dec(x_14); +x_62 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_3); +lean_ctor_set(x_62, 2, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*3, x_61); +return x_62; } else { -uint8_t x_72; uint64_t x_73; lean_object* x_74; -x_72 = 1; -x_73 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_72, x_72, x_67, x_72, x_2); -lean_dec(x_15); -x_74 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_74, 0, x_5); -lean_ctor_set(x_74, 1, x_3); -lean_ctor_set(x_74, 2, x_4); -lean_ctor_set_uint64(x_74, sizeof(void*)*3, x_73); -return x_74; +uint8_t x_63; uint64_t x_64; lean_object* x_65; +x_63 = 1; +x_64 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_63, x_50, x_63, x_63, x_2); +lean_dec(x_14); +x_65 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_65, 0, x_1); +lean_ctor_set(x_65, 1, x_3); +lean_ctor_set(x_65, 2, x_4); +lean_ctor_set_uint64(x_65, sizeof(void*)*3, x_64); +return x_65; +} } } else { -if (x_19 == 0) +if (x_17 == 0) { -uint8_t x_75; uint8_t x_76; uint64_t x_77; lean_object* x_78; -x_75 = l_Lean_Expr_hasLevelParam(x_4); -x_76 = 1; -x_77 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_76, x_76, x_76, x_75, x_2); -lean_dec(x_15); -x_78 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_78, 0, x_5); -lean_ctor_set(x_78, 1, x_3); -lean_ctor_set(x_78, 2, x_4); -lean_ctor_set_uint64(x_78, sizeof(void*)*3, x_77); -return x_78; +uint8_t x_66; +x_66 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_67; uint8_t x_68; uint64_t x_69; lean_object* x_70; +x_67 = l_Lean_Expr_hasLevelParam(x_4); +x_68 = 1; +x_69 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_68, x_68, x_66, x_67, x_2); +lean_dec(x_14); +x_70 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_3); +lean_ctor_set(x_70, 2, x_4); +lean_ctor_set_uint64(x_70, sizeof(void*)*3, x_69); +return x_70; } else { -uint8_t x_79; uint64_t x_80; lean_object* x_81; -x_79 = 1; -x_80 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_79, x_79, x_79, x_79, x_2); -lean_dec(x_15); -x_81 = lean_alloc_ctor(7, 3, 8); -lean_ctor_set(x_81, 0, x_5); -lean_ctor_set(x_81, 1, x_3); -lean_ctor_set(x_81, 2, x_4); -lean_ctor_set_uint64(x_81, sizeof(void*)*3, x_80); -return x_81; +uint8_t x_71; uint64_t x_72; lean_object* x_73; +x_71 = 1; +x_72 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_71, x_71, x_66, x_71, x_2); +lean_dec(x_14); +x_73 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_3); +lean_ctor_set(x_73, 2, x_4); +lean_ctor_set_uint64(x_73, sizeof(void*)*3, x_72); +return x_73; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_74; uint8_t x_75; uint64_t x_76; lean_object* x_77; +x_74 = l_Lean_Expr_hasLevelParam(x_4); +x_75 = 1; +x_76 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_75, x_75, x_75, x_74, x_2); +lean_dec(x_14); +x_77 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_3); +lean_ctor_set(x_77, 2, x_4); +lean_ctor_set_uint64(x_77, sizeof(void*)*3, x_76); +return x_77; +} +else +{ +uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_78 = 1; +x_79 = l_Lean_Expr_mkDataForBinder(x_9, x_14, x_78, x_78, x_78, x_78, x_2); +lean_dec(x_14); +x_80 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_3); +lean_ctor_set(x_80, 2, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*3, x_79); +return x_80; } } } @@ -4175,7 +4173,6 @@ uint8_t x_5; lean_object* x_6; x_5 = lean_unbox(x_2); lean_dec(x_2); x_6 = l_Lean_mkForall(x_1, x_5, x_3, x_4); -lean_dec(x_1); return x_6; } } @@ -4242,353 +4239,352 @@ return x_5; lean_object* l_Lean_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { _start: { -lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; -x_6 = l_Lean_Name_eraseMacroScopes(x_1); -x_7 = 41; -x_8 = l_Lean_Expr_hash(x_2); -x_9 = l_Lean_Expr_hash(x_3); -x_10 = l_Lean_Expr_hash(x_4); -x_11 = lean_usize_mix_hash(x_9, x_10); -x_12 = lean_usize_mix_hash(x_8, x_11); -x_13 = lean_usize_mix_hash(x_7, x_12); -x_14 = l_Lean_Expr_looseBVarRange(x_2); -x_15 = l_Lean_Expr_looseBVarRange(x_3); -x_16 = l_Nat_max(x_14, x_15); -lean_dec(x_15); +size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; +x_6 = 41; +x_7 = l_Lean_Expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_3); +x_9 = l_Lean_Expr_hash(x_4); +x_10 = lean_usize_mix_hash(x_8, x_9); +x_11 = lean_usize_mix_hash(x_7, x_10); +x_12 = lean_usize_mix_hash(x_6, x_11); +x_13 = l_Lean_Expr_looseBVarRange(x_2); +x_14 = l_Lean_Expr_looseBVarRange(x_3); +x_15 = l_Nat_max(x_13, x_14); lean_dec(x_14); -x_17 = l_Lean_Expr_looseBVarRange(x_4); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_sub(x_17, x_18); -lean_dec(x_17); -x_20 = l_Nat_max(x_16, x_19); -lean_dec(x_19); +lean_dec(x_13); +x_16 = l_Lean_Expr_looseBVarRange(x_4); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_16, x_17); lean_dec(x_16); -x_21 = l_Lean_Expr_hasFVar(x_2); -x_22 = l_Lean_Expr_hasExprMVar(x_2); -x_23 = l_Lean_Expr_hasLevelMVar(x_2); -x_24 = l_Lean_Expr_hasLevelParam(x_2); -if (x_21 == 0) +x_19 = l_Nat_max(x_15, x_18); +lean_dec(x_18); +lean_dec(x_15); +x_20 = l_Lean_Expr_hasFVar(x_2); +x_21 = l_Lean_Expr_hasExprMVar(x_2); +x_22 = l_Lean_Expr_hasLevelMVar(x_2); +x_23 = l_Lean_Expr_hasLevelParam(x_2); +if (x_20 == 0) +{ +uint8_t x_88; +x_88 = l_Lean_Expr_hasFVar(x_3); +if (x_88 == 0) { uint8_t x_89; -x_89 = l_Lean_Expr_hasFVar(x_3); -if (x_89 == 0) +x_89 = l_Lean_Expr_hasFVar(x_4); +x_24 = x_89; +goto block_87; +} +else { uint8_t x_90; -x_90 = l_Lean_Expr_hasFVar(x_4); -x_25 = x_90; -goto block_88; +x_90 = 1; +x_24 = x_90; +goto block_87; +} } else { uint8_t x_91; x_91 = 1; -x_25 = x_91; -goto block_88; +x_24 = x_91; +goto block_87; } -} -else +block_87: { -uint8_t x_92; -x_92 = 1; -x_25 = x_92; -goto block_88; -} -block_88: +uint8_t x_25; +if (x_21 == 0) { -uint8_t x_26; -if (x_22 == 0) +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_3); +if (x_50 == 0) { uint8_t x_51; -x_51 = l_Lean_Expr_hasExprMVar(x_3); -if (x_51 == 0) +x_51 = l_Lean_Expr_hasExprMVar(x_4); +if (x_22 == 0) +{ +x_25 = x_51; +goto block_49; +} +else { -uint8_t x_52; -x_52 = l_Lean_Expr_hasExprMVar(x_4); if (x_23 == 0) { -x_26 = x_52; -goto block_50; +uint8_t x_52; +x_52 = l_Lean_Expr_hasLevelParam(x_3); +if (x_52 == 0) +{ +uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; +x_53 = l_Lean_Expr_hasLevelParam(x_4); +x_54 = 1; +x_55 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_51, x_54, x_53, x_5); +lean_dec(x_19); +x_56 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_56, 0, x_1); +lean_ctor_set(x_56, 1, x_2); +lean_ctor_set(x_56, 2, x_3); +lean_ctor_set(x_56, 3, x_4); +lean_ctor_set_uint64(x_56, sizeof(void*)*4, x_55); +return x_56; } else { -if (x_24 == 0) -{ -uint8_t x_53; -x_53 = l_Lean_Expr_hasLevelParam(x_3); -if (x_53 == 0) -{ -uint8_t x_54; uint8_t x_55; uint64_t x_56; lean_object* x_57; -x_54 = l_Lean_Expr_hasLevelParam(x_4); -x_55 = 1; -x_56 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_55, x_54, x_5); -lean_dec(x_20); -x_57 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_57, 0, x_6); -lean_ctor_set(x_57, 1, x_2); -lean_ctor_set(x_57, 2, x_3); -lean_ctor_set(x_57, 3, x_4); -lean_ctor_set_uint64(x_57, sizeof(void*)*4, x_56); -return x_57; -} -else -{ -uint8_t x_58; uint64_t x_59; lean_object* x_60; -x_58 = 1; -x_59 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_58, x_58, x_5); -lean_dec(x_20); -x_60 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_60, 0, x_6); -lean_ctor_set(x_60, 1, x_2); -lean_ctor_set(x_60, 2, x_3); -lean_ctor_set(x_60, 3, x_4); -lean_ctor_set_uint64(x_60, sizeof(void*)*4, x_59); -return x_60; +uint8_t x_57; uint64_t x_58; lean_object* x_59; +x_57 = 1; +x_58 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_51, x_57, x_57, x_5); +lean_dec(x_19); +x_59 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_59, 0, x_1); +lean_ctor_set(x_59, 1, x_2); +lean_ctor_set(x_59, 2, x_3); +lean_ctor_set(x_59, 3, x_4); +lean_ctor_set_uint64(x_59, sizeof(void*)*4, x_58); +return x_59; } } else { -uint8_t x_61; uint64_t x_62; lean_object* x_63; -x_61 = 1; -x_62 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_61, x_61, x_5); -lean_dec(x_20); -x_63 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_63, 0, x_6); -lean_ctor_set(x_63, 1, x_2); -lean_ctor_set(x_63, 2, x_3); -lean_ctor_set(x_63, 3, x_4); -lean_ctor_set_uint64(x_63, sizeof(void*)*4, x_62); -return x_63; +uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_60 = 1; +x_61 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_51, x_60, x_60, x_5); +lean_dec(x_19); +x_62 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_2); +lean_ctor_set(x_62, 2, x_3); +lean_ctor_set(x_62, 3, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*4, x_61); +return x_62; } } } else { +if (x_22 == 0) +{ +uint8_t x_63; +x_63 = 1; +x_25 = x_63; +goto block_49; +} +else +{ if (x_23 == 0) { uint8_t x_64; -x_64 = 1; -x_26 = x_64; -goto block_50; +x_64 = l_Lean_Expr_hasLevelParam(x_3); +if (x_64 == 0) +{ +uint8_t x_65; uint8_t x_66; uint64_t x_67; lean_object* x_68; +x_65 = l_Lean_Expr_hasLevelParam(x_4); +x_66 = 1; +x_67 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_66, x_66, x_65, x_5); +lean_dec(x_19); +x_68 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_68, 0, x_1); +lean_ctor_set(x_68, 1, x_2); +lean_ctor_set(x_68, 2, x_3); +lean_ctor_set(x_68, 3, x_4); +lean_ctor_set_uint64(x_68, sizeof(void*)*4, x_67); +return x_68; } else { -if (x_24 == 0) -{ -uint8_t x_65; -x_65 = l_Lean_Expr_hasLevelParam(x_3); -if (x_65 == 0) -{ -uint8_t x_66; uint8_t x_67; uint64_t x_68; lean_object* x_69; -x_66 = l_Lean_Expr_hasLevelParam(x_4); -x_67 = 1; -x_68 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_67, x_67, x_66, x_5); -lean_dec(x_20); -x_69 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_69, 0, x_6); -lean_ctor_set(x_69, 1, x_2); -lean_ctor_set(x_69, 2, x_3); -lean_ctor_set(x_69, 3, x_4); -lean_ctor_set_uint64(x_69, sizeof(void*)*4, x_68); -return x_69; -} -else -{ -uint8_t x_70; uint64_t x_71; lean_object* x_72; -x_70 = 1; -x_71 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_70, x_70, x_70, x_5); -lean_dec(x_20); -x_72 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_72, 0, x_6); -lean_ctor_set(x_72, 1, x_2); -lean_ctor_set(x_72, 2, x_3); -lean_ctor_set(x_72, 3, x_4); -lean_ctor_set_uint64(x_72, sizeof(void*)*4, x_71); -return x_72; +uint8_t x_69; uint64_t x_70; lean_object* x_71; +x_69 = 1; +x_70 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_69, x_69, x_69, x_5); +lean_dec(x_19); +x_71 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_71, 0, x_1); +lean_ctor_set(x_71, 1, x_2); +lean_ctor_set(x_71, 2, x_3); +lean_ctor_set(x_71, 3, x_4); +lean_ctor_set_uint64(x_71, sizeof(void*)*4, x_70); +return x_71; } } else { -uint8_t x_73; uint64_t x_74; lean_object* x_75; -x_73 = 1; -x_74 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_73, x_73, x_73, x_5); -lean_dec(x_20); -x_75 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_75, 0, x_6); -lean_ctor_set(x_75, 1, x_2); -lean_ctor_set(x_75, 2, x_3); -lean_ctor_set(x_75, 3, x_4); -lean_ctor_set_uint64(x_75, sizeof(void*)*4, x_74); -return x_75; +uint8_t x_72; uint64_t x_73; lean_object* x_74; +x_72 = 1; +x_73 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_72, x_72, x_72, x_5); +lean_dec(x_19); +x_74 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_74, 0, x_1); +lean_ctor_set(x_74, 1, x_2); +lean_ctor_set(x_74, 2, x_3); +lean_ctor_set(x_74, 3, x_4); +lean_ctor_set_uint64(x_74, sizeof(void*)*4, x_73); +return x_74; } } } } else { +if (x_22 == 0) +{ +uint8_t x_75; +x_75 = 1; +x_25 = x_75; +goto block_49; +} +else +{ if (x_23 == 0) { uint8_t x_76; -x_76 = 1; -x_26 = x_76; -goto block_50; +x_76 = l_Lean_Expr_hasLevelParam(x_3); +if (x_76 == 0) +{ +uint8_t x_77; uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_77 = l_Lean_Expr_hasLevelParam(x_4); +x_78 = 1; +x_79 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_78, x_78, x_77, x_5); +lean_dec(x_19); +x_80 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_2); +lean_ctor_set(x_80, 2, x_3); +lean_ctor_set(x_80, 3, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*4, x_79); +return x_80; } else { -if (x_24 == 0) -{ -uint8_t x_77; -x_77 = l_Lean_Expr_hasLevelParam(x_3); -if (x_77 == 0) -{ -uint8_t x_78; uint8_t x_79; uint64_t x_80; lean_object* x_81; -x_78 = l_Lean_Expr_hasLevelParam(x_4); -x_79 = 1; -x_80 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_79, x_79, x_78, x_5); -lean_dec(x_20); -x_81 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_81, 0, x_6); -lean_ctor_set(x_81, 1, x_2); -lean_ctor_set(x_81, 2, x_3); -lean_ctor_set(x_81, 3, x_4); -lean_ctor_set_uint64(x_81, sizeof(void*)*4, x_80); -return x_81; -} -else -{ -uint8_t x_82; uint64_t x_83; lean_object* x_84; -x_82 = 1; -x_83 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_82, x_82, x_82, x_5); -lean_dec(x_20); -x_84 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_84, 0, x_6); -lean_ctor_set(x_84, 1, x_2); -lean_ctor_set(x_84, 2, x_3); -lean_ctor_set(x_84, 3, x_4); -lean_ctor_set_uint64(x_84, sizeof(void*)*4, x_83); -return x_84; +uint8_t x_81; uint64_t x_82; lean_object* x_83; +x_81 = 1; +x_82 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_81, x_81, x_81, x_5); +lean_dec(x_19); +x_83 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_83, 0, x_1); +lean_ctor_set(x_83, 1, x_2); +lean_ctor_set(x_83, 2, x_3); +lean_ctor_set(x_83, 3, x_4); +lean_ctor_set_uint64(x_83, sizeof(void*)*4, x_82); +return x_83; } } else { -uint8_t x_85; uint64_t x_86; lean_object* x_87; -x_85 = 1; -x_86 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_85, x_85, x_85, x_5); -lean_dec(x_20); -x_87 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_87, 0, x_6); -lean_ctor_set(x_87, 1, x_2); -lean_ctor_set(x_87, 2, x_3); -lean_ctor_set(x_87, 3, x_4); -lean_ctor_set_uint64(x_87, sizeof(void*)*4, x_86); -return x_87; +uint8_t x_84; uint64_t x_85; lean_object* x_86; +x_84 = 1; +x_85 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_84, x_84, x_84, x_5); +lean_dec(x_19); +x_86 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_86, 0, x_1); +lean_ctor_set(x_86, 1, x_2); +lean_ctor_set(x_86, 2, x_3); +lean_ctor_set(x_86, 3, x_4); +lean_ctor_set_uint64(x_86, sizeof(void*)*4, x_85); +return x_86; } } } -block_50: +block_49: +{ +uint8_t x_26; +x_26 = l_Lean_Expr_hasLevelMVar(x_3); +if (x_26 == 0) { uint8_t x_27; -x_27 = l_Lean_Expr_hasLevelMVar(x_3); -if (x_27 == 0) +x_27 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_23 == 0) { uint8_t x_28; -x_28 = l_Lean_Expr_hasLevelMVar(x_4); -if (x_24 == 0) +x_28 = l_Lean_Expr_hasLevelParam(x_3); +if (x_28 == 0) { -uint8_t x_29; -x_29 = l_Lean_Expr_hasLevelParam(x_3); -if (x_29 == 0) -{ -uint8_t x_30; uint64_t x_31; lean_object* x_32; -x_30 = l_Lean_Expr_hasLevelParam(x_4); -x_31 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_30, x_5); -lean_dec(x_20); -x_32 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_32, 0, x_6); -lean_ctor_set(x_32, 1, x_2); -lean_ctor_set(x_32, 2, x_3); -lean_ctor_set(x_32, 3, x_4); -lean_ctor_set_uint64(x_32, sizeof(void*)*4, x_31); -return x_32; +uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_29 = l_Lean_Expr_hasLevelParam(x_4); +x_30 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_27, x_29, x_5); +lean_dec(x_19); +x_31 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_2); +lean_ctor_set(x_31, 2, x_3); +lean_ctor_set(x_31, 3, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*4, x_30); +return x_31; } else { -uint8_t x_33; uint64_t x_34; lean_object* x_35; -x_33 = 1; -x_34 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_33, x_5); -lean_dec(x_20); -x_35 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_35, 0, x_6); -lean_ctor_set(x_35, 1, x_2); -lean_ctor_set(x_35, 2, x_3); -lean_ctor_set(x_35, 3, x_4); -lean_ctor_set_uint64(x_35, sizeof(void*)*4, x_34); -return x_35; +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_27, x_32, x_5); +lean_dec(x_19); +x_34 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_2); +lean_ctor_set(x_34, 2, x_3); +lean_ctor_set(x_34, 3, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*4, x_33); +return x_34; } } else { -uint8_t x_36; uint64_t x_37; lean_object* x_38; -x_36 = 1; -x_37 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_36, x_5); -lean_dec(x_20); -x_38 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_38, 0, x_6); -lean_ctor_set(x_38, 1, x_2); -lean_ctor_set(x_38, 2, x_3); -lean_ctor_set(x_38, 3, x_4); -lean_ctor_set_uint64(x_38, sizeof(void*)*4, x_37); -return x_38; +uint8_t x_35; uint64_t x_36; lean_object* x_37; +x_35 = 1; +x_36 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_27, x_35, x_5); +lean_dec(x_19); +x_37 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_2); +lean_ctor_set(x_37, 2, x_3); +lean_ctor_set(x_37, 3, x_4); +lean_ctor_set_uint64(x_37, sizeof(void*)*4, x_36); +return x_37; } } else { -if (x_24 == 0) +if (x_23 == 0) { -uint8_t x_39; -x_39 = l_Lean_Expr_hasLevelParam(x_3); -if (x_39 == 0) +uint8_t x_38; +x_38 = l_Lean_Expr_hasLevelParam(x_3); +if (x_38 == 0) { -uint8_t x_40; uint8_t x_41; uint64_t x_42; lean_object* x_43; -x_40 = l_Lean_Expr_hasLevelParam(x_4); -x_41 = 1; -x_42 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_41, x_40, x_5); -lean_dec(x_20); -x_43 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_43, 0, x_6); -lean_ctor_set(x_43, 1, x_2); -lean_ctor_set(x_43, 2, x_3); -lean_ctor_set(x_43, 3, x_4); -lean_ctor_set_uint64(x_43, sizeof(void*)*4, x_42); -return x_43; +uint8_t x_39; uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_39 = l_Lean_Expr_hasLevelParam(x_4); +x_40 = 1; +x_41 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_40, x_39, x_5); +lean_dec(x_19); +x_42 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_2); +lean_ctor_set(x_42, 2, x_3); +lean_ctor_set(x_42, 3, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*4, x_41); +return x_42; } else { -uint8_t x_44; uint64_t x_45; lean_object* x_46; -x_44 = 1; -x_45 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_44, x_44, x_5); -lean_dec(x_20); -x_46 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_46, 0, x_6); -lean_ctor_set(x_46, 1, x_2); -lean_ctor_set(x_46, 2, x_3); -lean_ctor_set(x_46, 3, x_4); -lean_ctor_set_uint64(x_46, sizeof(void*)*4, x_45); -return x_46; +uint8_t x_43; uint64_t x_44; lean_object* x_45; +x_43 = 1; +x_44 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_43, x_43, x_5); +lean_dec(x_19); +x_45 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_2); +lean_ctor_set(x_45, 2, x_3); +lean_ctor_set(x_45, 3, x_4); +lean_ctor_set_uint64(x_45, sizeof(void*)*4, x_44); +return x_45; } } else { -uint8_t x_47; uint64_t x_48; lean_object* x_49; -x_47 = 1; -x_48 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_47, x_47, x_5); -lean_dec(x_20); -x_49 = lean_alloc_ctor(8, 4, 8); -lean_ctor_set(x_49, 0, x_6); -lean_ctor_set(x_49, 1, x_2); -lean_ctor_set(x_49, 2, x_3); -lean_ctor_set(x_49, 3, x_4); -lean_ctor_set_uint64(x_49, sizeof(void*)*4, x_48); -return x_49; +uint8_t x_46; uint64_t x_47; lean_object* x_48; +x_46 = 1; +x_47 = l_Lean_Expr_mkDataForLet(x_12, x_19, x_24, x_25, x_46, x_46, x_5); +lean_dec(x_19); +x_48 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_48, 0, x_1); +lean_ctor_set(x_48, 1, x_2); +lean_ctor_set(x_48, 2, x_3); +lean_ctor_set(x_48, 3, x_4); +lean_ctor_set_uint64(x_48, sizeof(void*)*4, x_47); +return x_48; } } } @@ -4602,7 +4598,6 @@ uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_5); lean_dec(x_5); x_7 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_6); -lean_dec(x_1); return x_7; } } @@ -4691,7 +4686,6 @@ _start: { lean_object* x_5; x_5 = l_Lean_mkLambda(x_1, x_4, x_2, x_3); -lean_dec(x_1); return x_5; } } @@ -4710,7 +4704,6 @@ _start: { lean_object* x_5; x_5 = l_Lean_mkForall(x_1, x_4, x_2, x_3); -lean_dec(x_1); return x_5; } } @@ -4730,7 +4723,6 @@ _start: uint8_t x_5; lean_object* x_6; x_5 = 0; x_6 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); return x_6; } } @@ -7110,7 +7102,6 @@ if (x_14 == 0) { lean_object* x_15; x_15 = l_Lean_mkForall(x_4, x_13, x_5, x_12); -lean_dec(x_4); return x_15; } else @@ -7121,7 +7112,6 @@ if (x_16 == 0) { lean_object* x_17; x_17 = l_Lean_mkForall(x_4, x_13, x_5, x_12); -lean_dec(x_4); return x_17; } else @@ -7129,7 +7119,6 @@ else uint8_t x_18; lean_object* x_19; x_18 = 1; x_19 = l_Lean_mkForall(x_4, x_18, x_5, x_12); -lean_dec(x_4); return x_19; } } @@ -7319,6 +7308,65 @@ x_1 = l_Lean_Expr_HasToString___closed__1; return x_1; } } +uint8_t l_Lean_Expr_isAtomic(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +uint8_t x_2; +x_2 = 1; +return x_2; +} +case 1: +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +case 2: +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +case 3: +{ +uint8_t x_5; +x_5 = 1; +return x_5; +} +case 4: +{ +uint8_t x_6; +x_6 = 1; +return x_6; +} +case 9: +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +default: +{ +uint8_t x_8; +x_8 = 0; +return x_8; +} +} +} +} +lean_object* l_Lean_Expr_isAtomic___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isAtomic(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l_Lean_mkAppB(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -8482,7 +8530,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(861u); +x_2 = lean_unsigned_to_nat(870u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8524,7 +8572,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(870u); +x_2 = lean_unsigned_to_nat(879u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8573,7 +8621,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(879u); +x_2 = lean_unsigned_to_nat(888u); x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_updateSort_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8630,7 +8678,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(896u); +x_2 = lean_unsigned_to_nat(905u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateMData_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8671,7 +8719,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(901u); +x_2 = lean_unsigned_to_nat(910u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_updateProj_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8722,7 +8770,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(910u); +x_2 = lean_unsigned_to_nat(919u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8766,7 +8814,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(915u); +x_2 = lean_unsigned_to_nat(924u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8820,7 +8868,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(924u); +x_2 = lean_unsigned_to_nat(933u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8864,7 +8912,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(929u); +x_2 = lean_unsigned_to_nat(938u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8908,7 +8956,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(938u); +x_2 = lean_unsigned_to_nat(947u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); diff --git a/stage0/stdlib/Lean/LocalContext.c b/stage0/stdlib/Lean/LocalContext.c index ca70360b0f..60ca9f91a6 100644 --- a/stage0/stdlib/Lean/LocalContext.c +++ b/stage0/stdlib/Lean/LocalContext.c @@ -83,6 +83,7 @@ lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlFromM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceFVarIdAtLocalDecl___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_binderInfo___boxed(lean_object*); +lean_object* l_Lean_LocalContext_modifyLocalDecl(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_containsFVar(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_findSomeM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index___boxed(lean_object*); @@ -185,6 +186,7 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__5__ lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRev_x3f___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_setValue(lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_local_ctx(lean_object*); @@ -355,6 +357,7 @@ lean_object* l_Lean_LocalContext_getFVars___boxed(lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldl___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_LocalContext_foldl___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_LocalContext_all___spec__1(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__3(lean_object*); lean_object* l_Lean_LocalContext_findDeclM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__1___rarg___boxed(lean_object*, lean_object*); @@ -664,6 +667,78 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_LocalDecl_setType(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 3); +lean_dec(x_4); +lean_ctor_set(x_1, 3, x_2); +return x_1; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_1, 2); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_6); +lean_ctor_set(x_9, 2, x_7); +lean_ctor_set(x_9, 3, x_2); +lean_ctor_set_uint8(x_9, sizeof(void*)*4, x_8); +return x_9; +} +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 3); +lean_dec(x_11); +lean_ctor_set(x_1, 3, x_2); +return x_1; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_1, 0); +x_13 = lean_ctor_get(x_1, 1); +x_14 = lean_ctor_get(x_1, 2); +x_15 = lean_ctor_get(x_1, 4); +x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_1); +x_17 = lean_alloc_ctor(1, 5, 1); +lean_ctor_set(x_17, 0, x_12); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 2, x_14); +lean_ctor_set(x_17, 3, x_2); +lean_ctor_set(x_17, 4, x_15); +lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_16); +return x_17; +} +} +} +} uint8_t l_Lean_LocalDecl_binderInfo(lean_object* x_1) { _start: { @@ -741,7 +816,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_LocalDecl_value___closed__1; -x_2 = lean_unsigned_to_nat(63u); +x_2 = lean_unsigned_to_nat(67u); x_3 = lean_unsigned_to_nat(23u); x_4 = l_Lean_LocalDecl_value___closed__2; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -777,6 +852,51 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_LocalDecl_setValue(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_2); +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 4); +lean_dec(x_4); +lean_ctor_set(x_1, 4, x_2); +return x_1; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_ctor_get(x_1, 2); +x_8 = lean_ctor_get(x_1, 3); +x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*5); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_dec(x_1); +x_10 = lean_alloc_ctor(1, 5, 1); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_6); +lean_ctor_set(x_10, 2, x_7); +lean_ctor_set(x_10, 3, x_8); +lean_ctor_set(x_10, 4, x_2); +lean_ctor_set_uint8(x_10, sizeof(void*)*5, x_9); +return x_10; +} +} +} +} lean_object* l_Lean_LocalDecl_updateUserName(lean_object* x_1, lean_object* x_2) { _start: { @@ -862,7 +982,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_LocalDecl_value___closed__1; -x_2 = lean_unsigned_to_nat(72u); +x_2 = lean_unsigned_to_nat(80u); x_3 = lean_unsigned_to_nat(34u); x_4 = l_Lean_LocalDecl_updateBinderInfo___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -1924,7 +2044,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_LocalDecl_value___closed__1; -x_2 = lean_unsigned_to_nat(134u); +x_2 = lean_unsigned_to_nat(142u); x_3 = lean_unsigned_to_nat(12u); x_4 = l_Lean_LocalContext_get_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -3858,6 +3978,105 @@ return x_32; } } } +lean_object* l_Lean_LocalContext_modifyLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_inc(x_1); +x_6 = lean_local_ctx_find(x_1, x_2); +if (lean_obj_tag(x_6) == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_1; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_1); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_1, 1); +lean_dec(x_8); +x_9 = lean_ctor_get(x_1, 0); +lean_dec(x_9); +x_10 = !lean_is_exclusive(x_6); +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; +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_apply_1(x_3, x_11); +x_13 = l_Lean_LocalDecl_fvarId(x_12); +lean_inc(x_12); +x_14 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_13, x_12); +x_15 = l_Lean_LocalDecl_index(x_12); +lean_ctor_set(x_6, 0, x_12); +x_16 = l_Std_PersistentArray_set___rarg(x_5, x_15, x_6); +lean_dec(x_15); +lean_ctor_set(x_1, 1, x_16); +lean_ctor_set(x_1, 0, x_14); +return x_1; +} +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; +x_17 = lean_ctor_get(x_6, 0); +lean_inc(x_17); +lean_dec(x_6); +x_18 = lean_apply_1(x_3, x_17); +x_19 = l_Lean_LocalDecl_fvarId(x_18); +lean_inc(x_18); +x_20 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_19, x_18); +x_21 = l_Lean_LocalDecl_index(x_18); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_18); +x_23 = l_Std_PersistentArray_set___rarg(x_5, x_21, x_22); +lean_dec(x_21); +lean_ctor_set(x_1, 1, x_23); +lean_ctor_set(x_1, 0, x_20); +return x_1; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_1); +x_24 = lean_ctor_get(x_6, 0); +lean_inc(x_24); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + x_25 = x_6; +} else { + lean_dec_ref(x_6); + x_25 = lean_box(0); +} +x_26 = lean_apply_1(x_3, x_24); +x_27 = l_Lean_LocalDecl_fvarId(x_26); +lean_inc(x_26); +x_28 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_27, x_26); +x_29 = l_Lean_LocalDecl_index(x_26); +if (lean_is_scalar(x_25)) { + x_30 = lean_alloc_ctor(1, 1, 0); +} else { + x_30 = x_25; +} +lean_ctor_set(x_30, 0, x_26); +x_31 = l_Std_PersistentArray_set___rarg(x_5, x_29, x_30); +lean_dec(x_29); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} lean_object* l_Lean_LocalContext_updateBinderInfo(lean_object* x_1, lean_object* x_2, uint8_t x_3) { _start: { @@ -5866,7 +6085,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_LocalDecl_value___closed__1; -x_2 = lean_unsigned_to_nat(320u); +x_2 = lean_unsigned_to_nat(335u); x_3 = lean_unsigned_to_nat(12u); x_4 = l_Lean_LocalContext_get_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -5921,7 +6140,6 @@ if (x_1 == 0) { lean_object* x_21; x_21 = l_Lean_mkForall(x_17, x_19, x_20, x_5); -lean_dec(x_17); x_4 = x_9; x_5 = x_21; goto _start; @@ -5930,7 +6148,6 @@ else { lean_object* x_23; x_23 = l_Lean_mkLambda(x_17, x_19, x_20, x_5); -lean_dec(x_17); x_4 = x_9; x_5 = x_23; goto _start; @@ -5968,7 +6185,6 @@ lean_dec(x_26); x_33 = lean_expr_abstract_range(x_27, x_9, x_3); lean_dec(x_27); x_34 = l_Lean_mkLet(x_25, x_32, x_33, x_5, x_28); -lean_dec(x_25); x_4 = x_9; x_5 = x_34; goto _start; @@ -6062,7 +6278,6 @@ lean_dec(x_15); x_19 = lean_expr_abstract_range(x_17, x_8, x_2); lean_dec(x_17); x_20 = l_Lean_mkLambda(x_16, x_18, x_19, x_4); -lean_dec(x_16); x_3 = x_8; x_4 = x_20; goto _start; @@ -6099,7 +6314,6 @@ lean_dec(x_23); x_30 = lean_expr_abstract_range(x_24, x_8, x_2); lean_dec(x_24); x_31 = l_Lean_mkLet(x_22, x_29, x_30, x_4, x_25); -lean_dec(x_22); x_3 = x_8; x_4 = x_31; goto _start; @@ -6189,7 +6403,6 @@ lean_dec(x_15); x_19 = lean_expr_abstract_range(x_17, x_8, x_2); lean_dec(x_17); x_20 = l_Lean_mkForall(x_16, x_18, x_19, x_4); -lean_dec(x_16); x_3 = x_8; x_4 = x_20; goto _start; @@ -6226,7 +6439,6 @@ lean_dec(x_23); x_30 = lean_expr_abstract_range(x_24, x_8, x_2); lean_dec(x_24); x_31 = l_Lean_mkLet(x_22, x_29, x_30, x_4, x_25); -lean_dec(x_22); x_3 = x_8; x_4 = x_31; goto _start; diff --git a/stage0/stdlib/Lean/Meta.c b/stage0/stdlib/Lean/Meta.c index 73d14833bc..ed1cd740f2 100644 --- a/stage0/stdlib/Lean/Meta.c +++ b/stage0/stdlib/Lean/Meta.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta -// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure +// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -33,6 +33,7 @@ lean_object* initialize_Lean_Meta_GeneralizeTelescope(lean_object*); lean_object* initialize_Lean_Meta_Match(lean_object*); lean_object* initialize_Lean_Meta_ReduceEval(lean_object*); lean_object* initialize_Lean_Meta_Closure(lean_object*); +lean_object* initialize_Lean_Meta_AbstractNestedProofs(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Meta(lean_object* w) { lean_object * res; @@ -98,6 +99,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Closure(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_AbstractNestedProofs(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c new file mode 100644 index 0000000000..10c8d4b1ed --- /dev/null +++ b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c @@ -0,0 +1,3246 @@ +// Lean compiler output +// Module: Lean.Meta.AbstractNestedProofs +// Imports: Init Lean.Meta.Closure +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___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_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6___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_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma(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_Lean_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7(lean_object*); +lean_object* l___private_Lean_Meta_InferType_18__isProofImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_HashMap_inhabited___closed__1; +lean_object* l___private_Lean_Meta_Basic_31__withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_2__visit___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1; +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10___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_Expr_getAppArgs___closed__1; +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2; +lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___boxed(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_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___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_Meta_Basic_19__forallTelescopeImp___rarg(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_Lean_Meta_mkAuxDefinition___at_Lean_Meta_mkAuxDefinitionFor___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); +lean_object* l_Lean_Expr_headBeta(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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_MonadEnv_1__mkAuxNameAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_setValue(lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12(lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isProof___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___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_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l_Lean_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__2(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_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___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_LocalDecl_index(lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6(lean_object*); +lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1; +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___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* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAtomic(lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_local_ctx_find(lean_object*, lean_object*); +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___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_Meta_Basic_23__lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_Expr_isAtomic(x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +x_10 = 1; +return x_10; +} +else +{ +if (x_1 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_1; +} +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2(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: +{ +if (lean_obj_tag(x_2) == 5) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_array_set(x_3, x_4, x_11); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_4, x_13); +lean_dec(x_4); +x_2 = x_10; +x_3 = x_12; +x_4 = x_14; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_4); +x_16 = l_Lean_Expr_isAtomic(x_2); +lean_dec(x_2); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_3); +x_17 = 1; +x_18 = lean_box(x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_9); +return x_19; +} +else +{ +if (x_1 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_array_get_size(x_3); +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Array_anyRangeMAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(x_1, x_3, x_3, x_20, x_21); +lean_dec(x_20); +lean_dec(x_3); +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_9); +return x_24; +} +else +{ +uint8_t x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_3); +x_25 = 1; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_9); +return x_27; +} +} +} +} +} +lean_object* l_Lean_Meta_isProof___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_Meta_InferType_18__isProofImp(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_20; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l___private_Lean_Meta_InferType_18__isProofImp(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = 1; +x_7 = x_24; +x_8 = x_23; +goto block_19; +} +else +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = 0; +x_7 = x_26; +x_8 = x_25; +goto block_19; +} +} +else +{ +uint8_t x_27; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) +{ +return x_20; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_20, 0); +x_29 = lean_ctor_get(x_20, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_20); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +block_19: +{ +if (x_7 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_9); +x_11 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_10); +x_12 = lean_mk_array(x_10, x_11); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_sub(x_10, x_13); +lean_dec(x_10); +x_15 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2(x_7, x_1, x_12, x_14, x_2, x_3, x_4, x_5, x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_15; +} +else +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_16 = 0; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_8); +return x_18; +} +} +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___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; uint8_t x_7; lean_object* x_8; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_Array_anyRangeMAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__1(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_8 = lean_box(x_7); +return x_8; +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2(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); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_14, x_1, x_2); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_11); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_18, x_1, x_2); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +} +} +lean_object* l_Lean_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_2); +x_11 = l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* 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 = l_Lean_Expr_headBeta(x_12); +x_15 = 0; +x_16 = l_Lean_Meta_mkAuxDefinition___at_Lean_Meta_mkAuxDefinitionFor___spec__1(x_1, x_14, x_2, x_15, x_6, x_7, x_8, x_9, x_13); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) +{ +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_11); +x_20 = lean_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* _init_l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("proof"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; lean_object* x_24; lean_object* x_25; +x_10 = lean_st_ref_get(x_4, x_9); +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___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2; +x_14 = l_Lean_Name_append___main(x_2, x_13); +x_15 = l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__1(x_14, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +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_st_ref_take(x_4, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_add(x_19, x_21); +lean_dec(x_19); +x_23 = lean_st_ref_set(x_4, x_22, x_20); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +return x_25; +} +} +lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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_Meta_mkAuxDefinitionFor___at___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___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_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma(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_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = l_Array_isEmpty___rarg(x_1); +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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; +x_12 = lean_st_ref_get(x_7, 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_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_get(x_9, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_6, 1); +lean_inc(x_20); +x_21 = l_Std_HashMap_inhabited___closed__1; +x_22 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_19); +lean_ctor_set(x_22, 2, x_21); +x_23 = 1; +x_24 = 0; +x_25 = l_Lean_MetavarContext_MkBinding_mkBinding(x_23, x_20, x_1, x_2, x_24, x_24, x_22); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_st_ref_take(x_9, x_18); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = !lean_is_exclusive(x_32); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_35 = lean_ctor_get(x_32, 1); +lean_dec(x_35); +lean_ctor_set(x_32, 1, x_30); +x_36 = lean_st_ref_set(x_9, x_32, x_33); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_29, x_6, x_7, x_8, x_9, x_37); +lean_dec(x_6); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +lean_ctor_set(x_38, 0, x_28); +return x_38; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_28); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +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_43 = lean_ctor_get(x_32, 0); +x_44 = lean_ctor_get(x_32, 2); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_32); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_30); +lean_ctor_set(x_45, 2, x_44); +x_46 = lean_st_ref_set(x_9, x_45, x_33); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_29, x_6, x_7, x_8, x_9, x_47); +lean_dec(x_6); +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_28); +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_25, 1); +lean_inc(x_52); +lean_dec(x_25); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_53, x_6, x_7, x_8, x_9, x_18); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_st_ref_take(x_9, 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; +x_61 = lean_ctor_get(x_58, 1); +lean_dec(x_61); +lean_ctor_set(x_58, 1, x_54); +x_62 = lean_st_ref_set(x_9, 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_6, x_7, x_8, x_9, x_63); +lean_dec(x_6); +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; +x_66 = lean_ctor_get(x_58, 0); +x_67 = lean_ctor_get(x_58, 2); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_58); +x_68 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_54); +lean_ctor_set(x_68, 2, x_67); +x_69 = lean_st_ref_set(x_9, x_68, x_59); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_72 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_71, x_6, x_7, x_8, x_9, x_70); +lean_dec(x_6); +return x_72; +} +} +} +else +{ +lean_object* x_73; +lean_dec(x_6); +lean_dec(x_1); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_2); +lean_ctor_set(x_73, 1, x_10); +return x_73; +} +} +} +lean_object* l_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_11 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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_apply_9(x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_14; +} +else +{ +uint8_t x_15; +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); +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) +{ +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_11); +x_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_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2___rarg), 10, 0); +return x_3; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___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; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg___boxed), 5, 0); +return x_4; +} +} +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_inc(x_1); +x_11 = lean_local_ctx_find(x_10, x_1); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = l_Lean_Meta_throwUnknownFVar___rarg(x_1, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_5); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +lean_dec(x_1); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_9); +return x_14; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_2); +x_14 = lean_nat_dec_lt(x_3, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +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_51; +x_16 = lean_array_fget(x_2, x_3); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_3, x_17); +lean_dec(x_3); +x_19 = l_Lean_Expr_fvarId_x21(x_16); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_19); +x_51 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__4(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_LocalDecl_type(x_52); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_55 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Lean_LocalDecl_setType(x_52, x_56); +x_59 = l_Lean_LocalDecl_value_x3f(x_58); +if (lean_obj_tag(x_59) == 0) +{ +x_20 = x_58; +x_21 = x_57; +goto block_50; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +lean_dec(x_59); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_61 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_57); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_LocalDecl_setValue(x_58, x_62); +x_20 = x_64; +x_21 = x_63; +goto block_50; +} +else +{ +uint8_t x_65; +lean_dec(x_58); +lean_dec(x_19); +lean_dec(x_18); +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); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) +{ +return x_61; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_61, 0); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_61); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_52); +lean_dec(x_19); +lean_dec(x_18); +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); +x_69 = !lean_is_exclusive(x_55); +if (x_69 == 0) +{ +return x_55; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_55, 0); +x_71 = lean_ctor_get(x_55, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_55); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_19); +lean_dec(x_18); +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); +x_73 = !lean_is_exclusive(x_51); +if (x_73 == 0) +{ +return x_51; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_51, 0); +x_75 = lean_ctor_get(x_51, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_51); +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; +} +} +block_50: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_4, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_4, 1); +lean_inc(x_23); +lean_inc(x_4); +x_24 = lean_local_ctx_find(x_4, x_19); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_20); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_4); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_4, 1); +lean_dec(x_27); +x_28 = lean_ctor_get(x_4, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_24, 0); +lean_dec(x_30); +x_31 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_32 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_31, x_20); +x_33 = l_Lean_LocalDecl_index(x_20); +lean_ctor_set(x_24, 0, x_20); +x_34 = l_Std_PersistentArray_set___rarg(x_23, x_33, x_24); +lean_dec(x_33); +lean_ctor_set(x_4, 1, x_34); +lean_ctor_set(x_4, 0, x_32); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_24); +x_36 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_37 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_36, x_20); +x_38 = l_Lean_LocalDecl_index(x_20); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_20); +x_40 = l_Std_PersistentArray_set___rarg(x_23, x_38, x_39); +lean_dec(x_38); +lean_ctor_set(x_4, 1, x_40); +lean_ctor_set(x_4, 0, x_37); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +} +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_dec(x_4); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_42 = x_24; +} else { + lean_dec_ref(x_24); + x_42 = lean_box(0); +} +x_43 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_44 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_43, x_20); +x_45 = l_Lean_LocalDecl_index(x_20); +if (lean_is_scalar(x_42)) { + x_46 = lean_alloc_ctor(1, 1, 0); +} else { + x_46 = x_42; +} +lean_ctor_set(x_46, 0, x_20); +x_47 = l_Std_PersistentArray_set___rarg(x_23, x_45, x_46); +lean_dec(x_45); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_44); +lean_ctor_set(x_48, 1, x_47); +x_3 = x_18; +x_4 = x_48; +x_12 = x_21; +goto _start; +} +} +} +} +} +} +lean_object* l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_apply_3(x_3, x_4, x_5, x_6); +x_13 = l___private_Lean_Meta_Basic_31__withLocalContextImp___rarg(x_1, x_2, x_12, x_7, x_8, x_9, x_10, x_11); +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; +} +} +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_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6___rarg), 11, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___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) { +_start: +{ +lean_object* x_12; +x_12 = lean_apply_10(x_1, x_5, x_6, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg___lambda__1), 11, 4); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_3); +lean_closure_set(x_11, 2, x_4); +lean_closure_set(x_11, 3, x_5); +x_12 = 1; +x_13 = l___private_Lean_Meta_Basic_23__lambdaTelescopeImp___rarg(x_1, x_12, x_11, x_6, x_7, x_8, x_9, x_10); +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; +} +} +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_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg), 10, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_2); +x_12 = lean_nat_dec_lt(x_1, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +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_1); +x_13 = x_2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_array_fget(x_2, x_1); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_fset(x_2, x_1, x_16); +x_18 = x_15; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_19 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_18, x_3, 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; +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(1u); +x_23 = lean_nat_add(x_1, x_22); +x_24 = x_20; +x_25 = lean_array_fset(x_17, x_1, x_24); +lean_dec(x_1); +x_1 = x_23; +x_2 = x_25; +x_10 = x_21; +goto _start; +} +else +{ +uint8_t x_27; +lean_dec(x_17); +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_1); +x_27 = !lean_is_exclusive(x_19); +if (x_27 == 0) +{ +return x_19; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_1) == 5) +{ +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_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_array_set(x_2, x_3, x_13); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_sub(x_3, x_15); +lean_dec(x_3); +x_1 = x_12; +x_2 = x_14; +x_3 = x_16; +goto _start; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_3); +x_18 = x_2; +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__8), 10, 2); +lean_closure_set(x_20, 0, x_19); +lean_closure_set(x_20, 1, x_18); +x_21 = x_20; +x_22 = lean_apply_8(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +x_25 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_24, x_24, x_19, x_1); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_22); +x_28 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_26, x_26, x_19, x_1); +lean_dec(x_26); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_22); +if (x_30 == 0) +{ +return x_22; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_22, 0); +x_32 = lean_ctor_get(x_22, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_22); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +} +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = l_Array_isEmpty___rarg(x_1); +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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_12 = lean_st_ref_get(x_7, 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_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_get(x_9, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_6, 1); +lean_inc(x_20); +x_21 = l_Std_HashMap_inhabited___closed__1; +x_22 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_19); +lean_ctor_set(x_22, 2, x_21); +x_23 = 0; +x_24 = l_Lean_MetavarContext_MkBinding_mkBinding(x_23, x_20, x_1, x_2, x_23, x_23, x_22); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_st_ref_take(x_9, x_18); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = !lean_is_exclusive(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_34 = lean_ctor_get(x_31, 1); +lean_dec(x_34); +lean_ctor_set(x_31, 1, x_29); +x_35 = lean_st_ref_set(x_9, x_31, x_32); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_28, x_6, x_7, x_8, x_9, x_36); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_27); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_27); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_42 = lean_ctor_get(x_31, 0); +x_43 = lean_ctor_get(x_31, 2); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_31); +x_44 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_29); +lean_ctor_set(x_44, 2, x_43); +x_45 = lean_st_ref_set(x_9, x_44, x_32); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_28, x_6, x_7, x_8, x_9, x_46); +lean_dec(x_6); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; +} else { + lean_dec_ref(x_47); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_27); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_51 = lean_ctor_get(x_24, 1); +lean_inc(x_51); +lean_dec(x_24); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_52, x_6, x_7, x_8, x_9, x_18); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_9, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_57, 1); +lean_dec(x_60); +lean_ctor_set(x_57, 1, x_53); +x_61 = lean_st_ref_set(x_9, x_57, x_58); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_64 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_63, x_6, x_7, x_8, x_9, x_62); +lean_dec(x_6); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_65 = lean_ctor_get(x_57, 0); +x_66 = lean_ctor_get(x_57, 2); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_57); +x_67 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_53); +lean_ctor_set(x_67, 2, x_66); +x_68 = lean_st_ref_set(x_9, x_67, x_58); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_71 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_70, x_6, x_7, x_8, x_9, x_69); +lean_dec(x_6); +return x_71; +} +} +} +else +{ +lean_object* x_72; +lean_dec(x_6); +lean_dec(x_1); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_2); +lean_ctor_set(x_72, 1, x_10); +return x_72; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___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* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_2); +x_14 = lean_nat_dec_lt(x_3, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +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_51; +x_16 = lean_array_fget(x_2, x_3); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_3, x_17); +lean_dec(x_3); +x_19 = l_Lean_Expr_fvarId_x21(x_16); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_19); +x_51 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__4(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_LocalDecl_type(x_52); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_55 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Lean_LocalDecl_setType(x_52, x_56); +x_59 = l_Lean_LocalDecl_value_x3f(x_58); +if (lean_obj_tag(x_59) == 0) +{ +x_20 = x_58; +x_21 = x_57; +goto block_50; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +lean_dec(x_59); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_61 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_57); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_LocalDecl_setValue(x_58, x_62); +x_20 = x_64; +x_21 = x_63; +goto block_50; +} +else +{ +uint8_t x_65; +lean_dec(x_58); +lean_dec(x_19); +lean_dec(x_18); +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); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) +{ +return x_61; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_61, 0); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_61); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_52); +lean_dec(x_19); +lean_dec(x_18); +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); +x_69 = !lean_is_exclusive(x_55); +if (x_69 == 0) +{ +return x_55; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_55, 0); +x_71 = lean_ctor_get(x_55, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_55); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_19); +lean_dec(x_18); +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); +x_73 = !lean_is_exclusive(x_51); +if (x_73 == 0) +{ +return x_51; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_51, 0); +x_75 = lean_ctor_get(x_51, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_51); +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; +} +} +block_50: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_4, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_4, 1); +lean_inc(x_23); +lean_inc(x_4); +x_24 = lean_local_ctx_find(x_4, x_19); +if (lean_obj_tag(x_24) == 0) +{ +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_20); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_4); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_4, 1); +lean_dec(x_27); +x_28 = lean_ctor_get(x_4, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_24, 0); +lean_dec(x_30); +x_31 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_32 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_31, x_20); +x_33 = l_Lean_LocalDecl_index(x_20); +lean_ctor_set(x_24, 0, x_20); +x_34 = l_Std_PersistentArray_set___rarg(x_23, x_33, x_24); +lean_dec(x_33); +lean_ctor_set(x_4, 1, x_34); +lean_ctor_set(x_4, 0, x_32); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_24); +x_36 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_37 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_36, x_20); +x_38 = l_Lean_LocalDecl_index(x_20); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_20); +x_40 = l_Std_PersistentArray_set___rarg(x_23, x_38, x_39); +lean_dec(x_38); +lean_ctor_set(x_4, 1, x_40); +lean_ctor_set(x_4, 0, x_37); +x_3 = x_18; +x_12 = x_21; +goto _start; +} +} +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_dec(x_4); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + x_42 = x_24; +} else { + lean_dec_ref(x_24); + x_42 = lean_box(0); +} +x_43 = l_Lean_LocalDecl_fvarId(x_20); +lean_inc(x_20); +x_44 = l_Std_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_22, x_43, x_20); +x_45 = l_Lean_LocalDecl_index(x_20); +if (lean_is_scalar(x_42)) { + x_46 = lean_alloc_ctor(1, 1, 0); +} else { + x_46 = x_42; +} +lean_ctor_set(x_46, 0, x_20); +x_47 = l_Std_PersistentArray_set___rarg(x_23, x_45, x_46); +lean_dec(x_45); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_44); +lean_ctor_set(x_48, 1, x_47); +x_3 = x_18; +x_4 = x_48; +x_12 = x_21; +goto _start; +} +} +} +} +} +} +lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12___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_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg___lambda__1), 11, 4); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_3); +lean_closure_set(x_11, 2, x_4); +lean_closure_set(x_11, 3, x_5); +x_12 = l___private_Lean_Meta_Basic_19__forallTelescopeImp___rarg(x_1, 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_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12___rarg), 10, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___main), 9, 1); +lean_closure_set(x_11, 0, x_2); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__1___boxed), 10, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2___rarg), 10, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg(x_6, x_7, x_8, x_9, x_10); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +x_18 = lean_unsigned_to_nat(0u); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_19 = l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5(x_1, x_1, x_18, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6___rarg(x_20, x_15, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +return x_22; +} +else +{ +uint8_t x_23; +lean_dec(x_15); +lean_dec(x_13); +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); +x_23 = !lean_is_exclusive(x_19); +if (x_23 == 0) +{ +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 0); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_19); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___main), 9, 1); +lean_closure_set(x_11, 0, x_2); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10___boxed), 10, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__2___rarg), 10, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg(x_6, x_7, x_8, x_9, x_10); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +x_18 = lean_unsigned_to_nat(0u); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_19 = l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__11(x_1, x_1, x_18, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Meta_withLCtx___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__6___rarg(x_20, x_15, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +return x_22; +} +else +{ +uint8_t x_23; +lean_dec(x_15); +lean_dec(x_13); +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); +x_23 = !lean_is_exclusive(x_19); +if (x_23 == 0) +{ +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_19, 0); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_19); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* _init_l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__1), 10, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_AbstractNestedProofs_visit___main___lambda__2), 10, 0); +return x_1; +} +} +lean_object* l_Lean_Meta_AbstractNestedProofs_visit___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_22; +x_22 = l_Lean_Expr_isAtomic(x_1); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_st_ref_get(x_3, x_9); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +x_27 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__1(x_25, x_1); +lean_dec(x_25); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +lean_free_object(x_23); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_28 = l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof(x_1, x_5, x_6, x_7, x_8, x_26); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_41; +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_41 = lean_unbox(x_29); +lean_dec(x_29); +if (x_41 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_42); +x_44 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_43); +x_45 = lean_mk_array(x_43, x_44); +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_sub(x_43, x_46); +lean_dec(x_43); +lean_inc(x_3); +lean_inc(x_1); +x_48 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__9(x_1, x_45, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_48) == 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_10 = x_49; +x_11 = x_50; +goto block_21; +} +else +{ +uint8_t x_51; +lean_dec(x_3); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) +{ +return x_48; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_48, 0); +x_53 = lean_ctor_get(x_48, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_48); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +case 6: +{ +lean_object* x_55; +x_55 = lean_box(0); +x_31 = x_55; +goto block_40; +} +case 7: +{ +lean_object* x_56; lean_object* x_57; +x_56 = l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2; +lean_inc(x_3); +lean_inc(x_1); +x_57 = l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12___rarg(x_1, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; +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_10 = x_58; +x_11 = x_59; +goto block_21; +} +else +{ +uint8_t x_60; +lean_dec(x_3); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_57); +if (x_60 == 0) +{ +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_57, 0); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_57); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +case 8: +{ +lean_object* x_64; +x_64 = lean_box(0); +x_31 = x_64; +goto block_40; +} +case 10: +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_1, 1); +lean_inc(x_65); +lean_inc(x_3); +x_66 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_65, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +lean_inc(x_1); +x_69 = lean_expr_update_mdata(x_1, x_67); +x_10 = x_69; +x_11 = x_68; +goto block_21; +} +else +{ +uint8_t x_70; +lean_dec(x_3); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_66); +if (x_70 == 0) +{ +return x_66; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_66, 0); +x_72 = lean_ctor_get(x_66, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_66); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +case 11: +{ +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_1, 2); +lean_inc(x_74); +lean_inc(x_3); +x_75 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_74, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +lean_inc(x_1); +x_78 = lean_expr_update_proj(x_1, x_76); +x_10 = x_78; +x_11 = x_77; +goto block_21; +} +else +{ +uint8_t x_79; +lean_dec(x_3); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_75); +if (x_79 == 0) +{ +return x_75; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_75, 0); +x_81 = lean_ctor_get(x_75, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_75); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +default: +{ +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_inc(x_1); +x_10 = x_1; +x_11 = x_30; +goto block_21; +} +} +} +else +{ +lean_object* x_83; +lean_inc(x_1); +x_83 = l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +lean_dec(x_4); +lean_dec(x_2); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_10 = x_84; +x_11 = x_85; +goto block_21; +} +else +{ +uint8_t x_86; +lean_dec(x_3); +lean_dec(x_1); +x_86 = !lean_is_exclusive(x_83); +if (x_86 == 0) +{ +return x_83; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_83, 0); +x_88 = lean_ctor_get(x_83, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_83); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +block_40: +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_31); +x_32 = l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1; +lean_inc(x_3); +lean_inc(x_1); +x_33 = l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg(x_1, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_10 = x_34; +x_11 = x_35; +goto block_21; +} +else +{ +uint8_t x_36; +lean_dec(x_3); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_33); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +else +{ +uint8_t x_90; +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_90 = !lean_is_exclusive(x_28); +if (x_90 == 0) +{ +return x_28; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_28, 0); +x_92 = lean_ctor_get(x_28, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_28); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +lean_object* x_94; +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_94 = lean_ctor_get(x_27, 0); +lean_inc(x_94); +lean_dec(x_27); +lean_ctor_set(x_23, 0, x_94); +return x_23; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_23, 0); +x_96 = lean_ctor_get(x_23, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_23); +x_97 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_2__visit___spec__1(x_95, x_1); +lean_dec(x_95); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_98 = l_Lean_Meta_AbstractNestedProofs_isNonTrivialProof(x_1, x_5, x_6, x_7, x_8, x_96); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_111; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_111 = lean_unbox(x_99); +lean_dec(x_99); +if (x_111 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_112 = lean_unsigned_to_nat(0u); +x_113 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_112); +x_114 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_113); +x_115 = lean_mk_array(x_113, x_114); +x_116 = lean_unsigned_to_nat(1u); +x_117 = lean_nat_sub(x_113, x_116); +lean_dec(x_113); +lean_inc(x_3); +lean_inc(x_1); +x_118 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__9(x_1, x_115, x_117, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +x_10 = x_119; +x_11 = x_120; +goto block_21; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_3); +lean_dec(x_1); +x_121 = lean_ctor_get(x_118, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_118, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_123 = x_118; +} else { + lean_dec_ref(x_118); + 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; +} +} +case 6: +{ +lean_object* x_125; +x_125 = lean_box(0); +x_101 = x_125; +goto block_110; +} +case 7: +{ +lean_object* x_126; lean_object* x_127; +x_126 = l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2; +lean_inc(x_3); +lean_inc(x_1); +x_127 = l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__12___rarg(x_1, x_126, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_127) == 0) +{ +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_10 = x_128; +x_11 = x_129; +goto block_21; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_3); +lean_dec(x_1); +x_130 = lean_ctor_get(x_127, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_127, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_132 = x_127; +} else { + lean_dec_ref(x_127); + x_132 = lean_box(0); +} +if (lean_is_scalar(x_132)) { + x_133 = lean_alloc_ctor(1, 2, 0); +} else { + x_133 = x_132; +} +lean_ctor_set(x_133, 0, x_130); +lean_ctor_set(x_133, 1, x_131); +return x_133; +} +} +case 8: +{ +lean_object* x_134; +x_134 = lean_box(0); +x_101 = x_134; +goto block_110; +} +case 10: +{ +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_1, 1); +lean_inc(x_135); +lean_inc(x_3); +x_136 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_135, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec(x_136); +lean_inc(x_1); +x_139 = lean_expr_update_mdata(x_1, x_137); +x_10 = x_139; +x_11 = x_138; +goto block_21; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_3); +lean_dec(x_1); +x_140 = lean_ctor_get(x_136, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; +} +} +case 11: +{ +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_1, 2); +lean_inc(x_144); +lean_inc(x_3); +x_145 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_144, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +lean_inc(x_1); +x_148 = lean_expr_update_proj(x_1, x_146); +x_10 = x_148; +x_11 = x_147; +goto block_21; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_3); +lean_dec(x_1); +x_149 = lean_ctor_get(x_145, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_145, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_151 = x_145; +} else { + lean_dec_ref(x_145); + x_151 = lean_box(0); +} +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); +} else { + x_152 = x_151; +} +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; +} +} +default: +{ +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_inc(x_1); +x_10 = x_1; +x_11 = x_100; +goto block_21; +} +} +} +else +{ +lean_object* x_153; +lean_inc(x_1); +x_153 = l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +lean_dec(x_4); +lean_dec(x_2); +if (lean_obj_tag(x_153) == 0) +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_10 = x_154; +x_11 = x_155; +goto block_21; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_3); +lean_dec(x_1); +x_156 = lean_ctor_get(x_153, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_153, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_158 = x_153; +} else { + lean_dec_ref(x_153); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_158; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; +} +} +block_110: +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_101); +x_102 = l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1; +lean_inc(x_3); +lean_inc(x_1); +x_103 = l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__7___rarg(x_1, x_102, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_10 = x_104; +x_11 = x_105; +goto block_21; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_ctor_get(x_103, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_108 = x_103; +} else { + lean_dec_ref(x_103); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; +} +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +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_160 = lean_ctor_get(x_98, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_98, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_162 = x_98; +} else { + lean_dec_ref(x_98); + x_162 = lean_box(0); +} +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); +} else { + x_163 = x_162; +} +lean_ctor_set(x_163, 0, x_160); +lean_ctor_set(x_163, 1, x_161); +return x_163; +} +} +else +{ +lean_object* x_164; lean_object* x_165; +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_164 = lean_ctor_get(x_97, 0); +lean_inc(x_164); +lean_dec(x_97); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_96); +return x_165; +} +} +} +else +{ +lean_object* x_166; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_166, 0, x_1); +lean_ctor_set(x_166, 1, x_9); +return x_166; +} +block_21: +{ +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_12 = lean_st_ref_take(x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +x_15 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_2__visit___spec__3(x_13, x_1, x_10); +x_16 = lean_st_ref_set(x_3, x_15, x_14); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_10); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_mkLambdaFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___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); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___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_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_getLocalInstances___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__3(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__4(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); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_mkForallFVars___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___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* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_iterateMAux___main___at_Lean_Meta_AbstractNestedProofs_visit___main___spec__11(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_2); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Lean_Meta_AbstractNestedProofs_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_AbstractNestedProofs_visit___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_Lean_Meta_abstractNestedProofs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_st_mk_ref(x_8, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_Std_HashMap_inhabited___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); +lean_inc(x_10); +lean_inc(x_14); +x_16 = l_Lean_Meta_AbstractNestedProofs_visit___main(x_2, x_1, x_14, x_10, x_3, x_4, x_5, x_6, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_st_ref_get(x_14, x_18); +lean_dec(x_14); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_st_ref_get(x_10, x_20); +lean_dec(x_10); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_17); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_14); +lean_dec(x_10); +x_26 = !lean_is_exclusive(x_16); +if (x_26 == 0) +{ +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 0); +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_16); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Meta_Closure(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Meta_AbstractNestedProofs(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Closure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1 = _init_l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__1); +l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2 = _init_l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_AbstractNestedProofs_1__mkAuxLemma___closed__2); +l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1 = _init_l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1(); +lean_mark_persistent(l_Lean_Meta_AbstractNestedProofs_visit___main___closed__1); +l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2 = _init_l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2(); +lean_mark_persistent(l_Lean_Meta_AbstractNestedProofs_visit___main___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 24c6be9865..cdffadd73e 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -3499,7 +3499,6 @@ lean_dec(x_25); x_37 = 0; lean_inc(x_35); x_38 = l_Lean_mkLambda(x_34, x_37, x_35, x_36); -lean_dec(x_34); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 37c765d733..e345d1b280 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -189,6 +189,7 @@ lean_object* l_Lean_Meta_lambdaTelescope(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__44(lean_object*); lean_object* l_Lean_Meta_elimMVarDeps(lean_object*); lean_object* l_Lean_MetavarContext_setMVarKind(lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Meta_dependsOn___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_26__withNewFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getTransparency___rarg(lean_object*); @@ -196,6 +197,7 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___a lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__5___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*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__52___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope(lean_object*); +lean_object* l_Lean_Meta_dependsOn(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_getConstNoEx_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__58___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -299,7 +301,6 @@ lean_object* l_Lean_Meta_mkFreshExprMVarAt___at___private_Lean_Meta_Basic_3__mkF lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__68___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*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Lean_MonadError___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_15__forallTelescopeReducingAux___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__1(lean_object*); -lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3; lean_object* l_Lean_Meta_whnf___rarg___closed__1; lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_19__forallTelescopeImp___spec__37(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__49(lean_object*); @@ -514,7 +515,6 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___a lean_object* l_Lean_Meta_MetaM_run_x27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Meta_Basic_11__withNewLocalInstanceImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__41(lean_object*); -lean_object* l_StateRefT_x27_MonadLift(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__59(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__8(lean_object*); @@ -533,6 +533,7 @@ lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_MonadCacheT_MonadLift___closed__1; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*); lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isReadOnlyExprMVar___rarg(lean_object*, lean_object*); @@ -796,6 +797,7 @@ lean_object* l_Lean_Meta_State_inhabited___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_19__forallTelescopeImp___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_30__withNewMCtxDepthImp(lean_object*); +lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__39___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*, lean_object*, lean_object*); @@ -1068,6 +1070,7 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___a lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___spec__68(lean_object*); lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___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_foldl___main___at___private_Lean_Meta_Basic_29__withExistingLocalDeclsImp___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_dependsOn___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setInlineAttribute___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewMCtxDepth(lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__47(lean_object*); @@ -1145,6 +1148,7 @@ lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___a lean_object* l_Lean_Meta_withAtLeastTransparency___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___at___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___spec__76(lean_object*); +lean_object* l_Lean_Meta_dependsOn___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Meta_Basic_3__mkFreshExprMVarCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getConfig___rarg___closed__1; lean_object* l_Lean_Meta_getParamNames(lean_object*); @@ -12027,29 +12031,18 @@ return x_17; lean_object* _init_l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_MonadLift), 4, 3); -lean_closure_set(x_1, 0, lean_box(0)); -lean_closure_set(x_1, 1, lean_box(0)); -lean_closure_set(x_1, 2, lean_box(0)); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Core_Lean_MonadNameGenerator; +x_2 = l_Lean_MonadCacheT_MonadLift___closed__1; +x_3 = l_Lean_monadNameGeneratorLift___rarg(x_1, x_2); +return x_3; } } lean_object* _init_l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Core_Lean_MonadNameGenerator; -x_2 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; -x_3 = l_Lean_monadNameGeneratorLift___rarg(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; +x_1 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; x_2 = l_ReaderT_MonadLift___closed__1; x_3 = l_Lean_monadNameGeneratorLift___rarg(x_1, x_2); return x_3; @@ -12117,7 +12110,7 @@ x_30 = lean_expr_instantiate_rev_range(x_15, x_7, x_29, x_6); lean_dec(x_29); lean_dec(x_15); x_31 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_32 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3; +x_32 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; x_33 = l_Lean_mkFreshId___rarg(x_31, x_32); lean_inc(x_12); lean_inc(x_11); @@ -90284,6 +90277,56 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_instantiateForall___rarg), 3, 0); return x_2; } } +lean_object* l_Lean_Meta_dependsOn___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = l_Lean_MetavarContext_exprDependsOn(x_3, x_1, x_2); +x_10 = lean_unbox(x_9); +lean_dec(x_9); +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +lean_object* l_Lean_Meta_dependsOn___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_alloc_closure((void*)(l_Lean_Meta_dependsOn___rarg___lambda__1___boxed), 8, 2); +lean_closure_set(x_4, 0, x_2); +lean_closure_set(x_4, 1, x_3); +x_5 = l_Lean_Meta_Lean_MonadMCtx___closed__4; +x_6 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg), 7, 2); +lean_closure_set(x_6, 0, x_5); +lean_closure_set(x_6, 1, x_4); +x_7 = lean_apply_2(x_1, lean_box(0), x_6); +return x_7; +} +} +lean_object* l_Lean_Meta_dependsOn(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_dependsOn___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_dependsOn___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_dependsOn___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_9; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Data_LOption(lean_object*); lean_object* initialize_Lean_Environment(lean_object*); @@ -90554,8 +90597,6 @@ l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___cl lean_mark_persistent(l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1); l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2); -l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3); l_Lean_Meta_getParamNamesImp___closed__1 = _init_l_Lean_Meta_getParamNamesImp___closed__1(); lean_mark_persistent(l_Lean_Meta_getParamNamesImp___closed__1); l_Lean_Meta_normalizeLevel___rarg___closed__1 = _init_l_Lean_Meta_normalizeLevel___rarg___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Closure.c b/stage0/stdlib/Lean/Meta/Closure.c index 4af2d02b43..a58e4a6e63 100644 --- a/stage0/stdlib/Lean/Meta/Closure.c +++ b/stage0/stdlib/Lean/Meta/Closure.c @@ -9466,7 +9466,6 @@ if (x_1 == 0) { lean_object* x_16; x_16 = l_Lean_mkForall(x_12, x_14, x_15, x_5); -lean_dec(x_12); x_4 = x_9; x_5 = x_16; goto _start; @@ -9475,7 +9474,6 @@ else { lean_object* x_18; x_18 = l_Lean_mkLambda(x_12, x_14, x_15, x_5); -lean_dec(x_12); x_4 = x_9; x_5 = x_18; goto _start; @@ -9513,7 +9511,6 @@ lean_dec(x_21); x_28 = lean_expr_abstract_range(x_22, x_9, x_3); lean_dec(x_22); x_29 = l_Lean_mkLet(x_20, x_27, x_28, x_5, x_23); -lean_dec(x_20); x_4 = x_9; x_5 = x_29; goto _start; @@ -9593,7 +9590,6 @@ lean_dec(x_10); x_14 = lean_expr_abstract_range(x_12, x_8, x_2); lean_dec(x_12); x_15 = l_Lean_mkLambda(x_11, x_13, x_14, x_4); -lean_dec(x_11); x_3 = x_8; x_4 = x_15; goto _start; @@ -9630,7 +9626,6 @@ lean_dec(x_18); x_25 = lean_expr_abstract_range(x_19, x_8, x_2); lean_dec(x_19); x_26 = l_Lean_mkLet(x_17, x_24, x_25, x_4, x_20); -lean_dec(x_17); x_3 = x_8; x_4 = x_26; goto _start; @@ -9706,7 +9701,6 @@ lean_dec(x_10); x_14 = lean_expr_abstract_range(x_12, x_8, x_2); lean_dec(x_12); x_15 = l_Lean_mkForall(x_11, x_13, x_14, x_4); -lean_dec(x_11); x_3 = x_8; x_4 = x_15; goto _start; @@ -9743,7 +9737,6 @@ lean_dec(x_18); x_25 = lean_expr_abstract_range(x_19, x_8, x_2); lean_dec(x_19); x_26 = l_Lean_mkLet(x_17, x_24, x_25, x_4, x_20); -lean_dec(x_17); x_3 = x_8; x_4 = x_26; goto _start; diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index b722bd176d..dd62e83264 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -145,7 +145,6 @@ lean_object* l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_15__proce lean_object* l___private_Lean_Meta_ExprDefEq_7__isDefEqBinding(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_23__isDefEqLeft___lambda__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_42__isDefEqQuick___main___lambda__1___closed__5; -extern lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; lean_object* l_Lean_Meta_commitWhenSome_x3f___at_Lean_Meta_isExprDefEqAuxImpl___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,6 +199,7 @@ lean_object* l_Lean_Meta_CheckAssignment_assignToConstFun___lambda__1(lean_objec uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_42__isDefEqQuick___main___lambda__2(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_MonadCacheT_MonadLift___closed__1; extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__4; lean_object* l___private_Lean_Meta_Basic_2__mkFreshExprMVarAtCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_31__unfoldDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1083,7 +1083,6 @@ lean_inc(x_20); x_21 = lean_ctor_get_uint64(x_17, sizeof(void*)*3); lean_dec(x_17); x_22 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1(x_1, x_2, x_19, x_20, x_21, x_3, x_4, x_5, x_6, x_18); -lean_dec(x_19); return x_22; } else @@ -1206,7 +1205,6 @@ uint64_t x_11; lean_object* x_12; x_11 = lean_unbox_uint64(x_5); lean_dec(x_5); x_12 = l_Lean_Meta_commitWhenSome_x3f___at___private_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__2(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); return x_12; } } @@ -1217,7 +1215,6 @@ uint64_t x_11; lean_object* x_12; x_11 = lean_unbox_uint64(x_5); lean_dec(x_5); x_12 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); return x_12; } } @@ -8771,7 +8768,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Core_Lean_MonadTrace; -x_2 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; +x_2 = l_Lean_MonadCacheT_MonadLift___closed__1; x_3 = l_Lean_monadTraceTrans___rarg(x_1, x_2); return x_3; } @@ -8791,7 +8788,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_CheckAssignment_checkFVar___closed__4; -x_2 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; +x_2 = l_Lean_MonadCacheT_MonadLift___closed__1; x_3 = l_Lean_monadTraceTrans___rarg(x_1, x_2); return x_3; } @@ -8811,7 +8808,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_Lean_AddMessageDataContext; -x_2 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__1; +x_2 = l_Lean_MonadCacheT_MonadLift___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_addMessageDataContextTrans___rarg), 3, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); diff --git a/stage0/stdlib/Lean/Meta/Match/CaseValues.c b/stage0/stdlib/Lean/Meta/Match/CaseValues.c index d3ad637854..80939bb4fb 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseValues.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseValues.c @@ -95,7 +95,6 @@ lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__ge lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_Meta_caseValueAux___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValueAux___lambda__5___closed__7; lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_check___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_check___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1274,6 +1273,7 @@ x_23 = l_Lean_mkApp(x_22, x_20); x_24 = 0; lean_inc(x_16); lean_inc(x_20); +lean_inc(x_4); x_25 = l_Lean_mkForall(x_4, x_24, x_20, x_16); x_26 = l_Lean_mkForall(x_4, x_24, x_23, x_16); lean_inc(x_7); @@ -1693,6 +1693,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); x_123 = !lean_is_exclusive(x_19); if (x_123 == 0) @@ -1723,6 +1724,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -1755,6 +1757,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -1787,7 +1790,7 @@ lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1); lean_closure_set(x_11, 0, x_1); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__5___boxed), 11, 5); +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__5), 11, 5); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_2); lean_closure_set(x_12, 2, x_3); @@ -1841,15 +1844,6 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Meta_caseValueAux___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_caseValueAux___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_4); -return x_12; -} -} lean_object* _init_l_Lean_Meta_caseValue___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Meta/RecursorInfo.c b/stage0/stdlib/Lean/Meta/RecursorInfo.c index b660d2432b..332bab569b 100644 --- a/stage0/stdlib/Lean/Meta/RecursorInfo.c +++ b/stage0/stdlib/Lean/Meta/RecursorInfo.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Meta_recursorAttribute; lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_RecursorInfo_6__getParamsPos___spec__2___closed__1; lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_brecOnSuffix___closed__1; +lean_object* l_Lean_Meta_binductionOnSuffix; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoRec___at___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__2; @@ -176,6 +177,7 @@ lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString__ extern lean_object* l_Std_PersistentArray_Stats_toString___closed__4; lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___spec__3___closed__3; uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_mkRecursorAttr___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkBInductionOnFor(lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Meta_RecursorInfo_12__mkRecursorInfoAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); @@ -325,6 +327,7 @@ lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l___private_Lean_Meta_RecursorInfo_6__getParamsPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_binductionOnSuffix___closed__1; lean_object* l___private_Lean_Meta_RecursorInfo_2__getMajorPosIfAuxRecursor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1; @@ -404,6 +407,22 @@ x_1 = l_Lean_Meta_brecOnSuffix___closed__1; return x_1; } } +lean_object* _init_l_Lean_Meta_binductionOnSuffix___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binductionOn"); +return x_1; +} +} +lean_object* _init_l_Lean_Meta_binductionOnSuffix() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_binductionOnSuffix___closed__1; +return x_1; +} +} lean_object* l_Lean_Meta_mkCasesOnFor(lean_object* x_1) { _start: { @@ -431,6 +450,15 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* l_Lean_Meta_mkBInductionOnFor(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_binductionOnSuffix; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1() { _start: { @@ -11374,6 +11402,10 @@ l_Lean_Meta_brecOnSuffix___closed__1 = _init_l_Lean_Meta_brecOnSuffix___closed__ lean_mark_persistent(l_Lean_Meta_brecOnSuffix___closed__1); l_Lean_Meta_brecOnSuffix = _init_l_Lean_Meta_brecOnSuffix(); lean_mark_persistent(l_Lean_Meta_brecOnSuffix); +l_Lean_Meta_binductionOnSuffix___closed__1 = _init_l_Lean_Meta_binductionOnSuffix___closed__1(); +lean_mark_persistent(l_Lean_Meta_binductionOnSuffix___closed__1); +l_Lean_Meta_binductionOnSuffix = _init_l_Lean_Meta_binductionOnSuffix(); +lean_mark_persistent(l_Lean_Meta_binductionOnSuffix); l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1 = _init_l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1(); lean_mark_persistent(l_Lean_Meta_RecursorUnivLevelPos_hasToString___closed__1); l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1 = _init_l_List_toStringAux___main___at_Lean_Meta_RecursorInfo_HasToString___spec__2___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Assert.c b/stage0/stdlib/Lean/Meta/Tactic/Assert.c index 11feb43a43..21bad3ff26 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Assert.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Assert.c @@ -115,6 +115,7 @@ lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_30 = !lean_is_exclusive(x_14); if (x_30 == 0) @@ -142,6 +143,7 @@ uint8_t x_34; lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_34 = !lean_is_exclusive(x_11); if (x_34 == 0) @@ -213,7 +215,6 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -lean_dec(x_2); return x_11; } } @@ -285,6 +286,7 @@ lean_dec(x_12); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_29 = !lean_is_exclusive(x_14); if (x_29 == 0) @@ -312,6 +314,7 @@ uint8_t x_33; lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); x_33 = !lean_is_exclusive(x_11); if (x_33 == 0) @@ -383,7 +386,6 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -lean_dec(x_2); return x_11; } } @@ -539,6 +541,8 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -570,6 +574,8 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -600,6 +606,8 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -653,8 +661,6 @@ _start: lean_object* x_12; x_12 = l_Lean_Meta_assertExt___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); return x_12; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Generalize.c b/stage0/stdlib/Lean/Meta/Tactic/Generalize.c index 847a21cfbf..ec0a4e56b0 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Generalize.c @@ -227,6 +227,7 @@ if (x_62 == 0) lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_dec(x_22); lean_dec(x_12); +lean_dec(x_3); lean_dec(x_2); x_63 = l_Lean_Meta_generalize___lambda__1___closed__6; x_64 = lean_box(0); @@ -415,6 +416,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_57 = !lean_is_exclusive(x_25); @@ -447,6 +449,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_70 = !lean_is_exclusive(x_21); @@ -478,6 +481,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_74 = !lean_is_exclusive(x_14); @@ -508,6 +512,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_78 = !lean_is_exclusive(x_11); @@ -586,7 +591,6 @@ _start: lean_object* x_11; x_11 = l_Lean_Meta_generalize___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); -lean_dec(x_3); return x_11; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Intro.c index 46055b6e55..695184d294 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Intro.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Intro.c @@ -33,7 +33,6 @@ lean_object* l_Lean_Meta_introNCore___at_Lean_Meta_introN___spec__1___boxed(lean extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Meta_whnf___rarg(lean_object*, lean_object*); extern lean_object* l_Id_monad; -extern lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3; lean_object* l_Lean_Meta_introNCore___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkNotAssigned___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -89,6 +88,7 @@ lean_object* l_Lean_Meta_introNCore___at_Lean_Meta_introN___spec__1(uint8_t, lea lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Meta_InferType_4__getLevelImp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCoreAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAuxName(uint8_t, lean_object*, lean_object*, lean_object*); @@ -334,7 +334,7 @@ lean_dec(x_44); lean_dec(x_41); x_46 = l_Lean_Expr_headBeta(x_45); x_47 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_48 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3; +x_48 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; x_49 = l_Lean_mkFreshId___rarg(x_47, x_48); lean_inc(x_12); lean_inc(x_11); @@ -427,7 +427,7 @@ x_72 = lean_expr_instantiate_rev_range(x_67, x_6, x_69, x_5); lean_dec(x_69); lean_dec(x_67); x_73 = l___private_Lean_Meta_Basic_12__withNewLocalInstancesImp___main___rarg___closed__3; -x_74 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__3; +x_74 = l___private_Lean_Meta_Basic_14__forallTelescopeReducingAuxAux___main___rarg___closed__2; x_75 = l_Lean_mkFreshId___rarg(x_73, x_74); lean_inc(x_12); lean_inc(x_11); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Target.c b/stage0/stdlib/Lean/Meta/Tactic/Target.c index c4242dc12f..7f0a160f5a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Target.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Target.c @@ -1059,7 +1059,6 @@ block_41: uint8_t x_16; lean_object* x_17; lean_object* x_18; x_16 = (uint8_t)((x_14 << 24) >> 61); x_17 = l_Lean_mkForall(x_11, x_16, x_3, x_13); -lean_dec(x_11); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -1291,7 +1290,6 @@ block_97: uint8_t x_73; lean_object* x_74; lean_object* x_75; x_73 = 0; x_74 = l_Lean_mkLet(x_68, x_3, x_70, x_71, x_73); -lean_dec(x_68); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index 5cd2313ddb..78f250739c 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -34531,7 +34531,6 @@ lean_dec(x_21); x_24 = lean_expr_abstract_range(x_22, x_12, x_3); lean_dec(x_22); x_25 = l_Lean_mkForall(x_16, x_18, x_24, x_6); -lean_dec(x_16); x_5 = x_12; x_6 = x_25; x_8 = x_23; @@ -34604,6 +34603,7 @@ lean_dec(x_42); x_45 = lean_expr_abstract_range(x_43, x_12, x_3); lean_dec(x_43); lean_inc(x_40); +lean_inc(x_31); x_46 = l_Lean_mkLet(x_31, x_40, x_45, x_6, x_34); x_47 = lean_box(x_4); if (lean_obj_tag(x_47) == 2) @@ -34613,7 +34613,6 @@ x_48 = lean_expr_lift_loose_bvars(x_46, x_9, x_11); lean_dec(x_46); x_49 = 0; x_50 = l_Lean_mkForall(x_31, x_49, x_40, x_48); -lean_dec(x_31); x_5 = x_12; x_6 = x_50; x_8 = x_44; @@ -40364,7 +40363,6 @@ if (x_4 == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = l_Lean_mkForall(x_15, x_17, x_22, x_10); -lean_dec(x_15); x_24 = lean_unsigned_to_nat(1u); x_25 = lean_nat_add(x_11, x_24); lean_dec(x_11); @@ -40377,7 +40375,6 @@ else { lean_object* x_26; lean_object* x_27; lean_object* x_28; x_26 = l_Lean_mkLambda(x_15, x_17, x_22, x_10); -lean_dec(x_15); x_27 = lean_unsigned_to_nat(1u); x_28 = lean_nat_add(x_11, x_27); lean_dec(x_11); @@ -40402,7 +40399,6 @@ if (x_4 == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_32 = l_Lean_mkForall(x_15, x_17, x_31, x_10); -lean_dec(x_15); x_33 = lean_unsigned_to_nat(1u); x_34 = lean_nat_add(x_11, x_33); lean_dec(x_11); @@ -40417,7 +40413,6 @@ else { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_36 = l_Lean_mkLambda(x_15, x_17, x_31, x_10); -lean_dec(x_15); x_37 = lean_unsigned_to_nat(1u); x_38 = lean_nat_add(x_11, x_37); lean_dec(x_11); @@ -40505,7 +40500,6 @@ if (x_4 == 0) { lean_object* x_57; lean_object* x_58; lean_object* x_59; x_57 = l_Lean_mkForall(x_44, x_46, x_56, x_10); -lean_dec(x_44); x_58 = lean_unsigned_to_nat(1u); x_59 = lean_nat_add(x_11, x_58); lean_dec(x_11); @@ -40518,7 +40512,6 @@ else { lean_object* x_60; lean_object* x_61; lean_object* x_62; x_60 = l_Lean_mkLambda(x_44, x_46, x_56, x_10); -lean_dec(x_44); x_61 = lean_unsigned_to_nat(1u); x_62 = lean_nat_add(x_11, x_61); lean_dec(x_11); @@ -40543,7 +40536,6 @@ if (x_4 == 0) { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_66 = l_Lean_mkForall(x_44, x_46, x_65, x_10); -lean_dec(x_44); x_67 = lean_unsigned_to_nat(1u); x_68 = lean_nat_add(x_11, x_67); lean_dec(x_11); @@ -40558,7 +40550,6 @@ else { lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; x_70 = l_Lean_mkLambda(x_44, x_46, x_65, x_10); -lean_dec(x_44); x_71 = lean_unsigned_to_nat(1u); x_72 = lean_nat_add(x_11, x_71); lean_dec(x_11); @@ -40659,7 +40650,6 @@ x_94 = lean_expr_abstract_range(x_93, x_5, x_1); lean_dec(x_1); lean_dec(x_93); x_95 = l_Lean_mkLet(x_78, x_90, x_94, x_10, x_81); -lean_dec(x_78); x_96 = lean_unsigned_to_nat(1u); x_97 = lean_nat_add(x_11, x_96); lean_dec(x_11); @@ -40680,7 +40670,6 @@ x_100 = lean_expr_abstract_range(x_98, x_5, x_1); lean_dec(x_1); lean_dec(x_98); x_101 = l_Lean_mkLet(x_78, x_90, x_100, x_10, x_81); -lean_dec(x_78); x_102 = lean_unsigned_to_nat(1u); x_103 = lean_nat_add(x_11, x_102); lean_dec(x_11); @@ -40800,7 +40789,6 @@ if (x_4 == 0) { lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; x_127 = l_Lean_mkForall(x_118, x_120, x_126, x_113); -lean_dec(x_118); x_128 = lean_unsigned_to_nat(1u); x_129 = lean_nat_add(x_114, x_128); lean_dec(x_114); @@ -40820,7 +40808,6 @@ else { lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; x_132 = l_Lean_mkLambda(x_118, x_120, x_126, x_113); -lean_dec(x_118); x_133 = lean_unsigned_to_nat(1u); x_134 = lean_nat_add(x_114, x_133); lean_dec(x_114); @@ -40922,7 +40909,6 @@ if (x_4 == 0) { lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; x_156 = l_Lean_mkForall(x_141, x_143, x_155, x_113); -lean_dec(x_141); x_157 = lean_unsigned_to_nat(1u); x_158 = lean_nat_add(x_114, x_157); lean_dec(x_114); @@ -40942,7 +40928,6 @@ else { lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; x_161 = l_Lean_mkLambda(x_141, x_143, x_155, x_113); -lean_dec(x_141); x_162 = lean_unsigned_to_nat(1u); x_163 = lean_nat_add(x_114, x_162); lean_dec(x_114); @@ -41057,7 +41042,6 @@ x_188 = lean_expr_abstract_range(x_185, x_5, x_1); lean_dec(x_1); lean_dec(x_185); x_189 = l_Lean_mkLet(x_170, x_183, x_188, x_113, x_173); -lean_dec(x_170); x_190 = lean_unsigned_to_nat(1u); x_191 = lean_nat_add(x_114, x_190); lean_dec(x_114); diff --git a/stage0/stdlib/Lean/MonadEnv.c b/stage0/stdlib/Lean/MonadEnv.c index c622cd8287..e2b4b0e555 100644 --- a/stage0/stdlib/Lean/MonadEnv.c +++ b/stage0/stdlib/Lean/MonadEnv.c @@ -14,8 +14,10 @@ extern "C" { #endif lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__4; +lean_object* l_Lean_hasConst___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___rarg(lean_object*, lean_object*); +lean_object* l_Lean_hasConst(lean_object*); lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1___closed__2; lean_object* l_Lean_getConstInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_compileDecl___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -26,11 +28,14 @@ lean_object* l_Lean_matchConstRec___rarg(lean_object*, lean_object*, lean_object lean_object* l_Lean_compileDecl(lean_object*); lean_object* l_Lean_matchConst___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoRec___rarg___lambda__1___closed__3; +lean_object* l_Lean_hasConst___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConstInduct___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConstRec___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_compileDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv(lean_object*); +lean_object* l_Lean_hasConst___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addAndCompile___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__3; lean_object* l_Lean_getConstInfoCtor___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConstStruct___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,6 +47,8 @@ lean_object* l_Lean_getConstInfoCtor___rarg___lambda__1___closed__3; lean_object* l_Lean_addAndCompile___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoInduct(lean_object*); lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__5; +lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l___private_Lean_MonadEnv_1__mkAuxNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_compileDecl___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_HasRepr___closed__1; @@ -50,13 +57,17 @@ lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1(lean_object*, lean_obj lean_object* l_Lean_matchConstCtor___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConstStruct___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConst(lean_object*); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_matchConstInduct(lean_object*); lean_object* l_Lean_getConstInfo(lean_object*); lean_object* l_Lean_addDecl(lean_object*); lean_object* l_Lean_getConstInfoCtor___rarg___lambda__1___closed__1; lean_object* l_fix1___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__1; +lean_object* l_Lean_mkAuxName(lean_object*); lean_object* l_Lean_addDecl___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAuxName___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_matchConstRec(lean_object*); lean_object* l_Lean_getConstInfo___rarg___lambda__1___closed__2; lean_object* l_Lean_throwKernelException___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -65,6 +76,7 @@ lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object* l_Lean_getConstInfoCtor___rarg___lambda__1___closed__2; lean_object* l_Lean_matchConstInduct___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_compileDecl___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_MonadEnv_1__mkAuxNameAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoRec___rarg___lambda__1___closed__1; lean_object* l_Lean_matchConstStruct(lean_object*); lean_object* l_Lean_getConstInfoRec___rarg___lambda__1___closed__2; @@ -440,6 +452,131 @@ x_2 = lean_alloc_closure((void*)(l_Lean_matchConstRec___rarg), 6, 0); return x_2; } } +lean_object* l_Lean_hasConst___rarg___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; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Environment_contains(x_3, x_2); +x_7 = lean_box(x_6); +x_8 = lean_apply_2(x_5, lean_box(0), x_7); +return x_8; +} +} +lean_object* l_Lean_hasConst___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_hasConst___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_6, 0, x_2); +lean_closure_set(x_6, 1, x_3); +x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_hasConst(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_hasConst___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_hasConst___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_hasConst___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l___private_Lean_MonadEnv_1__mkAuxNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +lean_inc(x_3); +lean_inc(x_2); +x_4 = l_Lean_Name_appendIndexAfter(x_2, x_3); +lean_inc(x_1); +x_5 = l_Lean_Environment_contains(x_1, x_4); +if (x_5 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_add(x_3, x_6); +lean_dec(x_3); +x_3 = x_7; +goto _start; +} +} +} +lean_object* l___private_Lean_MonadEnv_1__mkAuxNameAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_mkAuxName___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l___private_Lean_MonadEnv_1__mkAuxNameAux___main(x_4, x_2, x_3); +x_8 = lean_apply_2(x_6, lean_box(0), x_7); +return x_8; +} +} +lean_object* l_Lean_mkAuxName___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; +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_alloc_closure((void*)(l_Lean_mkAuxName___rarg___lambda__1), 4, 3); +lean_closure_set(x_7, 0, x_2); +lean_closure_set(x_7, 1, x_3); +lean_closure_set(x_7, 2, x_4); +x_8 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_mkAuxName(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_mkAuxName___rarg), 4, 0); +return x_2; +} +} lean_object* _init_l_Lean_getConstInfo___rarg___lambda__1___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 66951194cc..00dd66e103 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -283,6 +283,7 @@ lean_object* l_Lean_Parser_Term_namedArgument___closed__7; lean_object* l_Lean_Parser_Term_bne___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_suffices___closed__2; lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__8; +lean_object* l_Lean_Parser_Term_ellipsis___closed__3; lean_object* l_Lean_Parser_Term_doExpr___closed__2; lean_object* l_Lean_Parser_Term_infixL_parenthesizer___boxed(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_and_formatter___closed__1; @@ -334,6 +335,7 @@ lean_object* l_Lean_PrettyPrinter_Formatter_many_formatter(lean_object*, lean_ob lean_object* l_Lean_Parser_Term_tupleTail_parenthesizer___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_pow(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_match__syntax_formatter___closed__1; +lean_object* l_Lean_Parser_Term_ellipsis_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_match_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkStackTop_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -351,6 +353,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_seqLeft___closed__2; lean_object* l_Lean_Parser_Term_attributes_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_namedArgument___closed__5; +lean_object* l_Lean_Parser_Term_app_formatter___closed__6; extern lean_object* l_Lean_Parser_Level_max_parenthesizer___closed__2; extern lean_object* l_Lean_Parser_mkAntiquot_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_seq; @@ -432,6 +435,7 @@ lean_object* l_Lean_Parser_Term_matchAlts___lambda__1(uint8_t, lean_object*, lea lean_object* l___regBuiltin_Lean_Parser_Term_dollar_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_letDecl_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__12; +lean_object* l_Lean_Parser_Term_ellipsis___closed__5; lean_object* l_Lean_Parser_Term_andM_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_orelse_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderTactic_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -680,6 +684,7 @@ lean_object* l_Lean_Parser_Term_doLet_formatter___closed__3; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___spec__2___closed__1; lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Term_ellipsis___closed__1; lean_object* l_Lean_Parser_Term_doElem_parenthesizer___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_do(lean_object*); lean_object* l_Lean_Parser_Term_inaccessible_formatter___closed__3; @@ -901,6 +906,7 @@ lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_let_x21___closed__6; lean_object* l_Lean_Parser_Term_byTactic_formatter___closed__1; lean_object* l_Lean_Parser_Term_forall_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Term_app_formatter___closed__5; lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_if_parenthesizer___closed__8; lean_object* l_Lean_Parser_Term_simpleBinder___closed__3; @@ -957,6 +963,7 @@ lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_letDecl___closed__2; lean_object* l_Lean_Parser_Term_optIdent___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_ellipsis___closed__4; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_listLit___closed__8; lean_object* l_Lean_Parser_Term_orelse_parenthesizer___closed__1; @@ -1190,6 +1197,7 @@ lean_object* l_Lean_Parser_Term_add___elambda__1___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_concatArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letPatDecl___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_namedPattern_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderType___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_listLit_formatter___closed__1; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__6; @@ -1300,6 +1308,7 @@ lean_object* l_Lean_Parser_Term_listLit_formatter___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_parser_x21(lean_object*); lean_object* l_Lean_Parser_Term_subtype_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fromTerm___closed__1; +lean_object* l_Lean_Parser_Term_app_parenthesizer___closed__5; lean_object* l___regBuiltin_Lean_Parser_Term_listLit_formatter(lean_object*); lean_object* l_Lean_Parser_Term_parser_x21_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__5; @@ -1524,6 +1533,7 @@ lean_object* l_Lean_Parser_Term_add___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_byTactic_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_heq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_nativeDecide___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_ellipsis___closed__2; lean_object* l_Lean_Parser_Term_bnot_formatter___closed__3; lean_object* l_Lean_Parser_Term_cdot_formatter___closed__1; lean_object* l_Lean_Parser_Term_beq; @@ -1815,6 +1825,7 @@ lean_object* l_Lean_Parser_Term_cons_formatter(lean_object*, lean_object*, lean_ lean_object* l_Lean_Parser_Term_subtype___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_bindOp(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_lt_formatter___closed__1; +lean_object* l_Lean_Parser_Term_app_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_nativeDecide___closed__4; lean_object* l_Lean_Parser_Term_byTactic_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_bindOp_parenthesizer(lean_object*); @@ -2126,6 +2137,7 @@ lean_object* l_Lean_Parser_Term_doElem_parenthesizer(lean_object*, lean_object*, lean_object* l_Lean_Parser_Term_letDecl___closed__9; extern lean_object* l_Lean_Parser_Level_ident___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_heq_formatter___closed__1; +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_pow___closed__4; lean_object* l_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_map_formatter(lean_object*); @@ -2205,6 +2217,7 @@ lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_subtype(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_prop_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_borrowed_formatter___closed__1; +lean_object* l_Lean_Parser_Term_app___closed__7; lean_object* l___regBuiltin_Lean_Parser_Term_div_formatter(lean_object*); lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Error_toString___closed__2; @@ -2315,6 +2328,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_and_formatter(lean_object*); lean_object* l_Lean_Parser_Term_instBinder_formatter___closed__4; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_match__syntax___closed__4; +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_show___closed__7; lean_object* l_Lean_Parser_ParserState_restore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed_formatter___closed__2; @@ -2462,6 +2476,7 @@ lean_object* l_Lean_Parser_Term_doPat___closed__1; lean_object* l_Lean_Parser_Term_show___closed__3; lean_object* l_Lean_Parser_Term_le___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_letrec___closed__9; +lean_object* l_Lean_Parser_Term_ellipsis; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_cons___closed__1; extern lean_object* l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; @@ -2915,6 +2930,7 @@ lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_attrInstance___e lean_object* l_Lean_Parser_Term_type___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_structInst___closed__13; lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; lean_object* l_Lean_Parser_nameLit_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_borrowed___closed__3; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__9; @@ -2924,6 +2940,7 @@ lean_object* l_Lean_Parser_Term_add_formatter___closed__1; lean_object* l_Lean_Parser_Term_depArrow___closed__6; lean_object* l_Lean_Parser_Term_doPat_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_sorry_parenthesizer___closed__2; +lean_object* l_Lean_Parser_Term_ellipsis_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_attributes___closed__1; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_explicitUniv___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3194,6 +3211,7 @@ lean_object* l_Lean_Parser_Term_uminus___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_arrow_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_letPatDecl_formatter___closed__2; lean_object* l_Lean_Parser_Term_letIdLhs_formatter___closed__1; +lean_object* l_Lean_Parser_Term_ellipsis_formatter___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_uminus_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_syntheticHole___closed__3; lean_object* l_Lean_Parser_Term_map___closed__1; @@ -3284,6 +3302,7 @@ lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_if_formatter___closed__4; lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Parser_Term_doSeq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_ellipsis_formatter___closed__2; lean_object* l_Lean_Parser_Term_namedArgument_formatter___closed__5; lean_object* l_Lean_Parser_Term_optExprPrecedence; lean_object* l___regBuiltinParser_Lean_Parser_Term_prop(lean_object*); @@ -3302,6 +3321,7 @@ lean_object* l_Lean_Parser_Term_not___closed__8; lean_object* l_Lean_Parser_Term_match___closed__11; lean_object* l_Lean_Parser_Term_doPat_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_arrow_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_beq_formatter___closed__1; lean_object* l_Lean_Parser_Term_implicitBinder___boxed(lean_object*); lean_object* l_Lean_Parser_Term_nativeRefl___elambda__1(lean_object*, lean_object*); @@ -3799,6 +3819,7 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___la lean_object* l_Lean_Parser_Term_dollar___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_match_formatter(lean_object*); lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Parser_Term_nativeDecide_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__5; @@ -4097,6 +4118,7 @@ lean_object* l_Lean_Parser_Term_letDecl_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_show_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_app___closed__4; lean_object* l_Lean_Parser_andthenFn(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_subtype_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_char_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_syntheticHole; @@ -63237,6 +63259,336 @@ x_1 = l_Lean_Parser_Term_namedArgument___closed__8; return x_1; } } +lean_object* _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ellipsis"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_ellipsis___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +x_6 = lean_unsigned_to_nat(1024u); +x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2); +x_8 = lean_ctor_get(x_7, 3); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_array_get_size(x_9); +lean_dec(x_9); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +x_12 = l_Lean_Parser_tokenFn(x_1, x_7); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_14); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 2) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Parser_Term_structInst___elambda__1___closed__9; +x_18 = lean_string_dec_eq(x_16, x_17); +lean_dec(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_20 = l_Lean_Parser_ParserState_mkErrorsAt(x_12, x_19, x_11); +x_21 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_22 = l_Lean_Parser_ParserState_mkNode(x_20, x_21, x_10); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_11); +x_23 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_24 = l_Lean_Parser_ParserState_mkNode(x_12, x_23, x_10); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_15); +x_25 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_26 = l_Lean_Parser_ParserState_mkErrorsAt(x_12, x_25, x_11); +x_27 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_28 = l_Lean_Parser_ParserState_mkNode(x_26, x_27, x_10); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_13); +x_29 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_12, x_29, x_11); +x_31 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_10); +return x_32; +} +} +else +{ +lean_dec(x_8); +lean_dec(x_1); +return x_7; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = lean_array_get_size(x_33); +lean_dec(x_33); +x_35 = lean_ctor_get(x_2, 1); +lean_inc(x_35); +lean_inc(x_1); +x_36 = lean_apply_2(x_4, x_1, x_2); +x_37 = lean_ctor_get(x_36, 3); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_1); +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +x_40 = lean_nat_dec_eq(x_39, x_35); +lean_dec(x_39); +if (x_40 == 0) +{ +lean_dec(x_38); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_1); +return x_36; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_inc(x_35); +x_41 = l_Lean_Parser_ParserState_restore(x_36, x_34, x_35); +lean_dec(x_34); +x_42 = lean_unsigned_to_nat(1024u); +x_43 = l_Lean_Parser_checkPrecFn(x_42, x_1, x_41); +x_44 = lean_ctor_get(x_43, 3); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_array_get_size(x_45); +lean_dec(x_45); +x_47 = lean_ctor_get(x_43, 1); +lean_inc(x_47); +x_48 = l_Lean_Parser_tokenFn(x_1, x_43); +x_49 = lean_ctor_get(x_48, 3); +lean_inc(x_49); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +x_51 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_50); +lean_dec(x_50); +if (lean_obj_tag(x_51) == 2) +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = l_Lean_Parser_Term_structInst___elambda__1___closed__9; +x_54 = lean_string_dec_eq(x_52, x_53); +lean_dec(x_52); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_55 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_56 = l_Lean_Parser_ParserState_mkErrorsAt(x_48, x_55, x_47); +x_57 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_58 = l_Lean_Parser_ParserState_mkNode(x_56, x_57, x_46); +x_59 = l_Lean_Parser_mergeOrElseErrors(x_58, x_38, x_35); +lean_dec(x_35); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_47); +x_60 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_61 = l_Lean_Parser_ParserState_mkNode(x_48, x_60, x_46); +x_62 = l_Lean_Parser_mergeOrElseErrors(x_61, x_38, x_35); +lean_dec(x_35); +return x_62; +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_51); +x_63 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_64 = l_Lean_Parser_ParserState_mkErrorsAt(x_48, x_63, x_47); +x_65 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_66 = l_Lean_Parser_ParserState_mkNode(x_64, x_65, x_46); +x_67 = l_Lean_Parser_mergeOrElseErrors(x_66, x_38, x_35); +lean_dec(x_35); +return x_67; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_49); +x_68 = l_Lean_Parser_Term_structInst___elambda__1___closed__17; +x_69 = l_Lean_Parser_ParserState_mkErrorsAt(x_48, x_68, x_47); +x_70 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_71 = l_Lean_Parser_ParserState_mkNode(x_69, x_70, x_46); +x_72 = l_Lean_Parser_mergeOrElseErrors(x_71, x_38, x_35); +lean_dec(x_35); +return x_72; +} +} +else +{ +lean_object* x_73; +lean_dec(x_44); +lean_dec(x_1); +x_73 = l_Lean_Parser_mergeOrElseErrors(x_43, x_38, x_35); +lean_dec(x_35); +return x_73; +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_structInst___closed__6; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Term_ellipsis___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_ellipsis___closed__2; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_ellipsis___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_ellipsis___closed__3; +x_2 = l_Lean_Parser_Term_ellipsis___closed__4; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_ellipsis___closed__5; +return x_1; +} +} lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_app___elambda__1___spec__1___closed__1() { _start: { @@ -63299,19 +63651,65 @@ goto block_16; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_inc(x_22); x_28 = l_Lean_Parser_ParserState_restore(x_23, x_21, x_22); lean_dec(x_21); -x_29 = l_Lean_Parser_termParser___closed__2; -x_30 = l_Lean_Parser_maxPrec; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_array_get_size(x_29); +lean_dec(x_29); +x_31 = l_Lean_Parser_termParser___closed__2; +x_32 = l_Lean_Parser_maxPrec; lean_inc(x_1); -x_31 = l_Lean_Parser_categoryParser___elambda__1(x_29, x_30, x_1, x_28); -x_32 = l_Lean_Parser_mergeOrElseErrors(x_31, x_25, x_22); +x_33 = l_Lean_Parser_categoryParser___elambda__1(x_31, x_32, x_1, x_28); +x_34 = lean_ctor_get(x_33, 3); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; +lean_dec(x_30); +x_35 = l_Lean_Parser_mergeOrElseErrors(x_33, x_25, x_22); lean_dec(x_22); -x_6 = x_32; +x_6 = x_35; goto block_16; } +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +x_38 = lean_nat_dec_eq(x_37, x_22); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_36); +lean_dec(x_30); +x_39 = l_Lean_Parser_mergeOrElseErrors(x_33, x_25, x_22); +lean_dec(x_22); +x_6 = x_39; +goto block_16; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_inc(x_22); +x_40 = l_Lean_Parser_ParserState_restore(x_33, x_30, x_22); +lean_dec(x_30); +lean_inc(x_1); +x_41 = l_Lean_Parser_Term_ellipsis___elambda__1(x_1, x_40); +x_42 = l_Lean_Parser_mergeOrElseErrors(x_41, x_36, x_22); +x_43 = l_Lean_Parser_mergeOrElseErrors(x_42, x_25, x_22); +lean_dec(x_22); +x_6 = x_43; +goto block_16; +} +} +} } } else @@ -63433,19 +63831,65 @@ goto block_19; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_inc(x_25); x_31 = l_Lean_Parser_ParserState_restore(x_26, x_24, x_25); lean_dec(x_24); -x_32 = l_Lean_Parser_termParser___closed__2; -x_33 = l_Lean_Parser_maxPrec; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_array_get_size(x_32); +lean_dec(x_32); +x_34 = l_Lean_Parser_termParser___closed__2; +x_35 = l_Lean_Parser_maxPrec; lean_inc(x_1); -x_34 = l_Lean_Parser_categoryParser___elambda__1(x_32, x_33, x_1, x_31); -x_35 = l_Lean_Parser_mergeOrElseErrors(x_34, x_28, x_25); +x_36 = l_Lean_Parser_categoryParser___elambda__1(x_34, x_35, x_1, x_31); +x_37 = lean_ctor_get(x_36, 3); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +lean_dec(x_33); +x_38 = l_Lean_Parser_mergeOrElseErrors(x_36, x_28, x_25); lean_dec(x_25); -x_8 = x_35; +x_8 = x_38; goto block_19; } +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_37, 0); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +x_41 = lean_nat_dec_eq(x_40, x_25); +lean_dec(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +lean_dec(x_39); +lean_dec(x_33); +x_42 = l_Lean_Parser_mergeOrElseErrors(x_36, x_28, x_25); +lean_dec(x_25); +x_8 = x_42; +goto block_19; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_inc(x_25); +x_43 = l_Lean_Parser_ParserState_restore(x_36, x_33, x_25); +lean_dec(x_33); +lean_inc(x_1); +x_44 = l_Lean_Parser_Term_ellipsis___elambda__1(x_1, x_43); +x_45 = l_Lean_Parser_mergeOrElseErrors(x_44, x_39, x_25); +x_46 = l_Lean_Parser_mergeOrElseErrors(x_45, x_28, x_25); +lean_dec(x_25); +x_8 = x_46; +goto block_19; +} +} +} } } else @@ -63498,10 +63942,10 @@ lean_object* _init_l_Lean_Parser_Term_app___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Term_namedArgument; +x_1 = l_Lean_Parser_Term_explicit___closed__2; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_explicit___closed__2; +x_3 = l_Lean_Parser_Term_ellipsis; x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); x_5 = l_Lean_Parser_orelseInfo(x_2, x_4); @@ -63511,20 +63955,22 @@ return x_5; lean_object* _init_l_Lean_Parser_Term_app___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Term_app___closed__1; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_namedArgument; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_app___closed__1; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; } } lean_object* _init_l_Lean_Parser_Term_app___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__8; +x_1 = l_Lean_Parser_epsilonInfo; x_2 = l_Lean_Parser_Term_app___closed__2; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } } @@ -63532,26 +63978,36 @@ lean_object* _init_l_Lean_Parser_Term_app___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; +x_1 = l_Lean_mkAppStx___closed__8; x_2 = l_Lean_Parser_Term_app___closed__3; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } lean_object* _init_l_Lean_Parser_Term_app___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Term_app___closed__4; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_app___closed__6() { +_start: +{ lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_app___elambda__1), 2, 0); return x_1; } } -lean_object* _init_l_Lean_Parser_Term_app___closed__6() { +lean_object* _init_l_Lean_Parser_Term_app___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_app___closed__4; -x_2 = l_Lean_Parser_Term_app___closed__5; +x_1 = l_Lean_Parser_Term_app___closed__5; +x_2 = l_Lean_Parser_Term_app___closed__6; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -63562,7 +64018,7 @@ lean_object* _init_l_Lean_Parser_Term_app() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Term_app___closed__6; +x_1 = l_Lean_Parser_Term_app___closed__7; return x_1; } } @@ -63663,11 +64119,50 @@ x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x return x_8; } } +lean_object* _init_l_Lean_Parser_Term_ellipsis_formatter___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__3; +x_3 = 1; +x_4 = lean_box(x_3); +x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +lean_closure_set(x_5, 2, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis_formatter___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_Term_structInst_formatter___closed__9; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_ellipsis_formatter(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; +x_6 = l_Lean_Parser_Term_ellipsis_formatter___closed__1; +x_7 = l_Lean_Parser_Term_ellipsis_formatter___closed__2; +x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_namedArgument_formatter), 5, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_ellipsis_formatter), 5, 0); return x_1; } } @@ -63675,8 +64170,8 @@ lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_app_formatter___closed__1; -x_2 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; +x_1 = l_Lean_Parser_antiquotNestedExpr_formatter___closed__2; +x_2 = l_Lean_Parser_Term_app_formatter___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -63686,20 +64181,40 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_namedArgument_formatter), 5, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_app_formatter___closed__3; +x_2 = l_Lean_Parser_Term_app_formatter___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_type_formatter___closed__4; -x_2 = l_Lean_Parser_Term_app_formatter___closed__2; +x_2 = l_Lean_Parser_Term_app_formatter___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__4() { +lean_object* _init_l_Lean_Parser_Term_app_formatter___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_app_formatter___closed__3; +x_1 = l_Lean_Parser_Term_app_formatter___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_many1_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -63711,7 +64226,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = l_Lean_mkAppStx___closed__8; x_7 = l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___closed__1; -x_8 = l_Lean_Parser_Term_app_formatter___closed__4; +x_8 = l_Lean_Parser_Term_app_formatter___closed__6; x_9 = l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(x_6, x_7, x_8, x_1, x_2, x_3, x_4, x_5); return x_9; } @@ -63806,11 +64321,48 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2 return x_8; } } +lean_object* _init_l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__3; +x_2 = 1; +x_3 = lean_box(x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_ellipsis___elambda__1___closed__2; +x_2 = lean_unsigned_to_nat(1024u); +x_3 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Term_ellipsis_parenthesizer(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; +x_6 = l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2; +x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_namedArgument_parenthesizer), 5, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_ellipsis_parenthesizer), 5, 0); return x_1; } } @@ -63818,8 +64370,8 @@ lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_app_parenthesizer___closed__1; -x_2 = l_Lean_Parser_Term_explicit_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Term_explicit_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Term_app_parenthesizer___closed__1; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -63829,20 +64381,40 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_namedArgument_parenthesizer), 5, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_app_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Term_app_parenthesizer___closed__2; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__5() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_type_parenthesizer___closed__4; -x_2 = l_Lean_Parser_Term_app_parenthesizer___closed__2; +x_2 = l_Lean_Parser_Term_app_parenthesizer___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__4() { +lean_object* _init_l_Lean_Parser_Term_app_parenthesizer___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_app_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Term_app_parenthesizer___closed__5; x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_many1_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -63854,7 +64426,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_6 = l_Lean_mkAppStx___closed__8; x_7 = l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___closed__1; -x_8 = l_Lean_Parser_Term_app_parenthesizer___closed__4; +x_8 = l_Lean_Parser_Term_app_parenthesizer___closed__6; x_9 = l_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer(x_6, x_7, x_8, x_1, x_2, x_3, x_4, x_5); return x_9; } @@ -84063,6 +84635,26 @@ l_Lean_Parser_Term_namedArgument___closed__8 = _init_l_Lean_Parser_Term_namedArg lean_mark_persistent(l_Lean_Parser_Term_namedArgument___closed__8); l_Lean_Parser_Term_namedArgument = _init_l_Lean_Parser_Term_namedArgument(); lean_mark_persistent(l_Lean_Parser_Term_namedArgument); +l_Lean_Parser_Term_ellipsis___elambda__1___closed__1 = _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___elambda__1___closed__1); +l_Lean_Parser_Term_ellipsis___elambda__1___closed__2 = _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___elambda__1___closed__2); +l_Lean_Parser_Term_ellipsis___elambda__1___closed__3 = _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___elambda__1___closed__3); +l_Lean_Parser_Term_ellipsis___elambda__1___closed__4 = _init_l_Lean_Parser_Term_ellipsis___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___elambda__1___closed__4); +l_Lean_Parser_Term_ellipsis___closed__1 = _init_l_Lean_Parser_Term_ellipsis___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___closed__1); +l_Lean_Parser_Term_ellipsis___closed__2 = _init_l_Lean_Parser_Term_ellipsis___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___closed__2); +l_Lean_Parser_Term_ellipsis___closed__3 = _init_l_Lean_Parser_Term_ellipsis___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___closed__3); +l_Lean_Parser_Term_ellipsis___closed__4 = _init_l_Lean_Parser_Term_ellipsis___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___closed__4); +l_Lean_Parser_Term_ellipsis___closed__5 = _init_l_Lean_Parser_Term_ellipsis___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis___closed__5); +l_Lean_Parser_Term_ellipsis = _init_l_Lean_Parser_Term_ellipsis(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis); l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_app___elambda__1___spec__1___closed__1 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_app___elambda__1___spec__1___closed__1(); lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_app___elambda__1___spec__1___closed__1); l_Lean_Parser_Term_app___closed__1 = _init_l_Lean_Parser_Term_app___closed__1(); @@ -84077,6 +84669,8 @@ l_Lean_Parser_Term_app___closed__5 = _init_l_Lean_Parser_Term_app___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_app___closed__5); l_Lean_Parser_Term_app___closed__6 = _init_l_Lean_Parser_Term_app___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_app___closed__6); +l_Lean_Parser_Term_app___closed__7 = _init_l_Lean_Parser_Term_app___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_app___closed__7); l_Lean_Parser_Term_app = _init_l_Lean_Parser_Term_app(); lean_mark_persistent(l_Lean_Parser_Term_app); res = l___regBuiltinParser_Lean_Parser_Term_app(lean_io_mk_world()); @@ -84094,6 +84688,10 @@ l_Lean_Parser_Term_namedArgument_formatter___closed__5 = _init_l_Lean_Parser_Ter lean_mark_persistent(l_Lean_Parser_Term_namedArgument_formatter___closed__5); l_Lean_Parser_Term_namedArgument_formatter___closed__6 = _init_l_Lean_Parser_Term_namedArgument_formatter___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_namedArgument_formatter___closed__6); +l_Lean_Parser_Term_ellipsis_formatter___closed__1 = _init_l_Lean_Parser_Term_ellipsis_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis_formatter___closed__1); +l_Lean_Parser_Term_ellipsis_formatter___closed__2 = _init_l_Lean_Parser_Term_ellipsis_formatter___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis_formatter___closed__2); l_Lean_Parser_Term_app_formatter___closed__1 = _init_l_Lean_Parser_Term_app_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_app_formatter___closed__1); l_Lean_Parser_Term_app_formatter___closed__2 = _init_l_Lean_Parser_Term_app_formatter___closed__2(); @@ -84102,6 +84700,10 @@ l_Lean_Parser_Term_app_formatter___closed__3 = _init_l_Lean_Parser_Term_app_form lean_mark_persistent(l_Lean_Parser_Term_app_formatter___closed__3); l_Lean_Parser_Term_app_formatter___closed__4 = _init_l_Lean_Parser_Term_app_formatter___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_app_formatter___closed__4); +l_Lean_Parser_Term_app_formatter___closed__5 = _init_l_Lean_Parser_Term_app_formatter___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_app_formatter___closed__5); +l_Lean_Parser_Term_app_formatter___closed__6 = _init_l_Lean_Parser_Term_app_formatter___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_app_formatter___closed__6); l___regBuiltin_Lean_Parser_Term_app_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_app_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_app_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Term_app_formatter(lean_io_mk_world()); @@ -84117,6 +84719,10 @@ l_Lean_Parser_Term_namedArgument_parenthesizer___closed__4 = _init_l_Lean_Parser lean_mark_persistent(l_Lean_Parser_Term_namedArgument_parenthesizer___closed__4); l_Lean_Parser_Term_namedArgument_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_namedArgument_parenthesizer___closed__5(); lean_mark_persistent(l_Lean_Parser_Term_namedArgument_parenthesizer___closed__5); +l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis_parenthesizer___closed__1); +l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_ellipsis_parenthesizer___closed__2); l_Lean_Parser_Term_app_parenthesizer___closed__1 = _init_l_Lean_Parser_Term_app_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_app_parenthesizer___closed__1); l_Lean_Parser_Term_app_parenthesizer___closed__2 = _init_l_Lean_Parser_Term_app_parenthesizer___closed__2(); @@ -84125,6 +84731,10 @@ l_Lean_Parser_Term_app_parenthesizer___closed__3 = _init_l_Lean_Parser_Term_app_ lean_mark_persistent(l_Lean_Parser_Term_app_parenthesizer___closed__3); l_Lean_Parser_Term_app_parenthesizer___closed__4 = _init_l_Lean_Parser_Term_app_parenthesizer___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_app_parenthesizer___closed__4); +l_Lean_Parser_Term_app_parenthesizer___closed__5 = _init_l_Lean_Parser_Term_app_parenthesizer___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_app_parenthesizer___closed__5); +l_Lean_Parser_Term_app_parenthesizer___closed__6 = _init_l_Lean_Parser_Term_app_parenthesizer___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_app_parenthesizer___closed__6); l___regBuiltin_Lean_Parser_Term_app_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_app_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_app_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Term_app_parenthesizer(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Util.c b/stage0/stdlib/Lean/Util.c index 74616ff2a8..6094a4e8f5 100644 --- a/stage0/stdlib/Lean/Util.c +++ b/stage0/stdlib/Lean/Util.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Util -// Imports: Init Lean.Util.CollectFVars Lean.Util.CollectLevelParams Lean.Util.CollectMVars Lean.Util.FindMVar Lean.Util.MonadCache Lean.Util.PPExt Lean.Util.PPGoal Lean.Util.Path Lean.Util.Profile Lean.Util.RecDepth Lean.Util.Sorry Lean.Util.Trace Lean.Util.FindExpr Lean.Util.ReplaceExpr Lean.Util.ReplaceLevel Lean.Util.FoldConsts Lean.Util.Constructions Lean.Util.SCC +// Imports: Init Lean.Util.CollectFVars Lean.Util.CollectLevelParams Lean.Util.CollectMVars Lean.Util.FindMVar Lean.Util.MonadCache Lean.Util.PPExt Lean.Util.PPGoal Lean.Util.Path Lean.Util.Profile Lean.Util.RecDepth Lean.Util.Sorry Lean.Util.Trace Lean.Util.FindExpr Lean.Util.ReplaceExpr Lean.Util.ForEachExpr Lean.Util.ReplaceLevel Lean.Util.FoldConsts Lean.Util.Constructions Lean.Util.SCC #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -28,6 +28,7 @@ lean_object* initialize_Lean_Util_Sorry(lean_object*); lean_object* initialize_Lean_Util_Trace(lean_object*); lean_object* initialize_Lean_Util_FindExpr(lean_object*); lean_object* initialize_Lean_Util_ReplaceExpr(lean_object*); +lean_object* initialize_Lean_Util_ForEachExpr(lean_object*); lean_object* initialize_Lean_Util_ReplaceLevel(lean_object*); lean_object* initialize_Lean_Util_FoldConsts(lean_object*); lean_object* initialize_Lean_Util_Constructions(lean_object*); @@ -82,6 +83,9 @@ lean_dec_ref(res); res = initialize_Lean_Util_ReplaceExpr(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Util_ForEachExpr(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Util_ReplaceLevel(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Util/ForEachExpr.c b/stage0/stdlib/Lean/Util/ForEachExpr.c new file mode 100644 index 0000000000..3f856dce5e --- /dev/null +++ b/stage0/stdlib/Lean/Util/ForEachExpr.c @@ -0,0 +1,1496 @@ +// Lean compiler output +// Module: Lean.Util.ForEachExpr +// Imports: Init Lean.Expr Lean.Util.MonadCache +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_Expr_forEach_x27(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_expand___at_Lean_Expr_forEach___spec__6(lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_ForEachExpr_visit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach_x27___rarg___lambda__1(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_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ST_Prim_mkRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_foldlM___main___at_Lean_Expr_forEach___spec__8(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +lean_object* l_Std_HashMapImp_moveEntries___main___at_Lean_Expr_forEach___spec__7(lean_object*, lean_object*, lean_object*); +extern lean_object* l_notM___rarg___closed__1; +extern lean_object* l_Lean_MonadCacheT_run___rarg___closed__1; +size_t l_Lean_Expr_hash(lean_object*); +size_t lean_usize_modn(size_t, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__5(lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_run_x27___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach_x27___rarg___closed__2; +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at_Lean_Expr_forEach___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach_x27___rarg___closed__1; +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forEach_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_run___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3(lean_object*, lean_object*); +lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Hashable; +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_HasBeq; +lean_object* l_Std_mkHashMap___at_Lean_Expr_forEach_x27___spec__1(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_4 = l_Lean_Expr_HasBeq; +x_5 = l_Lean_Expr_Hashable; +x_6 = l_Std_HashMapImp_find_x3f___rarg(x_4, x_5, x_3, x_1); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_2(x_8, lean_box(0), x_6); +return x_9; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_ForEachExpr_visit___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_ForEachExpr_visit___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_11 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed), 7, 6); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_4); +lean_closure_set(x_11, 4, x_7); +lean_closure_set(x_11, 5, x_6); +x_12 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___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, uint8_t x_9) { +_start: +{ +lean_object* x_10; +if (x_9 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_18 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_16, x_7); +x_19 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed), 7, 6); +lean_closure_set(x_19, 0, x_3); +lean_closure_set(x_19, 1, x_4); +lean_closure_set(x_19, 2, x_5); +lean_closure_set(x_19, 3, x_6); +lean_closure_set(x_19, 4, x_17); +lean_closure_set(x_19, 5, x_7); +x_20 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_19); +return x_20; +} +case 6: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 2); +lean_inc(x_22); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_23 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_21, x_7); +x_24 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed), 7, 6); +lean_closure_set(x_24, 0, x_3); +lean_closure_set(x_24, 1, x_4); +lean_closure_set(x_24, 2, x_5); +lean_closure_set(x_24, 3, x_6); +lean_closure_set(x_24, 4, x_22); +lean_closure_set(x_24, 5, x_7); +x_25 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_23, x_24); +return x_25; +} +case 7: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_1, 2); +lean_inc(x_27); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_28 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_26, x_7); +x_29 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed), 7, 6); +lean_closure_set(x_29, 0, x_3); +lean_closure_set(x_29, 1, x_4); +lean_closure_set(x_29, 2, x_5); +lean_closure_set(x_29, 3, x_6); +lean_closure_set(x_29, 4, x_27); +lean_closure_set(x_29, 5, x_7); +x_30 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_28, x_29); +return x_30; +} +case 8: +{ +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_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_1, 3); +lean_inc(x_33); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_34 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_31, x_7); +lean_inc(x_8); +x_35 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__3___boxed), 9, 8); +lean_closure_set(x_35, 0, x_3); +lean_closure_set(x_35, 1, x_4); +lean_closure_set(x_35, 2, x_5); +lean_closure_set(x_35, 3, x_6); +lean_closure_set(x_35, 4, x_32); +lean_closure_set(x_35, 5, x_7); +lean_closure_set(x_35, 6, x_33); +lean_closure_set(x_35, 7, x_8); +x_36 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_34, x_35); +return x_36; +} +case 10: +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_8); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +lean_dec(x_1); +x_38 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_37, x_7); +return x_38; +} +case 11: +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_8); +x_39 = lean_ctor_get(x_1, 2); +lean_inc(x_39); +lean_dec(x_1); +x_40 = l_Lean_ForEachExpr_visit___main___rarg(x_3, x_4, x_5, x_6, x_39, x_7); +return x_40; +} +default: +{ +lean_object* x_41; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_41 = lean_box(0); +x_10 = x_41; +goto block_15; +} +} +} +else +{ +lean_object* x_42; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_42 = lean_box(0); +x_10 = x_42; +goto block_15; +} +block_15: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_11); +lean_dec(x_5); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = lean_apply_2(x_12, lean_box(0), x_13); +return x_14; +} +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = l_Lean_Expr_HasBeq; +x_5 = l_Lean_Expr_Hashable; +x_6 = l_Std_HashMapImp_insert___rarg(x_4, x_5, x_3, x_1, x_2); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_4, lean_box(0), x_2); +return x_5; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__5), 3, 2); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_6); +x_8 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_7); +x_9 = lean_apply_2(x_3, lean_box(0), x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__6___boxed), 3, 2); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_6); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_inc(x_1); +lean_inc(x_2); +x_9 = lean_apply_1(x_1, x_2); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_notM___rarg___closed__1; +x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_9); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +x_15 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__4___boxed), 9, 8); +lean_closure_set(x_15, 0, x_2); +lean_closure_set(x_15, 1, x_3); +lean_closure_set(x_15, 2, x_4); +lean_closure_set(x_15, 3, x_5); +lean_closure_set(x_15, 4, x_3); +lean_closure_set(x_15, 5, x_1); +lean_closure_set(x_15, 6, x_6); +lean_closure_set(x_15, 7, x_7); +lean_inc(x_7); +x_16 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_14, x_15); +lean_inc(x_7); +x_17 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__7), 6, 5); +lean_closure_set(x_17, 0, x_2); +lean_closure_set(x_17, 1, x_6); +lean_closure_set(x_17, 2, x_5); +lean_closure_set(x_17, 3, x_10); +lean_closure_set(x_17, 4, x_7); +x_18 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_16, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_8, 0); +lean_inc(x_19); +lean_dec(x_8); +x_20 = lean_ctor_get(x_3, 0); +lean_inc(x_20); +lean_dec(x_3); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_apply_2(x_21, lean_box(0), x_19); +return x_22; +} +} +} +lean_object* l_Lean_ForEachExpr_visit___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +lean_inc(x_6); +x_8 = lean_alloc_closure((void*)(l_ST_Prim_Ref_get___boxed), 4, 3); +lean_closure_set(x_8, 0, lean_box(0)); +lean_closure_set(x_8, 1, lean_box(0)); +lean_closure_set(x_8, 2, x_6); +lean_inc(x_2); +x_9 = lean_apply_2(x_2, lean_box(0), x_8); +lean_inc(x_3); +lean_inc(x_5); +x_10 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_10, 0, x_5); +lean_closure_set(x_10, 1, x_3); +lean_inc(x_7); +x_11 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_9, x_10); +lean_inc(x_7); +x_12 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__8), 8, 7); +lean_closure_set(x_12, 0, x_4); +lean_closure_set(x_12, 1, x_5); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_1); +lean_closure_set(x_12, 4, x_2); +lean_closure_set(x_12, 5, x_6); +lean_closure_set(x_12, 6, x_7); +x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_11, x_12); +return x_13; +} +} +lean_object* l_Lean_ForEachExpr_visit___main(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg), 6, 0); +return x_3; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_ForEachExpr_visit___main___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_ForEachExpr_visit___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +return x_8; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_ForEachExpr_visit___main___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +return x_10; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_9); +lean_dec(x_9); +x_11 = l_Lean_ForEachExpr_visit___main___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___rarg___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_ForEachExpr_visit___main___rarg___lambda__6(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_ForEachExpr_visit___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_ForEachExpr_visit___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_ForEachExpr_visit(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___rarg), 6, 0); +return x_3; +} +} +lean_object* l_Std_mkHashMap___at_Lean_Expr_forEach_x27___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_forEach_x27___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +x_8 = l_Lean_ForEachExpr_visit___main___rarg(x_1, x_2, x_3, x_4, x_5, x_7); +lean_inc(x_6); +x_9 = lean_alloc_closure((void*)(l_StateRefT_x27_run___rarg___lambda__2), 5, 4); +lean_closure_set(x_9, 0, x_7); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_3); +lean_closure_set(x_9, 3, x_6); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9); +return x_10; +} +} +lean_object* _init_l_Lean_Expr_forEach_x27___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Expr_forEach_x27___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_forEach_x27___rarg___closed__1; +x_2 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3); +lean_closure_set(x_2, 0, lean_box(0)); +lean_closure_set(x_2, 1, lean_box(0)); +lean_closure_set(x_2, 2, x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_forEach_x27___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; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +x_7 = l_Lean_Expr_forEach_x27___rarg___closed__2; +lean_inc(x_2); +x_8 = lean_apply_2(x_2, lean_box(0), x_7); +lean_inc(x_6); +lean_inc(x_3); +x_9 = lean_alloc_closure((void*)(l_Lean_Expr_forEach_x27___rarg___lambda__1), 7, 6); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_3); +lean_closure_set(x_9, 3, x_5); +lean_closure_set(x_9, 4, x_4); +lean_closure_set(x_9, 5, x_6); +lean_inc(x_6); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9); +x_11 = lean_alloc_closure((void*)(l_StateRefT_x27_run_x27___rarg___lambda__1), 2, 1); +lean_closure_set(x_11, 0, x_3); +x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_Expr_forEach_x27(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Expr_forEach_x27___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_expr_eqv(x_4, x_1); +if (x_7 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_9; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +return x_9; +} +} +} +} +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = l_Lean_Expr_hash(x_2); +x_6 = lean_usize_modn(x_5, x_4); +lean_dec(x_4); +x_7 = lean_array_uget(x_3, x_6); +x_8 = l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3(x_2, x_7); +lean_dec(x_7); +return x_8; +} +} +uint8_t l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_expr_eqv(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +lean_object* l_Std_AssocList_foldlM___main___at_Lean_Expr_forEach___spec__8(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; 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_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_array_get_size(x_1); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_modn(x_7, x_6); +lean_dec(x_6); +x_9 = lean_array_uget(x_1, x_8); +lean_ctor_set(x_2, 2, x_9); +x_10 = lean_array_uset(x_1, x_8, x_2); +x_1 = x_10; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +x_14 = lean_ctor_get(x_2, 2); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_2); +x_15 = lean_array_get_size(x_1); +x_16 = l_Lean_Expr_hash(x_12); +x_17 = lean_usize_modn(x_16, x_15); +lean_dec(x_15); +x_18 = lean_array_uget(x_1, x_17); +x_19 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_13); +lean_ctor_set(x_19, 2, x_18); +x_20 = lean_array_uset(x_1, x_17, x_19); +x_1 = x_20; +x_2 = x_14; +goto _start; +} +} +} +} +lean_object* l_Std_HashMapImp_moveEntries___main___at_Lean_Expr_forEach___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_box(0); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = l_Std_AssocList_foldlM___main___at_Lean_Expr_forEach___spec__8(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +lean_object* l_Std_HashMapImp_expand___at_Lean_Expr_forEach___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_mk_array(x_5, x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Std_HashMapImp_moveEntries___main___at_Lean_Expr_forEach___spec__7(x_8, x_2, x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +lean_object* l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_3, 2); +x_8 = lean_expr_eqv(x_5, x_1); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(x_1, x_2, x_7); +lean_ctor_set(x_3, 2, x_9); +return x_3; +} +else +{ +lean_dec(x_6); +lean_dec(x_5); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_ctor_get(x_3, 2); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_3); +x_13 = lean_expr_eqv(x_10, x_1); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(x_1, x_2, x_12); +x_15 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_11); +lean_ctor_set(x_15, 2, x_14); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_11); +lean_dec(x_10); +x_16 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_2); +lean_ctor_set(x_16, 2, x_12); +return x_16; +} +} +} +} +} +lean_object* l_Std_HashMapImp_insert___at_Lean_Expr_forEach___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_array_get_size(x_6); +x_8 = l_Lean_Expr_hash(x_2); +x_9 = lean_usize_modn(x_8, x_7); +x_10 = lean_array_uget(x_6, x_9); +x_11 = l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5(x_2, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_14 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_3); +lean_ctor_set(x_14, 2, x_10); +x_15 = lean_array_uset(x_6, x_9, x_14); +x_16 = lean_nat_dec_le(x_13, x_7); +lean_dec(x_7); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_1); +x_17 = l_Std_HashMapImp_expand___at_Lean_Expr_forEach___spec__6(x_13, x_15); +return x_17; +} +else +{ +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_7); +x_18 = l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(x_2, x_3, x_10); +x_19 = lean_array_uset(x_6, x_9, x_18); +lean_ctor_set(x_1, 1, x_19); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = lean_array_get_size(x_21); +x_23 = l_Lean_Expr_hash(x_2); +x_24 = lean_usize_modn(x_23, x_22); +x_25 = lean_array_uget(x_21, x_24); +x_26 = l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5(x_2, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_20, x_27); +lean_dec(x_20); +x_29 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_3); +lean_ctor_set(x_29, 2, x_25); +x_30 = lean_array_uset(x_21, x_24, x_29); +x_31 = lean_nat_dec_le(x_28, x_22); +lean_dec(x_22); +if (x_31 == 0) +{ +lean_object* x_32; +x_32 = l_Std_HashMapImp_expand___at_Lean_Expr_forEach___spec__6(x_28, x_30); +return x_32; +} +else +{ +lean_object* x_33; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_22); +x_34 = l_Std_AssocList_replace___main___at_Lean_Expr_forEach___spec__9(x_2, x_3, x_25); +x_35 = lean_array_uset(x_21, x_24, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_20); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(x_3, x_1); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_apply_2(x_6, lean_box(0), x_4); +return x_7; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_dec(x_3); +x_5 = 1; +x_6 = lean_box(x_5); +x_7 = lean_apply_2(x_4, lean_box(0), x_6); +return x_7; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___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_inc(x_6); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_11 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed), 7, 6); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_4); +lean_closure_set(x_11, 4, x_7); +lean_closure_set(x_11, 5, x_6); +x_12 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___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, uint8_t x_9) { +_start: +{ +lean_object* x_10; +if (x_9 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_18 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_16, x_7); +x_19 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed), 7, 6); +lean_closure_set(x_19, 0, x_3); +lean_closure_set(x_19, 1, x_4); +lean_closure_set(x_19, 2, x_5); +lean_closure_set(x_19, 3, x_6); +lean_closure_set(x_19, 4, x_17); +lean_closure_set(x_19, 5, x_7); +x_20 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_19); +return x_20; +} +case 6: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 2); +lean_inc(x_22); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_23 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_21, x_7); +x_24 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed), 7, 6); +lean_closure_set(x_24, 0, x_3); +lean_closure_set(x_24, 1, x_4); +lean_closure_set(x_24, 2, x_5); +lean_closure_set(x_24, 3, x_6); +lean_closure_set(x_24, 4, x_22); +lean_closure_set(x_24, 5, x_7); +x_25 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_23, x_24); +return x_25; +} +case 7: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_1, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_1, 2); +lean_inc(x_27); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_28 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_26, x_7); +x_29 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed), 7, 6); +lean_closure_set(x_29, 0, x_3); +lean_closure_set(x_29, 1, x_4); +lean_closure_set(x_29, 2, x_5); +lean_closure_set(x_29, 3, x_6); +lean_closure_set(x_29, 4, x_27); +lean_closure_set(x_29, 5, x_7); +x_30 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_28, x_29); +return x_30; +} +case 8: +{ +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_31 = lean_ctor_get(x_1, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_1, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_1, 3); +lean_inc(x_33); +lean_dec(x_1); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_34 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_31, x_7); +lean_inc(x_8); +x_35 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__4___boxed), 9, 8); +lean_closure_set(x_35, 0, x_3); +lean_closure_set(x_35, 1, x_4); +lean_closure_set(x_35, 2, x_5); +lean_closure_set(x_35, 3, x_6); +lean_closure_set(x_35, 4, x_32); +lean_closure_set(x_35, 5, x_7); +lean_closure_set(x_35, 6, x_33); +lean_closure_set(x_35, 7, x_8); +x_36 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_34, x_35); +return x_36; +} +case 10: +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_8); +x_37 = lean_ctor_get(x_1, 1); +lean_inc(x_37); +lean_dec(x_1); +x_38 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_37, x_7); +return x_38; +} +case 11: +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_8); +x_39 = lean_ctor_get(x_1, 2); +lean_inc(x_39); +lean_dec(x_1); +x_40 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_3, x_4, x_5, x_6, x_39, x_7); +return x_40; +} +default: +{ +lean_object* x_41; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_41 = lean_box(0); +x_10 = x_41; +goto block_15; +} +} +} +else +{ +lean_object* x_42; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_42 = lean_box(0); +x_10 = x_42; +goto block_15; +} +block_15: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_11); +lean_dec(x_5); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_box(0); +x_14 = lean_apply_2(x_12, lean_box(0), x_13); +return x_14; +} +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = l_Std_HashMapImp_insert___at_Lean_Expr_forEach___spec__4(x_3, x_1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__6), 3, 2); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_6); +x_8 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_7); +x_9 = lean_apply_2(x_3, lean_box(0), x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___rarg___lambda__6___boxed), 3, 2); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_6); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_inc(x_1); +lean_inc(x_2); +x_9 = lean_apply_1(x_1, x_2); +lean_inc(x_3); +x_10 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_10, 0, x_3); +lean_inc(x_4); +x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_9, x_10); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_notM___rarg___closed__1; +x_16 = lean_apply_4(x_14, lean_box(0), lean_box(0), x_15, x_11); +lean_inc(x_4); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_3); +lean_inc(x_2); +x_17 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__5___boxed), 9, 8); +lean_closure_set(x_17, 0, x_2); +lean_closure_set(x_17, 1, x_3); +lean_closure_set(x_17, 2, x_5); +lean_closure_set(x_17, 3, x_6); +lean_closure_set(x_17, 4, x_3); +lean_closure_set(x_17, 5, x_1); +lean_closure_set(x_17, 6, x_7); +lean_closure_set(x_17, 7, x_4); +lean_inc(x_4); +x_18 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_16, x_17); +lean_inc(x_4); +x_19 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__7), 6, 5); +lean_closure_set(x_19, 0, x_2); +lean_closure_set(x_19, 1, x_7); +lean_closure_set(x_19, 2, x_6); +lean_closure_set(x_19, 3, x_12); +lean_closure_set(x_19, 4, x_4); +x_20 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_18, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_21 = lean_ctor_get(x_8, 0); +lean_inc(x_21); +lean_dec(x_8); +x_22 = lean_ctor_get(x_3, 0); +lean_inc(x_22); +lean_dec(x_3); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_apply_2(x_23, lean_box(0), x_21); +return x_24; +} +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +lean_inc(x_6); +x_8 = lean_alloc_closure((void*)(l_ST_Prim_Ref_get___boxed), 4, 3); +lean_closure_set(x_8, 0, lean_box(0)); +lean_closure_set(x_8, 1, lean_box(0)); +lean_closure_set(x_8, 2, x_6); +lean_inc(x_2); +x_9 = lean_apply_2(x_2, lean_box(0), x_8); +lean_inc(x_3); +lean_inc(x_5); +x_10 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_10, 0, x_5); +lean_closure_set(x_10, 1, x_3); +lean_inc(x_7); +x_11 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_9, x_10); +lean_inc(x_7); +x_12 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__8), 8, 7); +lean_closure_set(x_12, 0, x_4); +lean_closure_set(x_12, 1, x_5); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_7); +lean_closure_set(x_12, 4, x_1); +lean_closure_set(x_12, 5, x_2); +lean_closure_set(x_12, 6, x_6); +x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_11, x_12); +return x_13; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg), 6, 0); +return x_3; +} +} +lean_object* l_Lean_Expr_forEach___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +x_8 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_7); +lean_inc(x_6); +x_9 = lean_alloc_closure((void*)(l_StateRefT_x27_run___rarg___lambda__2), 5, 4); +lean_closure_set(x_9, 0, x_7); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_3); +lean_closure_set(x_9, 3, x_6); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9); +return x_10; +} +} +lean_object* l_Lean_Expr_forEach___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; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +x_7 = l_Lean_MonadCacheT_run___rarg___closed__1; +lean_inc(x_2); +x_8 = lean_apply_2(x_2, lean_box(0), x_7); +lean_inc(x_6); +lean_inc(x_3); +x_9 = lean_alloc_closure((void*)(l_Lean_Expr_forEach___rarg___lambda__1), 7, 6); +lean_closure_set(x_9, 0, x_1); +lean_closure_set(x_9, 1, x_2); +lean_closure_set(x_9, 2, x_3); +lean_closure_set(x_9, 3, x_5); +lean_closure_set(x_9, 4, x_4); +lean_closure_set(x_9, 5, x_6); +lean_inc(x_6); +x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9); +x_11 = lean_alloc_closure((void*)(l_StateRefT_x27_run_x27___rarg___lambda__1), 2, 1); +lean_closure_set(x_11, 0, x_3); +x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_Expr_forEach(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Expr_forEach___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_AssocList_find_x3f___main___at_Lean_Expr_forEach___spec__3(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_HashMapImp_find_x3f___at_Lean_Expr_forEach___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_AssocList_contains___main___at_Lean_Expr_forEach___spec__5(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +return x_8; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +return x_10; +} +} +lean_object* l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_9); +lean_dec(x_9); +x_11 = l_Lean_ForEachExpr_visit___main___at_Lean_Expr_forEach___spec__1___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +lean_dec(x_2); +return x_11; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Expr(lean_object*); +lean_object* initialize_Lean_Util_MonadCache(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Util_ForEachExpr(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Expr(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Util_MonadCache(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Expr_forEach_x27___rarg___closed__1 = _init_l_Lean_Expr_forEach_x27___rarg___closed__1(); +lean_mark_persistent(l_Lean_Expr_forEach_x27___rarg___closed__1); +l_Lean_Expr_forEach_x27___rarg___closed__2 = _init_l_Lean_Expr_forEach_x27___rarg___closed__2(); +lean_mark_persistent(l_Lean_Expr_forEach_x27___rarg___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Util/MonadCache.c b/stage0/stdlib/Lean/Util/MonadCache.c index 63bac7ba69..0bba57c00b 100644 --- a/stage0/stdlib/Lean/Util/MonadCache.c +++ b/stage0/stdlib/Lean/Util/MonadCache.c @@ -13,63 +13,101 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_checkCache___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_finally___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromState(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_readerLift___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* l_Lean_WithHashMapCache_modifyCache(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadControl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCache___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_Monad___rarg(lean_object*); +lean_object* l_ST_Prim_mkRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadIO___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_readerLift___rarg(lean_object*); +lean_object* l_Lean_MonadCacheT_MonadExceptOf___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_checkCache(lean_object*, lean_object*, lean_object*); extern lean_object* l_ExceptT_lift___rarg___closed__1; lean_object* l_Lean_readerLift___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCacheE(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Monad___rarg(lean_object*); lean_object* l_Lean_readerLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Monad___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCache___rarg(lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_modifyCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_modifyThe___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_readerLift___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadLift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_checkCache___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toEState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_MonadLift(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCacheE___rarg(lean_object*); +lean_object* l_Lean_MonadCacheT_MonadLift___closed__1; lean_object* l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1; lean_object* l_Lean_checkCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadExceptOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_run___rarg___closed__1; lean_object* l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1; +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exceptLift(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_stateAdapter(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_stateAdapter___rarg(lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_modifyCacheE___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Monad(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromEState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadIO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toEState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_modifyCache___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_run_x27___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_StateRefT_x27_MonadIO___rarg(lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_estateAdapter___rarg(lean_object*, lean_object*); +extern lean_object* l_ReaderT_monadControl___closed__2; lean_object* l_Lean_readerLift(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_modifyCacheE___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_getCacheE___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_run___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromEState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exceptLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_get___rarg(lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toEState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadControl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_cache(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_toState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_MonadExceptOf___rarg(lean_object*); lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadExceptOf___rarg(lean_object*); +lean_object* l_Lean_MonadCacheT_MonadIO___rarg(lean_object*); +lean_object* l_Lean_MonadCacheT_MonadLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_modifyCacheE(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadFinally___rarg(lean_object*, lean_object*); lean_object* l_ReaderT_Monad___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_estateAdapter(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadFinally(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exceptLift___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WithHashMapCache_fromEState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadCacheT_MonadFinally___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exceptLift___rarg(lean_object*, lean_object*); lean_object* l_Lean_checkCache___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: @@ -399,6 +437,286 @@ x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache return x_4; } } +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_alloc_closure((void*)(l_modifyThe___rarg___lambda__1), 2, 1); +lean_closure_set(x_4, 0, x_2); +x_5 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); +lean_closure_set(x_5, 0, x_3); +lean_closure_set(x_5, 1, x_4); +x_6 = lean_apply_2(x_1, lean_box(0), x_5); +return x_6; +} +} +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___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_inc(x_3); +x_5 = lean_alloc_closure((void*)(l_StateRefT_x27_get___rarg), 2, 1); +lean_closure_set(x_5, 0, x_3); +x_6 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg___lambda__1), 3, 1); +lean_closure_set(x_6, 0, x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg___boxed), 4, 0); +return x_6; +} +} +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___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_MonadCacheT_Lean_MonadHashMapCacheAdapter___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_MonadCacheT_Lean_MonadHashMapCacheAdapter___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_MonadCacheT_Lean_MonadHashMapCacheAdapter(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} +lean_object* _init_l_Lean_MonadCacheT_run___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Std_HashMap_inhabited___closed__1; +x_2 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3); +lean_closure_set(x_2, 0, lean_box(0)); +lean_closure_set(x_2, 1, lean_box(0)); +lean_closure_set(x_2, 2, x_1); +return x_2; +} +} +lean_object* l_Lean_MonadCacheT_run___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; +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = l_Lean_MonadCacheT_run___rarg___closed__1; +lean_inc(x_1); +x_7 = lean_apply_2(x_1, lean_box(0), x_6); +lean_inc(x_5); +lean_inc(x_2); +x_8 = lean_alloc_closure((void*)(l_StateRefT_x27_run___rarg___lambda__3), 5, 4); +lean_closure_set(x_8, 0, x_4); +lean_closure_set(x_8, 1, x_1); +lean_closure_set(x_8, 2, x_2); +lean_closure_set(x_8, 3, x_5); +lean_inc(x_5); +x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8); +x_10 = lean_alloc_closure((void*)(l_StateRefT_x27_run_x27___rarg___lambda__1), 2, 1); +lean_closure_set(x_10, 0, x_2); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_MonadCacheT_run(lean_object* x_1, 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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg), 4, 0); +return x_8; +} +} +lean_object* l_Lean_MonadCacheT_run___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_MonadCacheT_run(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_8; +} +} +lean_object* l_Lean_MonadCacheT_Monad___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_ReaderT_Monad___rarg(x_1); +return x_2; +} +} +lean_object* l_Lean_MonadCacheT_Monad(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_Monad___rarg), 1, 0); +return x_9; +} +} +lean_object* l_Lean_MonadCacheT_Monad___boxed(lean_object* x_1, lean_object* x_2, 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_MonadCacheT_Monad(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} +lean_object* _init_l_Lean_MonadCacheT_MonadLift___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_MonadLift), 4, 3); +lean_closure_set(x_1, 0, lean_box(0)); +lean_closure_set(x_1, 1, lean_box(0)); +lean_closure_set(x_1, 2, lean_box(0)); +return x_1; +} +} +lean_object* l_Lean_MonadCacheT_MonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_MonadCacheT_MonadLift___closed__1; +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_MonadCacheT_MonadLift(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadIO___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_StateRefT_x27_MonadIO___rarg(x_1); +return x_2; +} +} +lean_object* l_Lean_MonadCacheT_MonadIO(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_MonadIO___rarg), 1, 0); +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadIO___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_MonadCacheT_MonadIO(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadExceptOf___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_StateRefT_x27_MonadExceptOf___rarg(x_1); +return x_2; +} +} +lean_object* l_Lean_MonadCacheT_MonadExceptOf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_MonadExceptOf___rarg), 1, 0); +return x_11; +} +} +lean_object* l_Lean_MonadCacheT_MonadExceptOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_MonadCacheT_MonadExceptOf(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +lean_object* l_Lean_MonadCacheT_MonadControl(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_ReaderT_monadControl___closed__2; +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadControl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_MonadCacheT_MonadControl(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_10; +} +} +lean_object* l_Lean_MonadCacheT_MonadFinally___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_finally___rarg___boxed), 7, 2); +lean_closure_set(x_3, 0, x_2); +lean_closure_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_MonadCacheT_MonadFinally(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_MonadFinally___rarg), 2, 0); +return x_9; +} +} +lean_object* l_Lean_MonadCacheT_MonadFinally___boxed(lean_object* x_1, lean_object* x_2, 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_MonadCacheT_MonadFinally(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} lean_object* l_Lean_WithHashMapCache_getCache___rarg(lean_object* x_1) { _start: { @@ -1025,6 +1343,10 @@ lean_dec_ref(res); res = initialize_Std_Data_HashMap(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_MonadCacheT_run___rarg___closed__1 = _init_l_Lean_MonadCacheT_run___rarg___closed__1(); +lean_mark_persistent(l_Lean_MonadCacheT_run___rarg___closed__1); +l_Lean_MonadCacheT_MonadLift___closed__1 = _init_l_Lean_MonadCacheT_MonadLift___closed__1(); +lean_mark_persistent(l_Lean_MonadCacheT_MonadLift___closed__1); l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1 = _init_l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1(); lean_mark_persistent(l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1); l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1 = _init_l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1();