From 6eaba0dc6f115f12b511ba06ef8931a6e3737ea7 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 13 Oct 2020 19:02:10 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/App.lean | 602 +- stage0/stdlib/Lean/Elab/App.c | 33561 +++++++++++++------------ stage0/stdlib/Lean/Elab/Do.c | 28 +- stage0/stdlib/Lean/Elab/Match.c | 36 +- stage0/stdlib/Lean/Elab/StructInst.c | 246 +- 5 files changed, 17310 insertions(+), 17163 deletions(-) diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index a9b56ed330..399346435f 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -7,13 +7,9 @@ import Lean.Util.FindMVar import Lean.Elab.Term import Lean.Elab.Binders import Lean.Elab.SyntheticMVars +new_frontend -namespace Lean -namespace MonadResolveName end MonadResolveName -- Hack for old frontend -open MonadResolveName (getCurrNamespace getOpenDecls) -- HACK for old frontend - -namespace Elab -namespace Term +namespace Lean.Elab.Term open Meta /-- @@ -26,7 +22,7 @@ inductive Arg instance Arg.inhabited : Inhabited Arg := ⟨Arg.stx (arbitrary _)⟩ instance Arg.hasToString : HasToString Arg := -⟨fun arg => match arg with +⟨fun | Arg.stx val => toString val | Arg.expr val => toString val⟩ @@ -43,12 +39,12 @@ instance NamedArg.inhabited : Inhabited NamedArg := ⟨{ name := arbitrary _, va Add a new named argument to `namedArgs`, and throw an error if it already contains a named argument with the same name. -/ def addNamedArg (namedArgs : Array NamedArg) (namedArg : NamedArg) : TermElabM (Array NamedArg) := do -when (namedArgs.any $ fun namedArg' => namedArg.name == namedArg'.name) $ - throwError ("argument '" ++ toString namedArg.name ++ "' was already set"); +if namedArgs.any (namedArg.name == ·.name) then + throwError! "argument '{namedArg.name}' was already set" pure $ namedArgs.push namedArg private def ensureArgType (f : Expr) (arg : Expr) (expectedType : Expr) : TermElabM Expr := do -argType ← inferType arg; +let argType ← inferType arg ensureHasTypeAux expectedType argType arg f /- @@ -58,27 +54,27 @@ ensureHasTypeAux expectedType argType arg f abbrev coeFun {α : Sort u} {γ : α → Sort v} (a : α) [CoeFun α γ] : γ a ``` -/ private def tryCoeFun (α : Expr) (a : Expr) : TermElabM Expr := do -v ← mkFreshLevelMVar; -type ← mkArrow α (mkSort v); -γ ← mkFreshExprMVar type; -u ← getLevel α; -let coeFunInstType := mkAppN (Lean.mkConst `CoeFun [u, v]) #[α, γ]; -mvar ← mkFreshExprMVar coeFunInstType MetavarKind.synthetic; -let mvarId := mvar.mvarId!; -synthesized ← - catch (withoutMacroStackAtErr $ synthesizeInstMVarCore mvarId) - (fun ex => - match ex with - | Exception.error _ msg => throwError $ "function expected" ++ Format.line ++ msg - | _ => throwError "function expected"); +let v ← mkFreshLevelMVar +let type ← mkArrow α (mkSort v) +let γ ← mkFreshExprMVar type +let u ← getLevel α +let coeFunInstType := mkAppN (Lean.mkConst `CoeFun [u, v]) #[α, γ] +let mvar ← mkFreshExprMVar coeFunInstType MetavarKind.synthetic +let mvarId := mvar.mvarId! +let synthesized ← + try + withoutMacroStackAtErr $ synthesizeInstMVarCore mvarId + catch + | Exception.error _ msg => throwError! "function expected\n{msg}" + | _ => throwError "function expected" if synthesized then pure $ mkAppN (Lean.mkConst `coeFun [u, v]) #[α, γ, a, mvar] else throwError "function expected" -def synthesizeAppInstMVars (instMVars : Array MVarId) : TermElabM Unit := -instMVars.forM $ fun mvarId => - unlessM (synthesizeInstMVarCore mvarId) $ +def synthesizeAppInstMVars (instMVars : Array MVarId) : TermElabM Unit := do +for mvarId in instMVars do + unless (← synthesizeInstMVarCore mvarId) do registerSyntheticMVarWithCurrRef mvarId SyntheticMVarKind.typeClass namespace ElabAppArgs @@ -109,39 +105,39 @@ modify fun s => { s with instMVars := s.instMVars.push mvarId } The ones that cannot be synthesized yet are registered. Remark: we use this method before trying to apply coercions to function. -/ def synthesizeAppInstMVars : M Unit := do -s ← get; -let instMVars := s.instMVars; -modify fun s => { s with instMVars := #[] }; -liftM $ Lean.Elab.Term.synthesizeAppInstMVars instMVars +let s ← get +let instMVars := s.instMVars +modify fun s => { s with instMVars := #[] } +Lean.Elab.Term.synthesizeAppInstMVars instMVars /- fType may become a forallE after we synthesize pending metavariables. -/ private def synthesizePendingAndNormalizeFunType : M Unit := do -synthesizeAppInstMVars; -liftM $ synthesizeSyntheticMVars; -s ← get; -fType ← whnfForall s.fType; +synthesizeAppInstMVars +synthesizeSyntheticMVars +let s ← get +let fType ← whnfForall s.fType match fType with | Expr.forallE _ _ _ _ => modify fun s => { s with fType := fType } -| _ => do - f ← liftM $ tryCoeFun fType s.f; - fType ← inferType f; +| _ => + let f ← tryCoeFun fType s.f + let fType ← inferType f modify fun s => { s with f := f, fType := fType } /- Normalize and return the function type. -/ private def normalizeFunType : M Expr := do -s ← get; -fType ← whnfForall s.fType; -modify fun s => { s with fType := fType }; +let s ← get +let fType ← whnfForall s.fType +modify fun s => { s with fType := fType } pure fType /- Return the binder name at `fType`. This method assumes `fType` is a function type. -/ -private def getBindingName : M Name := do s ← get; pure s.fType.bindingName! +private def getBindingName : M Name := do return (← get).fType.bindingName! /- Return the next argument expected type. This method assumes `fType` is a function type. -/ -private def getArgExpectedType : M Expr := do s ← get; pure s.fType.bindingDomain! +private def getArgExpectedType : M Expr := do return (← get).fType.bindingDomain! def eraseNamedArgCore (namedArgs : List NamedArg) (binderName : Name) : List NamedArg := -namedArgs.filter fun namedArg => namedArg.name != binderName +namedArgs.filter (·.name != binderName) /- Remove named argument with name `binderName` from `namedArgs`. -/ def eraseNamedArg (binderName : Name) : M Unit := @@ -149,7 +145,7 @@ modify fun s => { s with namedArgs := eraseNamedArgCore s.namedArgs binderName } /- Return true if the next argument at `args` is of the form `_` -/ private def isNextArgHole : M Bool := do -s ← get; +let s ← get match s.args with | Arg.stx (Syntax.node `Lean.Parser.Term.hole _) :: _ => pure true | _ => pure false @@ -164,27 +160,27 @@ modify fun s => { s with f := mkApp s.f arg, fType := s.fType.bindingBody!.insta Elaborate the given `Arg` and add it to the result. See `addNewArg`. Recall that, `Arg` may be wrapping an already elaborated `Expr`. -/ private def elabAndAddNewArg (arg : Arg) : M Unit := do -s ← get; -expectedType ← getArgExpectedType; +let s ← get +let expectedType ← getArgExpectedType match arg with -| Arg.expr val => do - arg ← liftM $ ensureArgType s.f val expectedType; +| Arg.expr val => + let arg ← ensureArgType s.f val expectedType addNewArg arg -| Arg.stx val => do - val ← liftM $ elabTerm val expectedType; - arg ← liftM $ ensureArgType s.f val expectedType; +| Arg.stx val => + let val ← elabTerm val expectedType + let arg ← ensureArgType s.f val expectedType addNewArg arg /- Return true if the given type contains `OptParam` or `AutoParams` -/ private def hasOptAutoParams (type : Expr) : M Bool := do forallTelescopeReducing type fun xs type => xs.anyM fun x => do - xType ← inferType x; + let xType ← inferType x pure $ xType.getOptParamDefault?.isSome || xType.getAutoParamTactic?.isSome /- Return true if `fType` contains `OptParam` or `AutoParams` -/ private def fTypeHasOptAutoParams : M Bool := do -s ← get; +let s ← get hasOptAutoParams s.fType /- Auxiliary function for retrieving the resulting type of a function application. @@ -253,106 +249,99 @@ private partial def getForallBody : Nat → List NamedArg → Expr → Option Ex `bv 64` is **not** definitionally equal to `bv 32`. -/ private def propagateExpectedType : M Unit := do -s ← get; +let s ← get -- TODO: handle s.etaArgs.size > 0 -unless (s.explicit || !s.etaArgs.isEmpty || s.alreadyPropagated || s.typeMVars.isEmpty) $ do - modify fun s => { s with alreadyPropagated := true }; +unless s.explicit || !s.etaArgs.isEmpty || s.alreadyPropagated || s.typeMVars.isEmpty do + modify fun s => { s with alreadyPropagated := true } match s.expectedType? with | none => pure () - | some expectedType => do - let numRemainingArgs := s.args.length; - trace `Elab.app.propagateExpectedType fun _ => - "etaArgs.size: " ++ toString s.etaArgs.size ++ ", numRemainingArgs: " ++ toString numRemainingArgs ++ ", fType: " ++ s.fType; + | some expectedType => + let numRemainingArgs := s.args.length + trace[Elab.app.propagateExpectedType]! "etaArgs.size: {s.etaArgs.size}, numRemainingArgs: {numRemainingArgs}, fType: {s.fType}" match getForallBody numRemainingArgs s.namedArgs s.fType with | none => pure () | some fTypeBody => unless fTypeBody.hasLooseBVars do - let hasTypeMVar := (fTypeBody.findMVar? fun mvarId => s.typeMVars.contains mvarId).isSome; - let hasOnlyTypeMVar := (fTypeBody.findMVar? fun mvarId => !s.typeMVars.contains mvarId).isNone; - when (hasTypeMVar && hasOnlyTypeMVar) $ - unlessM (hasOptAutoParams fTypeBody) do - trace `Elab.app.propagateExpectedType fun _ => expectedType ++ " =?= " ++ fTypeBody; - isDefEq expectedType fTypeBody; + let hasTypeMVar := (fTypeBody.findMVar? fun mvarId => s.typeMVars.contains mvarId).isSome + let hasOnlyTypeMVar := (fTypeBody.findMVar? fun mvarId => !s.typeMVars.contains mvarId).isNone + if hasTypeMVar && hasOnlyTypeMVar then + unless (← hasOptAutoParams fTypeBody) do + trace[Elab.app.propagateExpectedType]! "{expectedType} =?= {fTypeBody}" + isDefEq expectedType fTypeBody pure () /- Create a fresh local variable with the current binder name and argument type, add it to `etaArgs` and `f`, and then execute the continuation `k`.-/ private def addEtaArg (k : Unit → M Expr) : M Expr := do -n ← getBindingName; -type ← getArgExpectedType; +let n ← getBindingName +let type ← getArgExpectedType withLocalDeclD n type fun x => do - modify fun s => { s with etaArgs := s.etaArgs.push x }; - addNewArg x; + modify fun s => { s with etaArgs := s.etaArgs.push x } + addNewArg x k () /- This method execute after all application arguments have been processed. -/ private def finalize : M Expr := do -s ← get; -let e := s.f; -let eType := s.fType; +let s ← get +let e := s.f +let eType := s.fType -- all user explicit arguments have been consumed -trace `Elab.app.finalize $ fun _ => e; -ref ← getRef; +trace[Elab.app.finalize]! e +let ref ← getRef -- Register the error context of implicits -s.toSetErrorCtx.forM fun mvarId => liftM $ registerMVarErrorImplicitArgInfo mvarId ref e; -(e, eType) ← - if s.etaArgs.isEmpty then - pure (e, eType) - else do { - e ← mkLambdaFVars s.etaArgs e; - eType ← inferType e; - pure (e, eType) - }; -trace `Elab.app.finalize $ fun _ => "after etaArgs: " ++ e ++ " : " ++ eType; +for mvarId in s.toSetErrorCtx do + registerMVarErrorImplicitArgInfo mvarId ref e +if !s.etaArgs.isEmpty then + e ← mkLambdaFVars s.etaArgs e + eType ← inferType e +trace[Elab.app.finalize]! "after etaArgs, {e} : {eType}" match s.expectedType? with | none => pure () -| some expectedType => do { - trace `Elab.app.finalize $ fun _ => "expected type: " ++ expectedType; +| some expectedType => + trace[Elab.app.finalize]! "expected type: {expectedType}" -- Try to propagate expected type. Ignore if types are not definitionally equal, caller must handle it. - isDefEq expectedType eType; + isDefEq expectedType eType pure () - }; -synthesizeAppInstMVars; +synthesizeAppInstMVars pure e /- Process a `fType` of the form `(x : A) → B x`. This method assume `fType` is a function type -/ private def processExplictArg (k : Unit → M Expr) : M Expr := do -s ← get; +let s ← get match s.args with -| arg::args => do - propagateExpectedType; - modify fun s => { s with args := args }; - elabAndAddNewArg arg; +| arg::args => + propagateExpectedType + modify fun s => { s with args := args } + elabAndAddNewArg arg k () -| _ => do - argType ← getArgExpectedType; +| _ => + let argType ← getArgExpectedType match s.explicit, argType.getOptParamDefault?, argType.getAutoParamTactic? with - | false, some defVal, _ => do addNewArg defVal; k() - | false, _, some (Expr.const tacticDecl _ _) => do - env ← getEnv; + | false, some defVal, _ => addNewArg defVal; k () + | false, _, some (Expr.const tacticDecl _ _) => + let env ← getEnv match evalSyntaxConstant env tacticDecl with | Except.error err => throwError err - | Except.ok tacticSyntax => do - tacticBlock ← `(by { $(tacticSyntax.getArgs)* }); + | Except.ok tacticSyntax => + let tacticBlock ← `(by { $(tacticSyntax.getArgs)* }) -- tacticBlock does not have any position information. -- So, we use the current ref - ref ← getRef; - let tacticBlock := tacticBlock.copyInfo ref; - let argType := argType.getArg! 0; -- `autoParam type := by tactic` ==> `type` - propagateExpectedType; - elabAndAddNewArg (Arg.stx tacticBlock); + let ref ← getRef + let tacticBlock := tacticBlock.copyInfo ref + let argType := argType.getArg! 0 -- `autoParam type := by tactic` ==> `type` + propagateExpectedType + elabAndAddNewArg (Arg.stx tacticBlock) k () | false, _, some _ => throwError "invalid autoParam, argument must be a constant" | _, _, _ => - if !s.namedArgs.isEmpty then do + if !s.namedArgs.isEmpty then addEtaArg k - else if !s.explicit then do - hasOptAuto ← fTypeHasOptAutoParams; - if hasOptAuto then + else if !s.explicit then + if (← fTypeHasOptAutoParams) then addEtaArg k else finalize @@ -363,64 +352,67 @@ match s.args with Process a `fType` of the form `{x : A} → B x`. This method assume `fType` is a function type -/ private def processImplicitArg (k : Unit → M Expr) : M Expr := do -s ← get; +let s ← get if s.explicit then processExplictArg k -else do - argType ← getArgExpectedType; - arg ← mkFreshExprMVar argType; - whenM (isTypeFormer arg) $ - modify fun s => { s with typeMVars := s.typeMVars.push arg.mvarId!, toSetErrorCtx := s.toSetErrorCtx.push arg.mvarId! }; - addNewArg arg; +else + let argType ← getArgExpectedType + let arg ← mkFreshExprMVar argType + if (← isTypeFormer arg) then + modify fun s => { s with typeMVars := s.typeMVars.push arg.mvarId!, toSetErrorCtx := s.toSetErrorCtx.push arg.mvarId! } + addNewArg arg k () /- Process a `fType` of the form `[x : A] → B x`. This method assume `fType` is a function type -/ private def processInstImplicitArg (k : Unit → M Expr) : M Expr := do -s ← get; -argType ← getArgExpectedType; -if s.explicit then do - isHole ← isNextArgHole; - if isHole then do +let s ← get +let argType ← getArgExpectedType +if s.explicit then + let isHole ← isNextArgHole + if isHole then /- Recall that if '@' has been used, and the argument is '_', then we still use type class resolution -/ - arg ← mkFreshExprMVar argType MetavarKind.synthetic; - modify fun s => { s with args := s.args.tail! }; - addInstMVar arg.mvarId!; - addNewArg arg; + let arg ← mkFreshExprMVar argType MetavarKind.synthetic + modify fun s => { s with args := s.args.tail! } + addInstMVar arg.mvarId! + addNewArg arg k () else processExplictArg k -else do - arg ← mkFreshExprMVar argType MetavarKind.synthetic; - addInstMVar arg.mvarId!; - addNewArg arg; +else + let arg ← mkFreshExprMVar argType MetavarKind.synthetic + addInstMVar arg.mvarId! + addNewArg arg k () /- Return true if there are regular or named arguments to be processed. -/ private def hasArgsToProcess : M Bool := do -s ← get; +let s ← get pure $ !s.args.isEmpty || !s.namedArgs.isEmpty /- Elaborate function application arguments. -/ partial def main : Unit → M Expr | _ => do - s ← get; - fType ← normalizeFunType; + let s ← get + let fType ← normalizeFunType match fType with - | Expr.forallE binderName _ _ c => do - s ← get; + | Expr.forallE binderName _ _ c => + let s ← get match s.namedArgs.find? fun (namedArg : NamedArg) => namedArg.name == binderName with - | some namedArg => do propagateExpectedType; eraseNamedArg binderName; elabAndAddNewArg namedArg.val; main() - | none => do + | some namedArg => + propagateExpectedType + eraseNamedArg binderName + elabAndAddNewArg namedArg.val + main () + | none => match c.binderInfo with | BinderInfo.implicit => processImplicitArg main | BinderInfo.instImplicit => processInstImplicitArg main | _ => processExplictArg main - | _ => do - cont ← hasArgsToProcess; - if cont then do - synthesizePendingAndNormalizeFunType; + | _ => + if (← hasArgsToProcess) then + synthesizePendingAndNormalizeFunType main () else finalize @@ -429,11 +421,11 @@ end ElabAppArgs private def elabAppArgs (f : Expr) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := do -fType ← inferType f; -fType ← instantiateMVars fType; -trace `Elab.app.args $ fun _ => "explicit: " ++ toString explicit ++ ", " ++ f ++ " : " ++ fType; -unless (namedArgs.isEmpty && args.isEmpty) $ - tryPostponeIfMVar fType; +let fType ← inferType f +let fType ← instantiateMVars fType +trace[Elab.app.args]! "explicit: {explicit}, {f} : {fType}" +unless namedArgs.isEmpty && args.isEmpty do + tryPostponeIfMVar fType (ElabAppArgs.main ()).run' { args := args.toList, expectedType? := expectedType?, explicit := explicit, namedArgs := namedArgs.toList, f := f, fType := fType } /-- Auxiliary inductive datatype that represents the resolution of an `LVal`. -/ @@ -445,7 +437,7 @@ inductive LValResolution | getOp (fullName : Name) (idx : Syntax) private def throwLValError {α} (e : Expr) (eType : Expr) (msg : MessageData) : TermElabM α := -throwError $ msg ++ indentExpr e ++ Format.line ++ "has type" ++ indentExpr eType +throwError! "{msg}{indentExpr e}\nhas type{indentExpr eType}" /-- `findMethod? env S fName`. 1- If `env` contains `S ++ fName`, return `(S, S++fName)` @@ -453,28 +445,28 @@ throwError $ msg ++ indentExpr e ++ Format.line ++ "has type" ++ indentExpr eTyp 3- Otherwise for each parent structure `S'` of `S`, we try `findMethod? env S' fname` -/ private partial def findMethod? (env : Environment) : Name → Name → Option (Name × Name) | structName, fieldName => - let fullName := structName ++ fieldName; + let fullName := structName ++ fieldName match env.find? fullName with | some _ => some (structName, fullName) | none => - let fullNamePrv := mkPrivateName env fullName; + let fullNamePrv := mkPrivateName env fullName match env.find? fullNamePrv with | some _ => some (structName, fullNamePrv) | none => if isStructureLike env structName then - (getParentStructures env structName).findSome? fun parentStructName => findMethod? parentStructName fieldName + (getParentStructures env structName).findSome? fun parentStructName => findMethod? env parentStructName fieldName else none -private def resolveLValAux (e : Expr) (eType : Expr) (lval : LVal) : TermElabM LValResolution := +private def resolveLValAux (e : Expr) (eType : Expr) (lval : LVal) : TermElabM LValResolution := do match eType.getAppFn, lval with -| Expr.const structName _ _, LVal.fieldIdx idx => do - when (idx == 0) $ - throwError "invalid projection, index must be greater than 0"; - env ← getEnv; - unless (isStructureLike env structName) $ - throwLValError e eType "invalid projection, structure expected"; - let fieldNames := getStructureFields env structName; +| Expr.const structName _ _, LVal.fieldIdx idx => + if idx == 0 then + throwError "invalid projection, index must be greater than 0" + let env ← getEnv + unless isStructureLike env structName do + throwLValError e eType "invalid projection, structure expected" + let fieldNames := getStructureFields env structName if h : idx - 1 < fieldNames.size then if isStructure env structName then pure $ LValResolution.projFn structName structName (fieldNames.get ⟨idx - 1, h⟩) @@ -483,21 +475,20 @@ match eType.getAppFn, lval with So, we don't projection functions for it. Thus, we use `Expr.proj` -/ pure $ LValResolution.projIdx structName (idx - 1) else - throwLValError e eType ("invalid projection, structure has only " ++ toString fieldNames.size ++ " field(s)") -| Expr.const structName _ _, LVal.fieldName fieldName => do - env ← getEnv; - let searchEnv : Unit → TermElabM LValResolution := fun _ => do { - match findMethod? env structName fieldName with + throwLValError e eType msg!"invalid projection, structure has only {fieldNames.size} field(s)" +| Expr.const structName _ _, LVal.fieldName fieldName => + let env ← getEnv + let searchEnv : Unit → TermElabM LValResolution := fun _ => do + match findMethod? env structName (mkNameSimple fieldName) with | some (baseStructName, fullName) => pure $ LValResolution.const baseStructName structName fullName - | none => throwLValError e eType $ - "invalid field notation, '" ++ fieldName ++ "' is not a valid \"field\" because environment does not contain '" ++ (structName ++ fieldName : Name) ++ "'" - }; + | none => + throwLValError e eType msg!"invalid field notation, '{fieldName}' is not a valid \"field\" because environment does not contain '{mkNameStr structName fieldName}'" -- search local context first, then environment - let searchCtx : Unit → TermElabM LValResolution := fun _ => do { - let fullName := structName ++ fieldName; - currNamespace ← getCurrNamespace; - let localName := fullName.replacePrefix currNamespace Name.anonymous; - lctx ← getLCtx; + let searchCtx : Unit → TermElabM LValResolution := fun _ => do + let fullName := mkNameStr structName fieldName + let currNamespace ← getCurrNamespace + let localName := fullName.replacePrefix currNamespace Name.anonymous + let lctx ← getLCtx match lctx.findFromUserName? localName with | some localDecl => if localDecl.binderInfo == BinderInfo.auxDecl then @@ -506,19 +497,18 @@ match eType.getAppFn, lval with else searchEnv () | none => searchEnv () - }; if isStructure env structName then - match findField? env structName fieldName with - | some baseStructName => pure $ LValResolution.projFn baseStructName structName fieldName + match findField? env structName (mkNameSimple fieldName) with + | some baseStructName => pure $ LValResolution.projFn baseStructName structName (mkNameSimple fieldName) | none => searchCtx () else searchCtx () -| Expr.const structName _ _, LVal.getOp idx => do - env ← getEnv; - let fullName := mkNameStr structName "getOp"; +| Expr.const structName _ _, LVal.getOp idx => + let env ← getEnv + let fullName := mkNameStr structName "getOp" match env.find? fullName with | some _ => pure $ LValResolution.getOp fullName idx - | none => throwLValError e eType $ "invalid [..] notation because environment does not contain '" ++ fullName ++ "'" + | none => throwLValError e eType msg!"invalid [..] notation because environment does not contain '{fullName}'" | _, LVal.getOp idx => throwLValError e eType "invalid [..] notation, type is not of the form (C ...) where C is a constant" | _, _ => @@ -528,11 +518,11 @@ match eType.getAppFn, lval with Example: given `e` with `eType := {α : Type} → (fun β => List β) α `, it produces `(e ?m, List ?m)` where `?m` is fresh metavariable. -/ private partial def consumeImplicits : Expr → Expr → TermElabM (Expr × Expr) | e, eType => do - eType ← whnfCore eType; + let eType ← whnfCore eType match eType with | Expr.forallE n d b c => - if !c.binderInfo.isExplicit then do - mvar ← mkFreshExprMVar d; + if !c.binderInfo.isExplicit then + let mvar ← mkFreshExprMVar d consumeImplicits (mkApp e mvar) (b.instantiate1 mvar) else match d.getOptParamDefault? with | some defVal => consumeImplicits (mkApp e defVal) (b.instantiate1 defVal) @@ -542,35 +532,34 @@ private partial def consumeImplicits : Expr → Expr → TermElabM (Expr × Expr private partial def resolveLValLoop (lval : LVal) : Expr → Expr → Array Exception → TermElabM (Expr × LValResolution) | e, eType, previousExceptions => do - (e, eType) ← consumeImplicits e eType; - tryPostponeIfMVar eType; + let (e, eType) ← consumeImplicits e eType + tryPostponeIfMVar eType + try + let lvalRes ← resolveLValAux e eType lval + pure (e, lvalRes) catch - (do lvalRes ← resolveLValAux e eType lval; pure (e, lvalRes)) - (fun ex => - match ex with - | Exception.error _ _ => do - eType? ← unfoldDefinition? eType; - match eType? with - | some eType => resolveLValLoop e eType (previousExceptions.push ex) - | none => do - previousExceptions.forM $ fun ex => logException ex; - throw ex - | Exception.internal _ => throw ex) + | ex@(Exception.error _ _) => + let eType? ← unfoldDefinition? eType + match eType? with + | some eType => resolveLValLoop lval e eType (previousExceptions.push ex) + | none => + previousExceptions.forM fun ex => logException ex + throw ex + | ex@(Exception.internal _) => throw ex private def resolveLVal (e : Expr) (lval : LVal) : TermElabM (Expr × LValResolution) := do -eType ← inferType e; +let eType ← inferType e resolveLValLoop lval e eType #[] private partial def mkBaseProjections (baseStructName : Name) (structName : Name) (e : Expr) : TermElabM Expr := do -env ← getEnv; +let env ← getEnv match getPathToBaseStructure? env baseStructName structName with | none => throwError "failed to access field in parent structure" | some path => - path.foldlM - (fun e projFunName => do - projFn ← mkConst projFunName; - elabAppArgs projFn #[{ name := `self, val := Arg.expr e }] #[] none false) - e + for projFunName in path do + let projFn ← mkConst projFunName + e ← elabAppArgs projFn #[{ name := `self, val := Arg.expr e }] (args := #[]) (expectedType? := none) (explicit := false) + return e /- Auxiliary method for field notation. It tries to add `e` to `args` as the first explicit parameter which takes an element of type `(C ...)` where `C` is `baseName`. @@ -578,81 +567,79 @@ match getPathToBaseStructure? env baseStructName structName with private def addLValArg (baseName : Name) (fullName : Name) (e : Expr) (args : Array Arg) : Nat → Array NamedArg → Expr → TermElabM (Array Arg) | i, namedArgs, Expr.forallE n d b c => if !c.binderInfo.isExplicit then - addLValArg i namedArgs b + addLValArg baseName fullName e args i namedArgs b else /- If there is named argument with name `n`, then we should skip. -/ match namedArgs.findIdx? (fun namedArg => namedArg.name == n) with | some idx => do - let namedArgs := namedArgs.eraseIdx idx; - addLValArg i namedArgs b + let namedArgs := namedArgs.eraseIdx idx + addLValArg baseName fullName e args i namedArgs b | none => do if d.consumeMData.isAppOf baseName then pure $ args.insertAt i (Arg.expr e) else if i < args.size then - addLValArg (i+1) namedArgs b + addLValArg baseName fullName e args (i+1) namedArgs b else - throwError $ "invalid field notation, insufficient number of arguments for '" ++ fullName ++ "'" + throwError! "invalid field notation, insufficient number of arguments for '{fullName}'" | _, _, fType => - throwError $ - "invalid field notation, function '" ++ fullName ++ "' does not have explicit argument with type (" ++ baseName ++ " ...)" + throwError! "invalid field notation, function '{fullName}' does not have explicit argument with type ({baseName} ...)" private def elabAppLValsAux (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) - : Expr → List LVal → TermElabM Expr + (f : Expr) (lvals : List LVal) : TermElabM Expr := +let rec loop : Expr → List LVal → TermElabM Expr | f, [] => elabAppArgs f namedArgs args expectedType? explicit | f, lval::lvals => do - (f, lvalRes) ← resolveLVal f lval; + let (f, lvalRes) ← resolveLVal f lval match lvalRes with | LValResolution.projIdx structName idx => - let f := mkProj structName idx f; - elabAppLValsAux f lvals - | LValResolution.projFn baseStructName structName fieldName => do - f ← mkBaseProjections baseStructName structName f; - projFn ← mkConst (baseStructName ++ fieldName); - if lvals.isEmpty then do - namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f }; + let f := mkProj structName idx f + loop f lvals + | LValResolution.projFn baseStructName structName fieldName => + let f ← mkBaseProjections baseStructName structName f + let projFn ← mkConst (baseStructName ++ fieldName) + if lvals.isEmpty then + let namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f } elabAppArgs projFn namedArgs args expectedType? explicit - else do - f ← elabAppArgs projFn #[{ name := `self, val := Arg.expr f }] #[] none false; - elabAppLValsAux f lvals - | LValResolution.const baseStructName structName constName => do - f ← if baseStructName != structName then mkBaseProjections baseStructName structName f else pure f; - projFn ← mkConst constName; - if lvals.isEmpty then do - projFnType ← inferType projFn; - args ← addLValArg baseStructName constName f args 0 namedArgs projFnType; + else + let f ← elabAppArgs projFn #[{ name := `self, val := Arg.expr f }] #[] (expectedType? := none) (explicit := false) + loop f lvals + | LValResolution.const baseStructName structName constName => + let f ← if baseStructName != structName then mkBaseProjections baseStructName structName f else pure f + let projFn ← mkConst constName + if lvals.isEmpty then + let projFnType ← inferType projFn + let args ← addLValArg baseStructName constName f args 0 namedArgs projFnType elabAppArgs projFn namedArgs args expectedType? explicit - else do - f ← elabAppArgs projFn #[] #[Arg.expr f] none false; - elabAppLValsAux f lvals + else + let f ← elabAppArgs projFn #[] #[Arg.expr f] (expectedType? := none) (explicit := false) + loop f lvals | LValResolution.localRec baseName fullName fvar => - if lvals.isEmpty then do - fvarType ← inferType fvar; - args ← addLValArg baseName fullName f args 0 namedArgs fvarType; + if lvals.isEmpty then + let fvarType ← inferType fvar + let args ← addLValArg baseName fullName f args 0 namedArgs fvarType elabAppArgs fvar namedArgs args expectedType? explicit - else do - f ← elabAppArgs fvar #[] #[Arg.expr f] none false; - elabAppLValsAux f lvals - | LValResolution.getOp fullName idx => do - getOpFn ← mkConst fullName; - if lvals.isEmpty then do - namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f }; - namedArgs ← addNamedArg namedArgs { name := `idx, val := Arg.stx idx }; + else + let f ← elabAppArgs fvar #[] #[Arg.expr f] (expectedType? := none) (explicit := false) + loop f lvals + | LValResolution.getOp fullName idx => + let getOpFn ← mkConst fullName + if lvals.isEmpty then + let namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f } + let namedArgs ← addNamedArg namedArgs { name := `idx, val := Arg.stx idx } elabAppArgs getOpFn namedArgs args expectedType? explicit - else do - f ← elabAppArgs getOpFn #[{ name := `self, val := Arg.expr f }, { name := `idx, val := Arg.stx idx }] #[] none false; - elabAppLValsAux f lvals + else + let f ← elabAppArgs getOpFn #[{ name := `self, val := Arg.expr f }, { name := `idx, val := Arg.stx idx }] #[] (expectedType? := none) (explicit := false) + loop f lvals +loop f lvals private def elabAppLVals (f : Expr) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := do -when (!lvals.isEmpty && explicit) $ throwError "invalid use of field notation with `@` modifier"; +if !lvals.isEmpty && explicit then + throwError "invalid use of field notation with `@` modifier" elabAppLValsAux namedArgs args expectedType? explicit f lvals def elabExplicitUnivs (lvls : Array Syntax) : TermElabM (List Level) := do -lvls.foldrM - (fun stx lvls => do - lvl ← elabLevel stx; - pure (lvl::lvls)) - [] +lvls.foldrM (fun stx lvls => do pure ((← elabLevel stx)::lvls)) [] /- Interaction between `errToSorry` and `observing`. @@ -677,20 +664,19 @@ false, no elaboration function executed by `x` will reset it to private partial def elabAppFnId (fIdent : Syntax) (fExplicitUnivs : List Level) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) (overloaded : Bool) (acc : Array TermElabResult) - : TermElabM (Array TermElabResult) := + : TermElabM (Array TermElabResult) := do match fIdent with -| Syntax.ident _ _ n preresolved => do - funLVals ← withRef fIdent $ resolveName n preresolved fExplicitUnivs; - let overloaded := overloaded || funLVals.length > 1; +| Syntax.ident _ _ n preresolved => + let funLVals ← withRef fIdent $ resolveName n preresolved fExplicitUnivs + let overloaded := overloaded || funLVals.length > 1 -- Set `errToSorry` to `false` if `funLVals` > 1. See comment above about the interaction between `errToSorry` and `observing`. - withReader (fun ctx => { ctx with errToSorry := funLVals.length == 1 && ctx.errToSorry }) $ + withReader (fun ctx => { ctx with errToSorry := funLVals.length == 1 && ctx.errToSorry }) do funLVals.foldlM (fun acc ⟨f, fields⟩ => do - let lvals' := fields.map LVal.fieldName; - s ← observing do { - e ← elabAppLVals f (lvals' ++ lvals) namedArgs args expectedType? explicit; + let lvals' := fields.map LVal.fieldName + let s ← observing do + let e ← elabAppLVals f (lvals' ++ lvals) namedArgs args expectedType? explicit if overloaded then ensureHasType expectedType? e else pure e - }; pure $ acc.push s) acc | _ => throwUnsupportedSyntax @@ -703,13 +689,13 @@ private partial def elabAppFn : Syntax → List LVal → Array NamedArg → Arra f.getArgs.foldlM (fun acc f => elabAppFn f lvals namedArgs args expectedType? explicit true acc) acc else match_syntax f with | `($(e).$idx:fieldIdx) => - let idx := idx.isFieldIdx?.get!; + let idx := idx.isFieldIdx?.get! elabAppFn e (LVal.fieldIdx idx :: lvals) namedArgs args expectedType? explicit overloaded acc | `($e $.$field) => do - f ← `($(e).$field); + let f ← `($(e).$field) elabAppFn f lvals namedArgs args expectedType? explicit overloaded acc | `($(e).$field:ident) => - let newLVals := field.getId.eraseMacroScopes.components.map (fun n => LVal.fieldName (toString n)); + let newLVals := field.getId.eraseMacroScopes.components.map (fun n => LVal.fieldName (toString n)) elabAppFn e (newLVals ++ lvals) namedArgs args expectedType? explicit overloaded acc | `($e[$idx]) => elabAppFn e (LVal.getOp idx :: lvals) namedArgs args expectedType? explicit overloaded acc @@ -718,7 +704,7 @@ private partial def elabAppFn : Syntax → List LVal → Array NamedArg → Arra | `($id:ident) => do elabAppFnId id [] lvals namedArgs args expectedType? explicit overloaded acc | `($id:ident.{$us*}) => do - us ← elabExplicitUnivs us.getSepElems; + let us ← elabExplicitUnivs us.getSepElems elabAppFnId id us lvals namedArgs args expectedType? explicit overloaded acc | `(@$id:ident) => elabAppFn id lvals namedArgs args expectedType? true overloaded acc @@ -727,24 +713,23 @@ private partial def elabAppFn : Syntax → List LVal → Array NamedArg → Arra | `(@$t) => throwUnsupportedSyntax -- invalid occurrence of `@` | `(_) => throwError "placeholders '_' cannot be used where a function is expected" | _ => - let catchPostpone := !overloaded; + let catchPostpone := !overloaded /- If we are processing a choice node, then we should use `catchPostpone == false` when elaborating terms. Recall that `observing` does not catch `postponeExceptionId`. -/ if lvals.isEmpty && namedArgs.isEmpty && args.isEmpty then do /- Recall that elabAppFn is used for elaborating atomics terms **and** choice nodes that may contain arbitrary terms. If they are not being used as a function, we should elaborate using the expectedType. -/ - s ← + let s ← if overloaded then observing $ elabTermEnsuringType f expectedType? catchPostpone else - observing $ elabTerm f expectedType?; + observing $ elabTerm f expectedType? pure $ acc.push s else do - s ← observing do { - f ← elabTerm f none catchPostpone; - e ← elabAppLVals f lvals namedArgs args expectedType? explicit; + let s ← observing do + let f ← elabTerm f none catchPostpone + let e ← elabAppLVals f lvals namedArgs args expectedType? explicit if overloaded then ensureHasType expectedType? e else pure e - }; pure $ acc.push s private def isSuccess (candidate : TermElabResult) : Bool := @@ -756,77 +741,77 @@ private def getSuccess (candidates : Array TermElabResult) : Array TermElabResul candidates.filter isSuccess private def toMessageData (ex : Exception) : TermElabM MessageData := do -pos ← getRefPos; +let pos ← getRefPos match ex.getRef.getPos with | none => pure ex.toMessageData | some exPos => if pos == exPos then pure ex.toMessageData - else do - fileMap ← MonadLog.getFileMap; -- Remove `MonadLog.` it is a workaround for old frontend - let exPosition := fileMap.toPosition exPos; - pure $ toString exPosition.line ++ ":" ++ toString exPosition.column ++ " " ++ ex.toMessageData + else + let fileMap ← MonadLog.getFileMap -- Remove `MonadLog.` it is a workaround for old frontend + let exPosition := fileMap.toPosition exPos + pure msg!"{exPosition.line}:{exPosition.column} {ex.toMessageData}" private def toMessageList (msgs : Array MessageData) : MessageData := indentD (MessageData.joinSep msgs.toList (Format.line ++ Format.line)) private def mergeFailures {α} (failures : Array TermElabResult) : TermElabM α := do -msgs ← failures.mapM $ fun failure => +let msgs ← failures.mapM fun failure => match failure with | EStateM.Result.ok _ _ => unreachable! - | EStateM.Result.error ex _ => toMessageData ex; -throwError ("overloaded, errors " ++ toMessageList msgs) + | EStateM.Result.error ex _ => toMessageData ex +throwError! "overloaded, errors {toMessageList msgs}" private def elabAppAux (f : Syntax) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) : TermElabM Expr := do -let explicit := false; -let overloaded := false; -candidates ← elabAppFn f [] namedArgs args expectedType? explicit overloaded #[]; +let explicit := false +let overloaded := false +let candidates ← elabAppFn f [] namedArgs args expectedType? explicit overloaded #[] if candidates.size == 1 then - applyResult $ candidates.get! 0 + applyResult candidates[0] else - let successes := getSuccess candidates; - if successes.size == 1 then do - e ← applyResult $ successes.get! 0; + let successes := getSuccess candidates + if successes.size == 1 then + let e ← applyResult successes[0] pure e - else if successes.size > 1 then do - lctx ← getLCtx; - opts ← getOptions; - let msgs : Array MessageData := successes.map $ fun success => match success with + else if successes.size > 1 then + let lctx ← getLCtx + let opts ← getOptions + let msgs : Array MessageData := successes.map fun success => match success with | EStateM.Result.ok e s => MessageData.withContext { env := s.core.env, mctx := s.meta.mctx, lctx := lctx, opts := opts } e - | _ => unreachable!; + | _ => unreachable! throwErrorAt f ("ambiguous, possible interpretations " ++ toMessageList msgs) else withRef f $ mergeFailures candidates partial def expandApp (stx : Syntax) (pattern := false) : TermElabM (Syntax × Array NamedArg × Array Arg × Bool) := do -let f := stx.getArg 0; -let args := (stx.getArg 1).getArgs; +let f := stx[0] +let args := stx[1].getArgs let (args, ellipsis) := if args.back.isOfKind `Lean.Parser.Term.ellipsis then (args.pop, true) else - (args, false); -unless (pattern || !ellipsis) $ - throwErrorAt args.back "'..' is only allowed in patterns"; -(namedArgs, args) ← args.foldlM + (args, false) +unless pattern || !ellipsis do + throwErrorAt args.back "'..' is only allowed in patterns" +let (namedArgs, args) ← args.foldlM (fun (acc : Array NamedArg × Array Arg) (stx : Syntax) => do - let (namedArgs, args) := acc; - if stx.getKind == `Lean.Parser.Term.namedArgument then do + let (namedArgs, args) := acc + if stx.getKind == `Lean.Parser.Term.namedArgument then -- tparser! try ("(" >> ident >> " := ") >> termParser >> ")" - let name := (stx.getArg 1).getId.eraseMacroScopes; - let val := stx.getArg 3; - namedArgs ← addNamedArg namedArgs { name := name, val := Arg.stx val }; + let name := stx[1].getId.eraseMacroScopes + let val := stx[3] + let namedArgs ← addNamedArg namedArgs { name := name, val := Arg.stx val } pure (namedArgs, args) - else if stx.getKind == `Lean.Parser.Term.ellipsis then do + else if stx.getKind == `Lean.Parser.Term.ellipsis then throwErrorAt stx "unexpected '..'" else pure (namedArgs, args.push $ Arg.stx stx)) - (#[], #[]); + (#[], #[]) pure (f, namedArgs, args, ellipsis) @[builtinTermElab app] def elabApp : TermElab := fun stx expectedType? => do - (f, namedArgs, args, _) ← expandApp stx; + let (f, namedArgs, args, _) ← expandApp stx elabAppAux f namedArgs args expectedType? private def elabAtom : TermElab := @@ -849,10 +834,7 @@ fun stx expectedType? => match_syntax stx with @[builtinTermElab proj] def elabProj : TermElab := elabAtom @[builtinTermElab arrayRef] def elabArrayRef : TermElab := elabAtom -@[init] private def regTraceClasses : IO Unit := do -registerTraceClass `Elab.app; -pure () +initialize + registerTraceClass `Elab.app -end Term -end Elab -end Lean +end Lean.Elab.Term diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 0de470bb61..2b366f9ca5 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -13,566 +13,665 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___rarg(lean_object*); lean_object* l_List_reverse___rarg(lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__2; -lean_object* l___private_Lean_Elab_App_35__getSuccess(lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__8; -lean_object* l_Lean_Elab_Term_addNamedArg___closed__5; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__25; -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__4; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object*, 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*); +size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_fieldIdxKind; -lean_object* l___private_Lean_Elab_App_39__elabAppAux___closed__2; +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; lean_object* l_List_tail_x21___rarg(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_Name_eraseMacroScopes(lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__9; -extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__7; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4; +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3; -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_App_14__propagateExpectedType___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3; lean_object* l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___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_logException___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1; extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(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_Syntax_getSepArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_App_14__propagateExpectedType___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___private_Lean_Elab_App_21__elabAppArgs___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__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_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; extern lean_object* l_Lean_fieldIdxKind___closed__2; -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__11; -extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___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_App_30__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_17__processExplictArg___closed__3; -lean_object* l___private_Lean_Elab_App_38__mergeFailures(lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___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_App_0__Lean_Elab_Term_resolveLValLoop_match__3(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15; +lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main___boxed(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___main___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_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7; +lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_resolveLVal(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___private_Lean_Elab_App_21__elabAppArgs___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_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams___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_App_30__elabAppLValsAux___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*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2___rarg(lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__10; +lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object*); +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__4___boxed(lean_object*, 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___private_Lean_Elab_App_24__resolveLValAux___closed__28; -lean_object* l___private_Lean_Elab_App_23__findMethod_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_31__elabAppLVals___closed__3; -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandApp___closed__3; extern lean_object* l_Lean_identKind___closed__2; -lean_object* l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3; +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1(lean_object*, 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_Lean_Expr_getAutoParamTactic_x3f(lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__14; lean_object* l___private_Lean_Meta_WHNF_19__unfoldDefinitionImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_5__normalizeFunType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__5; -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj(lean_object*); -lean_object* l___private_Lean_Elab_App_27__resolveLVal___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_App_15__addEtaArg(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_24__resolveLValAux___closed__23; extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_State_typeMVars___default; lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_App_36__toMessageData___closed__1; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandApp_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__4(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_match__1(lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_App_0__Lean_Elab_Term_resolveLValAux___closed__10; lean_object* lean_st_ref_get(lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_App_34__isSuccess(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7; +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_16__finalize___closed__1; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__2; -lean_object* l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__2; +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_goalsToMessageData___closed__1; +lean_object* l_Lean_Elab_Term_elabApp_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5___boxed(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_elabApp(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess___boxed(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_hasToString(lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___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_array_push(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun(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___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess(lean_object*); lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__2(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__6; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__22; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2; +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__3(lean_object*); lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); -lean_object* l___private_Lean_Elab_App_3__addInstMVar___boxed(lean_object*, 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_Lean_Elab_Term_ElabAppArgs_main___main(lean_object*); -lean_object* l___private_Lean_Elab_App_7__getArgExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandApp___closed__1; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__8; -lean_object* l___private_Lean_Elab_App_39__elabAppAux___closed__1; -lean_object* l___private_Lean_Elab_App_28__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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*); +uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1; +lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___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_Elab_Term_reportUnsolvedGoals___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(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_App_29__addLValArg___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; -lean_object* l___private_Lean_Elab_App_28__mkBaseProjections___closed__2; -lean_object* l___private_Lean_Elab_App_16__finalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__2(lean_object*); +lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Meta_InferType_1__inferAppType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__12; -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_28__mkBaseProjections___closed__1; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__4; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(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___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_object*); +uint8_t l_USize_decLt(size_t, size_t); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; 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___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures(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*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_Arg_hasToString_match__1(lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_inhabited; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__7; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___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_0__Lean_Elab_Term_tryCoeFun___closed__4; extern lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___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_mkAppStx___closed__7; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__6; lean_object* lean_nat_add(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__3; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_Elab_Term_ensureHasType(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_match__1(lean_object*); +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2; lean_object* l_Lean_Elab_Term_expandDollarProj(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_2__tryCoeFun___closed__6; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__16; -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv(lean_object*); -lean_object* l___private_Lean_Elab_App_39__elabAppAux___closed__3; -lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_17__processExplictArg___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1; +uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___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*); extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; -lean_object* l___private_Lean_Elab_App_16__finalize___closed__3; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(lean_object*, lean_object*); extern lean_object* l_ULift_HasRepr___rarg___closed__2; -lean_object* l___private_Lean_Elab_App_25__consumeImplicits___boxed(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_traceAtCmdPos___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_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandApp_match__2___rarg(lean_object*, lean_object*); 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___private_Lean_Elab_App_29__addLValArg___main___closed__10; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3; extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; uint8_t l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___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_mkProj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrayRef(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_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_16__finalize___closed__7; lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__1; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__11; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__1(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7; lean_object* l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3; +lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___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_App_2__tryCoeFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_choiceKind___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_Inhabited; -extern lean_object* l___private_Lean_Syntax_6__formatInfo___closed__1; -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_17__processExplictArg___closed__2; +extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__3; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__18; -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__4; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___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_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(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_0__Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_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___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__15; -lean_object* l___private_Lean_Elab_App_3__addInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList___boxed(lean_object*); +lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__1(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__3(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_App_22__throwLValError(lean_object*); -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux(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_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(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_App_0__Lean_Elab_Term_elabAppFn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1; lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3___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_expandApp_match__3___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(lean_object*, lean_object*, lean_object*, lean_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_NamedArg_inhabited___closed__1; +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__5; -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_repr(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11; lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__10; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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_App_0__Lean_Elab_Term_elabAppFn___closed__7; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___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*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits(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_elabExplicit(lean_object*); extern lean_object* l_Lean_Meta_inferTypeRef; -lean_object* l___private_Lean_Elab_App_9__addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16; +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__4(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l___private_Lean_Elab_App_7__getArgExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUnivs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; -lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___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_App_37__toMessageList___boxed(lean_object*); -lean_object* l___private_Lean_Elab_App_23__findMethod_x3f___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_reprAux___main___rarg___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -lean_object* l___private_Lean_Elab_App_17__processExplictArg___closed__5; +lean_object* l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern(lean_object*); 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_Lean_getStructureFields(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice(lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__7; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__12; 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_App_11__hasOptAutoParams___closed__1; -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(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_App_0__Lean_Elab_Term_ensureArgType___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_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l___private_Lean_Elab_App_27__resolveLVal(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_2__tryCoeFun___closed__3; -lean_object* l___private_Lean_Elab_App_15__addEtaArg___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_App_26__resolveLValLoop___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___private_Lean_Elab_App_28__mkBaseProjections___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default; +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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_CoreM_1__mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Arg_hasToString_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabIdent(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___private_Lean_Elab_App_13__getForallBody___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__7; lean_object* l_Lean_Elab_Term_elabApp(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_19__processInstImplicitArg(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_29__addLValArg___main___closed__3; 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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_App_14__propagateExpectedType___spec__6(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_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; 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_33__elabAppFn___main___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1; +lean_object* l_Lean_Elab_Term_expandApp___closed__4; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___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_App_0__Lean_Elab_Term_consumeImplicits_match__1(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5; +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Elab_Term_elabChoice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___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*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_10__elabAndAddNewArg(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_App_39__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_String_Iterator_HasRepr___closed__2; +extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2; 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_App_0__Lean_Elab_Term_elabAppFn___closed__15; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__1; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__1; -lean_object* l___private_Lean_Elab_App_9__addNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___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_App_0__Lean_Elab_Term_elabAppFn___closed__16; extern lean_object* l_Lean_importModules___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__1(lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); extern lean_object* l_Lean_formatEntry___closed__1; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; -lean_object* l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___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_App_0__Lean_Elab_Term_resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__11; extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +size_t lean_usize_of_nat(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); -lean_object* l___private_Lean_Elab_App_22__throwLValError___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_elabNamedPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep___main(lean_object*, lean_object*); +lean_object* l_Lean_mkLevelMVar(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(lean_object*); lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object*, 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_elabByTactic___closed__2; -lean_object* l___private_Lean_Elab_App_16__finalize___closed__6; -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___main___boxed(lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19; lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___boxed(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_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_24__resolveLValAux___closed__19; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14; +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; 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*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_5__normalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_41__regTraceClasses(lean_object*); -lean_object* l___private_Lean_Elab_App_20__hasArgsToProcess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__5(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; lean_object* l_Lean_Elab_setMacroStackOption(lean_object*, uint8_t); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__11; -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__5; -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___rarg(lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_App_20__hasArgsToProcess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__9; -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___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_App_21__elabAppArgs___closed__3; -lean_object* l___private_Lean_Elab_App_8__isNextArgHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___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_App_0__Lean_Elab_Term_resolveLValAux___closed__1; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_1__ensureArgType___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_App_0__Lean_Elab_Term_resolveLValAux___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_App_0__Lean_Elab_Term_findMethod_x3f_match__3(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__20; -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__5; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__10; +lean_object* l_Lean_Elab_Term_expandApp_match__3(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__29; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux(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_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess_match__1(lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__2; extern lean_object* l_Lean_Elab_postponeExceptionId; -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___closed__7; -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___main___rarg(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_App_33__elabAppFn___main___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures_match__1(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_expandApp_match__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Term_saveAllState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_38__mergeFailures___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_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___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_App_16__finalize___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__1(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12; lean_object* l___regBuiltin_Lean_Elab_Term_elabProj(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___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_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_40__elabAtom(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_17__processExplictArg___closed__4; +lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__26; -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___private_Lean_Elab_App_33__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_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*); +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*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1; -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___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_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___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_ElabAppArgs_State_etaArgs___default; +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2(lean_object*); +extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; +lean_object* l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__4(uint8_t); extern lean_object* l_Lean_Meta_whnfRef; -lean_object* l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1(lean_object*); lean_object* l_Lean_Exception_getRef(lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__9; -lean_object* l___private_Lean_Elab_App_33__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_35__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__1; -lean_object* l___private_Lean_Elab_App_8__isNextArgHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicitUniv(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_App_11__hasOptAutoParams___spec__2(lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__12; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicitUnivs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_2__tryCoeFun___closed__8; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__4; -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7223_(lean_object*); +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(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*); extern lean_object* l_Lean_mkAppStx___closed__9; -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop___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_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2(lean_object*); lean_object* l_List_filterAux___main___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg(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_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData___main(lean_object*); -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_App_34__isSuccess___boxed(lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4; +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__3(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_App_0__Lean_Elab_Term_resolveLValAux___closed__9; lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; -extern lean_object* l_Lean_KernelException_toMessageData___closed__12; -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop___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_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23; lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___boxed(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_App_28__mkBaseProjections___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_App_25__consumeImplicits___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__16; lean_object* lean_array_pop(lean_object*); -lean_object* l___private_Lean_Elab_App_29__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_24__resolveLValAux___closed__9; lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef___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_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___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*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isOptParam(lean_object*); -lean_object* l___private_Lean_Elab_App_17__processExplictArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__3(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_inhabited___closed__1; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___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_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__3(lean_object*); extern lean_object* l_Lean_mkHole___closed__2; -lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_10__exceptionToSorry___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_29__addLValArg___main___closed__2; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__8; -lean_object* l___private_Lean_Elab_App_13__getForallBody(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__10; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__13; -lean_object* l___private_Lean_Elab_App_29__addLValArg___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*, lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__4; +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__4___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabApp_match__1(lean_object*); +extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__1; +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object*); -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_object* l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(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_16__finalize(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_36__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_6__getBindingName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__15; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__2; lean_object* l_Lean_Elab_Term_addNamedArg___closed__2; +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUnivs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole_match__1(lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3___boxed(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_Array_findIdxAux___main___at___private_Lean_Elab_App_29__addLValArg___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_17__processExplictArg___closed__6; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Lean_Elab_App_36__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___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_App_6__getBindingName___boxed(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_App_32__elabAppFnId___spec__2(lean_object*); -lean_object* l___private_Lean_Elab_App_31__elabAppLVals___closed__2; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___main___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_App_29__addLValArg___main___closed__8; +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___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_0__Lean_Elab_Term_mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ctorName___closed__11; -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___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_App_0__Lean_Elab_Term_resolveLValAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_18__processImplicitArg(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_App_14__propagateExpectedType___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_App_25__consumeImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9; extern lean_object* l_Nat_Inhabited; +lean_object* l_Lean_Elab_Term_expandApp___closed__5; extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_Term_21__elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__8; 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___private_Lean_Elab_App_39__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_22__throwLValError___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_App_36__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__2(lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(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_16__finalize___closed__4; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4; extern lean_object* l___private_Lean_Elab_Term_14__isExplicit___closed__2; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; lean_object* l_Lean_Elab_Term_expandApp___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__2; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__4; -lean_object* l___private_Lean_Elab_App_25__consumeImplicits___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_App_21__elabAppArgs___closed__6; 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_App_31__elabAppLVals___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_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; +lean_object* l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent___closed__1; -lean_object* l___private_Lean_Elab_App_16__finalize___closed__8; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__3; -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5; +lean_object* l_Array_forInUnsafe_loop___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*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___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_App_13__getForallBody___main___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__7; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_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_16__finalize___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___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*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_38__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_28__mkBaseProjections(lean_object*, lean_object*, 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_App_0__Lean_Elab_Term_throwLValError(lean_object*); lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Elab_Term_ElabAppArgs_State_alreadyPropagated___default; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4; lean_object* l_Lean_Name_components(lean_object*); -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__17; -lean_object* l___private_Lean_Elab_App_29__addLValArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__4; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5; lean_object* l_Lean_Elab_Term_elabExplicitUnivs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___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_App_0__Lean_Elab_Term_resolveLValAux___closed__8; +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(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_37__toMessageList(lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_31__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__4; -lean_object* l___private_Lean_Elab_App_31__elabAppLVals___closed__1; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(lean_object*, 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_Tactic_evalTacticSeqBracketed___closed__2; -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__12; -lean_object* l___private_Lean_Elab_App_29__addLValArg___main___closed__9; lean_object* l_Lean_Exception_toMessageData(lean_object*); -lean_object* l___private_Lean_Elab_App_32__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___closed__27; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1; uint8_t lean_string_dec_eq(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_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*, 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*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -lean_object* l___private_Lean_Elab_App_32__elabAppFnId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_12__fTypeHasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3(lean_object*); extern lean_object* l_Lean_Meta_mkArrow___rarg___closed__2; -lean_object* l___private_Lean_Elab_App_14__propagateExpectedType___closed__6; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Term_Arg_inhabited___closed__1() { _start: { @@ -591,6 +690,39 @@ x_1 = l_Lean_Elab_Term_Arg_inhabited___closed__1; return x_1; } } +lean_object* l_Lean_Elab_Term_Arg_hasToString_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_Arg_hasToString_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Arg_hasToString_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object* x_1) { _start: { @@ -742,46 +874,24 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_addNamedArg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Term_addNamedArg___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_addNamedArg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_addNamedArg___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("' was already set"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_addNamedArg___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_addNamedArg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_addNamedArg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_addNamedArg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_addNamedArg___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_addNamedArg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -805,43 +915,39 @@ 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; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_dec(x_1); x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); -x_16 = l_System_FilePath_dirName___closed__1; -x_17 = l_Lean_Name_toStringWithSep___main(x_16, x_15); -x_18 = lean_alloc_ctor(2, 1, 0); +x_16 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = l_Lean_Elab_Term_addNamedArg___closed__2; +x_18 = lean_alloc_ctor(10, 2, 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_Elab_Term_addNamedArg___closed__3; -x_21 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_addNamedArg___closed__6; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +lean_ctor_set(x_18, 1, x_16); +x_19 = l_Lean_Elab_Term_addNamedArg___closed__4; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -return x_24; +return x_21; } 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* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_21); +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; } } } @@ -872,7 +978,107 @@ lean_dec(x_4); return x_10; } } -lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___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; uint8_t x_13; +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_6, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_6, 3); +lean_inc(x_12); +x_13 = lean_nat_dec_eq(x_10, x_11); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_6); +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; +x_15 = lean_ctor_get(x_6, 3); +lean_dec(x_15); +x_16 = lean_ctor_get(x_6, 2); +lean_dec(x_16); +x_17 = lean_ctor_get(x_6, 1); +lean_dec(x_17); +x_18 = lean_ctor_get(x_6, 0); +lean_dec(x_18); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_add(x_10, x_19); +lean_dec(x_10); +lean_ctor_set(x_6, 1, x_20); +x_21 = l_Lean_Meta_inferTypeRef; +x_22 = lean_st_ref_get(x_21, x_8); +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_apply_6(x_23, x_1, x_4, x_5, x_6, x_7, x_24); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_6); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_10, x_26); +lean_dec(x_10); +x_28 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_28, 0, x_9); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_11); +lean_ctor_set(x_28, 3, x_12); +x_29 = l_Lean_Meta_inferTypeRef; +x_30 = lean_st_ref_get(x_29, x_8); +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_apply_6(x_31, x_1, x_4, x_5, x_28, x_7, x_32); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); +x_34 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_35 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_34, 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); +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_App_0__Lean_Elab_Term_ensureArgType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -881,7 +1087,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_2); -x_11 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(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; @@ -930,16 +1136,153 @@ return x_21; } } } -lean_object* l___private_Lean_Elab_App_1__ensureArgType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___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_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_App_1__ensureArgType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); return x_11; } } -lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___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_App_0__Lean_Elab_Term_tryCoeFun_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_5 = l_Lean_mkFreshId___at_Lean_Meta_mkFreshExprMVarAt___spec__1___rarg(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_st_ref_take(x_1, x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_6); +x_13 = l_Lean_MetavarContext_addLevelMVarDecl(x_12, x_6); +lean_ctor_set(x_9, 0, x_13); +x_14 = lean_st_ref_set(x_1, x_9, x_10); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = l_Lean_mkLevelMVar(x_6); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = l_Lean_mkLevelMVar(x_6); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +x_23 = lean_ctor_get(x_9, 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +lean_inc(x_6); +x_24 = l_Lean_MetavarContext_addLevelMVarDecl(x_21, x_6); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +lean_ctor_set(x_25, 2, x_23); +x_26 = lean_st_ref_set(x_1, x_25, x_10); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +x_29 = l_Lean_mkLevelMVar(x_6); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1(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_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg___boxed), 4, 0); +return x_4; +} +} +lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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; uint8_t x_12; @@ -972,7 +1315,23 @@ return x_20; } } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__1() { +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__3(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; +x_11 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1() { _start: { lean_object* x_1; @@ -980,17 +1339,17 @@ x_1 = lean_mk_string("CoeFun"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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_Elab_App_2__tryCoeFun___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3() { _start: { lean_object* x_1; @@ -998,27 +1357,27 @@ x_1 = lean_mk_string("function expected"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_2__tryCoeFun___closed__3; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_2__tryCoeFun___closed__4; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__6() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6() { _start: { lean_object* x_1; @@ -1026,33 +1385,38 @@ x_1 = lean_mk_string("coeFun"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__7() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_App_2__tryCoeFun___closed__6; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__8() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_2__tryCoeFun___closed__5; -x_2 = l_Lean_MessageData_ofList___closed__3; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("function expected\n"); +return x_1; } } -lean_object* l___private_Lean_Elab_App_2__tryCoeFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_10 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -1061,7 +1425,7 @@ lean_dec(x_10); lean_inc(x_11); x_13 = l_Lean_mkSort(x_11); lean_inc(x_1); -x_14 = l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___spec__1(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__2(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -1086,7 +1450,7 @@ lean_inc(x_1); x_23 = l___private_Lean_Meta_InferType_4__getLevelImp(x_1, 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; 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; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +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; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -1099,7 +1463,7 @@ lean_ctor_set(x_27, 1, x_26); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_24); lean_ctor_set(x_28, 1, x_27); -x_29 = l___private_Lean_Elab_App_2__tryCoeFun___closed__2; +x_29 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__2; lean_inc(x_28); x_30 = l_Lean_mkConst(x_29, x_28); x_31 = l_Lean_mkAppStx___closed__9; @@ -1127,7 +1491,7 @@ if (lean_is_exclusive(x_38)) { lean_dec_ref(x_38); x_41 = lean_box(0); } -x_42 = l_Lean_Expr_mvarId_x21(x_39); +x_56 = l_Lean_Expr_mvarId_x21(x_39); x_57 = lean_ctor_get(x_7, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_7, 1); @@ -1147,7 +1511,7 @@ lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_64 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_42, x_3, x_4, x_5, x_6, x_63, x_8, x_40); +x_64 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_56, x_3, x_4, x_5, x_6, x_63, x_8, x_40); if (lean_obj_tag(x_64) == 0) { lean_object* x_65; lean_object* x_66; uint8_t x_67; @@ -1158,9 +1522,9 @@ lean_inc(x_66); lean_dec(x_64); x_67 = lean_unbox(x_65); lean_dec(x_65); -x_43 = x_67; -x_44 = x_66; -goto block_56; +x_42 = x_67; +x_43 = x_66; +goto block_55; } else { @@ -1175,124 +1539,128 @@ x_68 = lean_ctor_get(x_64, 0); lean_inc(x_68); if (lean_obj_tag(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_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; uint8_t x_76; x_69 = lean_ctor_get(x_64, 1); lean_inc(x_69); lean_dec(x_64); x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); lean_dec(x_68); -x_71 = l___private_Lean_Elab_App_2__tryCoeFun___closed__8; +x_71 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9; x_72 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); -x_73 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_69); +x_73 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_74 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_74, x_3, x_4, x_5, x_6, x_7, x_8, x_69); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) { -return x_73; +return x_75; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_73, 0); -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_73); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -lean_dec(x_68); -x_78 = lean_ctor_get(x_64, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_75); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +lean_dec(x_68); +x_80 = lean_ctor_get(x_64, 1); +lean_inc(x_80); lean_dec(x_64); -x_79 = l___private_Lean_Elab_App_2__tryCoeFun___closed__5; -x_80 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_79, x_3, x_4, x_5, x_6, x_7, x_8, x_78); +x_81 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5; +x_82 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_81, x_3, x_4, x_5, x_6, x_7, x_8, x_80); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_81 = !lean_is_exclusive(x_80); -if (x_81 == 0) +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) { -return x_80; +return x_82; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_80, 0); -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_80); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_82); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } } -block_56: +block_55: { -if (x_43 == 0) +if (x_42 == 0) { -lean_object* x_45; lean_object* x_46; +lean_object* x_44; lean_object* x_45; lean_dec(x_41); lean_dec(x_39); lean_dec(x_28); lean_dec(x_21); lean_dec(x_2); lean_dec(x_1); -x_45 = l___private_Lean_Elab_App_2__tryCoeFun___closed__5; -x_46 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5; +x_45 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_43); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_46; +return x_45; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_object* x_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_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_47 = l___private_Lean_Elab_App_2__tryCoeFun___closed__7; -x_48 = l_Lean_mkConst(x_47, x_28); -x_49 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_50 = lean_array_push(x_49, x_1); -x_51 = lean_array_push(x_50, x_21); -x_52 = lean_array_push(x_51, x_2); -x_53 = lean_array_push(x_52, x_39); -x_54 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_53, x_53, x_34, x_48); -lean_dec(x_53); +x_46 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7; +x_47 = l_Lean_mkConst(x_46, x_28); +x_48 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +x_49 = lean_array_push(x_48, x_1); +x_50 = lean_array_push(x_49, x_21); +x_51 = lean_array_push(x_50, x_2); +x_52 = lean_array_push(x_51, x_39); +x_53 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_52, x_52, x_34, x_47); +lean_dec(x_52); if (lean_is_scalar(x_41)) { - x_55 = lean_alloc_ctor(0, 2, 0); + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_55 = x_41; + x_54 = x_41; } -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_44); -return x_55; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_43); +return x_54; } } } else { -uint8_t x_85; +uint8_t x_87; lean_dec(x_21); lean_dec(x_11); lean_dec(x_8); @@ -1302,83 +1670,127 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_23); -if (x_85 == 0) +x_87 = !lean_is_exclusive(x_23); +if (x_87 == 0) { return x_23; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_23, 0); -x_87 = lean_ctor_get(x_23, 1); -lean_inc(x_87); -lean_inc(x_86); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_23, 0); +x_89 = lean_ctor_get(x_23, 1); +lean_inc(x_89); +lean_inc(x_88); lean_dec(x_23); -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; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } } -lean_object* l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___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_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_10; -x_10 = l_Lean_Meta_mkArrow___at___private_Lean_Elab_App_2__tryCoeFun___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___private_Lean_Elab_App_2__tryCoeFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_2__tryCoeFun(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_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___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_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_5; +x_5 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); -x_12 = lean_box(0); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_mkFreshLevelMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__1(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_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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_mkArrow___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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_3); +return x_10; +} +} +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___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: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__3(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_5); +lean_dec(x_4); +return x_12; +} +} +lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_getLevel___at___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_0__Lean_Elab_Term_tryCoeFun(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_Array_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); return x_13; } else { lean_object* x_14; lean_object* x_15; -x_14 = lean_array_fget(x_1, x_2); +lean_dec(x_4); +x_14 = lean_array_uget(x_1, 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); -lean_inc(x_3); lean_inc(x_14); -x_15 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Elab_Term_synthesizeInstMVarCore(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; uint8_t x_17; @@ -1388,65 +1800,66 @@ x_17 = lean_unbox(x_16); lean_dec(x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; x_18 = lean_ctor_get(x_15, 1); lean_inc(x_18); lean_dec(x_15); x_19 = lean_box(0); -lean_inc(x_7); -x_20 = l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef(x_14, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +lean_inc(x_9); +x_20 = l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef(x_14, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_18); 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_2, x_22); -lean_dec(x_2); -x_2 = x_23; -x_9 = x_21; +x_22 = 1; +x_23 = x_3 + x_22; +x_24 = lean_box(0); +x_3 = x_23; +x_4 = x_24; +x_11 = x_21; goto _start; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; lean_dec(x_14); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); lean_dec(x_15); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_add(x_2, x_26); -lean_dec(x_2); -x_2 = x_27; -x_9 = x_25; +x_27 = 1; +x_28 = x_3 + x_27; +x_29 = lean_box(0); +x_3 = x_28; +x_4 = x_29; +x_11 = x_26; goto _start; } } else { -uint8_t x_29; +uint8_t x_31; lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_15); -if (x_29 == 0) +x_31 = !lean_is_exclusive(x_15); +if (x_31 == 0) { return x_15; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_15, 0); -x_31 = lean_ctor_get(x_15, 1); -lean_inc(x_31); -lean_inc(x_30); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_15, 0); +x_33 = lean_ctor_get(x_15, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_15); -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; +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; } } } @@ -1455,20 +1868,71 @@ return x_32; lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object* x_1, lean_object* x_2, 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_unsigned_to_nat(0u); -x_10 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_array_get_size(x_1); +x_10 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_11 = 0; +x_12 = lean_box(0); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_10, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___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) { +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_Array_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___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_10; -x_10 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); lean_dec(x_1); -return x_10; +return x_14; } } lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -1481,7 +1945,47 @@ lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_App_3__addInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_typeMVars___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Array_empty___closed__1; +return x_1; +} +} +static uint8_t _init_l_Lean_Elab_Term_ElabAppArgs_State_alreadyPropagated___default() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -1549,11 +2053,11 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_App_3__addInstMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_3__addInstMVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(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); @@ -1570,83 +2074,81 @@ uint8_t x_9; x_9 = !lean_is_exclusive(x_1); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_ctor_get(x_1, 7); x_11 = l_Array_empty___closed__1; lean_ctor_set(x_1, 7, x_11); -x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_10, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_12 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_10); -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_12) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_1); -lean_ctor_set(x_13, 0, x_16); -return x_13; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_1); +lean_ctor_set(x_12, 0, x_15); +return x_12; } 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_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); -lean_dec(x_13); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_1); x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_1); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; } } else { -uint8_t x_21; +uint8_t x_20; lean_dec(x_1); -x_21 = !lean_is_exclusive(x_13); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) { -return x_13; +return x_12; } 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_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); 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_inc(x_21); +lean_dec(x_12); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } else { -uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_25 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); -x_26 = lean_ctor_get(x_1, 0); -x_27 = lean_ctor_get(x_1, 1); -x_28 = lean_ctor_get(x_1, 2); -x_29 = lean_ctor_get(x_1, 3); -x_30 = lean_ctor_get(x_1, 4); -x_31 = lean_ctor_get(x_1, 5); -x_32 = lean_ctor_get(x_1, 6); -x_33 = lean_ctor_get(x_1, 7); -x_34 = lean_ctor_get(x_1, 8); -x_35 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); -lean_inc(x_34); +uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_24 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +x_25 = lean_ctor_get(x_1, 0); +x_26 = lean_ctor_get(x_1, 1); +x_27 = lean_ctor_get(x_1, 2); +x_28 = lean_ctor_get(x_1, 3); +x_29 = lean_ctor_get(x_1, 4); +x_30 = lean_ctor_get(x_1, 5); +x_31 = lean_ctor_get(x_1, 6); +x_32 = lean_ctor_get(x_1, 7); +x_33 = lean_ctor_get(x_1, 8); +x_34 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -1655,74 +2157,74 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); +lean_inc(x_25); lean_dec(x_1); -x_36 = l_Array_empty___closed__1; -x_37 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_37, 0, x_26); -lean_ctor_set(x_37, 1, x_27); -lean_ctor_set(x_37, 2, x_28); -lean_ctor_set(x_37, 3, x_29); -lean_ctor_set(x_37, 4, x_30); -lean_ctor_set(x_37, 5, x_31); -lean_ctor_set(x_37, 6, x_32); -lean_ctor_set(x_37, 7, x_36); -lean_ctor_set(x_37, 8, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_25); -lean_ctor_set_uint8(x_37, sizeof(void*)*9 + 1, x_35); -x_38 = lean_unsigned_to_nat(0u); -x_39 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_33, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_33); -if (lean_obj_tag(x_39) == 0) +x_35 = l_Array_empty___closed__1; +x_36 = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(x_36, 0, x_25); +lean_ctor_set(x_36, 1, x_26); +lean_ctor_set(x_36, 2, x_27); +lean_ctor_set(x_36, 3, x_28); +lean_ctor_set(x_36, 4, x_29); +lean_ctor_set(x_36, 5, x_30); +lean_ctor_set(x_36, 6, x_31); +lean_ctor_set(x_36, 7, x_35); +lean_ctor_set(x_36, 8, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_24); +lean_ctor_set_uint8(x_36, sizeof(void*)*9 + 1, x_34); +x_37 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_32); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; } else { - lean_dec_ref(x_39); - x_42 = lean_box(0); + lean_dec_ref(x_37); + x_40 = lean_box(0); } -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_37); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_36); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_42; + x_42 = x_40; } -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_41); -return x_44; +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_37); -x_45 = lean_ctor_get(x_39, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_47 = x_39; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_36); +x_43 = lean_ctor_get(x_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; } else { - lean_dec_ref(x_39); - x_47 = lean_box(0); + lean_dec_ref(x_37); + x_45 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_46 = x_45; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } } @@ -1736,7 +2238,43 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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; uint8_t x_14; @@ -1941,12 +2479,12 @@ return x_60; } } } -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_inc(x_1); -x_10 = l_Lean_Meta_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -2084,7 +2622,7 @@ return x_34; } } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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; uint8_t x_14; @@ -2289,7 +2827,7 @@ return x_60; } } } -lean_object* l___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object* x_1, lean_object* x_2, 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; @@ -2332,25 +2870,17 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_12); -x_18 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__1(x_17, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_18 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_17, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_16); if (lean_obj_tag(x_18) == 0) { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 7) { -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_18, 0); -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; -x_22 = lean_ctor_get(x_18, 1); -x_23 = lean_ctor_get(x_20, 0); -x_24 = lean_ctor_get(x_20, 1); -if (lean_obj_tag(x_23) == 7) -{ -uint8_t x_89; +uint8_t x_21; lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); @@ -2358,626 +2888,533 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_89 = !lean_is_exclusive(x_24); -if (x_89 == 0) +x_21 = !lean_is_exclusive(x_19); +if (x_21 == 0) { -lean_object* x_90; -x_90 = lean_ctor_get(x_24, 1); -lean_dec(x_90); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_20, 0, x_14); +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_19, 1); +x_23 = lean_ctor_get(x_19, 0); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_18, 0); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_22, 1); +lean_dec(x_27); +lean_ctor_set(x_22, 1, x_20); +lean_ctor_set(x_19, 0, x_14); return x_18; } else { -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; uint8_t x_100; lean_object* x_101; -x_91 = lean_ctor_get_uint8(x_24, sizeof(void*)*9); -x_92 = lean_ctor_get(x_24, 0); -x_93 = lean_ctor_get(x_24, 2); -x_94 = lean_ctor_get(x_24, 3); -x_95 = lean_ctor_get(x_24, 4); -x_96 = lean_ctor_get(x_24, 5); -x_97 = lean_ctor_get(x_24, 6); -x_98 = lean_ctor_get(x_24, 7); -x_99 = lean_ctor_get(x_24, 8); -x_100 = lean_ctor_get_uint8(x_24, sizeof(void*)*9 + 1); -lean_inc(x_99); -lean_inc(x_98); -lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); +uint8_t 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; uint8_t x_37; lean_object* x_38; +x_28 = lean_ctor_get_uint8(x_22, sizeof(void*)*9); +x_29 = lean_ctor_get(x_22, 0); +x_30 = lean_ctor_get(x_22, 2); +x_31 = lean_ctor_get(x_22, 3); +x_32 = lean_ctor_get(x_22, 4); +x_33 = lean_ctor_get(x_22, 5); +x_34 = lean_ctor_get(x_22, 6); +x_35 = lean_ctor_get(x_22, 7); +x_36 = lean_ctor_get(x_22, 8); +x_37 = lean_ctor_get_uint8(x_22, sizeof(void*)*9 + 1); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_22); +x_38 = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(x_38, 0, x_29); +lean_ctor_set(x_38, 1, x_20); +lean_ctor_set(x_38, 2, x_30); +lean_ctor_set(x_38, 3, x_31); +lean_ctor_set(x_38, 4, x_32); +lean_ctor_set(x_38, 5, x_33); +lean_ctor_set(x_38, 6, x_34); +lean_ctor_set(x_38, 7, x_35); +lean_ctor_set(x_38, 8, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_28); +lean_ctor_set_uint8(x_38, sizeof(void*)*9 + 1, x_37); +lean_ctor_set(x_19, 1, x_38); +lean_ctor_set(x_19, 0, x_14); +return x_18; +} +} +else +{ +lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_39 = lean_ctor_get(x_18, 1); +lean_inc(x_39); +lean_dec(x_18); +x_40 = lean_ctor_get_uint8(x_22, sizeof(void*)*9); +x_41 = lean_ctor_get(x_22, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_22, 2); +lean_inc(x_42); +x_43 = lean_ctor_get(x_22, 3); +lean_inc(x_43); +x_44 = lean_ctor_get(x_22, 4); +lean_inc(x_44); +x_45 = lean_ctor_get(x_22, 5); +lean_inc(x_45); +x_46 = lean_ctor_get(x_22, 6); +lean_inc(x_46); +x_47 = lean_ctor_get(x_22, 7); +lean_inc(x_47); +x_48 = lean_ctor_get(x_22, 8); +lean_inc(x_48); +x_49 = lean_ctor_get_uint8(x_22, sizeof(void*)*9 + 1); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + lean_ctor_release(x_22, 2); + lean_ctor_release(x_22, 3); + lean_ctor_release(x_22, 4); + lean_ctor_release(x_22, 5); + lean_ctor_release(x_22, 6); + lean_ctor_release(x_22, 7); + lean_ctor_release(x_22, 8); + x_50 = x_22; +} else { + lean_dec_ref(x_22); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 9, 2); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_41); +lean_ctor_set(x_51, 1, x_20); +lean_ctor_set(x_51, 2, x_42); +lean_ctor_set(x_51, 3, x_43); +lean_ctor_set(x_51, 4, x_44); +lean_ctor_set(x_51, 5, x_45); +lean_ctor_set(x_51, 6, x_46); +lean_ctor_set(x_51, 7, x_47); +lean_ctor_set(x_51, 8, x_48); +lean_ctor_set_uint8(x_51, sizeof(void*)*9, x_40); +lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 1, x_49); +lean_ctor_set(x_19, 1, x_51); +lean_ctor_set(x_19, 0, x_14); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_19); +lean_ctor_set(x_52, 1, x_39); +return x_52; +} +} +else +{ +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; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_53 = lean_ctor_get(x_19, 1); +lean_inc(x_53); +lean_dec(x_19); +x_54 = lean_ctor_get(x_18, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_55 = x_18; +} else { + lean_dec_ref(x_18); + x_55 = lean_box(0); +} +x_56 = lean_ctor_get_uint8(x_53, sizeof(void*)*9); +x_57 = lean_ctor_get(x_53, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_53, 2); +lean_inc(x_58); +x_59 = lean_ctor_get(x_53, 3); +lean_inc(x_59); +x_60 = lean_ctor_get(x_53, 4); +lean_inc(x_60); +x_61 = lean_ctor_get(x_53, 5); +lean_inc(x_61); +x_62 = lean_ctor_get(x_53, 6); +lean_inc(x_62); +x_63 = lean_ctor_get(x_53, 7); +lean_inc(x_63); +x_64 = lean_ctor_get(x_53, 8); +lean_inc(x_64); +x_65 = lean_ctor_get_uint8(x_53, sizeof(void*)*9 + 1); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + lean_ctor_release(x_53, 2); + lean_ctor_release(x_53, 3); + lean_ctor_release(x_53, 4); + lean_ctor_release(x_53, 5); + lean_ctor_release(x_53, 6); + lean_ctor_release(x_53, 7); + lean_ctor_release(x_53, 8); + x_66 = x_53; +} else { + lean_dec_ref(x_53); + x_66 = lean_box(0); +} +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 9, 2); +} else { + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_57); +lean_ctor_set(x_67, 1, x_20); +lean_ctor_set(x_67, 2, x_58); +lean_ctor_set(x_67, 3, x_59); +lean_ctor_set(x_67, 4, x_60); +lean_ctor_set(x_67, 5, x_61); +lean_ctor_set(x_67, 6, x_62); +lean_ctor_set(x_67, 7, x_63); +lean_ctor_set(x_67, 8, x_64); +lean_ctor_set_uint8(x_67, sizeof(void*)*9, x_56); +lean_ctor_set_uint8(x_67, sizeof(void*)*9 + 1, x_65); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_14); +lean_ctor_set(x_68, 1, x_67); +if (lean_is_scalar(x_55)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_55; +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_54); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_18, 1); +lean_inc(x_70); +lean_dec(x_18); +x_71 = lean_ctor_get(x_19, 1); +lean_inc(x_71); +lean_dec(x_19); +x_72 = lean_ctor_get(x_12, 0); +lean_inc(x_72); +lean_dec(x_12); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_73 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun(x_20, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_70); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +lean_inc(x_74); +x_76 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3(x_74, x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_75); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +x_79 = !lean_is_exclusive(x_76); +if (x_79 == 0) +{ +lean_object* x_80; uint8_t x_81; +x_80 = lean_ctor_get(x_76, 0); +lean_dec(x_80); +x_81 = !lean_is_exclusive(x_77); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_77, 0); +x_83 = lean_ctor_get(x_77, 1); +lean_dec(x_83); +x_84 = !lean_is_exclusive(x_78); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_78, 1); +lean_dec(x_85); +x_86 = lean_ctor_get(x_78, 0); +lean_dec(x_86); +lean_ctor_set(x_78, 1, x_82); +lean_ctor_set(x_78, 0, x_74); +lean_ctor_set(x_77, 0, x_14); +return x_76; +} +else +{ +uint8_t 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; uint8_t x_95; lean_object* x_96; +x_87 = lean_ctor_get_uint8(x_78, sizeof(void*)*9); +x_88 = lean_ctor_get(x_78, 2); +x_89 = lean_ctor_get(x_78, 3); +x_90 = lean_ctor_get(x_78, 4); +x_91 = lean_ctor_get(x_78, 5); +x_92 = lean_ctor_get(x_78, 6); +x_93 = lean_ctor_get(x_78, 7); +x_94 = lean_ctor_get(x_78, 8); +x_95 = lean_ctor_get_uint8(x_78, sizeof(void*)*9 + 1); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); -lean_dec(x_24); -x_101 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_101, 0, x_92); -lean_ctor_set(x_101, 1, x_23); -lean_ctor_set(x_101, 2, x_93); -lean_ctor_set(x_101, 3, x_94); -lean_ctor_set(x_101, 4, x_95); -lean_ctor_set(x_101, 5, x_96); -lean_ctor_set(x_101, 6, x_97); -lean_ctor_set(x_101, 7, x_98); -lean_ctor_set(x_101, 8, x_99); -lean_ctor_set_uint8(x_101, sizeof(void*)*9, x_91); -lean_ctor_set_uint8(x_101, sizeof(void*)*9 + 1, x_100); -lean_ctor_set(x_20, 1, x_101); -lean_ctor_set(x_20, 0, x_14); -return x_18; +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_78); +x_96 = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(x_96, 0, x_74); +lean_ctor_set(x_96, 1, x_82); +lean_ctor_set(x_96, 2, x_88); +lean_ctor_set(x_96, 3, x_89); +lean_ctor_set(x_96, 4, x_90); +lean_ctor_set(x_96, 5, x_91); +lean_ctor_set(x_96, 6, x_92); +lean_ctor_set(x_96, 7, x_93); +lean_ctor_set(x_96, 8, x_94); +lean_ctor_set_uint8(x_96, sizeof(void*)*9, x_87); +lean_ctor_set_uint8(x_96, sizeof(void*)*9 + 1, x_95); +lean_ctor_set(x_77, 1, x_96); +lean_ctor_set(x_77, 0, x_14); +return x_76; } } else { -lean_free_object(x_20); -lean_free_object(x_18); -x_25 = x_14; -goto block_88; -} -block_88: -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_25); -x_26 = lean_ctor_get(x_12, 0); -lean_inc(x_26); -lean_dec(x_12); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_27 = l___private_Lean_Elab_App_2__tryCoeFun(x_23, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_22); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_28); -x_30 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_28, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_29); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -x_33 = !lean_is_exclusive(x_30); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_30, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_31); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_31, 0); -x_37 = lean_ctor_get(x_31, 1); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_32); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_32, 1); -lean_dec(x_39); -x_40 = lean_ctor_get(x_32, 0); -lean_dec(x_40); -lean_ctor_set(x_32, 1, x_36); -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_31, 0, x_14); -return x_30; -} -else -{ -uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; -x_41 = lean_ctor_get_uint8(x_32, sizeof(void*)*9); -x_42 = lean_ctor_get(x_32, 2); -x_43 = lean_ctor_get(x_32, 3); -x_44 = lean_ctor_get(x_32, 4); -x_45 = lean_ctor_get(x_32, 5); -x_46 = lean_ctor_get(x_32, 6); -x_47 = lean_ctor_get(x_32, 7); -x_48 = lean_ctor_get(x_32, 8); -x_49 = lean_ctor_get_uint8(x_32, sizeof(void*)*9 + 1); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_32); -x_50 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_50, 0, x_28); -lean_ctor_set(x_50, 1, x_36); -lean_ctor_set(x_50, 2, x_42); -lean_ctor_set(x_50, 3, x_43); -lean_ctor_set(x_50, 4, x_44); -lean_ctor_set(x_50, 5, x_45); -lean_ctor_set(x_50, 6, x_46); -lean_ctor_set(x_50, 7, x_47); -lean_ctor_set(x_50, 8, x_48); -lean_ctor_set_uint8(x_50, sizeof(void*)*9, x_41); -lean_ctor_set_uint8(x_50, sizeof(void*)*9 + 1, x_49); -lean_ctor_set(x_31, 1, x_50); -lean_ctor_set(x_31, 0, x_14); -return x_30; -} -} -else -{ -lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_51 = lean_ctor_get(x_31, 0); -lean_inc(x_51); -lean_dec(x_31); -x_52 = lean_ctor_get_uint8(x_32, sizeof(void*)*9); -x_53 = lean_ctor_get(x_32, 2); -lean_inc(x_53); -x_54 = lean_ctor_get(x_32, 3); -lean_inc(x_54); -x_55 = lean_ctor_get(x_32, 4); -lean_inc(x_55); -x_56 = lean_ctor_get(x_32, 5); -lean_inc(x_56); -x_57 = lean_ctor_get(x_32, 6); -lean_inc(x_57); -x_58 = lean_ctor_get(x_32, 7); -lean_inc(x_58); -x_59 = lean_ctor_get(x_32, 8); -lean_inc(x_59); -x_60 = lean_ctor_get_uint8(x_32, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - lean_ctor_release(x_32, 2); - lean_ctor_release(x_32, 3); - lean_ctor_release(x_32, 4); - lean_ctor_release(x_32, 5); - lean_ctor_release(x_32, 6); - lean_ctor_release(x_32, 7); - lean_ctor_release(x_32, 8); - x_61 = x_32; -} else { - lean_dec_ref(x_32); - x_61 = lean_box(0); -} -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 9, 2); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_28); -lean_ctor_set(x_62, 1, x_51); -lean_ctor_set(x_62, 2, x_53); -lean_ctor_set(x_62, 3, x_54); -lean_ctor_set(x_62, 4, x_55); -lean_ctor_set(x_62, 5, x_56); -lean_ctor_set(x_62, 6, x_57); -lean_ctor_set(x_62, 7, x_58); -lean_ctor_set(x_62, 8, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*9, x_52); -lean_ctor_set_uint8(x_62, sizeof(void*)*9 + 1, x_60); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_14); -lean_ctor_set(x_63, 1, x_62); -lean_ctor_set(x_30, 0, x_63); -return x_30; -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t 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; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_64 = lean_ctor_get(x_30, 1); -lean_inc(x_64); -lean_dec(x_30); -x_65 = lean_ctor_get(x_31, 0); -lean_inc(x_65); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_66 = x_31; -} else { - lean_dec_ref(x_31); - x_66 = lean_box(0); -} -x_67 = lean_ctor_get_uint8(x_32, sizeof(void*)*9); -x_68 = lean_ctor_get(x_32, 2); -lean_inc(x_68); -x_69 = lean_ctor_get(x_32, 3); -lean_inc(x_69); -x_70 = lean_ctor_get(x_32, 4); -lean_inc(x_70); -x_71 = lean_ctor_get(x_32, 5); -lean_inc(x_71); -x_72 = lean_ctor_get(x_32, 6); -lean_inc(x_72); -x_73 = lean_ctor_get(x_32, 7); -lean_inc(x_73); -x_74 = lean_ctor_get(x_32, 8); -lean_inc(x_74); -x_75 = lean_ctor_get_uint8(x_32, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - lean_ctor_release(x_32, 2); - lean_ctor_release(x_32, 3); - lean_ctor_release(x_32, 4); - lean_ctor_release(x_32, 5); - lean_ctor_release(x_32, 6); - lean_ctor_release(x_32, 7); - lean_ctor_release(x_32, 8); - x_76 = x_32; -} else { - lean_dec_ref(x_32); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(0, 9, 2); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_28); -lean_ctor_set(x_77, 1, x_65); -lean_ctor_set(x_77, 2, x_68); -lean_ctor_set(x_77, 3, x_69); -lean_ctor_set(x_77, 4, x_70); -lean_ctor_set(x_77, 5, x_71); -lean_ctor_set(x_77, 6, x_72); -lean_ctor_set(x_77, 7, x_73); -lean_ctor_set(x_77, 8, x_74); -lean_ctor_set_uint8(x_77, sizeof(void*)*9, x_67); -lean_ctor_set_uint8(x_77, sizeof(void*)*9 + 1, x_75); -if (lean_is_scalar(x_66)) { - x_78 = lean_alloc_ctor(0, 2, 0); -} else { - x_78 = x_66; -} -lean_ctor_set(x_78, 0, x_14); -lean_ctor_set(x_78, 1, x_77); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_64); -return x_79; -} -} -else -{ -uint8_t x_80; -lean_dec(x_28); -x_80 = !lean_is_exclusive(x_30); -if (x_80 == 0) -{ -return x_30; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_30, 0); -x_82 = lean_ctor_get(x_30, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_30); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; -} -} -} -else -{ -uint8_t x_84; -lean_dec(x_24); -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_84 = !lean_is_exclusive(x_27); -if (x_84 == 0) -{ -return x_27; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_27, 0); -x_86 = lean_ctor_get(x_27, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_27); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -} -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_18, 1); -x_103 = lean_ctor_get(x_20, 0); -x_104 = lean_ctor_get(x_20, 1); -lean_inc(x_104); +lean_object* x_97; uint8_t 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; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_97 = lean_ctor_get(x_77, 0); +lean_inc(x_97); +lean_dec(x_77); +x_98 = lean_ctor_get_uint8(x_78, sizeof(void*)*9); +x_99 = lean_ctor_get(x_78, 2); +lean_inc(x_99); +x_100 = lean_ctor_get(x_78, 3); +lean_inc(x_100); +x_101 = lean_ctor_get(x_78, 4); +lean_inc(x_101); +x_102 = lean_ctor_get(x_78, 5); +lean_inc(x_102); +x_103 = lean_ctor_get(x_78, 6); lean_inc(x_103); -lean_dec(x_20); -if (lean_obj_tag(x_103) == 7) -{ -uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_139 = lean_ctor_get_uint8(x_104, sizeof(void*)*9); -x_140 = lean_ctor_get(x_104, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_104, 2); -lean_inc(x_141); -x_142 = lean_ctor_get(x_104, 3); -lean_inc(x_142); -x_143 = lean_ctor_get(x_104, 4); -lean_inc(x_143); -x_144 = lean_ctor_get(x_104, 5); -lean_inc(x_144); -x_145 = lean_ctor_get(x_104, 6); -lean_inc(x_145); -x_146 = lean_ctor_get(x_104, 7); -lean_inc(x_146); -x_147 = lean_ctor_get(x_104, 8); -lean_inc(x_147); -x_148 = lean_ctor_get_uint8(x_104, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - lean_ctor_release(x_104, 2); - lean_ctor_release(x_104, 3); - lean_ctor_release(x_104, 4); - lean_ctor_release(x_104, 5); - lean_ctor_release(x_104, 6); - lean_ctor_release(x_104, 7); - lean_ctor_release(x_104, 8); - x_149 = x_104; +x_104 = lean_ctor_get(x_78, 7); +lean_inc(x_104); +x_105 = lean_ctor_get(x_78, 8); +lean_inc(x_105); +x_106 = lean_ctor_get_uint8(x_78, sizeof(void*)*9 + 1); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + lean_ctor_release(x_78, 2); + lean_ctor_release(x_78, 3); + lean_ctor_release(x_78, 4); + lean_ctor_release(x_78, 5); + lean_ctor_release(x_78, 6); + lean_ctor_release(x_78, 7); + lean_ctor_release(x_78, 8); + x_107 = x_78; } else { - lean_dec_ref(x_104); - x_149 = lean_box(0); + lean_dec_ref(x_78); + x_107 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(0, 9, 2); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(0, 9, 2); } else { - x_150 = x_149; + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_74); +lean_ctor_set(x_108, 1, x_97); +lean_ctor_set(x_108, 2, x_99); +lean_ctor_set(x_108, 3, x_100); +lean_ctor_set(x_108, 4, x_101); +lean_ctor_set(x_108, 5, x_102); +lean_ctor_set(x_108, 6, x_103); +lean_ctor_set(x_108, 7, x_104); +lean_ctor_set(x_108, 8, x_105); +lean_ctor_set_uint8(x_108, sizeof(void*)*9, x_98); +lean_ctor_set_uint8(x_108, sizeof(void*)*9 + 1, x_106); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_14); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_76, 0, x_109); +return x_76; } -lean_ctor_set(x_150, 0, x_140); -lean_ctor_set(x_150, 1, x_103); -lean_ctor_set(x_150, 2, x_141); -lean_ctor_set(x_150, 3, x_142); -lean_ctor_set(x_150, 4, x_143); -lean_ctor_set(x_150, 5, x_144); -lean_ctor_set(x_150, 6, x_145); -lean_ctor_set(x_150, 7, x_146); -lean_ctor_set(x_150, 8, x_147); -lean_ctor_set_uint8(x_150, sizeof(void*)*9, x_139); -lean_ctor_set_uint8(x_150, sizeof(void*)*9 + 1, x_148); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_14); -lean_ctor_set(x_151, 1, x_150); -lean_ctor_set(x_18, 0, x_151); -return x_18; } else { -lean_free_object(x_18); -x_105 = x_14; -goto block_138; -} -block_138: -{ -lean_object* x_106; lean_object* x_107; -lean_dec(x_105); -x_106 = lean_ctor_get(x_12, 0); -lean_inc(x_106); -lean_dec(x_12); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_107 = l___private_Lean_Elab_App_2__tryCoeFun(x_103, x_106, x_2, x_3, x_4, x_5, x_6, x_7, x_102); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -lean_inc(x_108); -x_110 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_108, x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_109); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_110) == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t 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; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_111 = lean_ctor_get(x_110, 0); +lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t 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; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_110 = lean_ctor_get(x_76, 1); +lean_inc(x_110); +lean_dec(x_76); +x_111 = lean_ctor_get(x_77, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -x_113 = lean_ctor_get(x_110, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_114 = x_110; +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_112 = x_77; } else { - lean_dec_ref(x_110); - x_114 = lean_box(0); + lean_dec_ref(x_77); + x_112 = lean_box(0); } -x_115 = lean_ctor_get(x_111, 0); +x_113 = lean_ctor_get_uint8(x_78, sizeof(void*)*9); +x_114 = lean_ctor_get(x_78, 2); +lean_inc(x_114); +x_115 = lean_ctor_get(x_78, 3); lean_inc(x_115); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_116 = x_111; -} else { - lean_dec_ref(x_111); - x_116 = lean_box(0); -} -x_117 = lean_ctor_get_uint8(x_112, sizeof(void*)*9); -x_118 = lean_ctor_get(x_112, 2); +x_116 = lean_ctor_get(x_78, 4); +lean_inc(x_116); +x_117 = lean_ctor_get(x_78, 5); +lean_inc(x_117); +x_118 = lean_ctor_get(x_78, 6); lean_inc(x_118); -x_119 = lean_ctor_get(x_112, 3); +x_119 = lean_ctor_get(x_78, 7); lean_inc(x_119); -x_120 = lean_ctor_get(x_112, 4); +x_120 = lean_ctor_get(x_78, 8); lean_inc(x_120); -x_121 = lean_ctor_get(x_112, 5); -lean_inc(x_121); -x_122 = lean_ctor_get(x_112, 6); -lean_inc(x_122); -x_123 = lean_ctor_get(x_112, 7); -lean_inc(x_123); -x_124 = lean_ctor_get(x_112, 8); -lean_inc(x_124); -x_125 = lean_ctor_get_uint8(x_112, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - lean_ctor_release(x_112, 2); - lean_ctor_release(x_112, 3); - lean_ctor_release(x_112, 4); - lean_ctor_release(x_112, 5); - lean_ctor_release(x_112, 6); - lean_ctor_release(x_112, 7); - lean_ctor_release(x_112, 8); - x_126 = x_112; +x_121 = lean_ctor_get_uint8(x_78, sizeof(void*)*9 + 1); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + lean_ctor_release(x_78, 2); + lean_ctor_release(x_78, 3); + lean_ctor_release(x_78, 4); + lean_ctor_release(x_78, 5); + lean_ctor_release(x_78, 6); + lean_ctor_release(x_78, 7); + lean_ctor_release(x_78, 8); + x_122 = x_78; } else { - lean_dec_ref(x_112); - x_126 = lean_box(0); + lean_dec_ref(x_78); + x_122 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(0, 9, 2); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(0, 9, 2); } else { - x_127 = x_126; + x_123 = x_122; } -lean_ctor_set(x_127, 0, x_108); -lean_ctor_set(x_127, 1, x_115); -lean_ctor_set(x_127, 2, x_118); -lean_ctor_set(x_127, 3, x_119); -lean_ctor_set(x_127, 4, x_120); -lean_ctor_set(x_127, 5, x_121); -lean_ctor_set(x_127, 6, x_122); -lean_ctor_set(x_127, 7, x_123); -lean_ctor_set(x_127, 8, x_124); -lean_ctor_set_uint8(x_127, sizeof(void*)*9, x_117); -lean_ctor_set_uint8(x_127, sizeof(void*)*9 + 1, x_125); -if (lean_is_scalar(x_116)) { - x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_74); +lean_ctor_set(x_123, 1, x_111); +lean_ctor_set(x_123, 2, x_114); +lean_ctor_set(x_123, 3, x_115); +lean_ctor_set(x_123, 4, x_116); +lean_ctor_set(x_123, 5, x_117); +lean_ctor_set(x_123, 6, x_118); +lean_ctor_set(x_123, 7, x_119); +lean_ctor_set(x_123, 8, x_120); +lean_ctor_set_uint8(x_123, sizeof(void*)*9, x_113); +lean_ctor_set_uint8(x_123, sizeof(void*)*9 + 1, x_121); +if (lean_is_scalar(x_112)) { + x_124 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_116; + x_124 = x_112; } -lean_ctor_set(x_128, 0, x_14); -lean_ctor_set(x_128, 1, x_127); -if (lean_is_scalar(x_114)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_114; +lean_ctor_set(x_124, 0, x_14); +lean_ctor_set(x_124, 1, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_110); +return x_125; } -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_113); +} +else +{ +uint8_t x_126; +lean_dec(x_74); +x_126 = !lean_is_exclusive(x_76); +if (x_126 == 0) +{ +return x_76; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_76, 0); +x_128 = lean_ctor_get(x_76, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_76); +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_dec(x_108); -x_130 = lean_ctor_get(x_110, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_110, 1); +uint8_t x_130; +lean_dec(x_71); +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_130 = !lean_is_exclusive(x_73); +if (x_130 == 0) +{ +return x_73; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_73, 0); +x_132 = lean_ctor_get(x_73, 1); +lean_inc(x_132); lean_inc(x_131); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_132 = x_110; -} else { - lean_dec_ref(x_110); - 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); +lean_dec(x_73); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); return x_133; } } +} +} else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_104); +uint8_t x_134; +lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_134 = lean_ctor_get(x_107, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_107, 1); +x_134 = !lean_is_exclusive(x_18); +if (x_134 == 0) +{ +return x_18; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_18, 0); +x_136 = lean_ctor_get(x_18, 1); +lean_inc(x_136); lean_inc(x_135); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_136 = x_107; -} else { - lean_dec_ref(x_107); - x_136 = lean_box(0); -} -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(1, 2, 0); -} else { - x_137 = x_136; -} -lean_ctor_set(x_137, 0, x_134); -lean_ctor_set(x_137, 1, x_135); +lean_dec(x_18); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); return x_137; } } } -} else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_152 = lean_ctor_get(x_18, 0); -x_153 = lean_ctor_get(x_18, 1); -lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_18); -x_154 = lean_ctor_get(x_152, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_156 = x_152; -} else { - lean_dec_ref(x_152); - x_156 = lean_box(0); -} -if (lean_obj_tag(x_154) == 7) -{ -uint8_t 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; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +uint8_t x_138; lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); @@ -2985,375 +3422,93 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_191 = lean_ctor_get_uint8(x_155, sizeof(void*)*9); -x_192 = lean_ctor_get(x_155, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_155, 2); -lean_inc(x_193); -x_194 = lean_ctor_get(x_155, 3); -lean_inc(x_194); -x_195 = lean_ctor_get(x_155, 4); -lean_inc(x_195); -x_196 = lean_ctor_get(x_155, 5); -lean_inc(x_196); -x_197 = lean_ctor_get(x_155, 6); -lean_inc(x_197); -x_198 = lean_ctor_get(x_155, 7); -lean_inc(x_198); -x_199 = lean_ctor_get(x_155, 8); -lean_inc(x_199); -x_200 = lean_ctor_get_uint8(x_155, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - lean_ctor_release(x_155, 2); - lean_ctor_release(x_155, 3); - lean_ctor_release(x_155, 4); - lean_ctor_release(x_155, 5); - lean_ctor_release(x_155, 6); - lean_ctor_release(x_155, 7); - lean_ctor_release(x_155, 8); - x_201 = x_155; -} else { - lean_dec_ref(x_155); - x_201 = lean_box(0); -} -if (lean_is_scalar(x_201)) { - x_202 = lean_alloc_ctor(0, 9, 2); -} else { - x_202 = x_201; -} -lean_ctor_set(x_202, 0, x_192); -lean_ctor_set(x_202, 1, x_154); -lean_ctor_set(x_202, 2, x_193); -lean_ctor_set(x_202, 3, x_194); -lean_ctor_set(x_202, 4, x_195); -lean_ctor_set(x_202, 5, x_196); -lean_ctor_set(x_202, 6, x_197); -lean_ctor_set(x_202, 7, x_198); -lean_ctor_set(x_202, 8, x_199); -lean_ctor_set_uint8(x_202, sizeof(void*)*9, x_191); -lean_ctor_set_uint8(x_202, sizeof(void*)*9 + 1, x_200); -if (lean_is_scalar(x_156)) { - x_203 = lean_alloc_ctor(0, 2, 0); -} else { - x_203 = x_156; -} -lean_ctor_set(x_203, 0, x_14); -lean_ctor_set(x_203, 1, x_202); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_153); -return x_204; -} -else -{ -lean_dec(x_156); -x_157 = x_14; -goto block_190; -} -block_190: -{ -lean_object* x_158; lean_object* x_159; -lean_dec(x_157); -x_158 = lean_ctor_get(x_12, 0); -lean_inc(x_158); -lean_dec(x_12); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_159 = l___private_Lean_Elab_App_2__tryCoeFun(x_154, x_158, x_2, x_3, x_4, x_5, x_6, x_7, x_153); -if (lean_obj_tag(x_159) == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -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); -lean_inc(x_160); -x_162 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_160, x_155, x_2, x_3, x_4, x_5, x_6, x_7, x_161); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t 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; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_166 = x_162; -} else { - lean_dec_ref(x_162); - x_166 = lean_box(0); -} -x_167 = lean_ctor_get(x_163, 0); -lean_inc(x_167); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_168 = x_163; -} else { - lean_dec_ref(x_163); - x_168 = lean_box(0); -} -x_169 = lean_ctor_get_uint8(x_164, sizeof(void*)*9); -x_170 = lean_ctor_get(x_164, 2); -lean_inc(x_170); -x_171 = lean_ctor_get(x_164, 3); -lean_inc(x_171); -x_172 = lean_ctor_get(x_164, 4); -lean_inc(x_172); -x_173 = lean_ctor_get(x_164, 5); -lean_inc(x_173); -x_174 = lean_ctor_get(x_164, 6); -lean_inc(x_174); -x_175 = lean_ctor_get(x_164, 7); -lean_inc(x_175); -x_176 = lean_ctor_get(x_164, 8); -lean_inc(x_176); -x_177 = lean_ctor_get_uint8(x_164, sizeof(void*)*9 + 1); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - lean_ctor_release(x_164, 3); - lean_ctor_release(x_164, 4); - lean_ctor_release(x_164, 5); - lean_ctor_release(x_164, 6); - lean_ctor_release(x_164, 7); - lean_ctor_release(x_164, 8); - x_178 = x_164; -} else { - lean_dec_ref(x_164); - x_178 = lean_box(0); -} -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(0, 9, 2); -} else { - x_179 = x_178; -} -lean_ctor_set(x_179, 0, x_160); -lean_ctor_set(x_179, 1, x_167); -lean_ctor_set(x_179, 2, x_170); -lean_ctor_set(x_179, 3, x_171); -lean_ctor_set(x_179, 4, x_172); -lean_ctor_set(x_179, 5, x_173); -lean_ctor_set(x_179, 6, x_174); -lean_ctor_set(x_179, 7, x_175); -lean_ctor_set(x_179, 8, x_176); -lean_ctor_set_uint8(x_179, sizeof(void*)*9, x_169); -lean_ctor_set_uint8(x_179, sizeof(void*)*9 + 1, x_177); -if (lean_is_scalar(x_168)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_168; -} -lean_ctor_set(x_180, 0, x_14); -lean_ctor_set(x_180, 1, x_179); -if (lean_is_scalar(x_166)) { - x_181 = lean_alloc_ctor(0, 2, 0); -} else { - x_181 = x_166; -} -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_165); -return x_181; -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -lean_dec(x_160); -x_182 = lean_ctor_get(x_162, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_162, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_184 = x_162; -} else { - lean_dec_ref(x_162); - x_184 = lean_box(0); -} -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); -} else { - x_185 = x_184; -} -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -return x_185; -} -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_155); -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_186 = lean_ctor_get(x_159, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_159, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_188 = x_159; -} else { - lean_dec_ref(x_159); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(1, 2, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_186); -lean_ctor_set(x_189, 1, x_187); -return x_189; -} -} -} -} -else -{ -uint8_t x_205; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_205 = !lean_is_exclusive(x_18); -if (x_205 == 0) -{ -return x_18; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_18, 0); -x_207 = lean_ctor_get(x_18, 1); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_18); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -return x_208; -} -} -} -else -{ -uint8_t x_209; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_209 = !lean_is_exclusive(x_15); -if (x_209 == 0) +x_138 = !lean_is_exclusive(x_15); +if (x_138 == 0) { return x_15; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_15, 0); -x_211 = lean_ctor_get(x_15, 1); -lean_inc(x_211); -lean_inc(x_210); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_15, 0); +x_140 = lean_ctor_get(x_15, 1); +lean_inc(x_140); +lean_inc(x_139); lean_dec(x_15); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; +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 { -uint8_t x_213; +uint8_t x_142; 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_is_exclusive(x_9); -if (x_213 == 0) +x_142 = !lean_is_exclusive(x_9); +if (x_142 == 0) { return x_9; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_9, 0); -x_215 = lean_ctor_get(x_9, 1); -lean_inc(x_215); -lean_inc(x_214); +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_9, 0); +x_144 = lean_ctor_get(x_9, 1); +lean_inc(x_144); +lean_inc(x_143); lean_dec(x_9); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_214); -lean_ctor_set(x_216, 1, x_215); -return x_216; +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } } } -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_whnf___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_whnf___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_App_4__synthesizePendingAndNormalizeFunType___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_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_App_5__normalizeFunType(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object* x_1, lean_object* x_2, 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_ctor_get(x_1, 1); lean_inc(x_9); -x_10 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__1(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Lean_Meta_whnfForall___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -3589,17 +3744,17 @@ return x_65; } } } -lean_object* l___private_Lean_Elab_App_5__normalizeFunType___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object* x_1, lean_object* x_2, 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_5__normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_App_6__getBindingName(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object* x_1, lean_object* x_2, 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; @@ -3616,11 +3771,11 @@ lean_ctor_set(x_12, 1, x_8); return x_12; } } -lean_object* l___private_Lean_Elab_App_6__getBindingName___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object* x_1, lean_object* x_2, 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_6__getBindingName(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(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); @@ -3630,7 +3785,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_App_7__getArgExpectedType(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object* x_1, lean_object* x_2, 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; @@ -3647,11 +3802,11 @@ lean_ctor_set(x_12, 1, x_8); return x_12; } } -lean_object* l___private_Lean_Elab_App_7__getArgExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object* x_1, lean_object* x_2, 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_7__getArgExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(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); @@ -3844,7 +3999,1767 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_App_8__isNextArgHole(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_5, 0); +if (lean_obj_tag(x_7) == 1) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 1) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 1) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 1) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 1) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_7, 1); +x_16 = lean_ctor_get(x_7, 0); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; size_t x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_8, 1); +x_19 = lean_ctor_get_usize(x_8, 2); +x_20 = lean_ctor_get(x_8, 0); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_9); +if (x_21 == 0) +{ +lean_object* x_22; size_t x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_9, 1); +x_23 = lean_ctor_get_usize(x_9, 2); +x_24 = lean_ctor_get(x_9, 0); +lean_dec(x_24); +x_25 = !lean_is_exclusive(x_10); +if (x_25 == 0) +{ +lean_object* x_26; size_t x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_10, 1); +x_27 = lean_ctor_get_usize(x_10, 2); +x_28 = lean_ctor_get(x_10, 0); +lean_dec(x_28); +x_29 = !lean_is_exclusive(x_11); +if (x_29 == 0) +{ +lean_object* x_30; size_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_11, 1); +x_31 = lean_ctor_get_usize(x_11, 2); +x_32 = lean_ctor_get(x_11, 0); +lean_dec(x_32); +x_33 = l_Lean_mkAppStx___closed__1; +x_34 = lean_string_dec_eq(x_30, x_33); +lean_dec(x_30); +if (x_34 == 0) +{ +lean_object* x_35; +lean_free_object(x_11); +lean_free_object(x_10); +lean_dec(x_26); +lean_free_object(x_9); +lean_dec(x_22); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_dec(x_15); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_35 = lean_apply_1(x_3, x_1); +return x_35; +} +else +{ +uint8_t x_36; +x_36 = !lean_is_exclusive(x_1); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = lean_ctor_get(x_1, 1); +lean_dec(x_37); +x_38 = lean_ctor_get(x_1, 0); +lean_dec(x_38); +x_39 = l_Lean_mkAppStx___closed__3; +x_40 = lean_string_dec_eq(x_26, x_39); +if (x_40 == 0) +{ +lean_object* x_41; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +x_41 = lean_apply_1(x_3, x_1); +return x_41; +} +else +{ +lean_object* x_42; uint8_t x_43; +lean_dec(x_26); +x_42 = l_Lean_mkAppStx___closed__5; +x_43 = lean_string_dec_eq(x_22, x_42); +if (x_43 == 0) +{ +lean_object* x_44; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +lean_ctor_set(x_10, 1, x_39); +x_44 = lean_apply_1(x_3, x_1); +return x_44; +} +else +{ +lean_object* x_45; uint8_t x_46; +lean_dec(x_22); +x_45 = l_Lean_mkHole___closed__1; +x_46 = lean_string_dec_eq(x_18, x_45); +if (x_46 == 0) +{ +lean_object* x_47; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +lean_ctor_set(x_10, 1, x_39); +lean_ctor_set(x_9, 1, x_42); +x_47 = lean_apply_1(x_3, x_1); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_free_object(x_1); +lean_free_object(x_11); +lean_free_object(x_10); +lean_free_object(x_9); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_48 = lean_box_usize(x_31); +x_49 = lean_box_usize(x_27); +x_50 = lean_box_usize(x_23); +x_51 = lean_box_usize(x_19); +x_52 = lean_apply_6(x_2, x_15, x_13, x_48, x_49, x_50, x_51); +return x_52; +} +} +} +} +else +{ +lean_object* x_53; uint8_t x_54; +lean_dec(x_1); +x_53 = l_Lean_mkAppStx___closed__3; +x_54 = lean_string_dec_eq(x_26, x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_5); +lean_ctor_set(x_55, 1, x_13); +x_56 = lean_apply_1(x_3, x_55); +return x_56; +} +else +{ +lean_object* x_57; uint8_t x_58; +lean_dec(x_26); +x_57 = l_Lean_mkAppStx___closed__5; +x_58 = lean_string_dec_eq(x_22, x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +lean_ctor_set(x_10, 1, x_53); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_5); +lean_ctor_set(x_59, 1, x_13); +x_60 = lean_apply_1(x_3, x_59); +return x_60; +} +else +{ +lean_object* x_61; uint8_t x_62; +lean_dec(x_22); +x_61 = l_Lean_mkHole___closed__1; +x_62 = lean_string_dec_eq(x_18, x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_2); +lean_ctor_set(x_11, 1, x_33); +lean_ctor_set(x_10, 1, x_53); +lean_ctor_set(x_9, 1, x_57); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_5); +lean_ctor_set(x_63, 1, x_13); +x_64 = lean_apply_1(x_3, x_63); +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_free_object(x_11); +lean_free_object(x_10); +lean_free_object(x_9); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_65 = lean_box_usize(x_31); +x_66 = lean_box_usize(x_27); +x_67 = lean_box_usize(x_23); +x_68 = lean_box_usize(x_19); +x_69 = lean_apply_6(x_2, x_15, x_13, x_65, x_66, x_67, x_68); +return x_69; +} +} +} +} +} +} +else +{ +lean_object* x_70; size_t x_71; lean_object* x_72; uint8_t x_73; +x_70 = lean_ctor_get(x_11, 1); +x_71 = lean_ctor_get_usize(x_11, 2); +lean_inc(x_70); +lean_dec(x_11); +x_72 = l_Lean_mkAppStx___closed__1; +x_73 = lean_string_dec_eq(x_70, x_72); +lean_dec(x_70); +if (x_73 == 0) +{ +lean_object* x_74; +lean_free_object(x_10); +lean_dec(x_26); +lean_free_object(x_9); +lean_dec(x_22); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_dec(x_15); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_74 = lean_apply_1(x_3, x_1); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_75 = x_1; +} else { + lean_dec_ref(x_1); + x_75 = lean_box(0); +} +x_76 = l_Lean_mkAppStx___closed__3; +x_77 = lean_string_dec_eq(x_26, x_76); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_2); +x_78 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_78, 0, x_12); +lean_ctor_set(x_78, 1, x_72); +lean_ctor_set_usize(x_78, 2, x_71); +lean_ctor_set(x_10, 0, x_78); +if (lean_is_scalar(x_75)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_75; +} +lean_ctor_set(x_79, 0, x_5); +lean_ctor_set(x_79, 1, x_13); +x_80 = lean_apply_1(x_3, x_79); +return x_80; +} +else +{ +lean_object* x_81; uint8_t x_82; +lean_dec(x_26); +x_81 = l_Lean_mkAppStx___closed__5; +x_82 = lean_string_dec_eq(x_22, x_81); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_2); +x_83 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_83, 0, x_12); +lean_ctor_set(x_83, 1, x_72); +lean_ctor_set_usize(x_83, 2, x_71); +lean_ctor_set(x_10, 1, x_76); +lean_ctor_set(x_10, 0, x_83); +if (lean_is_scalar(x_75)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_75; +} +lean_ctor_set(x_84, 0, x_5); +lean_ctor_set(x_84, 1, x_13); +x_85 = lean_apply_1(x_3, x_84); +return x_85; +} +else +{ +lean_object* x_86; uint8_t x_87; +lean_dec(x_22); +x_86 = l_Lean_mkHole___closed__1; +x_87 = lean_string_dec_eq(x_18, x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_2); +x_88 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_88, 0, x_12); +lean_ctor_set(x_88, 1, x_72); +lean_ctor_set_usize(x_88, 2, x_71); +lean_ctor_set(x_10, 1, x_76); +lean_ctor_set(x_10, 0, x_88); +lean_ctor_set(x_9, 1, x_81); +if (lean_is_scalar(x_75)) { + x_89 = lean_alloc_ctor(1, 2, 0); +} else { + x_89 = x_75; +} +lean_ctor_set(x_89, 0, x_5); +lean_ctor_set(x_89, 1, x_13); +x_90 = lean_apply_1(x_3, x_89); +return x_90; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_75); +lean_free_object(x_10); +lean_free_object(x_9); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_91 = lean_box_usize(x_71); +x_92 = lean_box_usize(x_27); +x_93 = lean_box_usize(x_23); +x_94 = lean_box_usize(x_19); +x_95 = lean_apply_6(x_2, x_15, x_13, x_91, x_92, x_93, x_94); +return x_95; +} +} +} +} +} +} +else +{ +lean_object* x_96; size_t x_97; lean_object* x_98; size_t x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_96 = lean_ctor_get(x_10, 1); +x_97 = lean_ctor_get_usize(x_10, 2); +lean_inc(x_96); +lean_dec(x_10); +x_98 = lean_ctor_get(x_11, 1); +lean_inc(x_98); +x_99 = lean_ctor_get_usize(x_11, 2); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_100 = x_11; +} else { + lean_dec_ref(x_11); + x_100 = lean_box(0); +} +x_101 = l_Lean_mkAppStx___closed__1; +x_102 = lean_string_dec_eq(x_98, x_101); +lean_dec(x_98); +if (x_102 == 0) +{ +lean_object* x_103; +lean_dec(x_100); +lean_dec(x_96); +lean_free_object(x_9); +lean_dec(x_22); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_dec(x_15); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_103 = lean_apply_1(x_3, x_1); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; uint8_t x_106; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_104 = x_1; +} else { + lean_dec_ref(x_1); + x_104 = lean_box(0); +} +x_105 = l_Lean_mkAppStx___closed__3; +x_106 = lean_string_dec_eq(x_96, x_105); +if (x_106 == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_2); +if (lean_is_scalar(x_100)) { + x_107 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_107 = x_100; +} +lean_ctor_set(x_107, 0, x_12); +lean_ctor_set(x_107, 1, x_101); +lean_ctor_set_usize(x_107, 2, x_99); +x_108 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_96); +lean_ctor_set_usize(x_108, 2, x_97); +lean_ctor_set(x_9, 0, x_108); +if (lean_is_scalar(x_104)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_104; +} +lean_ctor_set(x_109, 0, x_5); +lean_ctor_set(x_109, 1, x_13); +x_110 = lean_apply_1(x_3, x_109); +return x_110; +} +else +{ +lean_object* x_111; uint8_t x_112; +lean_dec(x_96); +x_111 = l_Lean_mkAppStx___closed__5; +x_112 = lean_string_dec_eq(x_22, x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_2); +if (lean_is_scalar(x_100)) { + x_113 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_113 = x_100; +} +lean_ctor_set(x_113, 0, x_12); +lean_ctor_set(x_113, 1, x_101); +lean_ctor_set_usize(x_113, 2, x_99); +x_114 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_105); +lean_ctor_set_usize(x_114, 2, x_97); +lean_ctor_set(x_9, 0, x_114); +if (lean_is_scalar(x_104)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_104; +} +lean_ctor_set(x_115, 0, x_5); +lean_ctor_set(x_115, 1, x_13); +x_116 = lean_apply_1(x_3, x_115); +return x_116; +} +else +{ +lean_object* x_117; uint8_t x_118; +lean_dec(x_22); +x_117 = l_Lean_mkHole___closed__1; +x_118 = lean_string_dec_eq(x_18, x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_2); +if (lean_is_scalar(x_100)) { + x_119 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_119 = x_100; +} +lean_ctor_set(x_119, 0, x_12); +lean_ctor_set(x_119, 1, x_101); +lean_ctor_set_usize(x_119, 2, x_99); +x_120 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_105); +lean_ctor_set_usize(x_120, 2, x_97); +lean_ctor_set(x_9, 1, x_111); +lean_ctor_set(x_9, 0, x_120); +if (lean_is_scalar(x_104)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_104; +} +lean_ctor_set(x_121, 0, x_5); +lean_ctor_set(x_121, 1, x_13); +x_122 = lean_apply_1(x_3, x_121); +return x_122; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_104); +lean_dec(x_100); +lean_free_object(x_9); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_123 = lean_box_usize(x_99); +x_124 = lean_box_usize(x_97); +x_125 = lean_box_usize(x_23); +x_126 = lean_box_usize(x_19); +x_127 = lean_apply_6(x_2, x_15, x_13, x_123, x_124, x_125, x_126); +return x_127; +} +} +} +} +} +} +else +{ +lean_object* x_128; size_t x_129; lean_object* x_130; size_t x_131; lean_object* x_132; lean_object* x_133; size_t x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_128 = lean_ctor_get(x_9, 1); +x_129 = lean_ctor_get_usize(x_9, 2); +lean_inc(x_128); +lean_dec(x_9); +x_130 = lean_ctor_get(x_10, 1); +lean_inc(x_130); +x_131 = lean_ctor_get_usize(x_10, 2); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_132 = x_10; +} else { + lean_dec_ref(x_10); + x_132 = lean_box(0); +} +x_133 = lean_ctor_get(x_11, 1); +lean_inc(x_133); +x_134 = lean_ctor_get_usize(x_11, 2); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_135 = x_11; +} else { + lean_dec_ref(x_11); + x_135 = lean_box(0); +} +x_136 = l_Lean_mkAppStx___closed__1; +x_137 = lean_string_dec_eq(x_133, x_136); +lean_dec(x_133); +if (x_137 == 0) +{ +lean_object* x_138; +lean_dec(x_135); +lean_dec(x_132); +lean_dec(x_130); +lean_dec(x_128); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_dec(x_15); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_138 = lean_apply_1(x_3, x_1); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; uint8_t x_141; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_139 = x_1; +} else { + lean_dec_ref(x_1); + x_139 = lean_box(0); +} +x_140 = l_Lean_mkAppStx___closed__3; +x_141 = lean_string_dec_eq(x_130, x_140); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_2); +if (lean_is_scalar(x_135)) { + x_142 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_142 = x_135; +} +lean_ctor_set(x_142, 0, x_12); +lean_ctor_set(x_142, 1, x_136); +lean_ctor_set_usize(x_142, 2, x_134); +if (lean_is_scalar(x_132)) { + x_143 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_143 = x_132; +} +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_130); +lean_ctor_set_usize(x_143, 2, x_131); +x_144 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_128); +lean_ctor_set_usize(x_144, 2, x_129); +lean_ctor_set(x_8, 0, x_144); +if (lean_is_scalar(x_139)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_139; +} +lean_ctor_set(x_145, 0, x_5); +lean_ctor_set(x_145, 1, x_13); +x_146 = lean_apply_1(x_3, x_145); +return x_146; +} +else +{ +lean_object* x_147; uint8_t x_148; +lean_dec(x_130); +x_147 = l_Lean_mkAppStx___closed__5; +x_148 = lean_string_dec_eq(x_128, x_147); +if (x_148 == 0) +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_2); +if (lean_is_scalar(x_135)) { + x_149 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_149 = x_135; +} +lean_ctor_set(x_149, 0, x_12); +lean_ctor_set(x_149, 1, x_136); +lean_ctor_set_usize(x_149, 2, x_134); +if (lean_is_scalar(x_132)) { + x_150 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_150 = x_132; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_140); +lean_ctor_set_usize(x_150, 2, x_131); +x_151 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_128); +lean_ctor_set_usize(x_151, 2, x_129); +lean_ctor_set(x_8, 0, x_151); +if (lean_is_scalar(x_139)) { + x_152 = lean_alloc_ctor(1, 2, 0); +} else { + x_152 = x_139; +} +lean_ctor_set(x_152, 0, x_5); +lean_ctor_set(x_152, 1, x_13); +x_153 = lean_apply_1(x_3, x_152); +return x_153; +} +else +{ +lean_object* x_154; uint8_t x_155; +lean_dec(x_128); +x_154 = l_Lean_mkHole___closed__1; +x_155 = lean_string_dec_eq(x_18, x_154); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_2); +if (lean_is_scalar(x_135)) { + x_156 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_156 = x_135; +} +lean_ctor_set(x_156, 0, x_12); +lean_ctor_set(x_156, 1, x_136); +lean_ctor_set_usize(x_156, 2, x_134); +if (lean_is_scalar(x_132)) { + x_157 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_157 = x_132; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_140); +lean_ctor_set_usize(x_157, 2, x_131); +x_158 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_147); +lean_ctor_set_usize(x_158, 2, x_129); +lean_ctor_set(x_8, 0, x_158); +if (lean_is_scalar(x_139)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_139; +} +lean_ctor_set(x_159, 0, x_5); +lean_ctor_set(x_159, 1, x_13); +x_160 = lean_apply_1(x_3, x_159); +return x_160; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_139); +lean_dec(x_135); +lean_dec(x_132); +lean_free_object(x_8); +lean_dec(x_18); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_161 = lean_box_usize(x_134); +x_162 = lean_box_usize(x_131); +x_163 = lean_box_usize(x_129); +x_164 = lean_box_usize(x_19); +x_165 = lean_apply_6(x_2, x_15, x_13, x_161, x_162, x_163, x_164); +return x_165; +} +} +} +} +} +} +else +{ +lean_object* x_166; size_t x_167; lean_object* x_168; size_t x_169; lean_object* x_170; lean_object* x_171; size_t x_172; lean_object* x_173; lean_object* x_174; size_t x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_166 = lean_ctor_get(x_8, 1); +x_167 = lean_ctor_get_usize(x_8, 2); +lean_inc(x_166); +lean_dec(x_8); +x_168 = lean_ctor_get(x_9, 1); +lean_inc(x_168); +x_169 = lean_ctor_get_usize(x_9, 2); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_170 = x_9; +} else { + lean_dec_ref(x_9); + x_170 = lean_box(0); +} +x_171 = lean_ctor_get(x_10, 1); +lean_inc(x_171); +x_172 = lean_ctor_get_usize(x_10, 2); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_173 = x_10; +} else { + lean_dec_ref(x_10); + x_173 = lean_box(0); +} +x_174 = lean_ctor_get(x_11, 1); +lean_inc(x_174); +x_175 = lean_ctor_get_usize(x_11, 2); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_176 = x_11; +} else { + lean_dec_ref(x_11); + x_176 = lean_box(0); +} +x_177 = l_Lean_mkAppStx___closed__1; +x_178 = lean_string_dec_eq(x_174, x_177); +lean_dec(x_174); +if (x_178 == 0) +{ +lean_object* x_179; +lean_dec(x_176); +lean_dec(x_173); +lean_dec(x_171); +lean_dec(x_170); +lean_dec(x_168); +lean_dec(x_166); +lean_free_object(x_7); +lean_dec(x_15); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_179 = lean_apply_1(x_3, x_1); +return x_179; +} +else +{ +lean_object* x_180; lean_object* x_181; uint8_t x_182; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_180 = x_1; +} else { + lean_dec_ref(x_1); + x_180 = lean_box(0); +} +x_181 = l_Lean_mkAppStx___closed__3; +x_182 = lean_string_dec_eq(x_171, x_181); +if (x_182 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_176)) { + x_183 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_183 = x_176; +} +lean_ctor_set(x_183, 0, x_12); +lean_ctor_set(x_183, 1, x_177); +lean_ctor_set_usize(x_183, 2, x_175); +if (lean_is_scalar(x_173)) { + x_184 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_184 = x_173; +} +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_171); +lean_ctor_set_usize(x_184, 2, x_172); +if (lean_is_scalar(x_170)) { + x_185 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_185 = x_170; +} +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_168); +lean_ctor_set_usize(x_185, 2, x_169); +x_186 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_166); +lean_ctor_set_usize(x_186, 2, x_167); +lean_ctor_set(x_7, 0, x_186); +if (lean_is_scalar(x_180)) { + x_187 = lean_alloc_ctor(1, 2, 0); +} else { + x_187 = x_180; +} +lean_ctor_set(x_187, 0, x_5); +lean_ctor_set(x_187, 1, x_13); +x_188 = lean_apply_1(x_3, x_187); +return x_188; +} +else +{ +lean_object* x_189; uint8_t x_190; +lean_dec(x_171); +x_189 = l_Lean_mkAppStx___closed__5; +x_190 = lean_string_dec_eq(x_168, x_189); +if (x_190 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_176)) { + x_191 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_191 = x_176; +} +lean_ctor_set(x_191, 0, x_12); +lean_ctor_set(x_191, 1, x_177); +lean_ctor_set_usize(x_191, 2, x_175); +if (lean_is_scalar(x_173)) { + x_192 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_192 = x_173; +} +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_181); +lean_ctor_set_usize(x_192, 2, x_172); +if (lean_is_scalar(x_170)) { + x_193 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_193 = x_170; +} +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_168); +lean_ctor_set_usize(x_193, 2, x_169); +x_194 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_166); +lean_ctor_set_usize(x_194, 2, x_167); +lean_ctor_set(x_7, 0, x_194); +if (lean_is_scalar(x_180)) { + x_195 = lean_alloc_ctor(1, 2, 0); +} else { + x_195 = x_180; +} +lean_ctor_set(x_195, 0, x_5); +lean_ctor_set(x_195, 1, x_13); +x_196 = lean_apply_1(x_3, x_195); +return x_196; +} +else +{ +lean_object* x_197; uint8_t x_198; +lean_dec(x_168); +x_197 = l_Lean_mkHole___closed__1; +x_198 = lean_string_dec_eq(x_166, x_197); +if (x_198 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_176)) { + x_199 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_199 = x_176; +} +lean_ctor_set(x_199, 0, x_12); +lean_ctor_set(x_199, 1, x_177); +lean_ctor_set_usize(x_199, 2, x_175); +if (lean_is_scalar(x_173)) { + x_200 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_200 = x_173; +} +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_181); +lean_ctor_set_usize(x_200, 2, x_172); +if (lean_is_scalar(x_170)) { + x_201 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_201 = x_170; +} +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_189); +lean_ctor_set_usize(x_201, 2, x_169); +x_202 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_166); +lean_ctor_set_usize(x_202, 2, x_167); +lean_ctor_set(x_7, 0, x_202); +if (lean_is_scalar(x_180)) { + x_203 = lean_alloc_ctor(1, 2, 0); +} else { + x_203 = x_180; +} +lean_ctor_set(x_203, 0, x_5); +lean_ctor_set(x_203, 1, x_13); +x_204 = lean_apply_1(x_3, x_203); +return x_204; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_180); +lean_dec(x_176); +lean_dec(x_173); +lean_dec(x_170); +lean_dec(x_166); +lean_free_object(x_7); +lean_free_object(x_5); +lean_dec(x_3); +x_205 = lean_box_usize(x_175); +x_206 = lean_box_usize(x_172); +x_207 = lean_box_usize(x_169); +x_208 = lean_box_usize(x_167); +x_209 = lean_apply_6(x_2, x_15, x_13, x_205, x_206, x_207, x_208); +return x_209; +} +} +} +} +} +} +else +{ +lean_object* x_210; lean_object* x_211; size_t x_212; lean_object* x_213; lean_object* x_214; size_t x_215; lean_object* x_216; lean_object* x_217; size_t x_218; lean_object* x_219; lean_object* x_220; size_t x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; +x_210 = lean_ctor_get(x_7, 1); +lean_inc(x_210); +lean_dec(x_7); +x_211 = lean_ctor_get(x_8, 1); +lean_inc(x_211); +x_212 = lean_ctor_get_usize(x_8, 2); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_213 = x_8; +} else { + lean_dec_ref(x_8); + x_213 = lean_box(0); +} +x_214 = lean_ctor_get(x_9, 1); +lean_inc(x_214); +x_215 = lean_ctor_get_usize(x_9, 2); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_216 = x_9; +} else { + lean_dec_ref(x_9); + x_216 = lean_box(0); +} +x_217 = lean_ctor_get(x_10, 1); +lean_inc(x_217); +x_218 = lean_ctor_get_usize(x_10, 2); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_219 = x_10; +} else { + lean_dec_ref(x_10); + x_219 = lean_box(0); +} +x_220 = lean_ctor_get(x_11, 1); +lean_inc(x_220); +x_221 = lean_ctor_get_usize(x_11, 2); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_222 = x_11; +} else { + lean_dec_ref(x_11); + x_222 = lean_box(0); +} +x_223 = l_Lean_mkAppStx___closed__1; +x_224 = lean_string_dec_eq(x_220, x_223); +lean_dec(x_220); +if (x_224 == 0) +{ +lean_object* x_225; +lean_dec(x_222); +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_211); +lean_dec(x_210); +lean_dec(x_13); +lean_free_object(x_5); +lean_dec(x_2); +x_225 = lean_apply_1(x_3, x_1); +return x_225; +} +else +{ +lean_object* x_226; lean_object* x_227; uint8_t x_228; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_226 = x_1; +} else { + lean_dec_ref(x_1); + x_226 = lean_box(0); +} +x_227 = l_Lean_mkAppStx___closed__3; +x_228 = lean_string_dec_eq(x_217, x_227); +if (x_228 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_222)) { + x_229 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_229 = x_222; +} +lean_ctor_set(x_229, 0, x_12); +lean_ctor_set(x_229, 1, x_223); +lean_ctor_set_usize(x_229, 2, x_221); +if (lean_is_scalar(x_219)) { + x_230 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_230 = x_219; +} +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_217); +lean_ctor_set_usize(x_230, 2, x_218); +if (lean_is_scalar(x_216)) { + x_231 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_231 = x_216; +} +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_214); +lean_ctor_set_usize(x_231, 2, x_215); +if (lean_is_scalar(x_213)) { + x_232 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_232 = x_213; +} +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_211); +lean_ctor_set_usize(x_232, 2, x_212); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_210); +lean_ctor_set(x_5, 0, x_233); +if (lean_is_scalar(x_226)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_226; +} +lean_ctor_set(x_234, 0, x_5); +lean_ctor_set(x_234, 1, x_13); +x_235 = lean_apply_1(x_3, x_234); +return x_235; +} +else +{ +lean_object* x_236; uint8_t x_237; +lean_dec(x_217); +x_236 = l_Lean_mkAppStx___closed__5; +x_237 = lean_string_dec_eq(x_214, x_236); +if (x_237 == 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; +lean_dec(x_2); +if (lean_is_scalar(x_222)) { + x_238 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_238 = x_222; +} +lean_ctor_set(x_238, 0, x_12); +lean_ctor_set(x_238, 1, x_223); +lean_ctor_set_usize(x_238, 2, x_221); +if (lean_is_scalar(x_219)) { + x_239 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_239 = x_219; +} +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_227); +lean_ctor_set_usize(x_239, 2, x_218); +if (lean_is_scalar(x_216)) { + x_240 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_240 = x_216; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_214); +lean_ctor_set_usize(x_240, 2, x_215); +if (lean_is_scalar(x_213)) { + x_241 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_241 = x_213; +} +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_211); +lean_ctor_set_usize(x_241, 2, x_212); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_210); +lean_ctor_set(x_5, 0, x_242); +if (lean_is_scalar(x_226)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_226; +} +lean_ctor_set(x_243, 0, x_5); +lean_ctor_set(x_243, 1, x_13); +x_244 = lean_apply_1(x_3, x_243); +return x_244; +} +else +{ +lean_object* x_245; uint8_t x_246; +lean_dec(x_214); +x_245 = l_Lean_mkHole___closed__1; +x_246 = lean_string_dec_eq(x_211, x_245); +if (x_246 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_222)) { + x_247 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_247 = x_222; +} +lean_ctor_set(x_247, 0, x_12); +lean_ctor_set(x_247, 1, x_223); +lean_ctor_set_usize(x_247, 2, x_221); +if (lean_is_scalar(x_219)) { + x_248 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_248 = x_219; +} +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_227); +lean_ctor_set_usize(x_248, 2, x_218); +if (lean_is_scalar(x_216)) { + x_249 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_249 = x_216; +} +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_236); +lean_ctor_set_usize(x_249, 2, x_215); +if (lean_is_scalar(x_213)) { + x_250 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_250 = x_213; +} +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_211); +lean_ctor_set_usize(x_250, 2, x_212); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_210); +lean_ctor_set(x_5, 0, x_251); +if (lean_is_scalar(x_226)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_226; +} +lean_ctor_set(x_252, 0, x_5); +lean_ctor_set(x_252, 1, x_13); +x_253 = lean_apply_1(x_3, x_252); +return x_253; +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_226); +lean_dec(x_222); +lean_dec(x_219); +lean_dec(x_216); +lean_dec(x_213); +lean_dec(x_211); +lean_free_object(x_5); +lean_dec(x_3); +x_254 = lean_box_usize(x_221); +x_255 = lean_box_usize(x_218); +x_256 = lean_box_usize(x_215); +x_257 = lean_box_usize(x_212); +x_258 = lean_apply_6(x_2, x_210, x_13, x_254, x_255, x_256, x_257); +return x_258; +} +} +} +} +} +} +else +{ +lean_object* x_259; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_259 = lean_apply_1(x_3, x_1); +return x_259; +} +} +else +{ +lean_object* x_260; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_260 = lean_apply_1(x_3, x_1); +return x_260; +} +} +else +{ +lean_object* x_261; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_261 = lean_apply_1(x_3, x_1); +return x_261; +} +} +else +{ +lean_object* x_262; +lean_dec(x_9); +lean_dec(x_8); +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_262 = lean_apply_1(x_3, x_1); +return x_262; +} +} +else +{ +lean_object* x_263; +lean_dec(x_8); +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_263 = lean_apply_1(x_3, x_1); +return x_263; +} +} +else +{ +lean_object* x_264; +lean_free_object(x_5); +lean_dec(x_7); +lean_dec(x_2); +x_264 = lean_apply_1(x_3, x_1); +return x_264; +} +} +else +{ +lean_object* x_265; +x_265 = lean_ctor_get(x_5, 0); +lean_inc(x_265); +lean_dec(x_5); +if (lean_obj_tag(x_265) == 1) +{ +lean_object* x_266; +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +if (lean_obj_tag(x_266) == 1) +{ +lean_object* x_267; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +if (lean_obj_tag(x_267) == 1) +{ +lean_object* x_268; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +if (lean_obj_tag(x_268) == 1) +{ +lean_object* x_269; +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +if (lean_obj_tag(x_269) == 1) +{ +lean_object* x_270; +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +if (lean_obj_tag(x_270) == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; size_t x_275; lean_object* x_276; lean_object* x_277; size_t x_278; lean_object* x_279; lean_object* x_280; size_t x_281; lean_object* x_282; lean_object* x_283; size_t x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; +x_271 = lean_ctor_get(x_1, 1); +lean_inc(x_271); +x_272 = lean_ctor_get(x_265, 1); +lean_inc(x_272); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_273 = x_265; +} else { + lean_dec_ref(x_265); + x_273 = lean_box(0); +} +x_274 = lean_ctor_get(x_266, 1); +lean_inc(x_274); +x_275 = lean_ctor_get_usize(x_266, 2); +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_266); + x_276 = lean_box(0); +} +x_277 = lean_ctor_get(x_267, 1); +lean_inc(x_277); +x_278 = lean_ctor_get_usize(x_267, 2); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_279 = x_267; +} else { + lean_dec_ref(x_267); + x_279 = lean_box(0); +} +x_280 = lean_ctor_get(x_268, 1); +lean_inc(x_280); +x_281 = lean_ctor_get_usize(x_268, 2); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_282 = x_268; +} else { + lean_dec_ref(x_268); + x_282 = lean_box(0); +} +x_283 = lean_ctor_get(x_269, 1); +lean_inc(x_283); +x_284 = lean_ctor_get_usize(x_269, 2); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_285 = x_269; +} else { + lean_dec_ref(x_269); + x_285 = lean_box(0); +} +x_286 = l_Lean_mkAppStx___closed__1; +x_287 = lean_string_dec_eq(x_283, x_286); +lean_dec(x_283); +if (x_287 == 0) +{ +lean_object* x_288; +lean_dec(x_285); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_279); +lean_dec(x_277); +lean_dec(x_276); +lean_dec(x_274); +lean_dec(x_273); +lean_dec(x_272); +lean_dec(x_271); +lean_dec(x_2); +x_288 = lean_apply_1(x_3, x_1); +return x_288; +} +else +{ +lean_object* x_289; lean_object* x_290; uint8_t x_291; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_289 = x_1; +} else { + lean_dec_ref(x_1); + x_289 = lean_box(0); +} +x_290 = l_Lean_mkAppStx___closed__3; +x_291 = lean_string_dec_eq(x_280, x_290); +if (x_291 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_285)) { + x_292 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_292 = x_285; +} +lean_ctor_set(x_292, 0, x_270); +lean_ctor_set(x_292, 1, x_286); +lean_ctor_set_usize(x_292, 2, x_284); +if (lean_is_scalar(x_282)) { + x_293 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_293 = x_282; +} +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_280); +lean_ctor_set_usize(x_293, 2, x_281); +if (lean_is_scalar(x_279)) { + x_294 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_294 = x_279; +} +lean_ctor_set(x_294, 0, x_293); +lean_ctor_set(x_294, 1, x_277); +lean_ctor_set_usize(x_294, 2, x_278); +if (lean_is_scalar(x_276)) { + x_295 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_295 = x_276; +} +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_274); +lean_ctor_set_usize(x_295, 2, x_275); +if (lean_is_scalar(x_273)) { + x_296 = lean_alloc_ctor(1, 2, 0); +} else { + x_296 = x_273; +} +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_272); +x_297 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_297, 0, x_296); +if (lean_is_scalar(x_289)) { + x_298 = lean_alloc_ctor(1, 2, 0); +} else { + x_298 = x_289; +} +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_271); +x_299 = lean_apply_1(x_3, x_298); +return x_299; +} +else +{ +lean_object* x_300; uint8_t x_301; +lean_dec(x_280); +x_300 = l_Lean_mkAppStx___closed__5; +x_301 = lean_string_dec_eq(x_277, x_300); +if (x_301 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_285)) { + x_302 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_302 = x_285; +} +lean_ctor_set(x_302, 0, x_270); +lean_ctor_set(x_302, 1, x_286); +lean_ctor_set_usize(x_302, 2, x_284); +if (lean_is_scalar(x_282)) { + x_303 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_303 = x_282; +} +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_290); +lean_ctor_set_usize(x_303, 2, x_281); +if (lean_is_scalar(x_279)) { + x_304 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_304 = x_279; +} +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_277); +lean_ctor_set_usize(x_304, 2, x_278); +if (lean_is_scalar(x_276)) { + x_305 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_305 = x_276; +} +lean_ctor_set(x_305, 0, x_304); +lean_ctor_set(x_305, 1, x_274); +lean_ctor_set_usize(x_305, 2, x_275); +if (lean_is_scalar(x_273)) { + x_306 = lean_alloc_ctor(1, 2, 0); +} else { + x_306 = x_273; +} +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_272); +x_307 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_307, 0, x_306); +if (lean_is_scalar(x_289)) { + x_308 = lean_alloc_ctor(1, 2, 0); +} else { + x_308 = x_289; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_271); +x_309 = lean_apply_1(x_3, x_308); +return x_309; +} +else +{ +lean_object* x_310; uint8_t x_311; +lean_dec(x_277); +x_310 = l_Lean_mkHole___closed__1; +x_311 = lean_string_dec_eq(x_274, x_310); +if (x_311 == 0) +{ +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_dec(x_2); +if (lean_is_scalar(x_285)) { + x_312 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_312 = x_285; +} +lean_ctor_set(x_312, 0, x_270); +lean_ctor_set(x_312, 1, x_286); +lean_ctor_set_usize(x_312, 2, x_284); +if (lean_is_scalar(x_282)) { + x_313 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_313 = x_282; +} +lean_ctor_set(x_313, 0, x_312); +lean_ctor_set(x_313, 1, x_290); +lean_ctor_set_usize(x_313, 2, x_281); +if (lean_is_scalar(x_279)) { + x_314 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_314 = x_279; +} +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_314, 1, x_300); +lean_ctor_set_usize(x_314, 2, x_278); +if (lean_is_scalar(x_276)) { + x_315 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_315 = x_276; +} +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_274); +lean_ctor_set_usize(x_315, 2, x_275); +if (lean_is_scalar(x_273)) { + x_316 = lean_alloc_ctor(1, 2, 0); +} else { + x_316 = x_273; +} +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_272); +x_317 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_317, 0, x_316); +if (lean_is_scalar(x_289)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_289; +} +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_271); +x_319 = lean_apply_1(x_3, x_318); +return x_319; +} +else +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_289); +lean_dec(x_285); +lean_dec(x_282); +lean_dec(x_279); +lean_dec(x_276); +lean_dec(x_274); +lean_dec(x_273); +lean_dec(x_3); +x_320 = lean_box_usize(x_284); +x_321 = lean_box_usize(x_281); +x_322 = lean_box_usize(x_278); +x_323 = lean_box_usize(x_275); +x_324 = lean_apply_6(x_2, x_272, x_271, x_320, x_321, x_322, x_323); +return x_324; +} +} +} +} +} +else +{ +lean_object* x_325; +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_2); +x_325 = lean_apply_1(x_3, x_1); +return x_325; +} +} +else +{ +lean_object* x_326; +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_2); +x_326 = lean_apply_1(x_3, x_1); +return x_326; +} +} +else +{ +lean_object* x_327; +lean_dec(x_268); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_2); +x_327 = lean_apply_1(x_3, x_1); +return x_327; +} +} +else +{ +lean_object* x_328; +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_2); +x_328 = lean_apply_1(x_3, x_1); +return x_328; +} +} +else +{ +lean_object* x_329; +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_2); +x_329 = lean_apply_1(x_3, x_1); +return x_329; +} +} +else +{ +lean_object* x_330; +lean_dec(x_265); +lean_dec(x_2); +x_330 = lean_apply_1(x_3, x_1); +return x_330; +} +} +} +else +{ +lean_object* x_331; +lean_dec(x_5); +lean_dec(x_2); +x_331 = lean_apply_1(x_3, x_1); +return x_331; +} +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object* x_1, lean_object* x_2, 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; @@ -4129,11 +6044,11 @@ return x_80; } } } -lean_object* l___private_Lean_Elab_App_8__isNextArgHole___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object* x_1, lean_object* x_2, 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_8__isNextArgHole(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(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); @@ -4143,7 +6058,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_App_9__addNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -4225,11 +6140,11 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_App_9__addNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_9__addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(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); @@ -4239,12 +6154,45 @@ lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_App_10__elabAndAddNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_inc(x_2); -x_10 = l___private_Lean_Elab_App_7__getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); if (lean_obj_tag(x_1) == 0) @@ -4288,7 +6236,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_22 = l___private_Lean_Elab_App_1__ensureArgType(x_21, x_19, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_21, x_19, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_20); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -4297,7 +6245,7 @@ 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_App_9__addNewArg(x_23, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_23, x_14, 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); @@ -4390,7 +6338,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_39 = l___private_Lean_Elab_App_1__ensureArgType(x_38, x_37, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_38, x_37, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_34); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -4399,7 +6347,7 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l___private_Lean_Elab_App_9__addNewArg(x_40, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_41); +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_40, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_41); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -4440,7 +6388,7 @@ return x_46; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -4471,7 +6419,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_19 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_19 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { uint8_t x_20; @@ -4720,7 +6668,7 @@ return x_70; } } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -4728,11 +6676,11 @@ 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___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg___lambda__1), 11, 4); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___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); @@ -4823,47 +6771,47 @@ return x_29; } } } -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2(lean_object* x_1) { +lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg), 10, 0); return x_2; } } -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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; x_11 = lean_array_get_size(x_1); x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__1(x_1, x_1, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(x_1, x_1, x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_11); return x_13; } } -static lean_object* _init_l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_11__hasOptAutoParams___lambda__1___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed), 10, 0); return x_1; } } -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; -x_10 = l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1; -x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(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_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_11__hasOptAutoParams___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); +x_13 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); @@ -4872,11 +6820,11 @@ lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_App_11__hasOptAutoParams___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* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_App_11__hasOptAutoParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_4); lean_dec(x_2); @@ -4884,18 +6832,147 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_App_12__fTypeHasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object* x_1, lean_object* x_2, 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, 1); lean_inc(x_9); -x_10 = l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1; -x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(x_9, x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_9, x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } } -uint8_t l___private_Lean_Elab_App_13__getForallBody___main___lambda__1(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +lean_dec(x_5); +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +x_9 = lean_ctor_get(x_3, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_3, 2); +lean_inc(x_11); +x_12 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_13 = lean_box_uint64(x_12); +x_14 = lean_apply_7(x_4, x_1, x_2, x_3, x_9, x_10, x_11, x_13); +return x_14; +} +else +{ +lean_object* x_15; +lean_dec(x_4); +x_15 = lean_apply_3(x_6, x_1, x_2, x_3); +return x_15; +} +} +else +{ +lean_dec(x_1); +if (lean_obj_tag(x_2) == 0) +{ +lean_dec(x_6); +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_5); +x_16 = lean_ctor_get(x_3, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_3, 2); +lean_inc(x_18); +x_19 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_20 = lean_box_uint64(x_19); +x_21 = lean_apply_7(x_4, x_7, x_2, x_3, x_16, x_17, x_18, x_20); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_4); +x_22 = lean_apply_1(x_5, x_3); +return x_22; +} +} +else +{ +lean_dec(x_5); +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_6); +x_23 = lean_ctor_get(x_3, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_3, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_3, 2); +lean_inc(x_25); +x_26 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_27 = lean_box_uint64(x_26); +x_28 = lean_apply_7(x_4, x_7, x_2, x_3, x_23, x_24, x_25, x_27); +return x_28; +} +else +{ +lean_object* x_29; +lean_dec(x_4); +x_29 = lean_apply_3(x_6, x_7, x_2, x_3); +return x_29; +} +} +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody_match__2___rarg), 6, 0); +return x_2; +} +} +uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -4904,7 +6981,7 @@ x_4 = lean_name_eq(x_3, x_1); return x_4; } } -lean_object* l___private_Lean_Elab_App_13__getForallBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -4923,7 +7000,7 @@ x_8 = lean_ctor_get(x_3, 2); lean_inc(x_8); x_9 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_6); -x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed), 2, 1); +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_10, 0, x_6); lean_inc(x_2); x_11 = l_List_find_x3f___main___rarg(x_10, x_2); @@ -5031,7 +7108,7 @@ x_29 = lean_ctor_get(x_3, 2); lean_inc(x_29); x_30 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_27); -x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed), 2, 1); +x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_31, 0, x_27); x_32 = l_List_find_x3f___main___rarg(x_31, x_2); if (lean_obj_tag(x_32) == 0) @@ -5118,7 +7195,7 @@ x_46 = lean_ctor_get(x_3, 2); lean_inc(x_46); x_47 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); lean_inc(x_44); -x_48 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed), 2, 1); +x_48 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); lean_closure_set(x_48, 0, x_44); lean_inc(x_2); x_49 = l_List_find_x3f___main___rarg(x_48, x_2); @@ -5198,26 +7275,80 @@ return x_60; } } } -lean_object* l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_App_13__getForallBody___main___lambda__1(x_1, x_2); +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__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___private_Lean_Elab_App_13__getForallBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l___private_Lean_Elab_App_13__getForallBody___main(x_1, x_2, x_3); -return x_4; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -5271,7 +7402,7 @@ goto _start; else { lean_object* x_12; -x_12 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_7, x_3); +x_12 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_7, x_3); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -5323,7 +7454,7 @@ goto _start; else { lean_object* x_20; -x_20 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_15, x_3); +x_20 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_15, x_3); if (lean_obj_tag(x_20) == 0) { uint8_t x_21; @@ -5375,7 +7506,7 @@ goto _start; else { lean_object* x_28; -x_28 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_23, x_3); +x_28 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_23, x_3); if (lean_obj_tag(x_28) == 0) { uint8_t x_29; @@ -5420,7 +7551,7 @@ goto block_41; else { lean_object* x_43; -x_43 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_31, x_3); +x_43 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_31, x_3); if (lean_obj_tag(x_43) == 0) { x_34 = x_43; @@ -5465,7 +7596,7 @@ return x_34; else { lean_object* x_38; -x_38 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_32, x_34); +x_38 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_32, x_34); if (lean_obj_tag(x_38) == 0) { uint8_t x_39; @@ -5539,7 +7670,7 @@ return x_3; } } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_2)) { @@ -5593,7 +7724,7 @@ goto _start; else { lean_object* x_12; -x_12 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_7, x_3); +x_12 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_7, x_3); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -5645,7 +7776,7 @@ goto _start; else { lean_object* x_20; -x_20 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_15, x_3); +x_20 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_15, x_3); if (lean_obj_tag(x_20) == 0) { uint8_t x_21; @@ -5697,7 +7828,7 @@ goto _start; else { lean_object* x_28; -x_28 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_23, x_3); +x_28 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_23, x_3); if (lean_obj_tag(x_28) == 0) { uint8_t x_29; @@ -5742,7 +7873,7 @@ goto block_41; else { lean_object* x_43; -x_43 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_31, x_3); +x_43 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_31, x_3); if (lean_obj_tag(x_43) == 0) { x_34 = x_43; @@ -5787,7 +7918,7 @@ return x_34; else { lean_object* x_38; -x_38 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_32, x_34); +x_38 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_32, x_34); if (lean_obj_tag(x_38) == 0) { uint8_t x_39; @@ -5861,7 +7992,7 @@ return x_3; } } } -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___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* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; @@ -6722,278 +8853,202 @@ goto block_23; } } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_App_14__propagateExpectedType___spec__6(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_9, 3); -x_13 = l_Lean_replaceRef(x_1, x_12); -x_14 = l_Lean_Syntax_getPos(x_13); -lean_dec(x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_15 = lean_ctor_get(x_5, 0); -x_16 = lean_ctor_get(x_5, 1); -x_17 = lean_ctor_get(x_5, 2); -x_18 = lean_ctor_get(x_5, 5); -x_19 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_FileMap_toPosition(x_16, x_22); -x_24 = lean_box(0); -lean_inc(x_18); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_11 = lean_ctor_get(x_8, 3); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_6, x_7, x_8, x_9, x_10); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_take(x_9, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 3); lean_inc(x_17); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_18); -x_26 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_20); -x_27 = l_String_splitAux___main___closed__1; -lean_inc(x_15); -x_28 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_28, 0, x_15); -lean_ctor_set(x_28, 1, x_23); -lean_ctor_set(x_28, 2, x_24); -lean_ctor_set(x_28, 3, x_27); -lean_ctor_set(x_28, 4, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*5, x_3); -x_29 = lean_st_ref_take(x_6, x_21); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_16, 3); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_13); +lean_inc(x_11); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_PersistentArray_push___rarg(x_22, x_24); +lean_ctor_set(x_17, 0, x_25); +x_26 = lean_st_ref_set(x_9, x_16, x_18); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +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_3); +lean_ctor_set(x_26, 0, x_30); +return x_26; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_26, 1); lean_inc(x_31); -lean_dec(x_29); -x_32 = !lean_is_exclusive(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = lean_ctor_get(x_30, 2); -x_34 = l_Std_PersistentArray_push___rarg(x_33, x_28); -lean_ctor_set(x_30, 2, x_34); -x_35 = lean_st_ref_set(x_6, x_30, x_31); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_4); -lean_ctor_set(x_35, 0, x_39); -return x_35; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_35, 1); -lean_inc(x_40); -lean_dec(x_35); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_4); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; +lean_dec(x_26); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +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_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -x_46 = lean_ctor_get(x_30, 2); -x_47 = lean_ctor_get(x_30, 3); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_30); -x_48 = l_Std_PersistentArray_push___rarg(x_46, x_28); -x_49 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_49, 0, x_44); -lean_ctor_set(x_49, 1, x_45); -lean_ctor_set(x_49, 2, x_48); -lean_ctor_set(x_49, 3, x_47); -x_50 = lean_st_ref_set(x_6, x_49, x_31); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_52 = x_50; +uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_35 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_36 = lean_ctor_get(x_17, 0); +lean_inc(x_36); +lean_dec(x_17); +x_37 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_13); +lean_inc(x_11); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_11); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Std_PersistentArray_push___rarg(x_36, x_38); +x_40 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_35); +lean_ctor_set(x_16, 3, x_40); +x_41 = lean_st_ref_set(x_9, x_16, x_18); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; } else { - lean_dec_ref(x_50); + lean_dec_ref(x_41); + x_43 = lean_box(0); +} +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_3); +if (lean_is_scalar(x_43)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_43; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 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_47 = lean_ctor_get(x_16, 0); +x_48 = lean_ctor_get(x_16, 1); +x_49 = lean_ctor_get(x_16, 2); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_16); +x_50 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_51 = lean_ctor_get(x_17, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_52 = x_17; +} else { + lean_dec_ref(x_17); x_52 = lean_box(0); } -x_53 = lean_box(0); +x_53 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_13); +lean_inc(x_11); x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_4); +lean_ctor_set(x_54, 0, x_11); +lean_ctor_set(x_54, 1, x_53); +x_55 = l_Std_PersistentArray_push___rarg(x_51, x_54); if (lean_is_scalar(x_52)) { - x_55 = lean_alloc_ctor(0, 2, 0); + x_56 = lean_alloc_ctor(0, 1, 1); } else { - x_55 = x_52; + x_56 = x_52; } -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_51); -return x_55; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_56 = lean_ctor_get(x_14, 0); -lean_inc(x_56); -lean_dec(x_14); -x_57 = lean_ctor_get(x_5, 0); -x_58 = lean_ctor_get(x_5, 1); -x_59 = lean_ctor_get(x_5, 2); -x_60 = lean_ctor_get(x_5, 5); -x_61 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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_FileMap_toPosition(x_58, x_56); -x_65 = lean_box(0); -lean_inc(x_60); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_50); +x_57 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_57, 0, x_47); +lean_ctor_set(x_57, 1, x_48); +lean_ctor_set(x_57, 2, x_49); +lean_ctor_set(x_57, 3, x_56); +x_58 = lean_st_ref_set(x_9, x_57, x_18); +x_59 = lean_ctor_get(x_58, 1); lean_inc(x_59); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_59); -lean_ctor_set(x_66, 1, x_60); -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_62); -x_68 = l_String_splitAux___main___closed__1; -lean_inc(x_57); -x_69 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_69, 0, x_57); -lean_ctor_set(x_69, 1, x_64); -lean_ctor_set(x_69, 2, x_65); -lean_ctor_set(x_69, 3, x_68); -lean_ctor_set(x_69, 4, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*5, x_3); -x_70 = lean_st_ref_take(x_6, x_63); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = !lean_is_exclusive(x_71); -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_71, 2); -x_75 = l_Std_PersistentArray_push___rarg(x_74, x_69); -lean_ctor_set(x_71, 2, x_75); -x_76 = lean_st_ref_set(x_6, x_71, x_72); -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_76, 0); -lean_dec(x_78); -x_79 = lean_box(0); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_4); -lean_ctor_set(x_76, 0, x_80); -return x_76; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_76, 1); -lean_inc(x_81); -lean_dec(x_76); -x_82 = lean_box(0); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_4); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_81); -return x_84; -} -} -else -{ -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; -x_85 = lean_ctor_get(x_71, 0); -x_86 = lean_ctor_get(x_71, 1); -x_87 = lean_ctor_get(x_71, 2); -x_88 = lean_ctor_get(x_71, 3); -lean_inc(x_88); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_71); -x_89 = l_Std_PersistentArray_push___rarg(x_87, x_69); -x_90 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_90, 0, x_85); -lean_ctor_set(x_90, 1, x_86); -lean_ctor_set(x_90, 2, x_89); -lean_ctor_set(x_90, 3, x_88); -x_91 = lean_st_ref_set(x_6, x_90, x_72); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_60 = x_58; } else { - lean_dec_ref(x_91); - x_93 = lean_box(0); + lean_dec_ref(x_58); + x_60 = lean_box(0); } -x_94 = lean_box(0); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_4); -if (lean_is_scalar(x_93)) { - x_96 = lean_alloc_ctor(0, 2, 0); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_3); +if (lean_is_scalar(x_60)) { + x_63 = lean_alloc_ctor(0, 2, 0); } else { - x_96 = x_93; + x_63 = x_60; } -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_92); -return x_96; +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; } } } -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_App_14__propagateExpectedType___spec__5(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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) { _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_App_14__propagateExpectedType___spec__6(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* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_7, 0); +x_11 = l_Lean_checkTraceOption(x_10, x_1); +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +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_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_11 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_2); -x_12 = 0; -x_13 = l_Lean_Elab_log___at___private_Lean_Elab_App_14__propagateExpectedType___spec__5(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_13; -} -} -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -7003,7 +9058,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2() { _start: { lean_object* x_1; @@ -7011,17 +9066,26 @@ x_1 = lean_mk_string("propagateExpectedType"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__1; -x_2 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5() { _start: { lean_object* x_1; @@ -7029,27 +9093,16 @@ x_1 = lean_mk_string("etaArgs.size: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__7() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7() { _start: { lean_object* x_1; @@ -7057,27 +9110,16 @@ x_1 = lean_mk_string(", numRemainingArgs: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__8() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__10() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9() { _start: { lean_object* x_1; @@ -7085,124 +9127,92 @@ x_1 = lean_mk_string(", fType: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__11() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__12() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__11; -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_App_14__propagateExpectedType(lean_object* x_1, lean_object* x_2, 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; uint8_t x_486; +x_486 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +if (x_486 == 0) +{ +lean_object* x_487; lean_object* x_488; uint8_t x_489; uint8_t x_490; +x_487 = lean_ctor_get(x_1, 5); +lean_inc(x_487); +x_488 = lean_ctor_get(x_1, 8); +lean_inc(x_488); +x_489 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); +x_490 = l_Array_isEmpty___rarg(x_487); +lean_dec(x_487); +if (x_490 == 0) +{ +uint8_t x_491; +lean_dec(x_488); +x_491 = 1; +x_9 = x_491; +goto block_485; +} +else +{ +if (x_489 == 0) +{ +uint8_t x_492; +x_492 = l_Array_isEmpty___rarg(x_488); +lean_dec(x_488); +x_9 = x_492; +goto block_485; +} +else +{ +uint8_t x_493; +lean_dec(x_488); +x_493 = 1; +x_9 = x_493; +goto block_485; +} +} +} +else +{ +uint8_t x_494; +x_494 = 1; +x_9 = x_494; +goto block_485; +} +block_485: { -uint8_t x_9; -x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; -x_10 = lean_ctor_get(x_1, 0); -lean_inc(x_10); +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; x_11 = lean_ctor_get(x_1, 1); -lean_inc(x_11); x_12 = lean_ctor_get(x_1, 2); -lean_inc(x_12); x_13 = lean_ctor_get(x_1, 3); -lean_inc(x_13); x_14 = lean_ctor_get(x_1, 4); -lean_inc(x_14); x_15 = lean_ctor_get(x_1, 5); -lean_inc(x_15); -x_16 = lean_ctor_get(x_1, 6); +x_16 = lean_ctor_get(x_1, 8); +x_17 = 1; lean_inc(x_16); -x_17 = lean_ctor_get(x_1, 7); -lean_inc(x_17); -x_18 = lean_ctor_get(x_1, 8); -lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*9 + 1); -x_20 = l_Array_isEmpty___rarg(x_15); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -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_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_1); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_8); -return x_23; -} -else -{ -if (x_19 == 0) -{ -uint8_t x_24; -x_24 = l_Array_isEmpty___rarg(x_18); -if (x_24 == 0) -{ -uint8_t x_25; -x_25 = !lean_is_exclusive(x_1); -if (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; lean_object* x_34; uint8_t x_35; -x_26 = lean_ctor_get(x_1, 8); -lean_dec(x_26); -x_27 = lean_ctor_get(x_1, 7); -lean_dec(x_27); -x_28 = lean_ctor_get(x_1, 6); -lean_dec(x_28); -x_29 = lean_ctor_get(x_1, 5); -lean_dec(x_29); -x_30 = lean_ctor_get(x_1, 4); -lean_dec(x_30); -x_31 = lean_ctor_get(x_1, 3); -lean_dec(x_31); -x_32 = lean_ctor_get(x_1, 2); -lean_dec(x_32); -x_33 = lean_ctor_get(x_1, 1); -lean_dec(x_33); -x_34 = lean_ctor_get(x_1, 0); -lean_dec(x_34); -x_35 = 1; -lean_inc(x_18); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_ctor_set_uint8(x_1, sizeof(void*)*9 + 1, x_35); +lean_ctor_set_uint8(x_1, sizeof(void*)*9 + 1, x_17); if (lean_obj_tag(x_14) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_18); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_16); lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); @@ -7213,1483 +9223,1791 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -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_1); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_8); -return x_38; +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_8); +return x_20; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_214; lean_object* x_215; uint8_t x_216; -x_39 = lean_ctor_get(x_14, 0); -lean_inc(x_39); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_272; lean_object* x_273; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; +x_21 = lean_ctor_get(x_14, 0); +lean_inc(x_21); lean_dec(x_14); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_List_lengthAux___main___rarg(x_12, x_40); +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_List_lengthAux___main___rarg(x_12, x_22); lean_dec(x_12); -x_214 = lean_ctor_get(x_6, 0); -lean_inc(x_214); -x_215 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; -x_216 = l_Lean_checkTraceOption(x_214, x_215); -lean_dec(x_214); -if (x_216 == 0) +x_304 = lean_st_ref_get(x_7, x_8); +x_305 = lean_ctor_get(x_304, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_305, 3); +lean_inc(x_306); +lean_dec(x_305); +x_307 = lean_ctor_get_uint8(x_306, sizeof(void*)*1); +lean_dec(x_306); +if (x_307 == 0) { -lean_object* x_217; lean_object* x_218; -lean_dec(x_15); -x_217 = lean_box(0); -x_218 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_218, 0, x_217); -lean_ctor_set(x_218, 1, x_1); -x_42 = x_218; -x_43 = x_8; -goto block_213; +lean_object* x_308; uint8_t x_309; lean_object* x_310; lean_object* x_311; +x_308 = lean_ctor_get(x_304, 1); +lean_inc(x_308); +lean_dec(x_304); +x_309 = 0; +x_310 = lean_box(x_309); +x_311 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_1); +x_272 = x_311; +x_273 = x_308; +goto block_303; } else { -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; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_219 = lean_array_get_size(x_15); -lean_dec(x_15); -x_220 = l_Nat_repr(x_219); -x_221 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_221, 0, x_220); -x_222 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_222, 0, x_221); -x_223 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__6; -x_224 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -x_225 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__9; -x_226 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -lean_inc(x_41); -x_227 = l_Nat_repr(x_41); -x_228 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_228, 0, x_227); -x_229 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_229, 0, x_228); -x_230 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_230, 0, x_226); -lean_ctor_set(x_230, 1, x_229); -x_231 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__12; -x_232 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_232, 0, x_230); -lean_ctor_set(x_232, 1, x_231); -lean_inc(x_11); -x_233 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_233, 0, x_11); -x_234 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -x_235 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_215, x_234, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_42 = x_236; -x_43 = x_237; -goto block_213; +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_312 = lean_ctor_get(x_304, 1); +lean_inc(x_312); +lean_dec(x_304); +x_313 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_314 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_313, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_312); +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 1); +lean_inc(x_316); +lean_dec(x_314); +x_272 = x_315; +x_273 = x_316; +goto block_303; } -block_213: +block_271: { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_42); -if (x_44 == 0) +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_27 = x_24; +} else { + lean_dec_ref(x_24); + x_27 = lean_box(0); +} +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_23, x_13, x_11); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_42, 1); -x_46 = lean_ctor_get(x_42, 0); -lean_dec(x_46); -x_47 = l___private_Lean_Elab_App_13__getForallBody___main(x_41, x_13, x_11); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_39); -lean_dec(x_18); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_21); +lean_dec(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_48 = lean_box(0); -lean_ctor_set(x_42, 0, x_48); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_42); -lean_ctor_set(x_49, 1, x_43); -return x_49; +x_29 = lean_box(0); +if (lean_is_scalar(x_27)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_27; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_26); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_25); +return x_31; } else { -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_47, 0); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_Lean_Expr_hasLooseBVars(x_50); -if (x_51 == 0) +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_28, 0); +lean_inc(x_32); +lean_dec(x_28); +x_33 = l_Lean_Expr_hasLooseBVars(x_32); +if (x_33 == 0) { -lean_object* x_52; lean_object* x_53; -x_52 = lean_box(0); -x_53 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_18, x_50, x_52); -if (lean_obj_tag(x_53) == 0) +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_box(0); +x_35 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_16, x_32, x_34); +x_36 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_16, x_32, x_34); +lean_dec(x_16); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_54; lean_object* x_55; -lean_dec(x_50); -lean_dec(x_39); -lean_dec(x_18); +uint8_t x_267; +x_267 = 0; +x_37 = x_267; +goto block_266; +} +else +{ +lean_dec(x_35); +x_37 = x_17; +goto block_266; +} +block_266: +{ +uint8_t x_38; +if (lean_obj_tag(x_36) == 0) +{ +x_38 = x_17; +goto block_264; +} +else +{ +uint8_t x_265; +lean_dec(x_36); +x_265 = 0; +x_38 = x_265; +goto block_264; +} +block_264: +{ +uint8_t x_39; +if (x_37 == 0) +{ +uint8_t x_263; +x_263 = 0; +x_39 = x_263; +goto block_262; +} +else +{ +x_39 = x_38; +goto block_262; +} +block_262: +{ +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_32); +lean_dec(x_21); 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_54 = lean_box(0); -lean_ctor_set(x_42, 0, x_54); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_42); -lean_ctor_set(x_55, 1, x_43); -return x_55; +x_40 = lean_box(0); +if (lean_is_scalar(x_27)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_27; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_26); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_25); +return x_42; } else { -lean_object* x_56; -lean_dec(x_53); -x_56 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_18, x_50, x_52); -lean_dec(x_18); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; -lean_free_object(x_42); -x_57 = l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1; +lean_object* x_43; lean_object* x_44; +lean_dec(x_27); +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_50); -x_58 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(x_50, x_57, x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_43); -if (lean_obj_tag(x_58) == 0) +lean_inc(x_32); +x_44 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_32, x_43, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_unbox(x_60); +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_44, 0); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_111; +x_48 = lean_ctor_get(x_44, 1); +x_49 = lean_ctor_get(x_46, 0); +x_50 = lean_ctor_get(x_46, 1); +x_111 = lean_unbox(x_49); +lean_dec(x_49); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; +lean_free_object(x_44); +x_112 = lean_st_ref_get(x_7, x_48); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_113, 3); +lean_inc(x_114); +lean_dec(x_113); +x_115 = lean_ctor_get_uint8(x_114, sizeof(void*)*1); +lean_dec(x_114); +if (x_115 == 0) +{ +lean_object* x_116; uint8_t x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_112, 1); +lean_inc(x_116); +lean_dec(x_112); +x_117 = 0; +x_118 = lean_box(x_117); +lean_ctor_set(x_46, 0, x_118); +x_51 = x_46; +x_52 = x_116; +goto block_110; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_free_object(x_46); +x_119 = lean_ctor_get(x_112, 1); +lean_inc(x_119); +lean_dec(x_112); +x_120 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_121 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_120, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_119); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_51 = x_122; +x_52 = x_123; +goto block_110; +} +} +else +{ +lean_object* x_124; +lean_dec(x_32); +lean_dec(x_21); +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_124 = lean_box(0); +lean_ctor_set(x_46, 0, x_124); +return x_44; +} +block_110: +{ +lean_object* x_53; uint8_t x_54; +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_unbox(x_53); +lean_dec(x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +lean_dec(x_51); +x_56 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_56) == 0) +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_56, 0); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); lean_dec(x_60); -if (x_61 == 0) +x_61 = lean_box(0); +lean_ctor_set(x_58, 0, x_61); +return x_56; +} +else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +lean_object* x_62; lean_object* x_63; lean_object* x_64; x_62 = lean_ctor_get(x_58, 1); lean_inc(x_62); lean_dec(x_58); -x_63 = lean_ctor_get(x_59, 1); -lean_inc(x_63); -lean_dec(x_59); -x_64 = lean_ctor_get(x_6, 0); -lean_inc(x_64); -x_65 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; -x_66 = l_Lean_checkTraceOption(x_64, x_65); -lean_dec(x_64); -if (x_66 == 0) +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); +lean_ctor_set(x_56, 0, x_64); +return x_56; +} +} +else { -lean_object* x_67; -x_67 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_39, x_50, x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_62); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_67) == 0) +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_56, 0); +x_66 = lean_ctor_get(x_56, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_56); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_68 = x_65; +} else { + lean_dec_ref(x_65); + x_68 = lean_box(0); +} +x_69 = lean_box(0); +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_68; +} +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_67); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_66); +return x_71; +} +} +else { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_56); +if (x_72 == 0) { -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_67, 0); -x_70 = !lean_is_exclusive(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_69, 0); -lean_dec(x_71); -x_72 = lean_box(0); -lean_ctor_set(x_69, 0, x_72); -return x_67; +return x_56; } else { lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_69, 1); +x_73 = lean_ctor_get(x_56, 0); +x_74 = lean_ctor_get(x_56, 1); +lean_inc(x_74); lean_inc(x_73); -lean_dec(x_69); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_73); -lean_ctor_set(x_67, 0, x_75); -return x_67; -} -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_76 = lean_ctor_get(x_67, 0); -x_77 = lean_ctor_get(x_67, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_67); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_79 = x_76; -} else { - lean_dec_ref(x_76); - x_79 = lean_box(0); -} -x_80 = lean_box(0); -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_78); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_77); -return x_82; -} -} -else -{ -uint8_t x_83; -x_83 = !lean_is_exclusive(x_67); -if (x_83 == 0) -{ -return x_67; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_67, 0); -x_85 = lean_ctor_get(x_67, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_67); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -else -{ -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_inc(x_39); -x_87 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_87, 0, x_39); -x_88 = l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__3; -x_89 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -lean_inc(x_50); -x_90 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_90, 0, x_50); -x_91 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -x_92 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_65, x_91, x_63, x_2, x_3, x_4, x_5, x_6, x_7, x_62); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_39, x_50, x_95, x_2, x_3, x_4, x_5, x_6, x_7, x_94); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_96) == 0) -{ -uint8_t x_97; -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) -{ -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_96, 0); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_98, 0); -lean_dec(x_100); -x_101 = lean_box(0); -lean_ctor_set(x_98, 0, x_101); -return x_96; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_98, 1); -lean_inc(x_102); -lean_dec(x_98); -x_103 = lean_box(0); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_102); -lean_ctor_set(x_96, 0, x_104); -return x_96; -} -} -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; -x_105 = lean_ctor_get(x_96, 0); -x_106 = lean_ctor_get(x_96, 1); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_96); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_108 = x_105; -} else { - lean_dec_ref(x_105); - x_108 = lean_box(0); -} -x_109 = lean_box(0); -if (lean_is_scalar(x_108)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_108; -} -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_107); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_106); -return x_111; -} -} -else -{ -uint8_t x_112; -x_112 = !lean_is_exclusive(x_96); -if (x_112 == 0) -{ -return x_96; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_96, 0); -x_114 = lean_ctor_get(x_96, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_96); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -} -else -{ -uint8_t x_116; -lean_dec(x_50); -lean_dec(x_39); -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_116 = !lean_is_exclusive(x_58); -if (x_116 == 0) -{ -lean_object* x_117; uint8_t x_118; -x_117 = lean_ctor_get(x_58, 0); -lean_dec(x_117); -x_118 = !lean_is_exclusive(x_59); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_59, 0); -lean_dec(x_119); -x_120 = lean_box(0); -lean_ctor_set(x_59, 0, x_120); -return x_58; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_59, 1); -lean_inc(x_121); -lean_dec(x_59); -x_122 = lean_box(0); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_121); -lean_ctor_set(x_58, 0, x_123); -return x_58; -} -} -else -{ -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_124 = lean_ctor_get(x_58, 1); -lean_inc(x_124); -lean_dec(x_58); -x_125 = lean_ctor_get(x_59, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_126 = x_59; -} else { - lean_dec_ref(x_59); - x_126 = lean_box(0); -} -x_127 = lean_box(0); -if (lean_is_scalar(x_126)) { - x_128 = lean_alloc_ctor(0, 2, 0); -} else { - x_128 = x_126; -} -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_125); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_124); -return x_129; -} -} -} -else -{ -uint8_t x_130; -lean_dec(x_50); -lean_dec(x_39); -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_130 = !lean_is_exclusive(x_58); -if (x_130 == 0) -{ -return x_58; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_58, 0); -x_132 = lean_ctor_get(x_58, 1); -lean_inc(x_132); -lean_inc(x_131); -lean_dec(x_58); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -return x_133; -} -} -} -else -{ -lean_object* x_134; lean_object* x_135; lean_dec(x_56); -lean_dec(x_50); -lean_dec(x_39); -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_134 = lean_box(0); -lean_ctor_set(x_42, 0, x_134); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_42); -lean_ctor_set(x_135, 1, x_43); -return x_135; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -lean_object* x_136; lean_object* x_137; -lean_dec(x_50); -lean_dec(x_39); -lean_dec(x_18); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_76 = lean_ctor_get(x_51, 1); +lean_inc(x_76); +lean_dec(x_51); +lean_inc(x_21); +x_77 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_77, 0, x_21); +x_78 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +x_80 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; +x_81 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +lean_inc(x_32); +x_82 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_82, 0, x_32); +x_83 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_78); +x_85 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_86 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_85, x_84, x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_89, x_2, x_3, x_4, x_5, x_6, x_7, x_88); lean_dec(x_3); lean_dec(x_2); -x_136 = lean_box(0); -lean_ctor_set(x_42, 0, x_136); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_42); -lean_ctor_set(x_137, 1, x_43); -return x_137; +if (lean_obj_tag(x_90) == 0) +{ +uint8_t x_91; +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; uint8_t x_93; +x_92 = lean_ctor_get(x_90, 0); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_92, 0); +lean_dec(x_94); +x_95 = lean_box(0); +lean_ctor_set(x_92, 0, x_95); +return x_90; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +lean_dec(x_92); +x_97 = lean_box(0); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +lean_ctor_set(x_90, 0, x_98); +return x_90; +} +} +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; +x_99 = lean_ctor_get(x_90, 0); +x_100 = lean_ctor_get(x_90, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_90); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_102 = x_99; +} else { + lean_dec_ref(x_99); + x_102 = lean_box(0); +} +x_103 = lean_box(0); +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); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_100); +return x_105; +} +} +else +{ +uint8_t x_106; +x_106 = !lean_is_exclusive(x_90); +if (x_106 == 0) +{ +return x_90; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_90, 0); +x_108 = lean_ctor_get(x_90, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_90); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} } } } else { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_42, 1); -lean_inc(x_138); -lean_dec(x_42); -x_139 = l___private_Lean_Elab_App_13__getForallBody___main(x_41, x_13, x_11); -if (lean_obj_tag(x_139) == 0) +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_174; +x_125 = lean_ctor_get(x_44, 1); +x_126 = lean_ctor_get(x_46, 0); +x_127 = lean_ctor_get(x_46, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_46); +x_174 = lean_unbox(x_126); +lean_dec(x_126); +if (x_174 == 0) { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_39); -lean_dec(x_18); +lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +lean_free_object(x_44); +x_175 = lean_st_ref_get(x_7, x_125); +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_176, 3); +lean_inc(x_177); +lean_dec(x_176); +x_178 = lean_ctor_get_uint8(x_177, sizeof(void*)*1); +lean_dec(x_177); +if (x_178 == 0) +{ +lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; +x_179 = lean_ctor_get(x_175, 1); +lean_inc(x_179); +lean_dec(x_175); +x_180 = 0; +x_181 = lean_box(x_180); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_127); +x_128 = x_182; +x_129 = x_179; +goto block_173; +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_183 = lean_ctor_get(x_175, 1); +lean_inc(x_183); +lean_dec(x_175); +x_184 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_185 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_184, x_127, x_2, x_3, x_4, x_5, x_6, x_7, x_183); +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +lean_dec(x_185); +x_128 = x_186; +x_129 = x_187; +goto block_173; +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_32); +lean_dec(x_21); 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_140 = lean_box(0); -x_141 = lean_alloc_ctor(0, 2, 0); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_127); +lean_ctor_set(x_44, 0, x_189); +return x_44; +} +block_173: +{ +lean_object* x_130; uint8_t x_131; +x_130 = lean_ctor_get(x_128, 0); +lean_inc(x_130); +x_131 = lean_unbox(x_130); +lean_dec(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_128, 1); +lean_inc(x_132); +lean_dec(x_128); +x_133 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_132, x_2, x_3, x_4, x_5, x_6, x_7, x_129); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_136 = x_133; +} else { + lean_dec_ref(x_133); + x_136 = lean_box(0); +} +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_138 = x_134; +} else { + lean_dec_ref(x_134); + x_138 = lean_box(0); +} +x_139 = lean_box(0); +if (lean_is_scalar(x_138)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_138; +} +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_137); +if (lean_is_scalar(x_136)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_136; +} lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_138); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_43); -return x_142; +lean_ctor_set(x_141, 1, x_135); +return x_141; } else { -lean_object* x_143; uint8_t x_144; -x_143 = lean_ctor_get(x_139, 0); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_142 = lean_ctor_get(x_133, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_133, 1); lean_inc(x_143); -lean_dec(x_139); -x_144 = l_Lean_Expr_hasLooseBVars(x_143); -if (x_144 == 0) +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_144 = x_133; +} else { + lean_dec_ref(x_133); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; +} +} +else { -lean_object* x_145; lean_object* x_146; -x_145 = lean_box(0); -x_146 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_18, x_143, x_145); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_143); -lean_dec(x_39); -lean_dec(x_18); -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_147 = lean_box(0); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_138); -x_149 = lean_alloc_ctor(0, 2, 0); +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; +x_146 = lean_ctor_get(x_128, 1); +lean_inc(x_146); +lean_dec(x_128); +lean_inc(x_21); +x_147 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_147, 0, x_21); +x_148 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_149 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_43); -return x_149; -} -else -{ -lean_object* x_150; -lean_dec(x_146); -x_150 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_18, x_143, x_145); -lean_dec(x_18); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; -x_151 = l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_143); -x_152 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(x_143, x_151, x_138, x_2, x_3, x_4, x_5, x_6, x_7, x_43); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_unbox(x_154); -lean_dec(x_154); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_156 = lean_ctor_get(x_152, 1); -lean_inc(x_156); -lean_dec(x_152); -x_157 = lean_ctor_get(x_153, 1); +lean_ctor_set(x_149, 1, x_147); +x_150 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; +x_151 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +lean_inc(x_32); +x_152 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_152, 0, x_32); +x_153 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_148); +x_155 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_156 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_155, x_154, x_146, x_2, x_3, x_4, x_5, x_6, x_7, x_129); +x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); -lean_dec(x_153); -x_158 = lean_ctor_get(x_6, 0); +x_158 = lean_ctor_get(x_156, 1); lean_inc(x_158); -x_159 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; -x_160 = l_Lean_checkTraceOption(x_158, x_159); -lean_dec(x_158); -if (x_160 == 0) -{ -lean_object* x_161; -x_161 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_39, x_143, x_157, x_2, x_3, x_4, x_5, x_6, x_7, x_156); +lean_dec(x_156); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_159, x_2, x_3, x_4, x_5, x_6, x_7, x_158); lean_dec(x_3); lean_dec(x_2); -if (lean_obj_tag(x_161) == 0) +if (lean_obj_tag(x_160) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_162 = lean_ctor_get(x_161, 0); +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; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_163 = x_160; +} else { + lean_dec_ref(x_160); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_161, 1); +lean_inc(x_164); if (lean_is_exclusive(x_161)) { lean_ctor_release(x_161, 0); lean_ctor_release(x_161, 1); - x_164 = x_161; + x_165 = x_161; } else { lean_dec_ref(x_161); - x_164 = lean_box(0); + x_165 = lean_box(0); } -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_166 = x_162; +x_166 = lean_box(0); +if (lean_is_scalar(x_165)) { + x_167 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_162); - x_166 = lean_box(0); + x_167 = x_165; } -x_167 = lean_box(0); -if (lean_is_scalar(x_166)) { +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_164); +if (lean_is_scalar(x_163)) { x_168 = lean_alloc_ctor(0, 2, 0); } else { - x_168 = x_166; + x_168 = x_163; } lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_165); -if (lean_is_scalar(x_164)) { - x_169 = lean_alloc_ctor(0, 2, 0); -} else { - x_169 = x_164; -} -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_163); -return x_169; +lean_ctor_set(x_168, 1, x_162); +return x_168; } else { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_170 = lean_ctor_get(x_161, 0); +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_169 = lean_ctor_get(x_160, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_160, 1); lean_inc(x_170); -x_171 = lean_ctor_get(x_161, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_172 = x_161; +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_171 = x_160; } else { - lean_dec_ref(x_161); - x_172 = lean_box(0); + lean_dec_ref(x_160); + x_171 = lean_box(0); } -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_173 = x_172; + x_172 = x_171; +} +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; +} +} } -lean_ctor_set(x_173, 0, x_170); -lean_ctor_set(x_173, 1, x_171); -return x_173; } } else { -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_inc(x_39); -x_174 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_174, 0, x_39); -x_175 = l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__3; -x_176 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -lean_inc(x_143); -x_177 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_177, 0, x_143); -x_178 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -x_179 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_159, x_178, x_157, x_2, x_3, x_4, x_5, x_6, x_7, x_156); -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_179, 1); -lean_inc(x_181); -lean_dec(x_179); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -lean_dec(x_180); -x_183 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_39, x_143, x_182, x_2, x_3, x_4, x_5, x_6, x_7, x_181); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_183) == 0) -{ -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_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_186 = x_183; -} else { - lean_dec_ref(x_183); - x_186 = lean_box(0); -} -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_188 = x_184; -} else { - lean_dec_ref(x_184); - x_188 = lean_box(0); -} -x_189 = lean_box(0); -if (lean_is_scalar(x_188)) { - x_190 = lean_alloc_ctor(0, 2, 0); -} else { - x_190 = x_188; -} -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_187); -if (lean_is_scalar(x_186)) { - x_191 = lean_alloc_ctor(0, 2, 0); -} else { - x_191 = x_186; -} -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_185); -return x_191; -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_192 = lean_ctor_get(x_183, 0); +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_241; +x_190 = lean_ctor_get(x_44, 0); +x_191 = lean_ctor_get(x_44, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_44); +x_192 = lean_ctor_get(x_190, 0); lean_inc(x_192); -x_193 = lean_ctor_get(x_183, 1); +x_193 = lean_ctor_get(x_190, 1); lean_inc(x_193); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_194 = x_183; +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_194 = x_190; } else { - lean_dec_ref(x_183); + lean_dec_ref(x_190); x_194 = lean_box(0); } +x_241 = lean_unbox(x_192); +lean_dec(x_192); +if (x_241 == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; +x_242 = lean_st_ref_get(x_7, x_191); +x_243 = lean_ctor_get(x_242, 0); +lean_inc(x_243); +x_244 = lean_ctor_get(x_243, 3); +lean_inc(x_244); +lean_dec(x_243); +x_245 = lean_ctor_get_uint8(x_244, sizeof(void*)*1); +lean_dec(x_244); +if (x_245 == 0) +{ +lean_object* x_246; uint8_t x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_242, 1); +lean_inc(x_246); +lean_dec(x_242); +x_247 = 0; +x_248 = lean_box(x_247); if (lean_is_scalar(x_194)) { - x_195 = lean_alloc_ctor(1, 2, 0); + x_249 = lean_alloc_ctor(0, 2, 0); } else { - x_195 = x_194; + x_249 = x_194; } -lean_ctor_set(x_195, 0, x_192); -lean_ctor_set(x_195, 1, x_193); -return x_195; +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_193); +x_195 = x_249; +x_196 = x_246; +goto block_240; } +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_194); +x_250 = lean_ctor_get(x_242, 1); +lean_inc(x_250); +lean_dec(x_242); +x_251 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_252 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_251, x_193, x_2, x_3, x_4, x_5, x_6, x_7, x_250); +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +lean_dec(x_252); +x_195 = x_253; +x_196 = x_254; +goto block_240; } } else { -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_dec(x_143); -lean_dec(x_39); +lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_32); +lean_dec(x_21); 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_196 = lean_ctor_get(x_152, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_197 = x_152; +x_255 = lean_box(0); +if (lean_is_scalar(x_194)) { + x_256 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_152); - x_197 = lean_box(0); + x_256 = x_194; } -x_198 = lean_ctor_get(x_153, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_199 = x_153; -} else { - lean_dec_ref(x_153); - x_199 = lean_box(0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_193); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_191); +return x_257; } -x_200 = lean_box(0); -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_199; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_198); -if (lean_is_scalar(x_197)) { - x_202 = lean_alloc_ctor(0, 2, 0); -} else { - x_202 = x_197; -} -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_196); -return x_202; -} -} -else +block_240: { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_143); -lean_dec(x_39); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_197; uint8_t x_198; +x_197 = lean_ctor_get(x_195, 0); +lean_inc(x_197); +x_198 = lean_unbox(x_197); +lean_dec(x_197); +if (x_198 == 0) +{ +lean_object* x_199; lean_object* x_200; +x_199 = lean_ctor_get(x_195, 1); +lean_inc(x_199); +lean_dec(x_195); +x_200 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_199, x_2, x_3, x_4, x_5, x_6, x_7, x_196); lean_dec(x_3); lean_dec(x_2); -x_203 = lean_ctor_get(x_152, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_152, 1); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_203 = x_200; +} else { + lean_dec_ref(x_200); + x_203 = lean_box(0); +} +x_204 = lean_ctor_get(x_201, 1); lean_inc(x_204); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_205 = x_152; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_205 = x_201; } else { - lean_dec_ref(x_152); + lean_dec_ref(x_201); x_205 = lean_box(0); } +x_206 = lean_box(0); if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); + x_207 = lean_alloc_ctor(0, 2, 0); } else { - x_206 = x_205; + x_207 = x_205; } -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -return x_206; +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_204); +if (lean_is_scalar(x_203)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_203; } -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_150); -lean_dec(x_143); -lean_dec(x_39); -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_207 = lean_box(0); -x_208 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_138); -x_209 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_43); -return x_209; -} -} +lean_ctor_set(x_208, 1, x_202); +return x_208; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_143); -lean_dec(x_39); -lean_dec(x_18); -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_210 = lean_box(0); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_138); -x_212 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_43); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_209 = lean_ctor_get(x_200, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_200, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_211 = x_200; +} else { + lean_dec_ref(x_200); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); return x_212; } } +else +{ +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; +x_213 = lean_ctor_get(x_195, 1); +lean_inc(x_213); +lean_dec(x_195); +lean_inc(x_21); +x_214 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_214, 0, x_21); +x_215 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_216 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_214); +x_217 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; +x_218 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +lean_inc(x_32); +x_219 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_219, 0, x_32); +x_220 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +x_221 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_215); +x_222 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_223 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_222, x_221, x_213, x_2, x_3, x_4, x_5, x_6, x_7, x_196); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +x_227 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_21, x_32, x_226, x_2, x_3, x_4, x_5, x_6, x_7, x_225); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_227) == 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; lean_object* x_235; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_230 = x_227; +} else { + lean_dec_ref(x_227); + x_230 = lean_box(0); +} +x_231 = lean_ctor_get(x_228, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_232 = x_228; +} else { + lean_dec_ref(x_228); + x_232 = lean_box(0); +} +x_233 = lean_box(0); +if (lean_is_scalar(x_232)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_232; +} +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_231); +if (lean_is_scalar(x_230)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_230; +} +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_229); +return x_235; +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_236 = lean_ctor_get(x_227, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_227, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_238 = x_227; +} else { + lean_dec_ref(x_227); + x_238 = lean_box(0); +} +if (lean_is_scalar(x_238)) { + x_239 = lean_alloc_ctor(1, 2, 0); +} else { + x_239 = x_238; +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_237); +return x_239; +} } } } } else { -uint8_t x_238; lean_object* x_239; -lean_dec(x_1); -x_238 = 1; -lean_inc(x_18); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -x_239 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_239, 0, x_10); -lean_ctor_set(x_239, 1, x_11); -lean_ctor_set(x_239, 2, x_12); -lean_ctor_set(x_239, 3, x_13); -lean_ctor_set(x_239, 4, x_14); -lean_ctor_set(x_239, 5, x_15); -lean_ctor_set(x_239, 6, x_16); -lean_ctor_set(x_239, 7, x_17); -lean_ctor_set(x_239, 8, x_18); -lean_ctor_set_uint8(x_239, sizeof(void*)*9, x_9); -lean_ctor_set_uint8(x_239, sizeof(void*)*9 + 1, x_238); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -lean_dec(x_18); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_258; +lean_dec(x_32); +lean_dec(x_21); 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_240 = lean_box(0); -x_241 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -x_242 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_8); -return x_242; +x_258 = !lean_is_exclusive(x_44); +if (x_258 == 0) +{ +return x_44; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_325; lean_object* x_326; uint8_t x_327; -x_243 = lean_ctor_get(x_14, 0); -lean_inc(x_243); -lean_dec(x_14); -x_244 = lean_unsigned_to_nat(0u); -x_245 = l_List_lengthAux___main___rarg(x_12, x_244); -lean_dec(x_12); -x_325 = lean_ctor_get(x_6, 0); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_44, 0); +x_260 = lean_ctor_get(x_44, 1); +lean_inc(x_260); +lean_inc(x_259); +lean_dec(x_44); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; +} +} +} +} +} +} +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_32); +lean_dec(x_21); +lean_dec(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_268 = lean_box(0); +if (lean_is_scalar(x_27)) { + x_269 = lean_alloc_ctor(0, 2, 0); +} else { + x_269 = x_27; +} +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_26); +x_270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_270, 0, x_269); +lean_ctor_set(x_270, 1, x_25); +return x_270; +} +} +} +block_303: +{ +lean_object* x_274; uint8_t x_275; +x_274 = lean_ctor_get(x_272, 0); +lean_inc(x_274); +x_275 = lean_unbox(x_274); +lean_dec(x_274); +if (x_275 == 0) +{ +uint8_t x_276; +lean_dec(x_15); +x_276 = !lean_is_exclusive(x_272); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_272, 0); +lean_dec(x_277); +x_278 = lean_box(0); +lean_ctor_set(x_272, 0, x_278); +x_24 = x_272; +x_25 = x_273; +goto block_271; +} +else +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_279 = lean_ctor_get(x_272, 1); +lean_inc(x_279); +lean_dec(x_272); +x_280 = lean_box(0); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_279); +x_24 = x_281; +x_25 = x_273; +goto block_271; +} +} +else +{ +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; +x_282 = lean_ctor_get(x_272, 1); +lean_inc(x_282); +lean_dec(x_272); +x_283 = lean_array_get_size(x_15); +lean_dec(x_15); +x_284 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_283); +x_285 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_285, 0, x_284); +x_286 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; +x_287 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_287, 0, x_286); +lean_ctor_set(x_287, 1, x_285); +x_288 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; +x_289 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +lean_inc(x_23); +x_290 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_23); +x_291 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_291, 0, x_290); +x_292 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_292, 0, x_289); +lean_ctor_set(x_292, 1, x_291); +x_293 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; +x_294 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +lean_inc(x_11); +x_295 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_295, 0, x_11); +x_296 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_295); +x_297 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_298 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_298, 0, x_296); +lean_ctor_set(x_298, 1, x_297); +x_299 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_300 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_299, x_298, x_282, x_2, x_3, x_4, x_5, x_6, x_7, x_273); +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); +lean_inc(x_302); +lean_dec(x_300); +x_24 = x_301; +x_25 = x_302; +goto block_271; +} +} +} +} +else +{ +uint8_t x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; +x_317 = lean_ctor_get_uint8(x_1, sizeof(void*)*9); +x_318 = lean_ctor_get(x_1, 0); +x_319 = lean_ctor_get(x_1, 1); +x_320 = lean_ctor_get(x_1, 2); +x_321 = lean_ctor_get(x_1, 3); +x_322 = lean_ctor_get(x_1, 4); +x_323 = lean_ctor_get(x_1, 5); +x_324 = lean_ctor_get(x_1, 6); +x_325 = lean_ctor_get(x_1, 7); +x_326 = lean_ctor_get(x_1, 8); +lean_inc(x_326); lean_inc(x_325); -x_326 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; -x_327 = l_Lean_checkTraceOption(x_325, x_326); -lean_dec(x_325); -if (x_327 == 0) +lean_inc(x_324); +lean_inc(x_323); +lean_inc(x_322); +lean_inc(x_321); +lean_inc(x_320); +lean_inc(x_319); +lean_inc(x_318); +lean_dec(x_1); +x_327 = 1; +lean_inc(x_326); +lean_inc(x_323); +lean_inc(x_322); +lean_inc(x_321); +lean_inc(x_320); +lean_inc(x_319); +x_328 = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(x_328, 0, x_318); +lean_ctor_set(x_328, 1, x_319); +lean_ctor_set(x_328, 2, x_320); +lean_ctor_set(x_328, 3, x_321); +lean_ctor_set(x_328, 4, x_322); +lean_ctor_set(x_328, 5, x_323); +lean_ctor_set(x_328, 6, x_324); +lean_ctor_set(x_328, 7, x_325); +lean_ctor_set(x_328, 8, x_326); +lean_ctor_set_uint8(x_328, sizeof(void*)*9, x_317); +lean_ctor_set_uint8(x_328, sizeof(void*)*9 + 1, x_327); +if (lean_obj_tag(x_322) == 0) { -lean_object* x_328; lean_object* x_329; -lean_dec(x_15); -x_328 = lean_box(0); -x_329 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_239); -x_246 = x_329; -x_247 = x_8; -goto block_324; +lean_object* x_329; lean_object* x_330; lean_object* x_331; +lean_dec(x_326); +lean_dec(x_323); +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_319); +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_329 = lean_box(0); +x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_328); +x_331 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_8); +return x_331; +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_439; lean_object* x_440; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; +x_332 = lean_ctor_get(x_322, 0); +lean_inc(x_332); +lean_dec(x_322); +x_333 = lean_unsigned_to_nat(0u); +x_334 = l_List_lengthAux___main___rarg(x_320, x_333); +lean_dec(x_320); +x_469 = lean_st_ref_get(x_7, x_8); +x_470 = lean_ctor_get(x_469, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_470, 3); +lean_inc(x_471); +lean_dec(x_470); +x_472 = lean_ctor_get_uint8(x_471, sizeof(void*)*1); +lean_dec(x_471); +if (x_472 == 0) +{ +lean_object* x_473; uint8_t x_474; lean_object* x_475; lean_object* x_476; +x_473 = lean_ctor_get(x_469, 1); +lean_inc(x_473); +lean_dec(x_469); +x_474 = 0; +x_475 = lean_box(x_474); +x_476 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_476, 0, x_475); +lean_ctor_set(x_476, 1, x_328); +x_439 = x_476; +x_440 = x_473; +goto block_468; +} +else +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_477 = lean_ctor_get(x_469, 1); +lean_inc(x_477); +lean_dec(x_469); +x_478 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_479 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_478, x_328, x_2, x_3, x_4, x_5, x_6, x_7, x_477); +x_480 = lean_ctor_get(x_479, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_479, 1); +lean_inc(x_481); +lean_dec(x_479); +x_439 = x_480; +x_440 = x_481; +goto block_468; +} +block_438: +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); +if (lean_is_exclusive(x_335)) { + lean_ctor_release(x_335, 0); + lean_ctor_release(x_335, 1); + x_338 = x_335; +} else { + lean_dec_ref(x_335); + x_338 = lean_box(0); +} +x_339 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_334, x_321, x_319); +if (lean_obj_tag(x_339) == 0) +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_dec(x_332); +lean_dec(x_326); +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_340 = lean_box(0); +if (lean_is_scalar(x_338)) { + x_341 = lean_alloc_ctor(0, 2, 0); +} else { + x_341 = x_338; +} +lean_ctor_set(x_341, 0, x_340); +lean_ctor_set(x_341, 1, x_337); +x_342 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_342, 0, x_341); +lean_ctor_set(x_342, 1, x_336); +return x_342; +} +else +{ +lean_object* x_343; uint8_t x_344; +x_343 = lean_ctor_get(x_339, 0); +lean_inc(x_343); +lean_dec(x_339); +x_344 = l_Lean_Expr_hasLooseBVars(x_343); +if (x_344 == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; +x_345 = lean_box(0); +x_346 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_326, x_343, x_345); +x_347 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_326, x_343, x_345); +lean_dec(x_326); +if (lean_obj_tag(x_346) == 0) +{ +uint8_t x_434; +x_434 = 0; +x_348 = x_434; +goto block_433; } else { -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; -x_330 = lean_array_get_size(x_15); -lean_dec(x_15); -x_331 = l_Nat_repr(x_330); -x_332 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_332, 0, x_331); -x_333 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_333, 0, x_332); -x_334 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__6; -x_335 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_333); -x_336 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__9; -x_337 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_337, 0, x_335); -lean_ctor_set(x_337, 1, x_336); -lean_inc(x_245); -x_338 = l_Nat_repr(x_245); -x_339 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_339, 0, x_338); -x_340 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_340, 0, x_339); -x_341 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_341, 0, x_337); -lean_ctor_set(x_341, 1, x_340); -x_342 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__12; -x_343 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -lean_inc(x_11); -x_344 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_344, 0, x_11); -x_345 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_345, 0, x_343); -lean_ctor_set(x_345, 1, x_344); -x_346 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_326, x_345, x_239, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_346, 1); -lean_inc(x_348); lean_dec(x_346); -x_246 = x_347; -x_247 = x_348; -goto block_324; +x_348 = x_327; +goto block_433; } -block_324: +block_433: { -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_249 = x_246; -} else { - lean_dec_ref(x_246); - x_249 = lean_box(0); +uint8_t x_349; +if (lean_obj_tag(x_347) == 0) +{ +x_349 = x_327; +goto block_431; } -x_250 = l___private_Lean_Elab_App_13__getForallBody___main(x_245, x_13, x_11); -if (lean_obj_tag(x_250) == 0) +else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_243); -lean_dec(x_18); +uint8_t x_432; +lean_dec(x_347); +x_432 = 0; +x_349 = x_432; +goto block_431; +} +block_431: +{ +uint8_t x_350; +if (x_348 == 0) +{ +uint8_t x_430; +x_430 = 0; +x_350 = x_430; +goto block_429; +} +else +{ +x_350 = x_349; +goto block_429; +} +block_429: +{ +if (x_350 == 0) +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; +lean_dec(x_343); +lean_dec(x_332); 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_251 = lean_box(0); -if (lean_is_scalar(x_249)) { - x_252 = lean_alloc_ctor(0, 2, 0); +x_351 = lean_box(0); +if (lean_is_scalar(x_338)) { + x_352 = lean_alloc_ctor(0, 2, 0); } else { - x_252 = x_249; + x_352 = x_338; } -lean_ctor_set(x_252, 0, x_251); -lean_ctor_set(x_252, 1, x_248); -x_253 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_247); -return x_253; +lean_ctor_set(x_352, 0, x_351); +lean_ctor_set(x_352, 1, x_337); +x_353 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_336); +return x_353; } else { -lean_object* x_254; uint8_t x_255; -x_254 = lean_ctor_get(x_250, 0); -lean_inc(x_254); -lean_dec(x_250); -x_255 = l_Lean_Expr_hasLooseBVars(x_254); -if (x_255 == 0) -{ -lean_object* x_256; lean_object* x_257; -x_256 = lean_box(0); -x_257 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_18, x_254, x_256); -if (lean_obj_tag(x_257) == 0) -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; -lean_dec(x_254); -lean_dec(x_243); -lean_dec(x_18); -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_258 = lean_box(0); -if (lean_is_scalar(x_249)) { - x_259 = lean_alloc_ctor(0, 2, 0); -} else { - x_259 = x_249; -} -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_248); -x_260 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_247); -return x_260; -} -else -{ -lean_object* x_261; -lean_dec(x_257); -x_261 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_18, x_254, x_256); -lean_dec(x_18); -if (lean_obj_tag(x_261) == 0) -{ -lean_object* x_262; lean_object* x_263; -lean_dec(x_249); -x_262 = l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1; +lean_object* x_354; lean_object* x_355; +lean_dec(x_338); +x_354 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_254); -x_263 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg(x_254, x_262, x_248, x_2, x_3, x_4, x_5, x_6, x_7, x_247); -if (lean_obj_tag(x_263) == 0) +lean_inc(x_343); +x_355 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_343, x_354, x_337, x_2, x_3, x_4, x_5, x_6, x_7, x_336); +if (lean_obj_tag(x_355) == 0) { -lean_object* x_264; lean_object* x_265; uint8_t x_266; -x_264 = lean_ctor_get(x_263, 0); -lean_inc(x_264); -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_unbox(x_265); -lean_dec(x_265); -if (x_266 == 0) +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; uint8_t x_408; +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_358 = x_355; +} else { + lean_dec_ref(x_355); + x_358 = lean_box(0); +} +x_359 = lean_ctor_get(x_356, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_356, 1); +lean_inc(x_360); +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + x_361 = x_356; +} else { + lean_dec_ref(x_356); + x_361 = lean_box(0); +} +x_408 = lean_unbox(x_359); +lean_dec(x_359); +if (x_408 == 0) { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; -x_267 = lean_ctor_get(x_263, 1); -lean_inc(x_267); -lean_dec(x_263); -x_268 = lean_ctor_get(x_264, 1); -lean_inc(x_268); -lean_dec(x_264); -x_269 = lean_ctor_get(x_6, 0); -lean_inc(x_269); -x_270 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__3; -x_271 = l_Lean_checkTraceOption(x_269, x_270); -lean_dec(x_269); -if (x_271 == 0) +lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; +lean_dec(x_358); +x_409 = lean_st_ref_get(x_7, x_357); +x_410 = lean_ctor_get(x_409, 0); +lean_inc(x_410); +x_411 = lean_ctor_get(x_410, 3); +lean_inc(x_411); +lean_dec(x_410); +x_412 = lean_ctor_get_uint8(x_411, sizeof(void*)*1); +lean_dec(x_411); +if (x_412 == 0) { -lean_object* x_272; -x_272 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_243, x_254, x_268, x_2, x_3, x_4, x_5, x_6, x_7, x_267); -lean_dec(x_3); -lean_dec(x_2); -if (lean_obj_tag(x_272) == 0) -{ -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_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_275 = x_272; +lean_object* x_413; uint8_t x_414; lean_object* x_415; lean_object* x_416; +x_413 = lean_ctor_get(x_409, 1); +lean_inc(x_413); +lean_dec(x_409); +x_414 = 0; +x_415 = lean_box(x_414); +if (lean_is_scalar(x_361)) { + x_416 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_272); - x_275 = lean_box(0); + x_416 = x_361; } -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_276); -if (lean_is_exclusive(x_273)) { - lean_ctor_release(x_273, 0); - lean_ctor_release(x_273, 1); - x_277 = x_273; -} else { - lean_dec_ref(x_273); - x_277 = lean_box(0); -} -x_278 = lean_box(0); -if (lean_is_scalar(x_277)) { - x_279 = lean_alloc_ctor(0, 2, 0); -} else { - x_279 = x_277; -} -lean_ctor_set(x_279, 0, x_278); -lean_ctor_set(x_279, 1, x_276); -if (lean_is_scalar(x_275)) { - x_280 = lean_alloc_ctor(0, 2, 0); -} else { - x_280 = x_275; -} -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_274); -return x_280; +lean_ctor_set(x_416, 0, x_415); +lean_ctor_set(x_416, 1, x_360); +x_362 = x_416; +x_363 = x_413; +goto block_407; } else { -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_281 = lean_ctor_get(x_272, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_272, 1); -lean_inc(x_282); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_283 = x_272; -} else { - lean_dec_ref(x_272); - x_283 = lean_box(0); -} -if (lean_is_scalar(x_283)) { - x_284 = lean_alloc_ctor(1, 2, 0); -} else { - x_284 = x_283; -} -lean_ctor_set(x_284, 0, x_281); -lean_ctor_set(x_284, 1, x_282); -return x_284; +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +lean_dec(x_361); +x_417 = lean_ctor_get(x_409, 1); +lean_inc(x_417); +lean_dec(x_409); +x_418 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_419 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_418, x_360, x_2, x_3, x_4, x_5, x_6, x_7, x_417); +x_420 = lean_ctor_get(x_419, 0); +lean_inc(x_420); +x_421 = lean_ctor_get(x_419, 1); +lean_inc(x_421); +lean_dec(x_419); +x_362 = x_420; +x_363 = x_421; +goto block_407; } } else { -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_inc(x_243); -x_285 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_285, 0, x_243); -x_286 = l_Lean_Meta_isLevelDefEqAux___main___lambda__1___closed__3; -x_287 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_287, 0, x_285); -lean_ctor_set(x_287, 1, x_286); -lean_inc(x_254); -x_288 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_288, 0, x_254); -x_289 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_289, 0, x_287); -lean_ctor_set(x_289, 1, x_288); -x_290 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_270, x_289, x_268, x_2, x_3, x_4, x_5, x_6, x_7, x_267); -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_290, 1); -lean_inc(x_292); -lean_dec(x_290); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_294 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_243, x_254, x_293, x_2, x_3, x_4, x_5, x_6, x_7, x_292); -lean_dec(x_3); -lean_dec(x_2); -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; lean_object* x_301; lean_object* x_302; -x_295 = lean_ctor_get(x_294, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); -lean_inc(x_296); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_297 = x_294; -} else { - lean_dec_ref(x_294); - x_297 = lean_box(0); -} -x_298 = lean_ctor_get(x_295, 1); -lean_inc(x_298); -if (lean_is_exclusive(x_295)) { - lean_ctor_release(x_295, 0); - lean_ctor_release(x_295, 1); - x_299 = x_295; -} else { - lean_dec_ref(x_295); - x_299 = lean_box(0); -} -x_300 = lean_box(0); -if (lean_is_scalar(x_299)) { - x_301 = lean_alloc_ctor(0, 2, 0); -} else { - x_301 = x_299; -} -lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_298); -if (lean_is_scalar(x_297)) { - x_302 = lean_alloc_ctor(0, 2, 0); -} else { - x_302 = x_297; -} -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_296); -return x_302; -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_303 = lean_ctor_get(x_294, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_294, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_305 = x_294; -} else { - lean_dec_ref(x_294); - x_305 = lean_box(0); -} -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(1, 2, 0); -} else { - x_306 = x_305; -} -lean_ctor_set(x_306, 0, x_303); -lean_ctor_set(x_306, 1, x_304); -return x_306; -} -} -} -else -{ -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_dec(x_254); -lean_dec(x_243); +lean_object* x_422; lean_object* x_423; lean_object* x_424; +lean_dec(x_343); +lean_dec(x_332); 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_307 = lean_ctor_get(x_263, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_263)) { - lean_ctor_release(x_263, 0); - lean_ctor_release(x_263, 1); - x_308 = x_263; +x_422 = lean_box(0); +if (lean_is_scalar(x_361)) { + x_423 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_263); - x_308 = lean_box(0); + x_423 = x_361; } -x_309 = lean_ctor_get(x_264, 1); -lean_inc(x_309); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_310 = x_264; +lean_ctor_set(x_423, 0, x_422); +lean_ctor_set(x_423, 1, x_360); +if (lean_is_scalar(x_358)) { + x_424 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_264); - x_310 = lean_box(0); + x_424 = x_358; } -x_311 = lean_box(0); -if (lean_is_scalar(x_310)) { - x_312 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_424, 0, x_423); +lean_ctor_set(x_424, 1, x_357); +return x_424; +} +block_407: +{ +lean_object* x_364; uint8_t x_365; +x_364 = lean_ctor_get(x_362, 0); +lean_inc(x_364); +x_365 = lean_unbox(x_364); +lean_dec(x_364); +if (x_365 == 0) +{ +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_362, 1); +lean_inc(x_366); +lean_dec(x_362); +x_367 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_332, x_343, x_366, x_2, x_3, x_4, x_5, x_6, x_7, x_363); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_367) == 0) +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_368 = lean_ctor_get(x_367, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_367, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_370 = x_367; } else { - x_312 = x_310; + lean_dec_ref(x_367); + x_370 = lean_box(0); } -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_309); -if (lean_is_scalar(x_308)) { - x_313 = lean_alloc_ctor(0, 2, 0); +x_371 = lean_ctor_get(x_368, 1); +lean_inc(x_371); +if (lean_is_exclusive(x_368)) { + lean_ctor_release(x_368, 0); + lean_ctor_release(x_368, 1); + x_372 = x_368; } else { - x_313 = x_308; + lean_dec_ref(x_368); + x_372 = lean_box(0); } -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_307); -return x_313; +x_373 = lean_box(0); +if (lean_is_scalar(x_372)) { + x_374 = lean_alloc_ctor(0, 2, 0); +} else { + x_374 = x_372; +} +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_371); +if (lean_is_scalar(x_370)) { + x_375 = lean_alloc_ctor(0, 2, 0); +} else { + x_375 = x_370; +} +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_369); +return x_375; +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_376 = lean_ctor_get(x_367, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_367, 1); +lean_inc(x_377); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_378 = x_367; +} else { + lean_dec_ref(x_367); + x_378 = lean_box(0); +} +if (lean_is_scalar(x_378)) { + x_379 = lean_alloc_ctor(1, 2, 0); +} else { + x_379 = x_378; +} +lean_ctor_set(x_379, 0, x_376); +lean_ctor_set(x_379, 1, x_377); +return x_379; } } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -lean_dec(x_254); -lean_dec(x_243); +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; lean_object* x_393; lean_object* x_394; +x_380 = lean_ctor_get(x_362, 1); +lean_inc(x_380); +lean_dec(x_362); +lean_inc(x_332); +x_381 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_381, 0, x_332); +x_382 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_383 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_381); +x_384 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; +x_385 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_385, 0, x_383); +lean_ctor_set(x_385, 1, x_384); +lean_inc(x_343); +x_386 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_386, 0, x_343); +x_387 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +x_388 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_388, 0, x_387); +lean_ctor_set(x_388, 1, x_382); +x_389 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_390 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_389, x_388, x_380, x_2, x_3, x_4, x_5, x_6, x_7, x_363); +x_391 = lean_ctor_get(x_390, 0); +lean_inc(x_391); +x_392 = lean_ctor_get(x_390, 1); +lean_inc(x_392); +lean_dec(x_390); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +x_394 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_332, x_343, x_393, x_2, x_3, x_4, x_5, x_6, x_7, x_392); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(x_394) == 0) +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_395 = lean_ctor_get(x_394, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_394, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_397 = x_394; +} else { + lean_dec_ref(x_394); + x_397 = lean_box(0); +} +x_398 = lean_ctor_get(x_395, 1); +lean_inc(x_398); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_399 = x_395; +} else { + lean_dec_ref(x_395); + x_399 = lean_box(0); +} +x_400 = lean_box(0); +if (lean_is_scalar(x_399)) { + x_401 = lean_alloc_ctor(0, 2, 0); +} else { + x_401 = x_399; +} +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_398); +if (lean_is_scalar(x_397)) { + x_402 = lean_alloc_ctor(0, 2, 0); +} else { + x_402 = x_397; +} +lean_ctor_set(x_402, 0, x_401); +lean_ctor_set(x_402, 1, x_396); +return x_402; +} +else +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_403 = lean_ctor_get(x_394, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_394, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_394)) { + lean_ctor_release(x_394, 0); + lean_ctor_release(x_394, 1); + x_405 = x_394; +} else { + lean_dec_ref(x_394); + x_405 = lean_box(0); +} +if (lean_is_scalar(x_405)) { + x_406 = lean_alloc_ctor(1, 2, 0); +} else { + x_406 = x_405; +} +lean_ctor_set(x_406, 0, x_403); +lean_ctor_set(x_406, 1, x_404); +return x_406; +} +} +} +} +else +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; +lean_dec(x_343); +lean_dec(x_332); 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_314 = lean_ctor_get(x_263, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_263, 1); -lean_inc(x_315); -if (lean_is_exclusive(x_263)) { - lean_ctor_release(x_263, 0); - lean_ctor_release(x_263, 1); - x_316 = x_263; +x_425 = lean_ctor_get(x_355, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_355, 1); +lean_inc(x_426); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_427 = x_355; } else { - lean_dec_ref(x_263); - x_316 = lean_box(0); + lean_dec_ref(x_355); + x_427 = lean_box(0); } -if (lean_is_scalar(x_316)) { - x_317 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_427)) { + x_428 = lean_alloc_ctor(1, 2, 0); } else { - x_317 = x_316; + x_428 = x_427; } -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_dec(x_261); -lean_dec(x_254); -lean_dec(x_243); -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_318 = lean_box(0); -if (lean_is_scalar(x_249)) { - x_319 = lean_alloc_ctor(0, 2, 0); -} else { - x_319 = x_249; -} -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_248); -x_320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_247); -return x_320; -} -} -} -else -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_dec(x_254); -lean_dec(x_243); -lean_dec(x_18); -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_321 = lean_box(0); -if (lean_is_scalar(x_249)) { - x_322 = lean_alloc_ctor(0, 2, 0); -} else { - x_322 = x_249; -} -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_248); -x_323 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_247); -return x_323; +lean_ctor_set(x_428, 0, x_425); +lean_ctor_set(x_428, 1, x_426); +return x_428; } } } @@ -8698,149 +11016,175 @@ return x_323; } else { -lean_object* x_349; lean_object* x_350; lean_object* x_351; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); +lean_object* x_435; lean_object* x_436; lean_object* x_437; +lean_dec(x_343); +lean_dec(x_332); +lean_dec(x_326); 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_349 = lean_box(0); -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_1); -x_351 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_8); -return x_351; +x_435 = lean_box(0); +if (lean_is_scalar(x_338)) { + x_436 = lean_alloc_ctor(0, 2, 0); +} else { + x_436 = x_338; } +lean_ctor_set(x_436, 0, x_435); +lean_ctor_set(x_436, 1, x_337); +x_437 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_437, 0, x_436); +lean_ctor_set(x_437, 1, x_336); +return x_437; +} +} +} +block_468: +{ +lean_object* x_441; uint8_t x_442; +x_441 = lean_ctor_get(x_439, 0); +lean_inc(x_441); +x_442 = lean_unbox(x_441); +lean_dec(x_441); +if (x_442 == 0) +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +lean_dec(x_323); +x_443 = lean_ctor_get(x_439, 1); +lean_inc(x_443); +if (lean_is_exclusive(x_439)) { + lean_ctor_release(x_439, 0); + lean_ctor_release(x_439, 1); + x_444 = x_439; +} else { + lean_dec_ref(x_439); + x_444 = lean_box(0); +} +x_445 = lean_box(0); +if (lean_is_scalar(x_444)) { + x_446 = lean_alloc_ctor(0, 2, 0); +} else { + x_446 = x_444; +} +lean_ctor_set(x_446, 0, x_445); +lean_ctor_set(x_446, 1, x_443); +x_335 = x_446; +x_336 = x_440; +goto block_438; } else { -lean_object* x_352; lean_object* x_353; lean_object* x_354; -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -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_352 = lean_box(0); -x_353 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_1); -x_354 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_354, 0, x_353); -lean_ctor_set(x_354, 1, x_8); -return x_354; +lean_object* x_447; 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; +x_447 = lean_ctor_get(x_439, 1); +lean_inc(x_447); +lean_dec(x_439); +x_448 = lean_array_get_size(x_323); +lean_dec(x_323); +x_449 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_448); +x_450 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_450, 0, x_449); +x_451 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; +x_452 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_452, 0, x_451); +lean_ctor_set(x_452, 1, x_450); +x_453 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; +x_454 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_454, 0, x_452); +lean_ctor_set(x_454, 1, x_453); +lean_inc(x_334); +x_455 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_334); +x_456 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_456, 0, x_455); +x_457 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_457, 0, x_454); +lean_ctor_set(x_457, 1, x_456); +x_458 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; +x_459 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_459, 0, x_457); +lean_ctor_set(x_459, 1, x_458); +lean_inc(x_319); +x_460 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_460, 0, x_319); +x_461 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_461, 0, x_459); +lean_ctor_set(x_461, 1, x_460); +x_462 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_463 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_463, 0, x_461); +lean_ctor_set(x_463, 1, x_462); +x_464 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_465 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_464, x_463, x_447, x_2, x_3, x_4, x_5, x_6, x_7, x_440); +x_466 = lean_ctor_get(x_465, 0); +lean_inc(x_466); +x_467 = lean_ctor_get(x_465, 1); +lean_inc(x_467); +lean_dec(x_465); +x_335 = x_466; +x_336 = x_467; +goto block_438; +} +} } } } else { -lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_object* x_482; lean_object* x_483; lean_object* x_484; 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_355 = lean_box(0); -x_356 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_356, 0, x_355); -lean_ctor_set(x_356, 1, x_1); -x_357 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_357, 0, x_356); -lean_ctor_set(x_357, 1, x_8); -return x_357; +x_482 = lean_box(0); +x_483 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_483, 0, x_482); +lean_ctor_set(x_483, 1, x_1); +x_484 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_484, 0, x_483); +lean_ctor_set(x_484, 1, x_8); +return x_484; } } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_14__propagateExpectedType___spec__2(x_1, x_2, x_3); +x_4 = l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___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* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(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_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_5); lean_dec(x_4); return x_11; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_App_14__propagateExpectedType___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -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_App_14__propagateExpectedType___spec__6(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_1); -return x_13; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_App_14__propagateExpectedType___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -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_App_14__propagateExpectedType___spec__5(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); -return x_12; -} -} -lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___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_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___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_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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); @@ -8850,7 +11194,21 @@ lean_dec(x_4); return x_11; } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___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) { +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(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_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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; @@ -8858,11 +11216,11 @@ x_11 = lean_apply_9(x_1, x_5, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg___lambda__1), 10, 4); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1), 10, 4); lean_closure_set(x_13, 0, x_4); lean_closure_set(x_13, 1, x_5); lean_closure_set(x_13, 2, x_6); @@ -8953,15 +11311,15 @@ return x_31; } } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1(lean_object* x_1) { +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg___boxed), 12, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed), 12, 0); return x_2; } } -lean_object* l___private_Lean_Elab_App_15__addEtaArg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -8973,7 +11331,7 @@ x_12 = lean_ctor_get(x_3, 5); lean_inc(x_2); x_13 = lean_array_push(x_12, x_2); lean_ctor_set(x_3, 5, x_13); -x_14 = l___private_Lean_Elab_App_9__addNewArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_2, x_3, x_4, x_5, 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); @@ -9024,7 +11382,7 @@ lean_ctor_set(x_32, 7, x_28); lean_ctor_set(x_32, 8, x_29); lean_ctor_set_uint8(x_32, sizeof(void*)*9, x_20); lean_ctor_set_uint8(x_32, sizeof(void*)*9 + 1, x_30); -x_33 = l___private_Lean_Elab_App_9__addNewArg(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_2, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -9039,11 +11397,11 @@ return x_38; } } } -lean_object* l___private_Lean_Elab_App_15__addEtaArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_21; lean_object* x_22; -x_10 = l___private_Lean_Elab_App_6__getBindingName(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -9054,7 +11412,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_dec(x_11); -x_15 = l___private_Lean_Elab_App_7__getArgExpectedType(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_14, 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); @@ -9065,65 +11423,94 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); lean_dec(x_16); -x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_15__addEtaArg___lambda__1), 10, 1); +x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1), 10, 1); lean_closure_set(x_20, 0, x_1); x_21 = 0; -x_22 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg(x_13, x_21, x_18, x_20, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +x_22 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(x_13, x_21, x_18, x_20, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17); return x_22; } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___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, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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, 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_Meta_withLocalDecl___at___private_Lean_Elab_App_15__addEtaArg___spec__1___rarg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(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* l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_13; uint8_t x_14; -x_13 = lean_array_get_size(x_3); -x_14 = lean_nat_dec_lt(x_4, x_13); -lean_dec(x_13); -if (x_14 == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_4); +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = x_5 < x_4; +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_dec(x_2); lean_dec(x_1); -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_5); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_7); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_12); +lean_ctor_set(x_17, 1, x_14); 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); +lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +lean_dec(x_6); +x_18 = lean_array_uget(x_3, x_5); lean_inc(x_1); lean_inc(x_2); -x_19 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_18, x_2, x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_19 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_18, x_2, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_4, x_21); -lean_dec(x_4); -x_4 = x_22; -x_12 = x_20; +x_21 = 1; +x_22 = x_5 + x_21; +x_23 = lean_box(0); +x_5 = x_22; +x_6 = x_23; +x_14 = x_20; goto _start; } } } -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -9451,7 +11838,7 @@ return x_104; } } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1() { _start: { lean_object* x_1; @@ -9459,17 +11846,17 @@ x_1 = lean_mk_string("finalize"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__1; -x_2 = l___private_Lean_Elab_App_16__finalize___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3() { _start: { lean_object* x_1; @@ -9477,99 +11864,146 @@ x_1 = lean_mk_string("expected type: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_16__finalize___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_16__finalize___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__6() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("after etaArgs: "); +x_1 = lean_mk_string("after etaArgs, "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__7() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_16__finalize___closed__6; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_16__finalize___closed__8() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_16__finalize___closed__7; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_16__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* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_551; lean_object* x_552; uint8_t x_553; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_520; lean_object* x_521; lean_object* x_522; uint8_t x_523; x_9 = lean_ctor_get(x_1, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); -x_551 = lean_ctor_get(x_6, 0); -lean_inc(x_551); -x_552 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_553 = l_Lean_checkTraceOption(x_551, x_552); -lean_dec(x_551); -if (x_553 == 0) +x_520 = lean_st_ref_get(x_7, x_8); +x_521 = lean_ctor_get(x_520, 0); +lean_inc(x_521); +x_522 = lean_ctor_get(x_521, 3); +lean_inc(x_522); +lean_dec(x_521); +x_523 = lean_ctor_get_uint8(x_522, sizeof(void*)*1); +lean_dec(x_522); +if (x_523 == 0) { -lean_object* x_554; lean_object* x_555; -x_554 = lean_box(0); +lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_524 = lean_ctor_get(x_520, 1); +lean_inc(x_524); +lean_dec(x_520); +x_525 = lean_box(0); lean_inc(x_1); -x_555 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_555, 0, x_554); -lean_ctor_set(x_555, 1, x_1); -x_11 = x_555; -x_12 = x_8; -goto block_550; +x_526 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_526, 0, x_525); +lean_ctor_set(x_526, 1, x_1); +x_11 = x_526; +x_12 = x_524; +goto block_519; } else { -lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -lean_inc(x_9); -x_556 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_556, 0, x_9); +lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; uint8_t x_532; +x_527 = lean_ctor_get(x_520, 1); +lean_inc(x_527); +lean_dec(x_520); +x_528 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; lean_inc(x_1); -x_557 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_552, x_556, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_558 = lean_ctor_get(x_557, 0); -lean_inc(x_558); -x_559 = lean_ctor_get(x_557, 1); -lean_inc(x_559); -lean_dec(x_557); -x_11 = x_558; -x_12 = x_559; -goto block_550; -} -block_550: +x_529 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_528, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_527); +x_530 = lean_ctor_get(x_529, 0); +lean_inc(x_530); +x_531 = lean_ctor_get(x_530, 0); +lean_inc(x_531); +x_532 = lean_unbox(x_531); +lean_dec(x_531); +if (x_532 == 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; uint8_t x_20; +lean_object* x_533; uint8_t x_534; +x_533 = lean_ctor_get(x_529, 1); +lean_inc(x_533); +lean_dec(x_529); +x_534 = !lean_is_exclusive(x_530); +if (x_534 == 0) +{ +lean_object* x_535; lean_object* x_536; +x_535 = lean_ctor_get(x_530, 0); +lean_dec(x_535); +x_536 = lean_box(0); +lean_ctor_set(x_530, 0, x_536); +x_11 = x_530; +x_12 = x_533; +goto block_519; +} +else +{ +lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_537 = lean_ctor_get(x_530, 1); +lean_inc(x_537); +lean_dec(x_530); +x_538 = lean_box(0); +x_539 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_539, 0, x_538); +lean_ctor_set(x_539, 1, x_537); +x_11 = x_539; +x_12 = x_533; +goto block_519; +} +} +else +{ +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; +x_540 = lean_ctor_get(x_529, 1); +lean_inc(x_540); +lean_dec(x_529); +x_541 = lean_ctor_get(x_530, 1); +lean_inc(x_541); +lean_dec(x_530); +lean_inc(x_9); +x_542 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_542, 0, x_9); +x_543 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_528, x_542, x_541, x_2, x_3, x_4, x_5, x_6, x_7, x_540); +x_544 = lean_ctor_get(x_543, 0); +lean_inc(x_544); +x_545 = lean_ctor_get(x_543, 1); +lean_inc(x_545); +lean_dec(x_543); +x_11 = x_544; +x_12 = x_545; +goto block_519; +} +} +block_519: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t 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; uint8_t x_26; uint8_t x_516; x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); @@ -9577,2419 +12011,1999 @@ x_14 = lean_ctor_get(x_6, 3); lean_inc(x_14); x_15 = lean_ctor_get(x_1, 6); lean_inc(x_15); -x_16 = lean_unsigned_to_nat(0u); +x_16 = lean_array_get_size(x_15); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = lean_box(0); lean_inc(x_9); -x_17 = l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___spec__1(x_9, x_14, x_15, x_16, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_9, x_14, x_15, x_17, x_18, x_19, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); lean_dec(x_15); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_18, 1); -x_22 = lean_ctor_get(x_18, 0); -lean_dec(x_22); -x_23 = lean_ctor_get(x_1, 5); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = l_Array_isEmpty___rarg(x_23); -if (x_24 == 0) +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_24 = x_21; +} else { + lean_dec_ref(x_21); + x_24 = lean_box(0); +} +x_25 = lean_ctor_get(x_1, 5); +lean_inc(x_25); +x_516 = l_Array_isEmpty___rarg(x_25); +if (x_516 == 0) { -lean_object* x_25; -lean_free_object(x_18); -lean_dec(x_10); -lean_inc(x_4); -x_25 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2(x_23, x_9, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -if (lean_obj_tag(x_25) == 0) +uint8_t x_517; +x_517 = 1; +x_26 = x_517; +goto block_515; +} +else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); +uint8_t x_518; +x_518 = 0; +x_26 = x_518; +goto block_515; +} +block_515: +{ +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_170; lean_object* x_171; lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_26, 1); +x_193 = lean_st_ref_get(x_7, x_22); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +lean_dec(x_194); +x_196 = lean_ctor_get_uint8(x_195, sizeof(void*)*1); +lean_dec(x_195); +if (x_196 == 0) +{ +lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; +x_197 = lean_ctor_get(x_193, 1); +lean_inc(x_197); +lean_dec(x_193); +x_198 = 0; +x_199 = lean_box(x_198); +if (lean_is_scalar(x_24)) { + x_200 = lean_alloc_ctor(0, 2, 0); +} else { + x_200 = x_24; +} +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_23); +x_170 = x_200; +x_171 = x_197; +goto block_192; +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_24); +x_201 = lean_ctor_get(x_193, 1); +lean_inc(x_201); +lean_dec(x_193); +x_202 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_203 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_202, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_201); +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_170 = x_204; +x_171 = x_205; +goto block_192; +} +block_169: +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_1, 4); lean_inc(x_29); -lean_dec(x_26); +lean_dec(x_1); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_10); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_31, 0); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set(x_33, 0, x_9); +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_9); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_31, 0, x_37); +return x_31; +} +} +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; +x_38 = lean_ctor_get(x_31, 0); +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_31); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; +} else { + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_9); +lean_ctor_set(x_42, 1, x_40); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_39); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_9); +x_44 = !lean_is_exclusive(x_31); +if (x_44 == 0) +{ +return x_31; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_31, 0); +x_46 = lean_ctor_get(x_31, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_31); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_27); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_81; lean_object* x_82; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_49 = lean_ctor_get(x_27, 1); +x_50 = lean_ctor_get(x_27, 0); +lean_dec(x_50); +x_51 = lean_ctor_get(x_29, 0); +lean_inc(x_51); +lean_dec(x_29); +x_100 = lean_st_ref_get(x_7, x_28); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_101, 3); +lean_inc(x_102); +lean_dec(x_101); +x_103 = lean_ctor_get_uint8(x_102, sizeof(void*)*1); +lean_dec(x_102); +if (x_103 == 0) +{ +lean_object* x_104; uint8_t x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_100, 1); +lean_inc(x_104); +lean_dec(x_100); +x_105 = 0; +x_106 = lean_box(x_105); +lean_ctor_set(x_27, 0, x_106); +x_81 = x_27; +x_82 = x_104; +goto block_99; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_free_object(x_27); +x_107 = lean_ctor_get(x_100, 1); +lean_inc(x_107); +lean_dec(x_100); +x_108 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_109 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_108, x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_107); +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_81 = x_110; +x_82 = x_111; +goto block_99; +} +block_80: +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_28); -x_30 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_28, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_27); -if (lean_obj_tag(x_30) == 0) +x_55 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_51, x_10, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_53); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 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 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_57); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_155; lean_object* x_156; uint8_t x_157; -x_34 = lean_ctor_get(x_31, 0); -x_35 = lean_ctor_get(x_31, 1); -x_155 = lean_ctor_get(x_6, 0); -lean_inc(x_155); -x_156 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_157 = l_Lean_checkTraceOption(x_155, x_156); -lean_dec(x_155); -if (x_157 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_158; -x_158 = lean_box(0); -lean_ctor_set(x_31, 0, x_158); -x_36 = x_31; -x_37 = x_32; -goto block_154; +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_59, 0); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set(x_61, 0, x_9); +return x_59; } else { -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_free_object(x_31); -lean_inc(x_28); -x_159 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_159, 0, x_28); -x_160 = l___private_Lean_Elab_App_16__finalize___closed__8; -x_161 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -x_162 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_163 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -lean_inc(x_34); -x_164 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_164, 0, x_34); -x_165 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -x_166 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_156, x_165, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_32); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_9); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_59, 0, x_65); +return x_59; +} +} +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; +x_66 = lean_ctor_get(x_59, 0); +x_67 = lean_ctor_get(x_59, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_59); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_69 = x_66; +} else { + lean_dec_ref(x_66); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_9); +lean_ctor_set(x_70, 1, x_68); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_67); +return x_71; +} +} +else +{ +uint8_t x_72; +lean_dec(x_9); +x_72 = !lean_is_exclusive(x_59); +if (x_72 == 0) +{ +return x_59; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_59, 0); +x_74 = lean_ctor_get(x_59, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_59); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_76 = !lean_is_exclusive(x_55); +if (x_76 == 0) +{ +return x_55; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_55, 0); +x_78 = lean_ctor_get(x_55, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_55); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +block_99: +{ +lean_object* x_83; uint8_t x_84; +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +x_84 = lean_unbox(x_83); +lean_dec(x_83); +if (x_84 == 0) +{ +uint8_t x_85; +x_85 = !lean_is_exclusive(x_81); +if (x_85 == 0) +{ +lean_object* x_86; +x_86 = lean_ctor_get(x_81, 0); +lean_dec(x_86); +lean_ctor_set(x_81, 0, x_19); +x_52 = x_81; +x_53 = x_82; +goto block_80; +} +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_81, 1); +lean_inc(x_87); +lean_dec(x_81); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_19); +lean_ctor_set(x_88, 1, x_87); +x_52 = x_88; +x_53 = x_82; +goto block_80; +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_89 = lean_ctor_get(x_81, 1); +lean_inc(x_89); +lean_dec(x_81); +lean_inc(x_51); +x_90 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_90, 0, x_51); +x_91 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +x_92 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_94 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_96 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_95, x_94, x_89, x_2, x_3, x_4, x_5, x_6, x_7, x_82); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_52 = x_97; +x_53 = x_98; +goto block_80; +} +} +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_138; lean_object* x_139; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_112 = lean_ctor_get(x_27, 1); +lean_inc(x_112); +lean_dec(x_27); +x_113 = lean_ctor_get(x_29, 0); +lean_inc(x_113); +lean_dec(x_29); +x_156 = lean_st_ref_get(x_7, x_28); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_157, 3); +lean_inc(x_158); +lean_dec(x_157); +x_159 = lean_ctor_get_uint8(x_158, sizeof(void*)*1); +lean_dec(x_158); +if (x_159 == 0) +{ +lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; +x_160 = lean_ctor_get(x_156, 1); +lean_inc(x_160); +lean_dec(x_156); +x_161 = 0; +x_162 = lean_box(x_161); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_112); +x_138 = x_163; +x_139 = x_160; +goto block_155; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_164 = lean_ctor_get(x_156, 1); +lean_inc(x_164); +lean_dec(x_156); +x_165 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_166 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_165, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_164); x_167 = lean_ctor_get(x_166, 0); lean_inc(x_167); x_168 = lean_ctor_get(x_166, 1); lean_inc(x_168); lean_dec(x_166); -x_36 = x_167; -x_37 = x_168; -goto block_154; +x_138 = x_167; +x_139 = x_168; +goto block_155; } -block_154: +block_137: { -uint8_t x_38; -x_38 = !lean_is_exclusive(x_36); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_62; -x_39 = lean_ctor_get(x_36, 1); -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -x_62 = lean_ctor_get(x_1, 4); -lean_inc(x_62); -lean_dec(x_1); -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_63; -lean_dec(x_34); -x_63 = lean_box(0); -lean_ctor_set(x_36, 0, x_63); -x_41 = x_36; -x_42 = x_37; -goto block_61; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -lean_free_object(x_36); -x_64 = lean_ctor_get(x_62, 0); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_ctor_get(x_6, 0); -lean_inc(x_65); -x_66 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_67 = l_Lean_checkTraceOption(x_65, x_66); -lean_dec(x_65); -if (x_67 == 0) -{ -lean_object* x_68; +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_68 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_64, x_34, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -if (lean_obj_tag(x_68) == 0) +x_117 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_113, x_10, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_115); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = !lean_is_exclusive(x_69); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_69, 0); -lean_dec(x_72); -x_73 = lean_box(0); -lean_ctor_set(x_69, 0, x_73); -x_41 = x_69; -x_42 = x_70; -goto block_61; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_69, 1); -lean_inc(x_74); -lean_dec(x_69); -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -x_41 = x_76; -x_42 = x_70; -goto block_61; -} -} -else -{ -uint8_t x_77; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_77 = !lean_is_exclusive(x_68); -if (x_77 == 0) -{ -return x_68; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_68, 0); -x_79 = lean_ctor_get(x_68, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_68); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -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_inc(x_64); -x_81 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_81, 0, x_64); -x_82 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_66, x_83, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_88 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_64, x_34, x_87, x_2, x_3, x_4, x_5, x_6, x_7, x_86); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_91 = !lean_is_exclusive(x_89); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_89, 0); -lean_dec(x_92); -x_93 = lean_box(0); -lean_ctor_set(x_89, 0, x_93); -x_41 = x_89; -x_42 = x_90; -goto block_61; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_89, 1); -lean_inc(x_94); -lean_dec(x_89); -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -x_41 = x_96; -x_42 = x_90; -goto block_61; -} -} -else -{ -uint8_t x_97; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_97 = !lean_is_exclusive(x_88); -if (x_97 == 0) -{ -return x_88; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_88, 0); -x_99 = lean_ctor_get(x_88, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_88); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -} -block_61: -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_42); -if (lean_obj_tag(x_44) == 0) -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_44, 0); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_46, 0); -lean_dec(x_48); -lean_ctor_set(x_46, 0, x_28); -return x_44; -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_28); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_44, 0, x_50); -return x_44; -} -} -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); -x_52 = lean_ctor_get(x_44, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_44); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_54 = x_51; -} else { - lean_dec_ref(x_51); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_28); -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_52); -return x_56; -} -} -else -{ -uint8_t x_57; -lean_dec(x_28); -x_57 = !lean_is_exclusive(x_44); -if (x_57 == 0) -{ -return x_44; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_44, 0); -x_59 = lean_ctor_get(x_44, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_44); -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 -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_118; -x_101 = lean_ctor_get(x_36, 1); -lean_inc(x_101); -lean_dec(x_36); -x_118 = lean_ctor_get(x_1, 4); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_1); -if (lean_obj_tag(x_118) == 0) -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_34); -x_119 = lean_box(0); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_101); -x_102 = x_120; -x_103 = x_37; -goto block_117; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_121 = lean_ctor_get(x_118, 0); -lean_inc(x_121); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); lean_dec(x_118); -x_122 = lean_ctor_get(x_6, 0); +x_121 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_120, x_2, x_3, x_4, x_5, x_6, x_7, x_119); +if (lean_obj_tag(x_121) == 0) +{ +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; +x_122 = lean_ctor_get(x_121, 0); lean_inc(x_122); -x_123 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_124 = l_Lean_checkTraceOption(x_122, x_123); -lean_dec(x_122); -if (x_124 == 0) -{ -lean_object* x_125; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_125 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_121, x_34, x_101, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_129 = x_126; +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_124 = x_121; } else { - lean_dec_ref(x_126); - x_129 = lean_box(0); + lean_dec_ref(x_121); + x_124 = lean_box(0); } -x_130 = lean_box(0); -if (lean_is_scalar(x_129)) { - x_131 = lean_alloc_ctor(0, 2, 0); +x_125 = lean_ctor_get(x_122, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_126 = x_122; } else { - x_131 = x_129; + lean_dec_ref(x_122); + x_126 = lean_box(0); } -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_128); -x_102 = x_131; -x_103 = x_127; -goto block_117; +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_9); +lean_ctor_set(x_127, 1, x_125); +if (lean_is_scalar(x_124)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_124; +} +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_123); +return x_128; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_28); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_9); +x_129 = lean_ctor_get(x_121, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_121, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_131 = x_121; +} else { + lean_dec_ref(x_121); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_132 = lean_ctor_get(x_125, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_125, 1); +x_133 = lean_ctor_get(x_117, 0); lean_inc(x_133); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_134 = x_125; +x_134 = lean_ctor_get(x_117, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_135 = x_117; } else { - lean_dec_ref(x_125); - x_134 = lean_box(0); + lean_dec_ref(x_117); + x_135 = lean_box(0); } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_135 = x_134; + x_136 = x_135; } -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; } } -else +block_155: { -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_inc(x_121); -x_136 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_136, 0, x_121); -x_137 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_138 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_136); -x_139 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_123, x_138, x_101, x_2, x_3, x_4, x_5, x_6, x_7, x_37); -x_140 = lean_ctor_get(x_139, 0); +lean_object* x_140; uint8_t x_141; +x_140 = lean_ctor_get(x_138, 0); lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); +x_141 = lean_unbox(x_140); lean_dec(x_140); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_143 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_121, x_34, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_141); -if (lean_obj_tag(x_143) == 0) +if (x_141 == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_138, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_143 = x_138; +} else { + lean_dec_ref(x_138); + x_143 = lean_box(0); +} +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(0, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_19); +lean_ctor_set(x_144, 1, x_142); +x_114 = x_144; +x_115 = x_139; +goto block_137; +} +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; lean_object* x_154; +x_145 = lean_ctor_get(x_138, 1); lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; -} else { - lean_dec_ref(x_144); - x_147 = lean_box(0); -} -x_148 = lean_box(0); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_147; -} -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -x_102 = x_149; -x_103 = x_145; -goto block_117; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_150 = lean_ctor_get(x_143, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_143, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_152 = x_143; -} else { - lean_dec_ref(x_143); - x_152 = lean_box(0); -} -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); -} else { - x_153 = x_152; -} -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -return x_153; -} -} -} -block_117: -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_104, x_2, x_3, x_4, x_5, x_6, x_7, x_103); -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; lean_object* x_111; lean_object* x_112; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_108 = x_105; -} else { - lean_dec_ref(x_105); - x_108 = lean_box(0); -} -x_109 = lean_ctor_get(x_106, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_110 = x_106; -} else { - lean_dec_ref(x_106); - x_110 = lean_box(0); -} -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(0, 2, 0); -} else { - x_111 = x_110; -} -lean_ctor_set(x_111, 0, x_28); -lean_ctor_set(x_111, 1, x_109); -if (lean_is_scalar(x_108)) { - x_112 = lean_alloc_ctor(0, 2, 0); -} else { - x_112 = x_108; -} -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_107); -return x_112; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_28); -x_113 = lean_ctor_get(x_105, 0); +lean_dec(x_138); lean_inc(x_113); -x_114 = lean_ctor_get(x_105, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_115 = x_105; -} else { - lean_dec_ref(x_105); - x_115 = lean_box(0); -} -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(1, 2, 0); -} else { - x_116 = x_115; -} -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_114); -return x_116; +x_146 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_146, 0, x_113); +x_147 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +x_148 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_146); +x_149 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_150 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +x_151 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_152 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_151, x_150, x_145, x_2, x_3, x_4, x_5, x_6, x_7, x_139); +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_114 = x_153; +x_115 = x_154; +goto block_137; } } } } } -else +block_192: { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_228; lean_object* x_229; uint8_t x_230; -x_169 = lean_ctor_get(x_31, 0); -x_170 = lean_ctor_get(x_31, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_31); -x_228 = lean_ctor_get(x_6, 0); -lean_inc(x_228); -x_229 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_230 = l_Lean_checkTraceOption(x_228, x_229); -lean_dec(x_228); -if (x_230 == 0) +lean_object* x_172; uint8_t x_173; +x_172 = lean_ctor_get(x_170, 0); +lean_inc(x_172); +x_173 = lean_unbox(x_172); +lean_dec(x_172); +if (x_173 == 0) { -lean_object* x_231; lean_object* x_232; -x_231 = lean_box(0); -x_232 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_170); -x_171 = x_232; -x_172 = x_32; -goto block_227; -} -else +uint8_t x_174; +x_174 = !lean_is_exclusive(x_170); +if (x_174 == 0) { -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_inc(x_28); -x_233 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_233, 0, x_28); -x_234 = l___private_Lean_Elab_App_16__finalize___closed__8; -x_235 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_233); -x_236 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_237 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -lean_inc(x_169); -x_238 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_238, 0, x_169); -x_239 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -x_240 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_229, x_239, x_170, x_2, x_3, x_4, x_5, x_6, x_7, x_32); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -lean_dec(x_240); -x_171 = x_241; -x_172 = x_242; -goto block_227; -} -block_227: -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_191; -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_174 = x_171; -} else { - lean_dec_ref(x_171); - x_174 = lean_box(0); -} -x_191 = lean_ctor_get(x_1, 4); -lean_inc(x_191); -lean_dec(x_1); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; lean_object* x_193; -lean_dec(x_169); -x_192 = lean_box(0); -if (lean_is_scalar(x_174)) { - x_193 = lean_alloc_ctor(0, 2, 0); -} else { - x_193 = x_174; -} -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_173); -x_175 = x_193; -x_176 = x_172; -goto block_190; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; -lean_dec(x_174); -x_194 = lean_ctor_get(x_191, 0); -lean_inc(x_194); -lean_dec(x_191); -x_195 = lean_ctor_get(x_6, 0); -lean_inc(x_195); -x_196 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_197 = l_Lean_checkTraceOption(x_195, x_196); -lean_dec(x_195); -if (x_197 == 0) -{ -lean_object* x_198; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_198 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_194, x_169, x_173, x_2, x_3, x_4, x_5, x_6, x_7, x_172); -if (lean_obj_tag(x_198) == 0) -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec(x_198); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_202 = x_199; -} else { - lean_dec_ref(x_199); - x_202 = lean_box(0); -} -x_203 = lean_box(0); -if (lean_is_scalar(x_202)) { - x_204 = lean_alloc_ctor(0, 2, 0); -} else { - x_204 = x_202; -} -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_201); -x_175 = x_204; -x_176 = x_200; -goto block_190; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_205 = lean_ctor_get(x_198, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_198, 1); -lean_inc(x_206); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_207 = x_198; -} else { - lean_dec_ref(x_198); - x_207 = lean_box(0); -} -if (lean_is_scalar(x_207)) { - x_208 = lean_alloc_ctor(1, 2, 0); -} else { - x_208 = x_207; -} -lean_ctor_set(x_208, 0, x_205); -lean_ctor_set(x_208, 1, x_206); -return x_208; -} -} -else -{ -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_inc(x_194); -x_209 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_209, 0, x_194); -x_210 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_211 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_209); -x_212 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_196, x_211, x_173, x_2, x_3, x_4, x_5, x_6, x_7, x_172); -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -lean_dec(x_212); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_216 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_194, x_169, x_215, x_2, x_3, x_4, x_5, x_6, x_7, x_214); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -if (lean_is_exclusive(x_217)) { - lean_ctor_release(x_217, 0); - lean_ctor_release(x_217, 1); - x_220 = x_217; -} else { - lean_dec_ref(x_217); - x_220 = lean_box(0); -} -x_221 = lean_box(0); -if (lean_is_scalar(x_220)) { - x_222 = lean_alloc_ctor(0, 2, 0); -} else { - x_222 = x_220; -} -lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_219); -x_175 = x_222; -x_176 = x_218; -goto block_190; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -lean_dec(x_28); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_223 = lean_ctor_get(x_216, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_216, 1); -lean_inc(x_224); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_225 = x_216; -} else { - lean_dec_ref(x_216); - x_225 = lean_box(0); -} -if (lean_is_scalar(x_225)) { - x_226 = lean_alloc_ctor(1, 2, 0); -} else { - x_226 = x_225; -} -lean_ctor_set(x_226, 0, x_223); -lean_ctor_set(x_226, 1, x_224); -return x_226; -} -} -} -block_190: -{ -lean_object* x_177; lean_object* x_178; -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); +lean_object* x_175; +x_175 = lean_ctor_get(x_170, 0); lean_dec(x_175); -x_178 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_177, x_2, x_3, x_4, x_5, x_6, x_7, x_176); -if (lean_obj_tag(x_178) == 0) -{ -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; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_181 = x_178; -} else { - lean_dec_ref(x_178); - x_181 = lean_box(0); -} -x_182 = lean_ctor_get(x_179, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_183 = x_179; -} else { - lean_dec_ref(x_179); - x_183 = lean_box(0); -} -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(0, 2, 0); -} else { - x_184 = x_183; -} -lean_ctor_set(x_184, 0, x_28); -lean_ctor_set(x_184, 1, x_182); -if (lean_is_scalar(x_181)) { - x_185 = lean_alloc_ctor(0, 2, 0); -} else { - x_185 = x_181; -} -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_180); -return x_185; +lean_ctor_set(x_170, 0, x_19); +x_27 = x_170; +x_28 = x_171; +goto block_169; } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_28); -x_186 = lean_ctor_get(x_178, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_178, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_188 = x_178; -} else { - lean_dec_ref(x_178); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(1, 2, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_186); -lean_ctor_set(x_189, 1, x_187); -return x_189; -} -} -} +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_170, 1); +lean_inc(x_176); +lean_dec(x_170); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_19); +lean_ctor_set(x_177, 1, x_176); +x_27 = x_177; +x_28 = x_171; +goto block_169; } } else { -uint8_t x_243; -lean_dec(x_28); -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_243 = !lean_is_exclusive(x_30); -if (x_243 == 0) -{ -return x_30; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_30, 0); -x_245 = lean_ctor_get(x_30, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_30); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; -} -} -} -else -{ -uint8_t x_247; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_247 = !lean_is_exclusive(x_25); -if (x_247 == 0) -{ -return x_25; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_25, 0); -x_249 = lean_ctor_get(x_25, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_25); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; -} -} -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_370; lean_object* x_371; uint8_t x_372; -lean_dec(x_23); -x_370 = lean_ctor_get(x_6, 0); -lean_inc(x_370); -x_371 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_372 = l_Lean_checkTraceOption(x_370, x_371); -lean_dec(x_370); -if (x_372 == 0) -{ -lean_object* x_373; -x_373 = lean_box(0); -lean_ctor_set(x_18, 0, x_373); -x_251 = x_18; -x_252 = x_19; -goto block_369; -} -else -{ -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_free_object(x_18); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_178 = lean_ctor_get(x_170, 1); +lean_inc(x_178); +lean_dec(x_170); lean_inc(x_9); -x_374 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_374, 0, x_9); -x_375 = l___private_Lean_Elab_App_16__finalize___closed__8; -x_376 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_376, 0, x_375); -lean_ctor_set(x_376, 1, x_374); -x_377 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_378 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_378, 0, x_376); -lean_ctor_set(x_378, 1, x_377); +x_179 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_179, 0, x_9); +x_180 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6; +x_181 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_179); +x_182 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7; +x_183 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); lean_inc(x_10); -x_379 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_379, 0, x_10); -x_380 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_380, 0, x_378); -lean_ctor_set(x_380, 1, x_379); -x_381 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_371, x_380, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -x_382 = lean_ctor_get(x_381, 0); -lean_inc(x_382); -x_383 = lean_ctor_get(x_381, 1); -lean_inc(x_383); -lean_dec(x_381); -x_251 = x_382; -x_252 = x_383; -goto block_369; +x_184 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_184, 0, x_10); +x_185 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_185, 0, x_183); +lean_ctor_set(x_185, 1, x_184); +x_186 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_187 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +x_188 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_189 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_188, x_187, x_178, x_2, x_3, x_4, x_5, x_6, x_7, x_171); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_27 = x_190; +x_28 = x_191; +goto block_169; } -block_369: +} +} +else { -uint8_t x_253; -x_253 = !lean_is_exclusive(x_251); -if (x_253 == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_277; -x_254 = lean_ctor_get(x_251, 1); -x_255 = lean_ctor_get(x_251, 0); -lean_dec(x_255); -x_277 = lean_ctor_get(x_1, 4); -lean_inc(x_277); -lean_dec(x_1); -if (lean_obj_tag(x_277) == 0) -{ -lean_object* x_278; +lean_object* x_206; +lean_dec(x_24); lean_dec(x_10); -x_278 = lean_box(0); -lean_ctor_set(x_251, 0, x_278); -x_256 = x_251; -x_257 = x_252; -goto block_276; -} -else +lean_inc(x_4); +x_206 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(x_25, x_9, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +if (lean_obj_tag(x_206) == 0) { -lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; -lean_free_object(x_251); -x_279 = lean_ctor_get(x_277, 0); -lean_inc(x_279); -lean_dec(x_277); -x_280 = lean_ctor_get(x_6, 0); -lean_inc(x_280); -x_281 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_282 = l_Lean_checkTraceOption(x_280, x_281); -lean_dec(x_280); -if (x_282 == 0) -{ -lean_object* x_283; +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_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +lean_dec(x_206); +x_209 = lean_ctor_get(x_207, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_207, 1); +lean_inc(x_210); +lean_dec(x_207); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_283 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_279, x_10, x_254, x_2, x_3, x_4, x_5, x_6, x_7, x_252); -if (lean_obj_tag(x_283) == 0) +lean_inc(x_209); +x_211 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__3(x_209, x_210, x_2, x_3, x_4, x_5, x_6, x_7, x_208); +if (lean_obj_tag(x_211) == 0) { -lean_object* x_284; lean_object* x_285; uint8_t x_286; -x_284 = lean_ctor_get(x_283, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_283, 1); -lean_inc(x_285); -lean_dec(x_283); -x_286 = !lean_is_exclusive(x_284); -if (x_286 == 0) +lean_object* x_212; lean_object* x_213; uint8_t x_214; +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +x_214 = !lean_is_exclusive(x_212); +if (x_214 == 0) { -lean_object* x_287; lean_object* x_288; -x_287 = lean_ctor_get(x_284, 0); -lean_dec(x_287); -x_288 = lean_box(0); -lean_ctor_set(x_284, 0, x_288); -x_256 = x_284; -x_257 = x_285; -goto block_276; -} -else -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = lean_ctor_get(x_284, 1); -lean_inc(x_289); -lean_dec(x_284); -x_290 = lean_box(0); -x_291 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_291, 0, x_290); -lean_ctor_set(x_291, 1, x_289); -x_256 = x_291; -x_257 = x_285; -goto block_276; -} -} -else -{ -uint8_t x_292; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_292 = !lean_is_exclusive(x_283); -if (x_292 == 0) -{ -return x_283; -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_293 = lean_ctor_get(x_283, 0); -x_294 = lean_ctor_get(x_283, 1); -lean_inc(x_294); -lean_inc(x_293); -lean_dec(x_283); -x_295 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_295, 0, x_293); -lean_ctor_set(x_295, 1, x_294); -return x_295; -} -} -} -else -{ -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_inc(x_279); -x_296 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_296, 0, x_279); -x_297 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_298 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_296); -x_299 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_281, x_298, x_254, x_2, x_3, x_4, x_5, x_6, x_7, x_252); -x_300 = lean_ctor_get(x_299, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -lean_dec(x_300); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_303 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_279, x_10, x_302, x_2, x_3, x_4, x_5, x_6, x_7, x_301); -if (lean_obj_tag(x_303) == 0) -{ -lean_object* x_304; lean_object* x_305; uint8_t x_306; -x_304 = lean_ctor_get(x_303, 0); -lean_inc(x_304); -x_305 = lean_ctor_get(x_303, 1); -lean_inc(x_305); -lean_dec(x_303); -x_306 = !lean_is_exclusive(x_304); -if (x_306 == 0) -{ -lean_object* x_307; lean_object* x_308; -x_307 = lean_ctor_get(x_304, 0); -lean_dec(x_307); -x_308 = lean_box(0); -lean_ctor_set(x_304, 0, x_308); -x_256 = x_304; -x_257 = x_305; -goto block_276; -} -else -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_309 = lean_ctor_get(x_304, 1); -lean_inc(x_309); -lean_dec(x_304); -x_310 = lean_box(0); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_309); -x_256 = x_311; -x_257 = x_305; -goto block_276; -} -} -else -{ -uint8_t x_312; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_312 = !lean_is_exclusive(x_303); -if (x_312 == 0) -{ -return x_303; -} -else -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_313 = lean_ctor_get(x_303, 0); -x_314 = lean_ctor_get(x_303, 1); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_303); -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; -} -} -} -} -block_276: -{ -lean_object* x_258; lean_object* x_259; -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_258, x_2, x_3, x_4, x_5, x_6, x_7, x_257); -if (lean_obj_tag(x_259) == 0) -{ -uint8_t x_260; -x_260 = !lean_is_exclusive(x_259); -if (x_260 == 0) -{ -lean_object* x_261; uint8_t x_262; -x_261 = lean_ctor_get(x_259, 0); -x_262 = !lean_is_exclusive(x_261); -if (x_262 == 0) -{ -lean_object* x_263; -x_263 = lean_ctor_get(x_261, 0); -lean_dec(x_263); -lean_ctor_set(x_261, 0, x_9); -return x_259; -} -else -{ -lean_object* x_264; lean_object* x_265; -x_264 = lean_ctor_get(x_261, 1); -lean_inc(x_264); -lean_dec(x_261); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_9); -lean_ctor_set(x_265, 1, x_264); -lean_ctor_set(x_259, 0, x_265); -return x_259; -} -} -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; -x_266 = lean_ctor_get(x_259, 0); -x_267 = lean_ctor_get(x_259, 1); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_259); -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_266); - x_269 = lean_box(0); -} -if (lean_is_scalar(x_269)) { - x_270 = lean_alloc_ctor(0, 2, 0); -} else { - x_270 = x_269; -} -lean_ctor_set(x_270, 0, x_9); -lean_ctor_set(x_270, 1, x_268); -x_271 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_267); -return x_271; -} -} -else -{ -uint8_t x_272; -lean_dec(x_9); -x_272 = !lean_is_exclusive(x_259); -if (x_272 == 0) -{ -return x_259; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_273 = lean_ctor_get(x_259, 0); -x_274 = lean_ctor_get(x_259, 1); -lean_inc(x_274); -lean_inc(x_273); -lean_dec(x_259); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_273); -lean_ctor_set(x_275, 1, x_274); -return x_275; -} -} -} -} -else -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_333; -x_316 = lean_ctor_get(x_251, 1); -lean_inc(x_316); -lean_dec(x_251); -x_333 = lean_ctor_get(x_1, 4); -lean_inc(x_333); -lean_dec(x_1); -if (lean_obj_tag(x_333) == 0) -{ -lean_object* x_334; lean_object* x_335; -lean_dec(x_10); -x_334 = lean_box(0); -x_335 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_316); -x_317 = x_335; -x_318 = x_252; -goto block_332; -} -else -{ -lean_object* x_336; lean_object* x_337; lean_object* x_338; uint8_t x_339; -x_336 = lean_ctor_get(x_333, 0); -lean_inc(x_336); -lean_dec(x_333); -x_337 = lean_ctor_get(x_6, 0); -lean_inc(x_337); -x_338 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_339 = l_Lean_checkTraceOption(x_337, x_338); -lean_dec(x_337); -if (x_339 == 0) -{ -lean_object* x_340; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_340 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_336, x_10, x_316, x_2, x_3, x_4, x_5, x_6, x_7, x_252); -if (lean_obj_tag(x_340) == 0) -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_341 = lean_ctor_get(x_340, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_340, 1); -lean_inc(x_342); -lean_dec(x_340); -x_343 = lean_ctor_get(x_341, 1); -lean_inc(x_343); -if (lean_is_exclusive(x_341)) { - lean_ctor_release(x_341, 0); - lean_ctor_release(x_341, 1); - x_344 = x_341; -} else { - lean_dec_ref(x_341); - x_344 = lean_box(0); -} -x_345 = lean_box(0); -if (lean_is_scalar(x_344)) { - x_346 = lean_alloc_ctor(0, 2, 0); -} else { - x_346 = x_344; -} -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_343); -x_317 = x_346; -x_318 = x_342; -goto block_332; -} -else -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_347 = lean_ctor_get(x_340, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_340, 1); -lean_inc(x_348); -if (lean_is_exclusive(x_340)) { - lean_ctor_release(x_340, 0); - lean_ctor_release(x_340, 1); - x_349 = x_340; -} else { - lean_dec_ref(x_340); - x_349 = lean_box(0); -} -if (lean_is_scalar(x_349)) { - x_350 = lean_alloc_ctor(1, 2, 0); -} else { - x_350 = x_349; -} -lean_ctor_set(x_350, 0, x_347); -lean_ctor_set(x_350, 1, x_348); -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_inc(x_336); -x_351 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_351, 0, x_336); -x_352 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_353 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_351); -x_354 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_338, x_353, x_316, x_2, x_3, x_4, x_5, x_6, x_7, x_252); -x_355 = lean_ctor_get(x_354, 0); -lean_inc(x_355); -x_356 = lean_ctor_get(x_354, 1); -lean_inc(x_356); -lean_dec(x_354); -x_357 = lean_ctor_get(x_355, 1); -lean_inc(x_357); -lean_dec(x_355); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_358 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_336, x_10, x_357, x_2, x_3, x_4, x_5, x_6, x_7, x_356); -if (lean_obj_tag(x_358) == 0) -{ -lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_358, 1); -lean_inc(x_360); -lean_dec(x_358); -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 = lean_box(0); -if (lean_is_scalar(x_362)) { - x_364 = lean_alloc_ctor(0, 2, 0); -} else { - x_364 = x_362; -} -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_361); -x_317 = x_364; -x_318 = x_360; -goto block_332; -} -else -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_365 = lean_ctor_get(x_358, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_358, 1); -lean_inc(x_366); -if (lean_is_exclusive(x_358)) { - lean_ctor_release(x_358, 0); - lean_ctor_release(x_358, 1); - x_367 = x_358; -} else { - lean_dec_ref(x_358); - x_367 = lean_box(0); -} -if (lean_is_scalar(x_367)) { - x_368 = lean_alloc_ctor(1, 2, 0); -} else { - x_368 = x_367; -} -lean_ctor_set(x_368, 0, x_365); -lean_ctor_set(x_368, 1, x_366); -return x_368; -} -} -} -block_332: -{ -lean_object* x_319; lean_object* x_320; -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_319, x_2, x_3, x_4, x_5, x_6, x_7, x_318); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_321 = lean_ctor_get(x_320, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_320, 1); -lean_inc(x_322); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - x_323 = x_320; -} else { - lean_dec_ref(x_320); - x_323 = lean_box(0); -} -x_324 = lean_ctor_get(x_321, 1); -lean_inc(x_324); -if (lean_is_exclusive(x_321)) { - lean_ctor_release(x_321, 0); - lean_ctor_release(x_321, 1); - x_325 = x_321; -} else { - lean_dec_ref(x_321); - x_325 = lean_box(0); -} -if (lean_is_scalar(x_325)) { - x_326 = lean_alloc_ctor(0, 2, 0); -} else { - x_326 = x_325; -} -lean_ctor_set(x_326, 0, x_9); -lean_ctor_set(x_326, 1, x_324); -if (lean_is_scalar(x_323)) { - x_327 = lean_alloc_ctor(0, 2, 0); -} else { - x_327 = x_323; -} -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_322); -return x_327; -} -else -{ -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -lean_dec(x_9); -x_328 = lean_ctor_get(x_320, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_320, 1); -lean_inc(x_329); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - x_330 = x_320; -} else { - lean_dec_ref(x_320); - x_330 = lean_box(0); -} -if (lean_is_scalar(x_330)) { - x_331 = lean_alloc_ctor(1, 2, 0); -} else { - x_331 = x_330; -} -lean_ctor_set(x_331, 0, x_328); -lean_ctor_set(x_331, 1, x_329); -return x_331; -} -} -} -} -} -} -else -{ -lean_object* x_384; lean_object* x_385; uint8_t x_386; -x_384 = lean_ctor_get(x_18, 1); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_360; lean_object* x_361; lean_object* x_383; lean_object* x_384; lean_object* x_385; uint8_t x_386; +x_215 = lean_ctor_get(x_212, 0); +x_216 = lean_ctor_get(x_212, 1); +x_383 = lean_st_ref_get(x_7, x_213); +x_384 = lean_ctor_get(x_383, 0); lean_inc(x_384); -lean_dec(x_18); -x_385 = lean_ctor_get(x_1, 5); +x_385 = lean_ctor_get(x_384, 3); lean_inc(x_385); -x_386 = l_Array_isEmpty___rarg(x_385); +lean_dec(x_384); +x_386 = lean_ctor_get_uint8(x_385, sizeof(void*)*1); +lean_dec(x_385); if (x_386 == 0) { -lean_object* x_387; -lean_dec(x_10); -lean_inc(x_4); -x_387 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2(x_385, x_9, x_384, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -if (lean_obj_tag(x_387) == 0) +lean_object* x_387; uint8_t x_388; lean_object* x_389; +x_387 = lean_ctor_get(x_383, 1); +lean_inc(x_387); +lean_dec(x_383); +x_388 = 0; +x_389 = lean_box(x_388); +lean_ctor_set(x_212, 0, x_389); +x_360 = x_212; +x_361 = x_387; +goto block_382; +} +else { -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); -lean_inc(x_389); -lean_dec(x_387); -x_390 = lean_ctor_get(x_388, 0); +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; +lean_free_object(x_212); +x_390 = lean_ctor_get(x_383, 1); lean_inc(x_390); -x_391 = lean_ctor_get(x_388, 1); -lean_inc(x_391); -lean_dec(x_388); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_390); -x_392 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType___spec__3(x_390, x_391, x_2, x_3, x_4, x_5, x_6, x_7, x_389); -if (lean_obj_tag(x_392) == 0) -{ -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_455; lean_object* x_456; uint8_t x_457; +lean_dec(x_383); +x_391 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_392 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_391, x_216, x_2, x_3, x_4, x_5, x_6, x_7, x_390); x_393 = lean_ctor_get(x_392, 0); lean_inc(x_393); x_394 = lean_ctor_get(x_392, 1); lean_inc(x_394); lean_dec(x_392); -x_395 = lean_ctor_get(x_393, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_393, 1); -lean_inc(x_396); -if (lean_is_exclusive(x_393)) { - lean_ctor_release(x_393, 0); - lean_ctor_release(x_393, 1); - x_397 = x_393; -} else { - lean_dec_ref(x_393); - x_397 = lean_box(0); +x_360 = x_393; +x_361 = x_394; +goto block_382; } -x_455 = lean_ctor_get(x_6, 0); -lean_inc(x_455); -x_456 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_457 = l_Lean_checkTraceOption(x_455, x_456); -lean_dec(x_455); -if (x_457 == 0) +block_359: { -lean_object* x_458; lean_object* x_459; -x_458 = lean_box(0); -if (lean_is_scalar(x_397)) { - x_459 = lean_alloc_ctor(0, 2, 0); -} else { - x_459 = x_397; -} -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_396); -x_398 = x_459; -x_399 = x_394; -goto block_454; -} -else -{ -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_dec(x_397); -lean_inc(x_390); -x_460 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_460, 0, x_390); -x_461 = l___private_Lean_Elab_App_16__finalize___closed__8; -x_462 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_460); -x_463 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_464 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_464, 0, x_462); -lean_ctor_set(x_464, 1, x_463); -lean_inc(x_395); -x_465 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_465, 0, x_395); -x_466 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_466, 0, x_464); -lean_ctor_set(x_466, 1, x_465); -x_467 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_456, x_466, x_396, x_2, x_3, x_4, x_5, x_6, x_7, x_394); -x_468 = lean_ctor_get(x_467, 0); -lean_inc(x_468); -x_469 = lean_ctor_get(x_467, 1); -lean_inc(x_469); -lean_dec(x_467); -x_398 = x_468; -x_399 = x_469; -goto block_454; -} -block_454: -{ -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_418; -x_400 = lean_ctor_get(x_398, 1); -lean_inc(x_400); -if (lean_is_exclusive(x_398)) { - lean_ctor_release(x_398, 0); - lean_ctor_release(x_398, 1); - x_401 = x_398; -} else { - lean_dec_ref(x_398); - x_401 = lean_box(0); -} -x_418 = lean_ctor_get(x_1, 4); -lean_inc(x_418); +lean_object* x_219; +x_219 = lean_ctor_get(x_1, 4); +lean_inc(x_219); lean_dec(x_1); -if (lean_obj_tag(x_418) == 0) +if (lean_obj_tag(x_219) == 0) { -lean_object* x_419; lean_object* x_420; +lean_object* x_220; lean_object* x_221; +lean_dec(x_215); +x_220 = lean_ctor_get(x_217, 1); +lean_inc(x_220); +lean_dec(x_217); +x_221 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_218); +if (lean_obj_tag(x_221) == 0) +{ +uint8_t x_222; +x_222 = !lean_is_exclusive(x_221); +if (x_222 == 0) +{ +lean_object* x_223; uint8_t x_224; +x_223 = lean_ctor_get(x_221, 0); +x_224 = !lean_is_exclusive(x_223); +if (x_224 == 0) +{ +lean_object* x_225; +x_225 = lean_ctor_get(x_223, 0); +lean_dec(x_225); +lean_ctor_set(x_223, 0, x_209); +return x_221; +} +else +{ +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_223, 1); +lean_inc(x_226); +lean_dec(x_223); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_209); +lean_ctor_set(x_227, 1, x_226); +lean_ctor_set(x_221, 0, x_227); +return x_221; +} +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_228 = lean_ctor_get(x_221, 0); +x_229 = lean_ctor_get(x_221, 1); +lean_inc(x_229); +lean_inc(x_228); +lean_dec(x_221); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_231 = x_228; +} else { + lean_dec_ref(x_228); + x_231 = lean_box(0); +} +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(0, 2, 0); +} else { + x_232 = x_231; +} +lean_ctor_set(x_232, 0, x_209); +lean_ctor_set(x_232, 1, x_230); +x_233 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_229); +return x_233; +} +} +else +{ +uint8_t x_234; +lean_dec(x_209); +x_234 = !lean_is_exclusive(x_221); +if (x_234 == 0) +{ +return x_221; +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_221, 0); +x_236 = lean_ctor_get(x_221, 1); +lean_inc(x_236); +lean_inc(x_235); +lean_dec(x_221); +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_236); +return x_237; +} +} +} +else +{ +uint8_t x_238; +x_238 = !lean_is_exclusive(x_217); +if (x_238 == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_271; lean_object* x_272; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; +x_239 = lean_ctor_get(x_217, 1); +x_240 = lean_ctor_get(x_217, 0); +lean_dec(x_240); +x_241 = lean_ctor_get(x_219, 0); +lean_inc(x_241); +lean_dec(x_219); +x_290 = lean_st_ref_get(x_7, x_218); +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_291, 3); +lean_inc(x_292); +lean_dec(x_291); +x_293 = lean_ctor_get_uint8(x_292, sizeof(void*)*1); +lean_dec(x_292); +if (x_293 == 0) +{ +lean_object* x_294; uint8_t x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_290, 1); +lean_inc(x_294); +lean_dec(x_290); +x_295 = 0; +x_296 = lean_box(x_295); +lean_ctor_set(x_217, 0, x_296); +x_271 = x_217; +x_272 = x_294; +goto block_289; +} +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_free_object(x_217); +x_297 = lean_ctor_get(x_290, 1); +lean_inc(x_297); +lean_dec(x_290); +x_298 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_299 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_298, x_239, x_2, x_3, x_4, x_5, x_6, x_7, x_297); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_299, 1); +lean_inc(x_301); +lean_dec(x_299); +x_271 = x_300; +x_272 = x_301; +goto block_289; +} +block_270: +{ +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +lean_dec(x_242); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_245 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_241, x_215, x_244, x_2, x_3, x_4, x_5, x_6, x_7, x_243); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_248 = lean_ctor_get(x_246, 1); +lean_inc(x_248); +lean_dec(x_246); +x_249 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_248, x_2, x_3, x_4, x_5, x_6, x_7, x_247); +if (lean_obj_tag(x_249) == 0) +{ +uint8_t x_250; +x_250 = !lean_is_exclusive(x_249); +if (x_250 == 0) +{ +lean_object* x_251; uint8_t x_252; +x_251 = lean_ctor_get(x_249, 0); +x_252 = !lean_is_exclusive(x_251); +if (x_252 == 0) +{ +lean_object* x_253; +x_253 = lean_ctor_get(x_251, 0); +lean_dec(x_253); +lean_ctor_set(x_251, 0, x_209); +return x_249; +} +else +{ +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_251, 1); +lean_inc(x_254); +lean_dec(x_251); +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_209); +lean_ctor_set(x_255, 1, x_254); +lean_ctor_set(x_249, 0, x_255); +return x_249; +} +} +else +{ +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_256 = lean_ctor_get(x_249, 0); +x_257 = lean_ctor_get(x_249, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_249); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_259 = x_256; +} else { + lean_dec_ref(x_256); + x_259 = lean_box(0); +} +if (lean_is_scalar(x_259)) { + x_260 = lean_alloc_ctor(0, 2, 0); +} else { + x_260 = x_259; +} +lean_ctor_set(x_260, 0, x_209); +lean_ctor_set(x_260, 1, x_258); +x_261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_257); +return x_261; +} +} +else +{ +uint8_t x_262; +lean_dec(x_209); +x_262 = !lean_is_exclusive(x_249); +if (x_262 == 0) +{ +return x_249; +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_263 = lean_ctor_get(x_249, 0); +x_264 = lean_ctor_get(x_249, 1); +lean_inc(x_264); +lean_inc(x_263); +lean_dec(x_249); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_263); +lean_ctor_set(x_265, 1, x_264); +return x_265; +} +} +} +else +{ +uint8_t x_266; +lean_dec(x_209); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_266 = !lean_is_exclusive(x_245); +if (x_266 == 0) +{ +return x_245; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_267 = lean_ctor_get(x_245, 0); +x_268 = lean_ctor_get(x_245, 1); +lean_inc(x_268); +lean_inc(x_267); +lean_dec(x_245); +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_267); +lean_ctor_set(x_269, 1, x_268); +return x_269; +} +} +} +block_289: +{ +lean_object* x_273; uint8_t x_274; +x_273 = lean_ctor_get(x_271, 0); +lean_inc(x_273); +x_274 = lean_unbox(x_273); +lean_dec(x_273); +if (x_274 == 0) +{ +uint8_t x_275; +x_275 = !lean_is_exclusive(x_271); +if (x_275 == 0) +{ +lean_object* x_276; +x_276 = lean_ctor_get(x_271, 0); +lean_dec(x_276); +lean_ctor_set(x_271, 0, x_19); +x_242 = x_271; +x_243 = x_272; +goto block_270; +} +else +{ +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_271, 1); +lean_inc(x_277); +lean_dec(x_271); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_19); +lean_ctor_set(x_278, 1, x_277); +x_242 = x_278; +x_243 = x_272; +goto block_270; +} +} +else +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_279 = lean_ctor_get(x_271, 1); +lean_inc(x_279); +lean_dec(x_271); +lean_inc(x_241); +x_280 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_280, 0, x_241); +x_281 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +x_282 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_280); +x_283 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_284 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +x_285 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_286 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_285, x_284, x_279, x_2, x_3, x_4, x_5, x_6, x_7, x_272); +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_286, 1); +lean_inc(x_288); +lean_dec(x_286); +x_242 = x_287; +x_243 = x_288; +goto block_270; +} +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_328; lean_object* x_329; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_302 = lean_ctor_get(x_217, 1); +lean_inc(x_302); +lean_dec(x_217); +x_303 = lean_ctor_get(x_219, 0); +lean_inc(x_303); +lean_dec(x_219); +x_346 = lean_st_ref_get(x_7, x_218); +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_347, 3); +lean_inc(x_348); +lean_dec(x_347); +x_349 = lean_ctor_get_uint8(x_348, sizeof(void*)*1); +lean_dec(x_348); +if (x_349 == 0) +{ +lean_object* x_350; uint8_t x_351; lean_object* x_352; lean_object* x_353; +x_350 = lean_ctor_get(x_346, 1); +lean_inc(x_350); +lean_dec(x_346); +x_351 = 0; +x_352 = lean_box(x_351); +x_353 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_302); +x_328 = x_353; +x_329 = x_350; +goto block_345; +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; +x_354 = lean_ctor_get(x_346, 1); +lean_inc(x_354); +lean_dec(x_346); +x_355 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_356 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_355, x_302, x_2, x_3, x_4, x_5, x_6, x_7, x_354); +x_357 = lean_ctor_get(x_356, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_356, 1); +lean_inc(x_358); +lean_dec(x_356); +x_328 = x_357; +x_329 = x_358; +goto block_345; +} +block_327: +{ +lean_object* x_306; lean_object* x_307; +x_306 = lean_ctor_get(x_304, 1); +lean_inc(x_306); +lean_dec(x_304); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_307 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_303, x_215, x_306, x_2, x_3, x_4, x_5, x_6, x_7, x_305); +if (lean_obj_tag(x_307) == 0) +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +lean_dec(x_307); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_310, x_2, x_3, x_4, x_5, x_6, x_7, x_309); +if (lean_obj_tag(x_311) == 0) +{ +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; +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_311)) { + lean_ctor_release(x_311, 0); + lean_ctor_release(x_311, 1); + x_314 = x_311; +} else { + lean_dec_ref(x_311); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_312, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_312)) { + lean_ctor_release(x_312, 0); + lean_ctor_release(x_312, 1); + x_316 = x_312; +} else { + lean_dec_ref(x_312); + x_316 = lean_box(0); +} +if (lean_is_scalar(x_316)) { + x_317 = lean_alloc_ctor(0, 2, 0); +} else { + x_317 = x_316; +} +lean_ctor_set(x_317, 0, x_209); +lean_ctor_set(x_317, 1, x_315); +if (lean_is_scalar(x_314)) { + x_318 = lean_alloc_ctor(0, 2, 0); +} else { + x_318 = x_314; +} +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_313); +return x_318; +} +else +{ +lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; +lean_dec(x_209); +x_319 = lean_ctor_get(x_311, 0); +lean_inc(x_319); +x_320 = lean_ctor_get(x_311, 1); +lean_inc(x_320); +if (lean_is_exclusive(x_311)) { + lean_ctor_release(x_311, 0); + lean_ctor_release(x_311, 1); + x_321 = x_311; +} else { + lean_dec_ref(x_311); + x_321 = lean_box(0); +} +if (lean_is_scalar(x_321)) { + x_322 = lean_alloc_ctor(1, 2, 0); +} else { + x_322 = x_321; +} +lean_ctor_set(x_322, 0, x_319); +lean_ctor_set(x_322, 1, x_320); +return x_322; +} +} +else +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; +lean_dec(x_209); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_323 = lean_ctor_get(x_307, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_307, 1); +lean_inc(x_324); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_325 = x_307; +} else { + lean_dec_ref(x_307); + x_325 = lean_box(0); +} +if (lean_is_scalar(x_325)) { + x_326 = lean_alloc_ctor(1, 2, 0); +} else { + x_326 = x_325; +} +lean_ctor_set(x_326, 0, x_323); +lean_ctor_set(x_326, 1, x_324); +return x_326; +} +} +block_345: +{ +lean_object* x_330; uint8_t x_331; +x_330 = lean_ctor_get(x_328, 0); +lean_inc(x_330); +x_331 = lean_unbox(x_330); +lean_dec(x_330); +if (x_331 == 0) +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_328, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_328)) { + lean_ctor_release(x_328, 0); + lean_ctor_release(x_328, 1); + x_333 = x_328; +} else { + lean_dec_ref(x_328); + x_333 = lean_box(0); +} +if (lean_is_scalar(x_333)) { + x_334 = lean_alloc_ctor(0, 2, 0); +} else { + x_334 = x_333; +} +lean_ctor_set(x_334, 0, x_19); +lean_ctor_set(x_334, 1, x_332); +x_304 = x_334; +x_305 = x_329; +goto block_327; +} +else +{ +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; +x_335 = lean_ctor_get(x_328, 1); +lean_inc(x_335); +lean_dec(x_328); +lean_inc(x_303); +x_336 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_336, 0, x_303); +x_337 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +x_338 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_336); +x_339 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_340 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_340, 0, x_338); +lean_ctor_set(x_340, 1, x_339); +x_341 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_342 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_341, x_340, x_335, x_2, x_3, x_4, x_5, x_6, x_7, x_329); +x_343 = lean_ctor_get(x_342, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_342, 1); +lean_inc(x_344); +lean_dec(x_342); +x_304 = x_343; +x_305 = x_344; +goto block_327; +} +} +} +} +} +block_382: +{ +lean_object* x_362; uint8_t x_363; +x_362 = lean_ctor_get(x_360, 0); +lean_inc(x_362); +x_363 = lean_unbox(x_362); +lean_dec(x_362); +if (x_363 == 0) +{ +uint8_t x_364; +x_364 = !lean_is_exclusive(x_360); +if (x_364 == 0) +{ +lean_object* x_365; +x_365 = lean_ctor_get(x_360, 0); +lean_dec(x_365); +lean_ctor_set(x_360, 0, x_19); +x_217 = x_360; +x_218 = x_361; +goto block_359; +} +else +{ +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_360, 1); +lean_inc(x_366); +lean_dec(x_360); +x_367 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_367, 0, x_19); +lean_ctor_set(x_367, 1, x_366); +x_217 = x_367; +x_218 = x_361; +goto block_359; +} +} +else +{ +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; +x_368 = lean_ctor_get(x_360, 1); +lean_inc(x_368); +lean_dec(x_360); +lean_inc(x_209); +x_369 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_369, 0, x_209); +x_370 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6; +x_371 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_369); +x_372 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7; +x_373 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_372); +lean_inc(x_215); +x_374 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_374, 0, x_215); +x_375 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_375, 0, x_373); +lean_ctor_set(x_375, 1, x_374); +x_376 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_377 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_377, 0, x_375); +lean_ctor_set(x_377, 1, x_376); +x_378 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_379 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_378, x_377, x_368, x_2, x_3, x_4, x_5, x_6, x_7, x_361); +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_379, 1); +lean_inc(x_381); +lean_dec(x_379); +x_217 = x_380; +x_218 = x_381; +goto block_359; +} +} +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_472; lean_object* x_473; lean_object* x_494; lean_object* x_495; lean_object* x_496; uint8_t x_497; +x_395 = lean_ctor_get(x_212, 0); +x_396 = lean_ctor_get(x_212, 1); +lean_inc(x_396); +lean_inc(x_395); +lean_dec(x_212); +x_494 = lean_st_ref_get(x_7, x_213); +x_495 = lean_ctor_get(x_494, 0); +lean_inc(x_495); +x_496 = lean_ctor_get(x_495, 3); +lean_inc(x_496); +lean_dec(x_495); +x_497 = lean_ctor_get_uint8(x_496, sizeof(void*)*1); +lean_dec(x_496); +if (x_497 == 0) +{ +lean_object* x_498; uint8_t x_499; lean_object* x_500; lean_object* x_501; +x_498 = lean_ctor_get(x_494, 1); +lean_inc(x_498); +lean_dec(x_494); +x_499 = 0; +x_500 = lean_box(x_499); +x_501 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_501, 0, x_500); +lean_ctor_set(x_501, 1, x_396); +x_472 = x_501; +x_473 = x_498; +goto block_493; +} +else +{ +lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_502 = lean_ctor_get(x_494, 1); +lean_inc(x_502); +lean_dec(x_494); +x_503 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_504 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_503, x_396, x_2, x_3, x_4, x_5, x_6, x_7, x_502); +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +x_506 = lean_ctor_get(x_504, 1); +lean_inc(x_506); +lean_dec(x_504); +x_472 = x_505; +x_473 = x_506; +goto block_493; +} +block_471: +{ +lean_object* x_399; +x_399 = lean_ctor_get(x_1, 4); +lean_inc(x_399); +lean_dec(x_1); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; lean_object* x_401; lean_dec(x_395); -x_419 = lean_box(0); -if (lean_is_scalar(x_401)) { - x_420 = lean_alloc_ctor(0, 2, 0); +x_400 = lean_ctor_get(x_397, 1); +lean_inc(x_400); +lean_dec(x_397); +x_401 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_400, x_2, x_3, x_4, x_5, x_6, x_7, x_398); +if (lean_obj_tag(x_401) == 0) +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +x_403 = lean_ctor_get(x_401, 1); +lean_inc(x_403); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_404 = x_401; } else { - x_420 = x_401; + lean_dec_ref(x_401); + x_404 = lean_box(0); } -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_400); -x_402 = x_420; -x_403 = x_399; -goto block_417; +x_405 = lean_ctor_get(x_402, 1); +lean_inc(x_405); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + x_406 = x_402; +} else { + lean_dec_ref(x_402); + x_406 = lean_box(0); +} +if (lean_is_scalar(x_406)) { + x_407 = lean_alloc_ctor(0, 2, 0); +} else { + x_407 = x_406; +} +lean_ctor_set(x_407, 0, x_209); +lean_ctor_set(x_407, 1, x_405); +if (lean_is_scalar(x_404)) { + x_408 = lean_alloc_ctor(0, 2, 0); +} else { + x_408 = x_404; +} +lean_ctor_set(x_408, 0, x_407); +lean_ctor_set(x_408, 1, x_403); +return x_408; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; -lean_dec(x_401); -x_421 = lean_ctor_get(x_418, 0); -lean_inc(x_421); -lean_dec(x_418); -x_422 = lean_ctor_get(x_6, 0); -lean_inc(x_422); -x_423 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_424 = l_Lean_checkTraceOption(x_422, x_423); -lean_dec(x_422); -if (x_424 == 0) -{ -lean_object* x_425; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_425 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_421, x_395, x_400, x_2, x_3, x_4, x_5, x_6, x_7, x_399); -if (lean_obj_tag(x_425) == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); -x_428 = lean_ctor_get(x_426, 1); -lean_inc(x_428); -if (lean_is_exclusive(x_426)) { - lean_ctor_release(x_426, 0); - lean_ctor_release(x_426, 1); - x_429 = x_426; -} else { - lean_dec_ref(x_426); - x_429 = lean_box(0); -} -x_430 = lean_box(0); -if (lean_is_scalar(x_429)) { - x_431 = lean_alloc_ctor(0, 2, 0); -} else { - x_431 = x_429; -} -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_428); -x_402 = x_431; -x_403 = x_427; -goto block_417; -} -else -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -lean_dec(x_390); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_432 = lean_ctor_get(x_425, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_425, 1); -lean_inc(x_433); -if (lean_is_exclusive(x_425)) { - lean_ctor_release(x_425, 0); - lean_ctor_release(x_425, 1); - x_434 = x_425; -} else { - lean_dec_ref(x_425); - x_434 = lean_box(0); -} -if (lean_is_scalar(x_434)) { - x_435 = lean_alloc_ctor(1, 2, 0); -} else { - x_435 = x_434; -} -lean_ctor_set(x_435, 0, x_432); -lean_ctor_set(x_435, 1, x_433); -return x_435; -} -} -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; lean_object* x_442; lean_object* x_443; -lean_inc(x_421); -x_436 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_436, 0, x_421); -x_437 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_438 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_438, 0, x_437); -lean_ctor_set(x_438, 1, x_436); -x_439 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_423, x_438, x_400, x_2, x_3, x_4, x_5, x_6, x_7, x_399); -x_440 = lean_ctor_get(x_439, 0); -lean_inc(x_440); -x_441 = lean_ctor_get(x_439, 1); -lean_inc(x_441); -lean_dec(x_439); -x_442 = lean_ctor_get(x_440, 1); -lean_inc(x_442); -lean_dec(x_440); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_443 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_421, x_395, x_442, x_2, x_3, x_4, x_5, x_6, x_7, x_441); -if (lean_obj_tag(x_443) == 0) -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_443, 1); -lean_inc(x_445); -lean_dec(x_443); -x_446 = lean_ctor_get(x_444, 1); -lean_inc(x_446); -if (lean_is_exclusive(x_444)) { - lean_ctor_release(x_444, 0); - lean_ctor_release(x_444, 1); - x_447 = x_444; -} else { - lean_dec_ref(x_444); - x_447 = lean_box(0); -} -x_448 = lean_box(0); -if (lean_is_scalar(x_447)) { - x_449 = lean_alloc_ctor(0, 2, 0); -} else { - x_449 = x_447; -} -lean_ctor_set(x_449, 0, x_448); -lean_ctor_set(x_449, 1, x_446); -x_402 = x_449; -x_403 = x_445; -goto block_417; -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; -lean_dec(x_390); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_450 = lean_ctor_get(x_443, 0); -lean_inc(x_450); -x_451 = lean_ctor_get(x_443, 1); -lean_inc(x_451); -if (lean_is_exclusive(x_443)) { - lean_ctor_release(x_443, 0); - lean_ctor_release(x_443, 1); - x_452 = x_443; -} else { - lean_dec_ref(x_443); - x_452 = lean_box(0); -} -if (lean_is_scalar(x_452)) { - x_453 = lean_alloc_ctor(1, 2, 0); -} else { - x_453 = x_452; -} -lean_ctor_set(x_453, 0, x_450); -lean_ctor_set(x_453, 1, x_451); -return x_453; -} -} -} -block_417: -{ -lean_object* x_404; lean_object* x_405; -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -x_405 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_404, x_2, x_3, x_4, x_5, x_6, x_7, x_403); -if (lean_obj_tag(x_405) == 0) -{ -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_405, 1); -lean_inc(x_407); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - x_408 = x_405; -} else { - lean_dec_ref(x_405); - x_408 = lean_box(0); -} -x_409 = lean_ctor_get(x_406, 1); +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +lean_dec(x_209); +x_409 = lean_ctor_get(x_401, 0); lean_inc(x_409); -if (lean_is_exclusive(x_406)) { - lean_ctor_release(x_406, 0); - lean_ctor_release(x_406, 1); - x_410 = x_406; +x_410 = lean_ctor_get(x_401, 1); +lean_inc(x_410); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_411 = x_401; } else { - lean_dec_ref(x_406); - x_410 = lean_box(0); + lean_dec_ref(x_401); + x_411 = lean_box(0); } -if (lean_is_scalar(x_410)) { - x_411 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_411)) { + x_412 = lean_alloc_ctor(1, 2, 0); } else { - x_411 = x_410; + x_412 = x_411; } -lean_ctor_set(x_411, 0, x_390); -lean_ctor_set(x_411, 1, x_409); -if (lean_is_scalar(x_408)) { - x_412 = lean_alloc_ctor(0, 2, 0); -} else { - x_412 = x_408; -} -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_407); +lean_ctor_set(x_412, 0, x_409); +lean_ctor_set(x_412, 1, x_410); return x_412; } +} else { -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -lean_dec(x_390); -x_413 = lean_ctor_get(x_405, 0); +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_440; lean_object* x_441; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; +x_413 = lean_ctor_get(x_397, 1); lean_inc(x_413); -x_414 = lean_ctor_get(x_405, 1); -lean_inc(x_414); -if (lean_is_exclusive(x_405)) { - lean_ctor_release(x_405, 0); - lean_ctor_release(x_405, 1); - x_415 = x_405; +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_414 = x_397; } else { - lean_dec_ref(x_405); - x_415 = lean_box(0); + lean_dec_ref(x_397); + x_414 = lean_box(0); } -if (lean_is_scalar(x_415)) { - x_416 = lean_alloc_ctor(1, 2, 0); +x_415 = lean_ctor_get(x_399, 0); +lean_inc(x_415); +lean_dec(x_399); +x_458 = lean_st_ref_get(x_7, x_398); +x_459 = lean_ctor_get(x_458, 0); +lean_inc(x_459); +x_460 = lean_ctor_get(x_459, 3); +lean_inc(x_460); +lean_dec(x_459); +x_461 = lean_ctor_get_uint8(x_460, sizeof(void*)*1); +lean_dec(x_460); +if (x_461 == 0) +{ +lean_object* x_462; uint8_t x_463; lean_object* x_464; lean_object* x_465; +x_462 = lean_ctor_get(x_458, 1); +lean_inc(x_462); +lean_dec(x_458); +x_463 = 0; +x_464 = lean_box(x_463); +if (lean_is_scalar(x_414)) { + x_465 = lean_alloc_ctor(0, 2, 0); } else { - x_416 = x_415; -} -lean_ctor_set(x_416, 0, x_413); -lean_ctor_set(x_416, 1, x_414); -return x_416; -} -} + x_465 = x_414; } +lean_ctor_set(x_465, 0, x_464); +lean_ctor_set(x_465, 1, x_413); +x_440 = x_465; +x_441 = x_462; +goto block_457; } else { -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; -lean_dec(x_390); -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_470 = lean_ctor_get(x_392, 0); +lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; +lean_dec(x_414); +x_466 = lean_ctor_get(x_458, 1); +lean_inc(x_466); +lean_dec(x_458); +x_467 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_468 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__5(x_467, x_413, x_2, x_3, x_4, x_5, x_6, x_7, x_466); +x_469 = lean_ctor_get(x_468, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_468, 1); lean_inc(x_470); -x_471 = lean_ctor_get(x_392, 1); -lean_inc(x_471); -if (lean_is_exclusive(x_392)) { - lean_ctor_release(x_392, 0); - lean_ctor_release(x_392, 1); - x_472 = x_392; -} else { - lean_dec_ref(x_392); - x_472 = lean_box(0); +lean_dec(x_468); +x_440 = x_469; +x_441 = x_470; +goto block_457; } -if (lean_is_scalar(x_472)) { - x_473 = lean_alloc_ctor(1, 2, 0); +block_439: +{ +lean_object* x_418; lean_object* x_419; +x_418 = lean_ctor_get(x_416, 1); +lean_inc(x_418); +lean_dec(x_416); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_419 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_415, x_395, x_418, x_2, x_3, x_4, x_5, x_6, x_7, x_417); +if (lean_obj_tag(x_419) == 0) +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_420 = lean_ctor_get(x_419, 0); +lean_inc(x_420); +x_421 = lean_ctor_get(x_419, 1); +lean_inc(x_421); +lean_dec(x_419); +x_422 = lean_ctor_get(x_420, 1); +lean_inc(x_422); +lean_dec(x_420); +x_423 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_422, x_2, x_3, x_4, x_5, x_6, x_7, x_421); +if (lean_obj_tag(x_423) == 0) +{ +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_426 = x_423; } else { - x_473 = x_472; + lean_dec_ref(x_423); + x_426 = lean_box(0); } -lean_ctor_set(x_473, 0, x_470); -lean_ctor_set(x_473, 1, x_471); -return x_473; +x_427 = lean_ctor_get(x_424, 1); +lean_inc(x_427); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + x_428 = x_424; +} else { + lean_dec_ref(x_424); + x_428 = lean_box(0); +} +if (lean_is_scalar(x_428)) { + x_429 = lean_alloc_ctor(0, 2, 0); +} else { + x_429 = x_428; +} +lean_ctor_set(x_429, 0, x_209); +lean_ctor_set(x_429, 1, x_427); +if (lean_is_scalar(x_426)) { + x_430 = lean_alloc_ctor(0, 2, 0); +} else { + x_430 = x_426; +} +lean_ctor_set(x_430, 0, x_429); +lean_ctor_set(x_430, 1, x_425); +return x_430; +} +else +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +lean_dec(x_209); +x_431 = lean_ctor_get(x_423, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_423, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_433 = x_423; +} else { + lean_dec_ref(x_423); + x_433 = lean_box(0); +} +if (lean_is_scalar(x_433)) { + x_434 = lean_alloc_ctor(1, 2, 0); +} else { + x_434 = x_433; +} +lean_ctor_set(x_434, 0, x_431); +lean_ctor_set(x_434, 1, x_432); +return x_434; } } else { -lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_dec(x_209); 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_474 = lean_ctor_get(x_387, 0); +x_435 = lean_ctor_get(x_419, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_419, 1); +lean_inc(x_436); +if (lean_is_exclusive(x_419)) { + lean_ctor_release(x_419, 0); + lean_ctor_release(x_419, 1); + x_437 = x_419; +} else { + lean_dec_ref(x_419); + x_437 = lean_box(0); +} +if (lean_is_scalar(x_437)) { + x_438 = lean_alloc_ctor(1, 2, 0); +} else { + x_438 = x_437; +} +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_436); +return x_438; +} +} +block_457: +{ +lean_object* x_442; uint8_t x_443; +x_442 = lean_ctor_get(x_440, 0); +lean_inc(x_442); +x_443 = lean_unbox(x_442); +lean_dec(x_442); +if (x_443 == 0) +{ +lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_444 = lean_ctor_get(x_440, 1); +lean_inc(x_444); +if (lean_is_exclusive(x_440)) { + lean_ctor_release(x_440, 0); + lean_ctor_release(x_440, 1); + x_445 = x_440; +} else { + lean_dec_ref(x_440); + x_445 = lean_box(0); +} +if (lean_is_scalar(x_445)) { + x_446 = lean_alloc_ctor(0, 2, 0); +} else { + x_446 = x_445; +} +lean_ctor_set(x_446, 0, x_19); +lean_ctor_set(x_446, 1, x_444); +x_416 = x_446; +x_417 = x_441; +goto block_439; +} +else +{ +lean_object* x_447; 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; +x_447 = lean_ctor_get(x_440, 1); +lean_inc(x_447); +lean_dec(x_440); +lean_inc(x_415); +x_448 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_448, 0, x_415); +x_449 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4; +x_450 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_450, 0, x_449); +lean_ctor_set(x_450, 1, x_448); +x_451 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_452 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_452, 0, x_450); +lean_ctor_set(x_452, 1, x_451); +x_453 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_454 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_453, x_452, x_447, x_2, x_3, x_4, x_5, x_6, x_7, x_441); +x_455 = lean_ctor_get(x_454, 0); +lean_inc(x_455); +x_456 = lean_ctor_get(x_454, 1); +lean_inc(x_456); +lean_dec(x_454); +x_416 = x_455; +x_417 = x_456; +goto block_439; +} +} +} +} +block_493: +{ +lean_object* x_474; uint8_t x_475; +x_474 = lean_ctor_get(x_472, 0); lean_inc(x_474); -x_475 = lean_ctor_get(x_387, 1); -lean_inc(x_475); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_476 = x_387; +x_475 = lean_unbox(x_474); +lean_dec(x_474); +if (x_475 == 0) +{ +lean_object* x_476; lean_object* x_477; lean_object* x_478; +x_476 = lean_ctor_get(x_472, 1); +lean_inc(x_476); +if (lean_is_exclusive(x_472)) { + lean_ctor_release(x_472, 0); + lean_ctor_release(x_472, 1); + x_477 = x_472; } else { - lean_dec_ref(x_387); - x_476 = lean_box(0); + lean_dec_ref(x_472); + x_477 = lean_box(0); } -if (lean_is_scalar(x_476)) { - x_477 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_477)) { + x_478 = lean_alloc_ctor(0, 2, 0); } else { - x_477 = x_476; + x_478 = x_477; +} +lean_ctor_set(x_478, 0, x_19); +lean_ctor_set(x_478, 1, x_476); +x_397 = x_478; +x_398 = x_473; +goto block_471; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_479 = lean_ctor_get(x_472, 1); +lean_inc(x_479); +lean_dec(x_472); +lean_inc(x_209); +x_480 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_480, 0, x_209); +x_481 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6; +x_482 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_482, 0, x_481); +lean_ctor_set(x_482, 1, x_480); +x_483 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7; +x_484 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_484, 0, x_482); +lean_ctor_set(x_484, 1, x_483); +lean_inc(x_395); +x_485 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_485, 0, x_395); +x_486 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_486, 0, x_484); +lean_ctor_set(x_486, 1, x_485); +x_487 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_488 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_488, 0, x_486); +lean_ctor_set(x_488, 1, x_487); +x_489 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_490 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__4(x_489, x_488, x_479, x_2, x_3, x_4, x_5, x_6, x_7, x_473); +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +x_492 = lean_ctor_get(x_490, 1); +lean_inc(x_492); +lean_dec(x_490); +x_397 = x_491; +x_398 = x_492; +goto block_471; +} } -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_object* x_535; lean_object* x_536; uint8_t x_537; -lean_dec(x_385); -x_535 = lean_ctor_get(x_6, 0); -lean_inc(x_535); -x_536 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_537 = l_Lean_checkTraceOption(x_535, x_536); -lean_dec(x_535); -if (x_537 == 0) -{ -lean_object* x_538; lean_object* x_539; -x_538 = lean_box(0); -x_539 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_539, 0, x_538); -lean_ctor_set(x_539, 1, x_384); -x_478 = x_539; -x_479 = x_19; -goto block_534; -} -else -{ -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_inc(x_9); -x_540 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_540, 0, x_9); -x_541 = l___private_Lean_Elab_App_16__finalize___closed__8; -x_542 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_542, 0, x_541); -lean_ctor_set(x_542, 1, x_540); -x_543 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_544 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_544, 0, x_542); -lean_ctor_set(x_544, 1, x_543); -lean_inc(x_10); -x_545 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_545, 0, x_10); -x_546 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_546, 0, x_544); -lean_ctor_set(x_546, 1, x_545); -x_547 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_536, x_546, x_384, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -x_548 = lean_ctor_get(x_547, 0); -lean_inc(x_548); -x_549 = lean_ctor_get(x_547, 1); -lean_inc(x_549); -lean_dec(x_547); -x_478 = x_548; -x_479 = x_549; -goto block_534; -} -block_534: -{ -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_498; -x_480 = lean_ctor_get(x_478, 1); -lean_inc(x_480); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - x_481 = x_478; -} else { - lean_dec_ref(x_478); - x_481 = lean_box(0); -} -x_498 = lean_ctor_get(x_1, 4); -lean_inc(x_498); +uint8_t x_507; +lean_dec(x_209); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_498) == 0) +x_507 = !lean_is_exclusive(x_211); +if (x_507 == 0) { -lean_object* x_499; lean_object* x_500; -lean_dec(x_10); -x_499 = lean_box(0); -if (lean_is_scalar(x_481)) { - x_500 = lean_alloc_ctor(0, 2, 0); -} else { - x_500 = x_481; -} -lean_ctor_set(x_500, 0, x_499); -lean_ctor_set(x_500, 1, x_480); -x_482 = x_500; -x_483 = x_479; -goto block_497; +return x_211; } else { -lean_object* x_501; lean_object* x_502; lean_object* x_503; uint8_t x_504; -lean_dec(x_481); -x_501 = lean_ctor_get(x_498, 0); -lean_inc(x_501); -lean_dec(x_498); -x_502 = lean_ctor_get(x_6, 0); -lean_inc(x_502); -x_503 = l___private_Lean_Elab_App_16__finalize___closed__2; -x_504 = l_Lean_checkTraceOption(x_502, x_503); -lean_dec(x_502); -if (x_504 == 0) -{ -lean_object* x_505; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_505 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_501, x_10, x_480, x_2, x_3, x_4, x_5, x_6, x_7, x_479); -if (lean_obj_tag(x_505) == 0) -{ -lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_506 = lean_ctor_get(x_505, 0); -lean_inc(x_506); -x_507 = lean_ctor_get(x_505, 1); -lean_inc(x_507); -lean_dec(x_505); -x_508 = lean_ctor_get(x_506, 1); +lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_508 = lean_ctor_get(x_211, 0); +x_509 = lean_ctor_get(x_211, 1); +lean_inc(x_509); lean_inc(x_508); -if (lean_is_exclusive(x_506)) { - lean_ctor_release(x_506, 0); - lean_ctor_release(x_506, 1); - x_509 = x_506; -} else { - lean_dec_ref(x_506); - x_509 = lean_box(0); +lean_dec(x_211); +x_510 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_509); +return x_510; } -x_510 = lean_box(0); -if (lean_is_scalar(x_509)) { - x_511 = lean_alloc_ctor(0, 2, 0); -} else { - x_511 = x_509; } -lean_ctor_set(x_511, 0, x_510); -lean_ctor_set(x_511, 1, x_508); -x_482 = x_511; -x_483 = x_507; -goto block_497; } else { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -lean_dec(x_9); +uint8_t x_511; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_512 = lean_ctor_get(x_505, 0); -lean_inc(x_512); -x_513 = lean_ctor_get(x_505, 1); +lean_dec(x_1); +x_511 = !lean_is_exclusive(x_206); +if (x_511 == 0) +{ +return x_206; +} +else +{ +lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_512 = lean_ctor_get(x_206, 0); +x_513 = lean_ctor_get(x_206, 1); lean_inc(x_513); -if (lean_is_exclusive(x_505)) { - lean_ctor_release(x_505, 0); - lean_ctor_release(x_505, 1); - x_514 = x_505; -} else { - lean_dec_ref(x_505); - x_514 = lean_box(0); -} -if (lean_is_scalar(x_514)) { - x_515 = lean_alloc_ctor(1, 2, 0); -} else { - x_515 = x_514; -} -lean_ctor_set(x_515, 0, x_512); -lean_ctor_set(x_515, 1, x_513); -return x_515; -} -} -else -{ -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; -lean_inc(x_501); -x_516 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_516, 0, x_501); -x_517 = l___private_Lean_Elab_App_16__finalize___closed__5; -x_518 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_518, 0, x_517); -lean_ctor_set(x_518, 1, x_516); -x_519 = l_Lean_Elab_logTrace___at___private_Lean_Elab_App_14__propagateExpectedType___spec__4(x_503, x_518, x_480, x_2, x_3, x_4, x_5, x_6, x_7, x_479); -x_520 = lean_ctor_get(x_519, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_519, 1); -lean_inc(x_521); -lean_dec(x_519); -x_522 = lean_ctor_get(x_520, 1); -lean_inc(x_522); -lean_dec(x_520); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_523 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_14__propagateExpectedType___spec__3(x_501, x_10, x_522, x_2, x_3, x_4, x_5, x_6, x_7, x_521); -if (lean_obj_tag(x_523) == 0) -{ -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_524 = lean_ctor_get(x_523, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_523, 1); -lean_inc(x_525); -lean_dec(x_523); -x_526 = lean_ctor_get(x_524, 1); -lean_inc(x_526); -if (lean_is_exclusive(x_524)) { - lean_ctor_release(x_524, 0); - lean_ctor_release(x_524, 1); - x_527 = x_524; -} else { - lean_dec_ref(x_524); - x_527 = lean_box(0); -} -x_528 = lean_box(0); -if (lean_is_scalar(x_527)) { - x_529 = lean_alloc_ctor(0, 2, 0); -} else { - x_529 = x_527; -} -lean_ctor_set(x_529, 0, x_528); -lean_ctor_set(x_529, 1, x_526); -x_482 = x_529; -x_483 = x_525; -goto block_497; -} -else -{ -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_530 = lean_ctor_get(x_523, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_523, 1); -lean_inc(x_531); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_532 = x_523; -} else { - lean_dec_ref(x_523); - 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; -} -} -} -block_497: -{ -lean_object* x_484; lean_object* x_485; -x_484 = lean_ctor_get(x_482, 1); -lean_inc(x_484); -lean_dec(x_482); -x_485 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_484, x_2, x_3, x_4, x_5, x_6, x_7, x_483); -if (lean_obj_tag(x_485) == 0) -{ -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_486 = lean_ctor_get(x_485, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_485, 1); -lean_inc(x_487); -if (lean_is_exclusive(x_485)) { - lean_ctor_release(x_485, 0); - lean_ctor_release(x_485, 1); - x_488 = x_485; -} else { - lean_dec_ref(x_485); - x_488 = lean_box(0); -} -x_489 = lean_ctor_get(x_486, 1); -lean_inc(x_489); -if (lean_is_exclusive(x_486)) { - lean_ctor_release(x_486, 0); - lean_ctor_release(x_486, 1); - x_490 = x_486; -} else { - lean_dec_ref(x_486); - x_490 = lean_box(0); -} -if (lean_is_scalar(x_490)) { - x_491 = lean_alloc_ctor(0, 2, 0); -} else { - x_491 = x_490; -} -lean_ctor_set(x_491, 0, x_9); -lean_ctor_set(x_491, 1, x_489); -if (lean_is_scalar(x_488)) { - x_492 = lean_alloc_ctor(0, 2, 0); -} else { - x_492 = x_488; -} -lean_ctor_set(x_492, 0, x_491); -lean_ctor_set(x_492, 1, x_487); -return x_492; -} -else -{ -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; -lean_dec(x_9); -x_493 = lean_ctor_get(x_485, 0); -lean_inc(x_493); -x_494 = lean_ctor_get(x_485, 1); -lean_inc(x_494); -if (lean_is_exclusive(x_485)) { - lean_ctor_release(x_485, 0); - lean_ctor_release(x_485, 1); - x_495 = x_485; -} else { - lean_dec_ref(x_485); - x_495 = lean_box(0); -} -if (lean_is_scalar(x_495)) { - x_496 = lean_alloc_ctor(1, 2, 0); -} else { - x_496 = x_495; -} -lean_ctor_set(x_496, 0, x_493); -lean_ctor_set(x_496, 1, x_494); -return x_496; +lean_inc(x_512); +lean_dec(x_206); +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_512); +lean_ctor_set(x_514, 1, x_513); +return x_514; } } } @@ -11997,27 +14011,30 @@ return x_496; } } } -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_13; -x_13 = l_Array_forMAux___main___at___private_Lean_Elab_App_16__finalize___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); +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); lean_dec(x_3); -return x_13; +return x_17; } } -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_mkLambdaFVars___at___private_Lean_Elab_App_16__finalize___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12026,16 +14043,171 @@ lean_dec(x_4); return x_11; } } -lean_object* l___private_Lean_Elab_App_16__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* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_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) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_16__finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(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_throwError___at___private_Lean_Elab_App_17__processExplictArg___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg(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) { +_start: +{ +if (x_1 == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_dec(x_4); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_5); +x_8 = lean_box(x_1); +x_9 = lean_apply_3(x_7, x_8, x_3, x_3); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +if (lean_obj_tag(x_10) == 4) +{ +lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_13 = lean_ctor_get_uint64(x_10, sizeof(void*)*2); +lean_dec(x_10); +x_14 = lean_box_uint64(x_13); +x_15 = lean_apply_4(x_5, x_2, x_11, x_12, x_14); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_5); +x_16 = lean_apply_2(x_6, x_2, x_10); +return x_16; +} +} +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +lean_dec(x_2); +x_18 = lean_apply_2(x_4, x_17, x_3); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_19 = lean_box(x_1); +x_20 = lean_apply_3(x_7, x_19, x_2, x_3); +return x_20; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg___boxed), 7, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__2___rarg(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_2, x_5, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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; uint8_t x_12; @@ -12073,15 +14245,15 @@ return x_18; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___spec__1(lean_object* x_1) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___spec__1___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___rarg___boxed), 9, 0); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1() { _start: { lean_object* x_1; @@ -12089,27 +14261,27 @@ x_1 = lean_mk_string("invalid autoParam, argument must be a constant"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_17__processExplictArg___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_17__processExplictArg___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4() { _start: { lean_object* x_1; @@ -12117,29 +14289,29 @@ x_1 = lean_mk_string("by"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5() { _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_App_17__processExplictArg___closed__4; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4; 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; } } -static lean_object* _init_l___private_Lean_Elab_App_17__processExplictArg___closed__6() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6() { _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_App_17__processExplictArg___closed__5; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_App_17__processExplictArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -12149,7 +14321,7 @@ if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_inc(x_2); -x_11 = l___private_Lean_Elab_App_7__getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); @@ -12181,7 +14353,7 @@ lean_dec(x_19); if (x_20 == 0) { lean_object* x_21; -x_21 = l___private_Lean_Elab_App_15__addEtaArg(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_21 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); return x_21; } else @@ -12193,7 +14365,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_22 = l___private_Lean_Elab_App_12__fTypeHasOptAutoParams(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; uint8_t x_25; @@ -12213,7 +14385,7 @@ lean_dec(x_22); x_27 = lean_ctor_get(x_23, 1); lean_inc(x_27); lean_dec(x_23); -x_28 = l___private_Lean_Elab_App_16__finalize(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_26); +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_26); lean_dec(x_4); return x_28; } @@ -12226,7 +14398,7 @@ lean_dec(x_22); x_30 = lean_ctor_get(x_23, 1); lean_inc(x_30); lean_dec(x_23); -x_31 = l___private_Lean_Elab_App_15__addEtaArg(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_29); return x_31; } } @@ -12295,7 +14467,7 @@ x_44 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_44, 0, x_43); x_45 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___spec__1___rarg(x_45, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_46 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___rarg(x_45, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_40); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -12348,7 +14520,7 @@ x_69 = l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___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_App_17__processExplictArg___closed__6; +x_71 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6; x_72 = lean_array_push(x_71, x_70); x_73 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; x_74 = lean_alloc_ctor(1, 2, 0); @@ -12364,7 +14536,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_77 = l___private_Lean_Elab_App_14__propagateExpectedType(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_51); +x_77 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_51); if (lean_obj_tag(x_77) == 0) { lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; @@ -12384,7 +14556,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_82 = l___private_Lean_Elab_App_10__elabAndAddNewArg(x_81, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_79); +x_82 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_81, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_79); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; @@ -12467,8 +14639,8 @@ else lean_object* x_96; lean_object* x_97; lean_dec(x_36); lean_dec(x_1); -x_96 = l___private_Lean_Elab_App_17__processExplictArg___closed__3; -x_97 = l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___spec__1___rarg(x_96, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_96 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3; +x_97 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___rarg(x_96, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -12488,7 +14660,7 @@ lean_dec(x_2); x_98 = lean_ctor_get(x_17, 0); lean_inc(x_98); lean_dec(x_17); -x_99 = l___private_Lean_Elab_App_9__addNewArg(x_98, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +x_99 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_98, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_14); x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); x_101 = lean_ctor_get(x_99, 1); @@ -12519,14 +14691,14 @@ lean_dec(x_107); if (x_108 == 0) { lean_object* x_109; -x_109 = l___private_Lean_Elab_App_15__addEtaArg(x_1, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_105); +x_109 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_105); return x_109; } else { lean_object* x_110; lean_dec(x_1); -x_110 = l___private_Lean_Elab_App_16__finalize(x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_105); +x_110 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_106, x_3, x_4, x_5, x_6, x_7, x_8, x_105); lean_dec(x_4); return x_110; } @@ -12546,7 +14718,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_113 = l___private_Lean_Elab_App_14__propagateExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_113 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_113) == 0) { lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; @@ -12571,7 +14743,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_119 = l___private_Lean_Elab_App_10__elabAndAddNewArg(x_111, x_115, x_3, x_4, x_5, x_6, x_7, x_8, x_116); +x_119 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_111, x_115, x_3, x_4, x_5, x_6, x_7, x_8, x_116); if (lean_obj_tag(x_119) == 0) { lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; @@ -12657,7 +14829,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_140 = l___private_Lean_Elab_App_10__elabAndAddNewArg(x_111, x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_116); +x_140 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_111, x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_116); if (lean_obj_tag(x_140) == 0) { lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; @@ -12740,11 +14912,11 @@ return x_153; } } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_App_17__processExplictArg___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_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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_App_17__processExplictArg___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_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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); @@ -12755,7 +14927,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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; @@ -12789,7 +14961,7 @@ return x_19; } } } -lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___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; @@ -12891,7 +15063,7 @@ return x_28; } } } -lean_object* l___private_Lean_Elab_App_18__processImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -12899,7 +15071,7 @@ x_10 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 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_11 = l___private_Lean_Elab_App_7__getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -12915,7 +15087,7 @@ lean_ctor_set(x_16, 0, x_14); x_17 = 0; x_18 = lean_box(0); lean_inc(x_5); -x_19 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(x_16, x_17, x_18, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_19 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(x_16, x_17, x_18, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -12931,7 +15103,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_22); -x_24 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___spec__2(x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_24 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__2(x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; uint8_t x_27; @@ -12950,7 +15122,7 @@ lean_dec(x_24); x_29 = lean_ctor_get(x_25, 1); lean_inc(x_29); lean_dec(x_25); -x_30 = l___private_Lean_Elab_App_9__addNewArg(x_22, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_22, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_28); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -12984,7 +15156,7 @@ x_42 = lean_array_push(x_39, x_41); x_43 = lean_array_push(x_40, x_41); lean_ctor_set(x_36, 8, x_43); lean_ctor_set(x_36, 6, x_42); -x_44 = l___private_Lean_Elab_App_9__addNewArg(x_22, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_22, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_37); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -13037,7 +15209,7 @@ lean_ctor_set(x_64, 7, x_58); lean_ctor_set(x_64, 8, x_63); lean_ctor_set_uint8(x_64, sizeof(void*)*9, x_50); lean_ctor_set_uint8(x_64, sizeof(void*)*9 + 1, x_60); -x_65 = l___private_Lean_Elab_App_9__addNewArg(x_22, x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +x_65 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_22, x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_37); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); @@ -13086,18 +15258,18 @@ return x_74; else { lean_object* x_75; -x_75 = l___private_Lean_Elab_App_17__processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_75 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_75; } } } -lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___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_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___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_2); lean_dec(x_2); -x_13 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(x_1, x_12, 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); @@ -13106,22 +15278,22 @@ lean_dec(x_5); return x_13; } } -lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___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_isTypeFormer___at___private_Lean_Elab_App_18__processImplicitArg___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_isTypeFormer___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_App_19__processInstImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_12; lean_inc(x_2); -x_10 = l___private_Lean_Elab_App_7__getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); @@ -13142,7 +15314,7 @@ lean_ctor_set(x_16, 0, x_14); x_17 = 1; x_18 = lean_box(0); lean_inc(x_5); -x_19 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(x_16, x_17, x_18, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +x_19 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(x_16, x_17, x_18, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -13154,7 +15326,7 @@ x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); lean_dec(x_20); x_24 = l_Lean_Expr_mvarId_x21(x_22); -x_25 = l___private_Lean_Elab_App_3__addInstMVar(x_24, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_24, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_21); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -13163,7 +15335,7 @@ lean_dec(x_25); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l___private_Lean_Elab_App_9__addNewArg(x_22, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +x_29 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_22, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_27); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); @@ -13187,7 +15359,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_11, 1); lean_inc(x_37); lean_dec(x_11); -x_38 = l___private_Lean_Elab_App_8__isNextArgHole(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_35); +x_38 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_35); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_39, 0); @@ -13204,7 +15376,7 @@ lean_dec(x_38); x_43 = lean_ctor_get(x_39, 1); lean_inc(x_43); lean_dec(x_39); -x_44 = l___private_Lean_Elab_App_17__processExplictArg(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_42); return x_44; } else @@ -13221,7 +15393,7 @@ lean_ctor_set(x_47, 0, x_36); x_48 = 1; x_49 = lean_box(0); lean_inc(x_5); -x_50 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_18__processImplicitArg___spec__1(x_47, x_48, x_49, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +x_50 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg___spec__1(x_47, x_48, x_49, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_45); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_51, 1); @@ -13241,7 +15413,7 @@ x_57 = l_List_tail_x21___rarg(x_56); lean_dec(x_56); lean_ctor_set(x_52, 2, x_57); x_58 = l_Lean_Expr_mvarId_x21(x_54); -x_59 = l___private_Lean_Elab_App_3__addInstMVar(x_58, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_53); +x_59 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_58, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_53); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -13250,7 +15422,7 @@ lean_dec(x_59); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_63 = l___private_Lean_Elab_App_9__addNewArg(x_54, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +x_63 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_54, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_61); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); @@ -13302,7 +15474,7 @@ lean_ctor_set(x_81, 8, x_78); lean_ctor_set_uint8(x_81, sizeof(void*)*9, x_69); lean_ctor_set_uint8(x_81, sizeof(void*)*9 + 1, x_79); x_82 = l_Lean_Expr_mvarId_x21(x_54); -x_83 = l___private_Lean_Elab_App_3__addInstMVar(x_82, x_81, x_3, x_4, x_5, x_6, x_7, x_8, x_53); +x_83 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_82, x_81, x_3, x_4, x_5, x_6, x_7, x_8, x_53); x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); x_85 = lean_ctor_get(x_83, 1); @@ -13311,7 +15483,7 @@ lean_dec(x_83); x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); lean_dec(x_84); -x_87 = l___private_Lean_Elab_App_9__addNewArg(x_54, x_86, x_3, x_4, x_5, x_6, x_7, x_8, x_85); +x_87 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_54, x_86, x_3, x_4, x_5, x_6, x_7, x_8, x_85); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_ctor_get(x_87, 1); @@ -13328,7 +15500,7 @@ return x_92; } } } -lean_object* l___private_Lean_Elab_App_20__hasArgsToProcess(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(lean_object* x_1, lean_object* x_2, 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; @@ -13385,11 +15557,11 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_App_20__hasArgsToProcess___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object* x_1, lean_object* x_2, 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_20__hasArgsToProcess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(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); @@ -13399,15 +15571,153 @@ lean_dec(x_2); return x_9; } } -static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1() { +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_box(x_1); +switch (lean_obj_tag(x_5)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +case 3: +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_box(0); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +default: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_10 = lean_box(x_1); +x_11 = lean_apply_1(x_4, x_10); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg___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 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Elab_Term_ElabAppArgs_main_match__1___rarg(x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main_match__4___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main___main___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main___boxed), 1, 0); return x_1; } } -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___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* l_Lean_Elab_Term_ElabAppArgs_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) { _start: { lean_object* x_9; @@ -13415,176 +15725,267 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l___private_Lean_Elab_App_5__normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); +if (lean_obj_tag(x_11) == 7) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); +lean_dec(x_9); x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); lean_dec(x_10); -if (lean_obj_tag(x_12) == 7) +x_14 = lean_ctor_get(x_11, 0); +lean_inc(x_14); +x_15 = lean_ctor_get_uint64(x_11, sizeof(void*)*3); +lean_dec(x_11); +lean_inc(x_14); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); +lean_closure_set(x_16, 0, x_14); +x_17 = lean_ctor_get(x_13, 3); +lean_inc(x_17); +x_18 = l_List_find_x3f___main___rarg(x_16, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_34; uint64_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_12, 0); -lean_inc(x_34); -x_35 = lean_ctor_get_uint64(x_12, sizeof(void*)*3); -lean_dec(x_12); -lean_inc(x_34); -x_36 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_13__getForallBody___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_36, 0, x_34); -x_37 = lean_ctor_get(x_13, 3); -lean_inc(x_37); -x_38 = l_List_find_x3f___main___rarg(x_36, x_37); -if (lean_obj_tag(x_38) == 0) -{ -uint8_t x_39; lean_object* x_40; -lean_dec(x_34); -x_39 = (uint8_t)((x_35 << 24) >> 61); -x_40 = lean_box(x_39); -switch (lean_obj_tag(x_40)) { +uint8_t x_19; lean_object* x_20; +lean_dec(x_14); +x_19 = (uint8_t)((x_15 << 24) >> 61); +x_20 = lean_box(x_19); +switch (lean_obj_tag(x_20)) { case 1: { -lean_object* x_41; lean_object* x_42; -x_41 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1; -x_42 = l___private_Lean_Elab_App_18__processImplicitArg(x_41, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_42; +lean_object* x_21; lean_object* x_22; +x_21 = l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1; +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(x_21, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_22; } case 3: { -lean_object* x_43; lean_object* x_44; -x_43 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1; -x_44 = l___private_Lean_Elab_App_19__processInstImplicitArg(x_43, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_44; +lean_object* x_23; lean_object* x_24; +x_23 = l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1; +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(x_23, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_24; } default: { -lean_object* x_45; lean_object* x_46; -lean_dec(x_40); -x_45 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1; -x_46 = l___private_Lean_Elab_App_17__processExplictArg(x_45, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_46; +lean_object* x_25; lean_object* x_26; +lean_dec(x_20); +x_25 = l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1; +x_26 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_25, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_26; } } } else { -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_38, 0); -lean_inc(x_47); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +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_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_14, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +lean_dec(x_14); +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_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_27, 1); +lean_inc(x_36); +lean_dec(x_27); +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_37 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_36, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); lean_dec(x_38); -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_48 = l___private_Lean_Elab_App_14__propagateExpectedType(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_34, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_50); -lean_dec(x_34); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_47, 1); -lean_inc(x_56); -lean_dec(x_47); -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_57 = l___private_Lean_Elab_App_10__elabAndAddNewArg(x_56, x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_54); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_1 = x_60; -x_8 = x_59; +x_1 = x_40; +x_8 = x_39; goto _start; } else { -uint8_t x_62; +uint8_t x_42; 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_62 = !lean_is_exclusive(x_57); -if (x_62 == 0) +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) { -return x_57; +return x_37; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_57, 0); -x_64 = lean_ctor_get(x_57, 1); -lean_inc(x_64); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_27); +lean_dec(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); +x_46 = !lean_is_exclusive(x_28); +if (x_46 == 0) +{ +return x_28; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_28, 0); +x_48 = lean_ctor_get(x_28, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_28); +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; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_11); +x_50 = lean_ctor_get(x_9, 1); +lean_inc(x_50); +lean_dec(x_9); +x_51 = lean_ctor_get(x_10, 1); +lean_inc(x_51); +lean_dec(x_10); +x_52 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +x_58 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_56); +lean_dec(x_3); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_52, 1); +lean_inc(x_59); +lean_dec(x_52); +x_60 = lean_ctor_get(x_53, 1); +lean_inc(x_60); +lean_dec(x_53); +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_61 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(x_60, x_2, x_3, x_4, x_5, x_6, x_7, x_59); +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_57); -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; -} -} +lean_dec(x_61); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_1 = x_64; +x_8 = x_63; +goto _start; } else { uint8_t x_66; -lean_dec(x_47); -lean_dec(x_34); 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_66 = !lean_is_exclusive(x_48); +x_66 = !lean_is_exclusive(x_61); if (x_66 == 0) { -return x_48; +return x_61; } else { lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_48, 0); -x_68 = lean_ctor_get(x_48, 1); +x_67 = lean_ctor_get(x_61, 0); +x_68 = lean_ctor_get(x_61, 1); lean_inc(x_68); lean_inc(x_67); -lean_dec(x_48); +lean_dec(x_61); x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_67); lean_ctor_set(x_69, 1, x_68); @@ -13593,155 +15994,37 @@ return x_69; } } } -else -{ -lean_object* x_70; -lean_dec(x_12); -x_70 = lean_box(0); -x_14 = x_70; -goto block_33; -} -block_33: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_14); -x_15 = l___private_Lean_Elab_App_20__hasArgsToProcess(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -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_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = l___private_Lean_Elab_App_16__finalize(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_19); -lean_dec(x_3); -return x_21; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 1); -lean_inc(x_22); -lean_dec(x_15); -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); -lean_dec(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_24 = l___private_Lean_Elab_App_4__synthesizePendingAndNormalizeFunType(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_1 = x_27; -x_8 = x_26; -goto _start; -} -else -{ -uint8_t x_29; +uint8_t x_70; 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_29 = !lean_is_exclusive(x_24); -if (x_29 == 0) -{ -return x_24; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_24, 0); -x_31 = lean_ctor_get(x_24, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_24); -x_32 = 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 -{ -uint8_t x_71; -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_71 = !lean_is_exclusive(x_9); -if (x_71 == 0) +x_70 = !lean_is_exclusive(x_9); +if (x_70 == 0) { return x_9; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_9, 0); -x_73 = lean_ctor_get(x_9, 1); -lean_inc(x_73); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_9, 0); +x_72 = lean_ctor_get(x_9, 1); lean_inc(x_72); +lean_inc(x_71); lean_dec(x_9); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_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; } } } } -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_main___main___rarg), 8, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_ElabAppArgs_main___main___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Term_ElabAppArgs_main___main(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_ElabAppArgs_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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object* x_1) { _start: { @@ -13759,7 +16042,7 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1() { _start: { lean_object* x_1; @@ -13767,17 +16050,17 @@ x_1 = lean_mk_string("args"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__1; -x_2 = l___private_Lean_Elab_App_21__elabAppArgs___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3() { _start: { lean_object* x_1; @@ -13785,75 +16068,25 @@ x_1 = lean_mk_string("explicit: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_reprAux___main___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__5; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__9; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__6; -x_2 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__5; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__10; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_App_21__elabAppArgs___closed__8; -x_2 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_App_21__elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; @@ -13862,87 +16095,79 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_1); -x_13 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_86; lean_object* x_87; uint8_t x_88; +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_66; lean_object* x_67; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; 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_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +x_16 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_15); 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_86 = lean_ctor_get(x_10, 0); -lean_inc(x_86); -x_87 = l___private_Lean_Elab_App_21__elabAppArgs___closed__2; -x_88 = l_Lean_checkTraceOption(x_86, x_87); +x_86 = lean_st_ref_get(x_11, x_18); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_87, 3); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_ctor_get_uint8(x_88, sizeof(void*)*1); +lean_dec(x_88); +if (x_89 == 0) +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_86, 1); +lean_inc(x_90); lean_dec(x_86); -if (x_88 == 0) -{ -x_19 = x_18; +x_91 = 0; +x_66 = x_91; +x_67 = x_90; goto block_85; } else { -lean_object* x_89; lean_object* x_90; -lean_inc(x_1); -x_89 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_89, 0, x_1); -lean_inc(x_17); -x_90 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_90, 0, x_17); -if (x_5 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_91 = l___private_Lean_Elab_App_21__elabAppArgs___closed__7; -x_92 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_89); -x_93 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_94 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -x_95 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_90); -x_96 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_87, x_95, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec(x_96); -x_19 = x_97; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_92 = lean_ctor_get(x_86, 1); +lean_inc(x_92); +lean_dec(x_86); +x_93 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2; +x_94 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__2(x_93, x_6, x_7, x_8, x_9, x_10, x_11, x_92); +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 = lean_unbox(x_95); +lean_dec(x_95); +x_66 = x_97; +x_67 = x_96; goto block_85; } +block_65: +{ +uint8_t x_20; uint8_t x_62; +x_62 = l_Array_isEmpty___rarg(x_2); +if (x_62 == 0) +{ +uint8_t x_63; +x_63 = 0; +x_20 = x_63; +goto block_61; +} else { -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_98 = l___private_Lean_Elab_App_21__elabAppArgs___closed__9; -x_99 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_89); -x_100 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_101 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_90); -x_103 = l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_87, x_102, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_19 = x_104; -goto block_85; +uint8_t x_64; +x_64 = l_Array_isEmpty___rarg(x_3); +x_20 = x_64; +goto block_61; } -} -block_85: +block_61: { -uint8_t x_20; -x_20 = l_Array_isEmpty___rarg(x_2); if (x_20 == 0) { lean_object* x_21; @@ -13970,7 +16195,7 @@ lean_ctor_set(x_27, 7, x_25); lean_ctor_set(x_27, 8, x_25); lean_ctor_set_uint8(x_27, sizeof(void*)*9, x_5); lean_ctor_set_uint8(x_27, sizeof(void*)*9 + 1, x_26); -x_28 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg(x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +x_28 = l_Lean_Elab_Term_ElabAppArgs_main___rarg(x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_22); if (lean_obj_tag(x_28) == 0) { uint8_t x_29; @@ -14059,94 +16284,134 @@ return x_43; } else { -uint8_t x_44; -x_44 = l_Array_isEmpty___rarg(x_3); -if (x_44 == 0) +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; +x_44 = l_Array_toList___rarg(x_3); +x_45 = l_Array_toList___rarg(x_2); +x_46 = l_Array_empty___closed__1; +x_47 = 0; +x_48 = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(x_48, 0, x_1); +lean_ctor_set(x_48, 1, x_17); +lean_ctor_set(x_48, 2, x_44); +lean_ctor_set(x_48, 3, x_45); +lean_ctor_set(x_48, 4, x_4); +lean_ctor_set(x_48, 5, x_46); +lean_ctor_set(x_48, 6, x_46); +lean_ctor_set(x_48, 7, x_46); +lean_ctor_set(x_48, 8, x_46); +lean_ctor_set_uint8(x_48, sizeof(void*)*9, x_5); +lean_ctor_set_uint8(x_48, sizeof(void*)*9 + 1, x_47); +x_49 = l_Lean_Elab_Term_ElabAppArgs_main___rarg(x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_45; -lean_inc(x_17); -x_45 = l_Lean_Elab_Term_tryPostponeIfMVar(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -if (lean_obj_tag(x_45) == 0) +uint8_t x_50; +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_47 = l_Array_toList___rarg(x_3); -x_48 = l_Array_toList___rarg(x_2); -x_49 = l_Array_empty___closed__1; -x_50 = 0; -x_51 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_51, 0, x_1); -lean_ctor_set(x_51, 1, x_17); -lean_ctor_set(x_51, 2, x_47); -lean_ctor_set(x_51, 3, x_48); -lean_ctor_set(x_51, 4, x_4); -lean_ctor_set(x_51, 5, x_49); -lean_ctor_set(x_51, 6, x_49); -lean_ctor_set(x_51, 7, x_49); -lean_ctor_set(x_51, 8, x_49); -lean_ctor_set_uint8(x_51, sizeof(void*)*9, x_5); -lean_ctor_set_uint8(x_51, sizeof(void*)*9 + 1, x_50); -x_52 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_46); -if (lean_obj_tag(x_52) == 0) +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +lean_dec(x_51); +lean_ctor_set(x_49, 0, x_52); +return x_49; +} +else { -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_52, 0); -x_55 = lean_ctor_get(x_54, 0); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +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_ctor_get(x_53, 0); lean_inc(x_55); -lean_dec(x_54); -lean_ctor_set(x_52, 0, x_55); -return x_52; +lean_dec(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_54); +return x_56; +} } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -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_ctor_get(x_56, 0); +uint8_t x_57; +x_57 = !lean_is_exclusive(x_49); +if (x_57 == 0) +{ +return x_49; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_49, 0); +x_59 = lean_ctor_get(x_49, 1); +lean_inc(x_59); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; +lean_dec(x_49); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } +} +} +} +block_85: +{ +if (x_66 == 0) +{ +x_19 = x_67; +goto block_65; +} else { -uint8_t x_60; -x_60 = !lean_is_exclusive(x_52); -if (x_60 == 0) -{ -return x_52; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_52, 0); -x_62 = lean_ctor_get(x_52, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_52); -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* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_68 = l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__4(x_5); +x_69 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +lean_inc(x_1); +x_74 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_74, 0, x_1); +x_75 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7; +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +lean_inc(x_17); +x_78 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_78, 0, x_17); +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_81 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +x_82 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2; +x_83 = l_Lean_addTrace___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1(x_82, x_81, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +lean_dec(x_83); +x_19 = x_84; +goto block_65; } } } else { -uint8_t x_64; -lean_dec(x_17); +uint8_t x_98; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -14155,184 +16420,99 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_45); -if (x_64 == 0) -{ -return x_45; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_45, 0); -x_66 = lean_ctor_get(x_45, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_45); -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; -} -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; -x_68 = l_Array_toList___rarg(x_3); -x_69 = l_Array_toList___rarg(x_2); -x_70 = l_Array_empty___closed__1; -x_71 = 0; -x_72 = lean_alloc_ctor(0, 9, 2); -lean_ctor_set(x_72, 0, x_1); -lean_ctor_set(x_72, 1, x_17); -lean_ctor_set(x_72, 2, x_68); -lean_ctor_set(x_72, 3, x_69); -lean_ctor_set(x_72, 4, x_4); -lean_ctor_set(x_72, 5, x_70); -lean_ctor_set(x_72, 6, x_70); -lean_ctor_set(x_72, 7, x_70); -lean_ctor_set(x_72, 8, x_70); -lean_ctor_set_uint8(x_72, sizeof(void*)*9, x_5); -lean_ctor_set_uint8(x_72, sizeof(void*)*9 + 1, x_71); -x_73 = l_Lean_Elab_Term_ElabAppArgs_main___main___rarg(x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -if (lean_obj_tag(x_73) == 0) -{ -uint8_t x_74; -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_73, 0); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -lean_dec(x_75); -lean_ctor_set(x_73, 0, x_76); -return x_73; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_73, 0); -x_78 = lean_ctor_get(x_73, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_73); -x_79 = lean_ctor_get(x_77, 0); -lean_inc(x_79); -lean_dec(x_77); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_78); -return x_80; -} -} -else -{ -uint8_t x_81; -x_81 = !lean_is_exclusive(x_73); -if (x_81 == 0) -{ -return x_73; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_73, 0); -x_83 = lean_ctor_get(x_73, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_73); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; -} -} -} -} -} -} -else -{ -uint8_t x_105; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_105 = !lean_is_exclusive(x_13); -if (x_105 == 0) +x_98 = !lean_is_exclusive(x_13); +if (x_98 == 0) { return x_13; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_13, 0); -x_107 = lean_ctor_get(x_13, 1); -lean_inc(x_107); -lean_inc(x_106); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_13, 0); +x_100 = lean_ctor_get(x_13, 1); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_13); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; } } } } -lean_object* l___private_Lean_Elab_App_21__elabAppArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_0__Lean_Elab_Term_elabAppArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_5); lean_dec(x_5); -x_14 = l___private_Lean_Elab_App_21__elabAppArgs(x_1, x_2, x_3, x_4, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_1, x_2, x_3, x_4, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_3); lean_dec(x_2); return x_14; } } -lean_object* l___private_Lean_Elab_App_22__throwLValError___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) { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1() { _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 = l_Lean_indentExpr(x_1); -x_12 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_12, 0, x_3); -lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_MessageData_ofList___closed__3; -x_14 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_KernelException_toMessageData___closed__12; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_indentExpr(x_2); -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_19; +lean_object* x_1; +x_1 = lean_mk_string("\nhas type"); +return x_1; } } -lean_object* l___private_Lean_Elab_App_22__throwLValError(lean_object* x_1) { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2() { _start: { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_22__throwLValError___rarg___boxed), 10, 0); +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_22__throwLValError___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* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_11 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_12 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_Lean_indentExpr(x_1); +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_indentExpr(x_2); +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_11); +x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_21; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___boxed), 10, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___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_App_22__throwLValError___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___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); @@ -14341,7 +16521,85 @@ lean_dec(x_5); return x_11; } } -lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1(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; @@ -14363,7 +16621,7 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_array_fget(x_3, x_4); lean_inc(x_2); lean_inc(x_1); -x_9 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_1, x_8, x_2); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_1, x_8, x_2); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; @@ -14383,7 +16641,7 @@ return x_9; } } } -lean_object* l___private_Lean_Elab_App_23__findMethod_x3f___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -14422,7 +16680,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_inc(x_1); x_10 = l_Lean_getParentStructures(x_1, x_2); x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1(x_1, x_3, x_10, x_11); +x_12 = l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1(x_1, x_3, x_10, x_11); lean_dec(x_10); return x_12; } @@ -14488,24 +16746,242 @@ return x_22; } } } -lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___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_findSomeMAux___main___at___private_Lean_Elab_App_23__findMethod_x3f___main___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_findSomeMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l___private_Lean_Elab_App_23__findMethod_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_1, x_2, x_3); -return x_4; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__1() { +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_dec(x_7); +lean_dec(x_6); +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_5); +lean_dec(x_4); +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_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_box_uint64(x_10); +x_13 = lean_apply_4(x_3, x_8, x_9, x_12, x_11); +return x_13; +} +case 1: +{ +lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_5); +lean_dec(x_3); +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +lean_dec(x_2); +x_18 = lean_box_uint64(x_16); +x_19 = lean_apply_4(x_4, x_14, x_15, x_18, x_17); +return x_19; +} +default: +{ +lean_object* x_20; lean_object* x_21; uint64_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_4); +lean_dec(x_3); +x_20 = lean_ctor_get(x_1, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +x_22 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_23 = lean_ctor_get(x_2, 0); +lean_inc(x_23); +lean_dec(x_2); +x_24 = lean_box_uint64(x_22); +x_25 = lean_apply_4(x_5, x_20, x_21, x_24, x_23); +return x_25; +} +} +} +else +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_7); +x_26 = lean_ctor_get(x_2, 0); +lean_inc(x_26); +lean_dec(x_2); +x_27 = lean_apply_2(x_6, x_1, x_26); +return x_27; +} +else +{ +lean_object* x_28; +lean_dec(x_6); +x_28 = lean_apply_2(x_7, x_1, x_2); +return x_28; +} +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux_match__5___rarg), 7, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__1() { _start: { lean_object* x_1; @@ -14513,27 +16989,27 @@ x_1 = lean_mk_string("invalid field notation, type is not of the form (C ...) wh return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4() { _start: { lean_object* x_1; @@ -14541,83 +17017,27 @@ x_1 = lean_mk_string("invalid [..] notation, type is not of the form (C ...) whe return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__4; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__6() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__5; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid projection, structure has only "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" field(s)"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__13() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7() { _start: { lean_object* x_1; @@ -14625,27 +17045,61 @@ x_1 = lean_mk_string("invalid projection, structure expected"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__14() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__13; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__15() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__14; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__16() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid projection, structure has only "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" field(s)"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14() { _start: { lean_object* x_1; @@ -14653,27 +17107,27 @@ x_1 = lean_mk_string("invalid projection, index must be greater than 0"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__17() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__16; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__18() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__17; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__19() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17() { _start: { lean_object* x_1; @@ -14681,27 +17135,16 @@ x_1 = lean_mk_string("invalid field notation, '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__20() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__19; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__21() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__20; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__22() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19() { _start: { lean_object* x_1; @@ -14709,27 +17152,16 @@ x_1 = lean_mk_string("' is not a valid \"field\" because environment does not co return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__23() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__22; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__24() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__23; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__25() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21() { _start: { lean_object* x_1; @@ -14737,7 +17169,7 @@ x_1 = lean_mk_string("getOp"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__26() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22() { _start: { lean_object* x_1; @@ -14745,1090 +17177,1163 @@ x_1 = lean_mk_string("invalid [..] notation because environment does not contain return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__27() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__26; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__28() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_24__resolveLValAux___closed__27; -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_App_24__resolveLValAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_17 = l_Lean_Expr_getAppFn___main(x_2); -if (lean_obj_tag(x_17) == 4) +lean_object* x_11; +x_11 = l_Lean_Expr_getAppFn___main(x_2); +if (lean_obj_tag(x_11) == 4) { switch (lean_obj_tag(x_3)) { case 0: { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_ctor_get(x_3, 0); -lean_inc(x_19); +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_ctor_get(x_3, 0); +lean_inc(x_13); lean_dec(x_3); -x_20 = lean_unsigned_to_nat(0u); -x_21 = lean_nat_dec_eq(x_19, x_20); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_st_ref_get(x_9, x_10); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_12); +lean_inc(x_20); +x_21 = l_Lean_isStructureLike(x_20, x_12); 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; uint8_t x_48; -x_22 = lean_st_ref_get(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); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_25 = x_22; -} else { - lean_dec_ref(x_22); - x_25 = lean_box(0); -} -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -lean_dec(x_23); -lean_inc(x_18); -lean_inc(x_26); -x_48 = l_Lean_isStructureLike(x_26, x_18); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_19); -lean_dec(x_18); -x_49 = l___private_Lean_Elab_App_24__resolveLValAux___closed__15; -x_50 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_49, x_4, x_5, x_6, x_7, x_8, x_9, x_24); +lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_dec(x_20); +lean_free_object(x_16); +lean_dec(x_13); +lean_dec(x_12); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9; +x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_19); lean_dec(x_6); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -return x_50; +return x_23; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_50, 0); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; +lean_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 { -x_27 = x_24; -goto block_47; -} -block_47: -{ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -lean_inc(x_18); -lean_inc(x_26); -x_28 = l_Lean_getStructureFields(x_26, x_18); +lean_inc(x_12); +lean_inc(x_20); +x_28 = l_Lean_getStructureFields(x_20, x_12); x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_sub(x_19, x_29); -lean_dec(x_19); +x_30 = lean_nat_sub(x_13, x_29); +lean_dec(x_13); x_31 = lean_array_get_size(x_28); x_32 = lean_nat_dec_lt(x_30, x_31); if (x_32 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_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_dec(x_30); lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_18); -x_33 = l_Nat_repr(x_31); -x_34 = lean_alloc_ctor(2, 1, 0); +lean_dec(x_20); +lean_free_object(x_16); +lean_dec(x_12); +x_33 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_31); +x_34 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_34, 0, x_33); -x_35 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_35, 0, x_34); -x_36 = l___private_Lean_Elab_App_24__resolveLValAux___closed__9; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l___private_Lean_Elab_App_24__resolveLValAux___closed__12; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_38, x_4, x_5, x_6, x_7, x_8, x_9, x_19); lean_dec(x_6); -return x_40; +return x_39; } else { -uint8_t x_41; +uint8_t x_40; lean_dec(x_31); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -lean_inc(x_18); -x_41 = l_Lean_isStructure(x_26, x_18); -if (x_41 == 0) +lean_inc(x_12); +x_40 = l_Lean_isStructure(x_20, x_12); +if (x_40 == 0) +{ +lean_object* x_41; +lean_dec(x_28); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_12); +lean_ctor_set(x_41, 1, x_30); +lean_ctor_set(x_16, 0, x_41); +return x_16; +} +else { lean_object* x_42; lean_object* x_43; -lean_dec(x_28); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_18); -lean_ctor_set(x_42, 1, x_30); -if (lean_is_scalar(x_25)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_25; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_27); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_array_fget(x_28, x_30); +x_42 = lean_array_fget(x_28, x_30); lean_dec(x_30); lean_dec(x_28); -lean_inc(x_18); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_18); -lean_ctor_set(x_45, 1, x_18); -lean_ctor_set(x_45, 2, x_44); -if (lean_is_scalar(x_25)) { - x_46 = lean_alloc_ctor(0, 2, 0); -} else { - x_46 = x_25; -} -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_27); -return x_46; +lean_inc(x_12); +x_43 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_43, 0, x_12); +lean_ctor_set(x_43, 1, x_12); +lean_ctor_set(x_43, 2, x_42); +lean_ctor_set(x_16, 0, x_43); +return x_16; } } } } else { -lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_19); -lean_dec(x_18); +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = lean_ctor_get(x_16, 0); +x_45 = lean_ctor_get(x_16, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_16); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +lean_dec(x_44); +lean_inc(x_12); +lean_inc(x_46); +x_47 = l_Lean_isStructureLike(x_46, x_12); +if (x_47 == 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_dec(x_46); +lean_dec(x_13); +lean_dec(x_12); +x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9; +x_49 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +lean_dec(x_6); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +lean_inc(x_12); +lean_inc(x_46); +x_54 = l_Lean_getStructureFields(x_46, x_12); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_sub(x_13, x_55); +lean_dec(x_13); +x_57 = lean_array_get_size(x_54); +x_58 = lean_nat_dec_lt(x_56, x_57); +if (x_58 == 0) +{ +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_dec(x_56); +lean_dec(x_54); +lean_dec(x_46); +lean_dec(x_12); +x_59 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_57); +x_60 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_60, 0, x_59); +x_61 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11; +x_62 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13; +x_64 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +lean_dec(x_6); +return x_65; +} +else +{ +uint8_t x_66; +lean_dec(x_57); +lean_dec(x_6); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_55 = l___private_Lean_Elab_App_24__resolveLValAux___closed__18; -x_56 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_55, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_6); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) +lean_inc(x_12); +x_66 = l_Lean_isStructure(x_46, x_12); +if (x_66 == 0) { -return x_56; +lean_object* x_67; lean_object* x_68; +lean_dec(x_54); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_12); +lean_ctor_set(x_67, 1, x_56); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_45); +return x_68; } 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_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_array_fget(x_54, x_56); lean_dec(x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_dec(x_54); +lean_inc(x_12); +x_70 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_70, 0, x_12); +lean_ctor_set(x_70, 1, x_12); +lean_ctor_set(x_70, 2, x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_45); +return x_71; +} +} +} +} +} +else +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_2); +lean_dec(x_1); +x_72 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16; +x_73 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_72, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_6); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +return x_73; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_73); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; } } } case 1: { -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_61 = lean_ctor_get(x_17, 0); -lean_inc(x_61); -lean_dec(x_17); -x_62 = lean_ctor_get(x_3, 0); -lean_inc(x_62); +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = lean_ctor_get(x_11, 0); +lean_inc(x_78); +lean_dec(x_11); +x_79 = lean_ctor_get(x_3, 0); +lean_inc(x_79); lean_dec(x_3); -x_63 = lean_st_ref_get(x_9, x_10); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) +x_80 = lean_st_ref_get(x_9, x_10); +x_81 = !lean_is_exclusive(x_80); +if (x_81 == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_65 = lean_ctor_get(x_63, 0); -x_66 = lean_ctor_get(x_63, 1); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -lean_dec(x_65); -lean_inc(x_61); -lean_inc(x_67); -x_68 = l_Lean_isStructure(x_67, x_61); -if (x_68 == 0) +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_82 = lean_ctor_get(x_80, 0); +x_83 = lean_ctor_get(x_80, 1); +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +lean_dec(x_82); +lean_inc(x_78); +lean_inc(x_84); +x_85 = l_Lean_isStructure(x_84, x_78); +if (x_85 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_69 = lean_box(0); -lean_inc(x_62); -x_70 = lean_name_mk_string(x_69, x_62); -lean_inc(x_70); -x_71 = l_Lean_Name_append___main(x_61, x_70); -x_72 = lean_ctor_get(x_4, 2); -lean_inc(x_72); -lean_inc(x_71); -x_73 = l_Lean_Name_replacePrefix___main(x_71, x_72, x_69); -lean_dec(x_72); -x_74 = lean_ctor_get(x_6, 1); -lean_inc(x_74); -x_75 = lean_local_ctx_find_from_user_name(x_74, x_73); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; -lean_inc(x_61); -x_76 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_67, x_61, x_70); -if (lean_obj_tag(x_76) == 0) -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 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_free_object(x_63); -lean_dec(x_61); -x_77 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_77, 0, x_62); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_77); -x_79 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_80 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_78); -x_81 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_83, 0, x_71); -x_84 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_86 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -x_87 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_86, x_4, x_5, x_6, x_7, x_8, x_9, x_66); -lean_dec(x_6); -return x_87; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_71); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_88 = lean_ctor_get(x_76, 0); -lean_inc(x_88); -lean_dec(x_76); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); +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_inc(x_79); +lean_inc(x_78); +x_86 = lean_name_mk_string(x_78, x_79); +x_87 = lean_ctor_get(x_4, 2); +lean_inc(x_87); +x_88 = lean_box(0); +lean_inc(x_86); +x_89 = l_Lean_Name_replacePrefix___main(x_86, x_87, x_88); +lean_dec(x_87); +x_90 = lean_ctor_get(x_6, 1); lean_inc(x_90); -lean_dec(x_88); -x_91 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_61); -lean_ctor_set(x_91, 2, x_90); -lean_ctor_set(x_63, 0, x_91); -return x_63; -} -} -else +x_91 = lean_local_ctx_find_from_user_name(x_90, x_89); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; -x_92 = lean_ctor_get(x_75, 0); -lean_inc(x_92); -lean_dec(x_75); -x_93 = l_Lean_LocalDecl_binderInfo(x_92); -x_94 = 4; -x_95 = l_Lean_BinderInfo_beq(x_93, x_94); -if (x_95 == 0) +lean_object* x_92; lean_object* x_93; +lean_inc(x_79); +x_92 = lean_name_mk_string(x_88, x_79); +lean_inc(x_78); +x_93 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_84, x_78, x_92); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_96; -lean_dec(x_92); -lean_inc(x_61); -x_96 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_67, x_61, x_70); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_free_object(x_63); -lean_dec(x_61); -x_97 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_97, 0, x_62); -x_98 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_98, 0, x_97); -x_99 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; +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_free_object(x_80); +lean_dec(x_78); +x_94 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_95 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_96 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_98 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_99, 0, x_86); x_100 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -x_101 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; x_102 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_102, 0, x_100); lean_ctor_set(x_102, 1, x_101); -x_103 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_103, 0, x_71); -x_104 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_106 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_106, x_4, x_5, x_6, x_7, x_8, x_9, x_66); +x_103 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_102, x_4, x_5, x_6, x_7, x_8, x_9, x_83); lean_dec(x_6); -return x_107; +return x_103; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_71); -lean_dec(x_62); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_86); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_108 = lean_ctor_get(x_96, 0); -lean_inc(x_108); -lean_dec(x_96); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_111 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_61); -lean_ctor_set(x_111, 2, x_110); -lean_ctor_set(x_63, 0, x_111); -return x_63; +x_104 = lean_ctor_get(x_93, 0); +lean_inc(x_104); +lean_dec(x_93); +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_alloc_ctor(2, 3, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_78); +lean_ctor_set(x_107, 2, x_106); +lean_ctor_set(x_80, 0, x_107); +return x_80; } } else { +lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; +x_108 = lean_ctor_get(x_91, 0); +lean_inc(x_108); +lean_dec(x_91); +x_109 = l_Lean_LocalDecl_binderInfo(x_108); +x_110 = 4; +x_111 = l_Lean_BinderInfo_beq(x_109, x_110); +if (x_111 == 0) +{ lean_object* x_112; lean_object* x_113; -lean_dec(x_70); -lean_dec(x_67); -lean_dec(x_62); +lean_dec(x_108); +lean_inc(x_79); +x_112 = lean_name_mk_string(x_88, x_79); +lean_inc(x_78); +x_113 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_84, x_78, x_112); +if (lean_obj_tag(x_113) == 0) +{ +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_free_object(x_80); +lean_dec(x_78); +x_114 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_115 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_116 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +x_117 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_118 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_119, 0, x_86); +x_120 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_122 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_122, x_4, x_5, x_6, x_7, x_8, x_9, x_83); +lean_dec(x_6); +return x_123; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_86); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_112 = l_Lean_LocalDecl_toExpr(x_92); -lean_dec(x_92); -x_113 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_113, 0, x_61); -lean_ctor_set(x_113, 1, x_71); -lean_ctor_set(x_113, 2, x_112); -lean_ctor_set(x_63, 0, x_113); -return x_63; +x_124 = lean_ctor_get(x_113, 0); +lean_inc(x_124); +lean_dec(x_113); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +x_127 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_78); +lean_ctor_set(x_127, 2, x_126); +lean_ctor_set(x_80, 0, x_127); +return x_80; +} +} +else +{ +lean_object* x_128; lean_object* x_129; +lean_dec(x_84); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_128 = l_Lean_LocalDecl_toExpr(x_108); +lean_dec(x_108); +x_129 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_129, 0, x_78); +lean_ctor_set(x_129, 1, x_86); +lean_ctor_set(x_129, 2, x_128); +lean_ctor_set(x_80, 0, x_129); +return x_80; } } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_box(0); -lean_inc(x_62); -x_115 = lean_name_mk_string(x_114, x_62); -lean_inc(x_61); -lean_inc(x_67); -x_116 = l_Lean_findField_x3f___main(x_67, x_61, x_115); -if (lean_obj_tag(x_116) == 0) +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_box(0); +lean_inc(x_79); +x_131 = lean_name_mk_string(x_130, x_79); +lean_inc(x_78); +lean_inc(x_84); +x_132 = l_Lean_findField_x3f___main(x_84, x_78, x_131); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_inc(x_115); -x_117 = l_Lean_Name_append___main(x_61, x_115); -x_118 = lean_ctor_get(x_4, 2); -lean_inc(x_118); -lean_inc(x_117); -x_119 = l_Lean_Name_replacePrefix___main(x_117, x_118, x_114); -lean_dec(x_118); -x_120 = lean_ctor_get(x_6, 1); -lean_inc(x_120); -x_121 = lean_local_ctx_find_from_user_name(x_120, x_119); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; -lean_inc(x_61); -x_122 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_67, x_61, x_115); -if (lean_obj_tag(x_122) == 0) -{ -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_free_object(x_63); -lean_dec(x_61); -x_123 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_123, 0, x_62); -x_124 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_124, 0, x_123); -x_125 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_126 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_124); -x_127 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_128 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -x_129 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_129, 0, x_117); -x_130 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -x_131 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_132 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -x_133 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_132, x_4, x_5, x_6, x_7, x_8, x_9, x_66); -lean_dec(x_6); -return x_133; -} -else -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_117); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_134 = lean_ctor_get(x_122, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_inc(x_79); +lean_inc(x_78); +x_133 = lean_name_mk_string(x_78, x_79); +x_134 = lean_ctor_get(x_4, 2); lean_inc(x_134); -lean_dec(x_122); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); +lean_inc(x_133); +x_135 = l_Lean_Name_replacePrefix___main(x_133, x_134, x_130); lean_dec(x_134); -x_137 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_61); -lean_ctor_set(x_137, 2, x_136); -lean_ctor_set(x_63, 0, x_137); -return x_63; -} +x_136 = lean_ctor_get(x_6, 1); +lean_inc(x_136); +x_137 = lean_local_ctx_find_from_user_name(x_136, x_135); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; +lean_inc(x_78); +x_138 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_84, x_78, x_131); +if (lean_obj_tag(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; lean_object* x_147; lean_object* x_148; +lean_free_object(x_80); +lean_dec(x_78); +x_139 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_140 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_141 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +x_142 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_143 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_144, 0, x_133); +x_145 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +x_146 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_147 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +x_148 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_147, x_4, x_5, x_6, x_7, x_8, x_9, x_83); +lean_dec(x_6); +return x_148; } else { -lean_object* x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; -x_138 = lean_ctor_get(x_121, 0); -lean_inc(x_138); -lean_dec(x_121); -x_139 = l_Lean_LocalDecl_binderInfo(x_138); -x_140 = 4; -x_141 = l_Lean_BinderInfo_beq(x_139, x_140); -if (x_141 == 0) -{ -lean_object* x_142; +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_133); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_149 = lean_ctor_get(x_138, 0); +lean_inc(x_149); lean_dec(x_138); -lean_inc(x_61); -x_142 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_67, x_61, x_115); -if (lean_obj_tag(x_142) == 0) -{ -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_free_object(x_63); -lean_dec(x_61); -x_143 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_143, 0, x_62); -x_144 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_144, 0, x_143); -x_145 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_146 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_148 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -x_149 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_149, 0, x_117); -x_150 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -x_151 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_152 = lean_alloc_ctor(10, 2, 0); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_152, 0, x_150); -lean_ctor_set(x_152, 1, x_151); -x_153 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_152, x_4, x_5, x_6, x_7, x_8, x_9, x_66); -lean_dec(x_6); -return x_153; +lean_ctor_set(x_152, 1, x_78); +lean_ctor_set(x_152, 2, x_151); +lean_ctor_set(x_80, 0, x_152); +return x_80; +} } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_117); -lean_dec(x_62); +lean_object* x_153; uint8_t x_154; uint8_t x_155; uint8_t x_156; +x_153 = lean_ctor_get(x_137, 0); +lean_inc(x_153); +lean_dec(x_137); +x_154 = l_Lean_LocalDecl_binderInfo(x_153); +x_155 = 4; +x_156 = l_Lean_BinderInfo_beq(x_154, x_155); +if (x_156 == 0) +{ +lean_object* x_157; +lean_dec(x_153); +lean_inc(x_78); +x_157 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_84, x_78, x_131); +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; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_free_object(x_80); +lean_dec(x_78); +x_158 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_159 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_160 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_162 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +x_163 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_163, 0, x_133); +x_164 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +x_165 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_166 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +x_167 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_166, x_4, x_5, x_6, x_7, x_8, x_9, x_83); +lean_dec(x_6); +return x_167; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_133); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_154 = lean_ctor_get(x_142, 0); -lean_inc(x_154); -lean_dec(x_142); -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -lean_dec(x_154); -x_157 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_157, 0, x_155); -lean_ctor_set(x_157, 1, x_61); -lean_ctor_set(x_157, 2, x_156); -lean_ctor_set(x_63, 0, x_157); -return x_63; -} -} -else -{ -lean_object* x_158; lean_object* x_159; -lean_dec(x_115); -lean_dec(x_67); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_158 = l_Lean_LocalDecl_toExpr(x_138); -lean_dec(x_138); -x_159 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_159, 0, x_61); -lean_ctor_set(x_159, 1, x_117); -lean_ctor_set(x_159, 2, x_158); -lean_ctor_set(x_63, 0, x_159); -return x_63; -} -} -} -else -{ -lean_object* x_160; lean_object* x_161; -lean_dec(x_67); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_160 = lean_ctor_get(x_116, 0); -lean_inc(x_160); -lean_dec(x_116); -x_161 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_61); -lean_ctor_set(x_161, 2, x_115); -lean_ctor_set(x_63, 0, x_161); -return x_63; -} -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -x_162 = lean_ctor_get(x_63, 0); -x_163 = lean_ctor_get(x_63, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_63); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -lean_dec(x_162); -lean_inc(x_61); -lean_inc(x_164); -x_165 = l_Lean_isStructure(x_164, x_61); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_166 = lean_box(0); -lean_inc(x_62); -x_167 = lean_name_mk_string(x_166, x_62); -lean_inc(x_167); -x_168 = l_Lean_Name_append___main(x_61, x_167); -x_169 = lean_ctor_get(x_4, 2); -lean_inc(x_169); +x_168 = lean_ctor_get(x_157, 0); lean_inc(x_168); -x_170 = l_Lean_Name_replacePrefix___main(x_168, x_169, x_166); -lean_dec(x_169); -x_171 = lean_ctor_get(x_6, 1); -lean_inc(x_171); -x_172 = lean_local_ctx_find_from_user_name(x_171, x_170); -if (lean_obj_tag(x_172) == 0) +lean_dec(x_157); +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec(x_168); +x_171 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_78); +lean_ctor_set(x_171, 2, x_170); +lean_ctor_set(x_80, 0, x_171); +return x_80; +} +} +else { -lean_object* x_173; -lean_inc(x_61); -x_173 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_164, x_61, x_167); -if (lean_obj_tag(x_173) == 0) +lean_object* x_172; lean_object* x_173; +lean_dec(x_131); +lean_dec(x_84); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_172 = l_Lean_LocalDecl_toExpr(x_153); +lean_dec(x_153); +x_173 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_173, 0, x_78); +lean_ctor_set(x_173, 1, x_133); +lean_ctor_set(x_173, 2, x_172); +lean_ctor_set(x_80, 0, x_173); +return x_80; +} +} +} +else { -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_dec(x_61); -x_174 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_174, 0, x_62); -x_175 = lean_alloc_ctor(0, 1, 0); +lean_object* x_174; lean_object* x_175; +lean_dec(x_84); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_174 = lean_ctor_get(x_132, 0); +lean_inc(x_174); +lean_dec(x_132); +x_175 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_175, 0, x_174); -x_176 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_177 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_175); -x_178 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_179 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -x_180 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_180, 0, x_168); -x_181 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -x_182 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_183 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_183, 0, x_181); -lean_ctor_set(x_183, 1, x_182); -x_184 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_183, x_4, x_5, x_6, x_7, x_8, x_9, x_163); -lean_dec(x_6); -return x_184; +lean_ctor_set(x_175, 1, x_78); +lean_ctor_set(x_175, 2, x_131); +lean_ctor_set(x_80, 0, x_175); +return x_80; +} +} } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_168); -lean_dec(x_62); +lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_176 = lean_ctor_get(x_80, 0); +x_177 = lean_ctor_get(x_80, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_80); +x_178 = lean_ctor_get(x_176, 0); +lean_inc(x_178); +lean_dec(x_176); +lean_inc(x_78); +lean_inc(x_178); +x_179 = l_Lean_isStructure(x_178, x_78); +if (x_179 == 0) +{ +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_inc(x_79); +lean_inc(x_78); +x_180 = lean_name_mk_string(x_78, x_79); +x_181 = lean_ctor_get(x_4, 2); +lean_inc(x_181); +x_182 = lean_box(0); +lean_inc(x_180); +x_183 = l_Lean_Name_replacePrefix___main(x_180, x_181, x_182); +lean_dec(x_181); +x_184 = lean_ctor_get(x_6, 1); +lean_inc(x_184); +x_185 = lean_local_ctx_find_from_user_name(x_184, x_183); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; lean_object* x_187; +lean_inc(x_79); +x_186 = lean_name_mk_string(x_182, x_79); +lean_inc(x_78); +x_187 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_178, x_78, x_186); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_78); +x_188 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_189 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_190 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +x_191 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_192 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +x_193 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_193, 0, x_180); +x_194 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +x_195 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_196 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_195); +x_197 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_196, x_4, x_5, x_6, x_7, x_8, x_9, x_177); +lean_dec(x_6); +return x_197; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_180); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_185 = lean_ctor_get(x_173, 0); -lean_inc(x_185); -lean_dec(x_173); -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); +x_198 = lean_ctor_get(x_187, 0); +lean_inc(x_198); +lean_dec(x_187); +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_198, 1); +lean_inc(x_200); +lean_dec(x_198); +x_201 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_78); +lean_ctor_set(x_201, 2, x_200); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_177); +return x_202; +} +} +else +{ +lean_object* x_203; uint8_t x_204; uint8_t x_205; uint8_t x_206; +x_203 = lean_ctor_get(x_185, 0); +lean_inc(x_203); lean_dec(x_185); -x_188 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_188, 0, x_186); -lean_ctor_set(x_188, 1, x_61); -lean_ctor_set(x_188, 2, x_187); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_163); -return x_189; -} -} -else +x_204 = l_Lean_LocalDecl_binderInfo(x_203); +x_205 = 4; +x_206 = l_Lean_BinderInfo_beq(x_204, x_205); +if (x_206 == 0) { -lean_object* x_190; uint8_t x_191; uint8_t x_192; uint8_t x_193; -x_190 = lean_ctor_get(x_172, 0); -lean_inc(x_190); -lean_dec(x_172); -x_191 = l_Lean_LocalDecl_binderInfo(x_190); -x_192 = 4; -x_193 = l_Lean_BinderInfo_beq(x_191, x_192); -if (x_193 == 0) +lean_object* x_207; lean_object* x_208; +lean_dec(x_203); +lean_inc(x_79); +x_207 = lean_name_mk_string(x_182, x_79); +lean_inc(x_78); +x_208 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_178, x_78, x_207); +if (lean_obj_tag(x_208) == 0) { -lean_object* x_194; -lean_dec(x_190); -lean_inc(x_61); -x_194 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_164, x_61, x_167); -if (lean_obj_tag(x_194) == 0) -{ -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_dec(x_61); -x_195 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_195, 0, x_62); -x_196 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_196, 0, x_195); -x_197 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_198 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -x_199 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_200 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -x_201 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_201, 0, x_168); -x_202 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -x_203 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_204 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -x_205 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_204, x_4, x_5, x_6, x_7, x_8, x_9, x_163); +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_dec(x_78); +x_209 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_210 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_211 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_209); +x_212 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_213 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +x_214 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_214, 0, x_180); +x_215 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +x_216 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_217 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +x_218 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_217, x_4, x_5, x_6, x_7, x_8, x_9, x_177); lean_dec(x_6); -return x_205; +return x_218; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -lean_dec(x_168); -lean_dec(x_62); +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_180); +lean_dec(x_79); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_206 = lean_ctor_get(x_194, 0); -lean_inc(x_206); -lean_dec(x_194); -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -lean_dec(x_206); -x_209 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_61); -lean_ctor_set(x_209, 2, x_208); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_163); -return x_210; -} -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_167); -lean_dec(x_164); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_211 = l_Lean_LocalDecl_toExpr(x_190); -lean_dec(x_190); -x_212 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_212, 0, x_61); -lean_ctor_set(x_212, 1, x_168); -lean_ctor_set(x_212, 2, x_211); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_163); -return x_213; -} -} -} -else -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_box(0); -lean_inc(x_62); -x_215 = lean_name_mk_string(x_214, x_62); -lean_inc(x_61); -lean_inc(x_164); -x_216 = l_Lean_findField_x3f___main(x_164, x_61, x_215); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -lean_inc(x_215); -x_217 = l_Lean_Name_append___main(x_61, x_215); -x_218 = lean_ctor_get(x_4, 2); -lean_inc(x_218); -lean_inc(x_217); -x_219 = l_Lean_Name_replacePrefix___main(x_217, x_218, x_214); -lean_dec(x_218); -x_220 = lean_ctor_get(x_6, 1); +x_219 = lean_ctor_get(x_208, 0); +lean_inc(x_219); +lean_dec(x_208); +x_220 = lean_ctor_get(x_219, 0); lean_inc(x_220); -x_221 = lean_local_ctx_find_from_user_name(x_220, x_219); -if (lean_obj_tag(x_221) == 0) +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +lean_dec(x_219); +x_222 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_222, 0, x_220); +lean_ctor_set(x_222, 1, x_78); +lean_ctor_set(x_222, 2, x_221); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_177); +return x_223; +} +} +else { -lean_object* x_222; -lean_inc(x_61); -x_222 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_164, x_61, x_215); -if (lean_obj_tag(x_222) == 0) -{ -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; lean_object* x_233; -lean_dec(x_61); -x_223 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_223, 0, x_62); -x_224 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_224, 0, x_223); -x_225 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_226 = lean_alloc_ctor(10, 2, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_178); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_224 = l_Lean_LocalDecl_toExpr(x_203); +lean_dec(x_203); +x_225 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_225, 0, x_78); +lean_ctor_set(x_225, 1, x_180); +lean_ctor_set(x_225, 2, x_224); +x_226 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_224); -x_227 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_228 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -x_229 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_229, 0, x_217); -x_230 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -x_231 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_232 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_232, 0, x_230); -lean_ctor_set(x_232, 1, x_231); -x_233 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_232, x_4, x_5, x_6, x_7, x_8, x_9, x_163); -lean_dec(x_6); -return x_233; +lean_ctor_set(x_226, 1, x_177); +return x_226; +} +} } else { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_217); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_234 = lean_ctor_get(x_222, 0); -lean_inc(x_234); -lean_dec(x_222); -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec(x_234); -x_237 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_61); -lean_ctor_set(x_237, 2, x_236); -x_238 = lean_alloc_ctor(0, 2, 0); +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_box(0); +lean_inc(x_79); +x_228 = lean_name_mk_string(x_227, x_79); +lean_inc(x_78); +lean_inc(x_178); +x_229 = l_Lean_findField_x3f___main(x_178, x_78, x_228); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_inc(x_79); +lean_inc(x_78); +x_230 = lean_name_mk_string(x_78, x_79); +x_231 = lean_ctor_get(x_4, 2); +lean_inc(x_231); +lean_inc(x_230); +x_232 = l_Lean_Name_replacePrefix___main(x_230, x_231, x_227); +lean_dec(x_231); +x_233 = lean_ctor_get(x_6, 1); +lean_inc(x_233); +x_234 = lean_local_ctx_find_from_user_name(x_233, x_232); +if (lean_obj_tag(x_234) == 0) +{ +lean_object* x_235; +lean_inc(x_78); +x_235 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_178, x_78, x_228); +if (lean_obj_tag(x_235) == 0) +{ +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_dec(x_78); +x_236 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_237 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_238 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_163); -return x_238; -} +lean_ctor_set(x_238, 1, x_236); +x_239 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_240 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +x_241 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_241, 0, x_230); +x_242 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_242, 0, x_240); +lean_ctor_set(x_242, 1, x_241); +x_243 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_244 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +x_245 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_244, x_4, x_5, x_6, x_7, x_8, x_9, x_177); +lean_dec(x_6); +return x_245; } else { -lean_object* x_239; uint8_t x_240; uint8_t x_241; uint8_t x_242; -x_239 = lean_ctor_get(x_221, 0); -lean_inc(x_239); -lean_dec(x_221); -x_240 = l_Lean_LocalDecl_binderInfo(x_239); -x_241 = 4; -x_242 = l_Lean_BinderInfo_beq(x_240, x_241); -if (x_242 == 0) -{ -lean_object* x_243; -lean_dec(x_239); -lean_inc(x_61); -x_243 = l___private_Lean_Elab_App_23__findMethod_x3f___main(x_164, x_61, x_215); -if (lean_obj_tag(x_243) == 0) -{ -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_dec(x_61); -x_244 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_244, 0, x_62); -x_245 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_245, 0, x_244); -x_246 = l___private_Lean_Elab_App_24__resolveLValAux___closed__21; -x_247 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_245); -x_248 = l___private_Lean_Elab_App_24__resolveLValAux___closed__24; -x_249 = lean_alloc_ctor(10, 2, 0); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_230); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_246 = lean_ctor_get(x_235, 0); +lean_inc(x_246); +lean_dec(x_235); +x_247 = lean_ctor_get(x_246, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_246, 1); +lean_inc(x_248); +lean_dec(x_246); +x_249 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -x_250 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_250, 0, x_217); -x_251 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_250); -x_252 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_253 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_253, 0, x_251); -lean_ctor_set(x_253, 1, x_252); -x_254 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_253, x_4, x_5, x_6, x_7, x_8, x_9, x_163); -lean_dec(x_6); -return x_254; -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_217); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_255 = lean_ctor_get(x_243, 0); -lean_inc(x_255); -lean_dec(x_243); -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 = lean_alloc_ctor(2, 3, 0); -lean_ctor_set(x_258, 0, x_256); -lean_ctor_set(x_258, 1, x_61); -lean_ctor_set(x_258, 2, x_257); -x_259 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_163); -return x_259; +lean_ctor_set(x_249, 1, x_78); +lean_ctor_set(x_249, 2, x_248); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_177); +return x_250; } } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_215); -lean_dec(x_164); -lean_dec(x_62); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_260 = l_Lean_LocalDecl_toExpr(x_239); -lean_dec(x_239); -x_261 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_261, 0, x_61); -lean_ctor_set(x_261, 1, x_217); -lean_ctor_set(x_261, 2, x_260); -x_262 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_262, 0, x_261); -lean_ctor_set(x_262, 1, x_163); -return x_262; -} -} -} -else +lean_object* x_251; uint8_t x_252; uint8_t x_253; uint8_t x_254; +x_251 = lean_ctor_get(x_234, 0); +lean_inc(x_251); +lean_dec(x_234); +x_252 = l_Lean_LocalDecl_binderInfo(x_251); +x_253 = 4; +x_254 = l_Lean_BinderInfo_beq(x_252, x_253); +if (x_254 == 0) { -lean_object* x_263; lean_object* x_264; lean_object* x_265; -lean_dec(x_164); -lean_dec(x_62); +lean_object* x_255; +lean_dec(x_251); +lean_inc(x_78); +x_255 = l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(x_178, x_78, x_228); +if (lean_obj_tag(x_255) == 0) +{ +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_dec(x_78); +x_256 = l_Lean_stringToMessageData(x_79); +lean_dec(x_79); +x_257 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18; +x_258 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_256); +x_259 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20; +x_260 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_259); +x_261 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_261, 0, x_230); +x_262 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +x_263 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_264 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +x_265 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_264, x_4, x_5, x_6, x_7, x_8, x_9, x_177); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_263 = lean_ctor_get(x_216, 0); -lean_inc(x_263); -lean_dec(x_216); -x_264 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_264, 0, x_263); -lean_ctor_set(x_264, 1, x_61); -lean_ctor_set(x_264, 2, x_215); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_163); 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_dec(x_230); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_266 = lean_ctor_get(x_255, 0); +lean_inc(x_266); +lean_dec(x_255); +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); +lean_inc(x_268); +lean_dec(x_266); +x_269 = lean_alloc_ctor(2, 3, 0); +lean_ctor_set(x_269, 0, x_267); +lean_ctor_set(x_269, 1, x_78); +lean_ctor_set(x_269, 2, x_268); +x_270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_270, 0, x_269); +lean_ctor_set(x_270, 1, x_177); +return x_270; +} +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +lean_dec(x_228); +lean_dec(x_178); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_271 = l_Lean_LocalDecl_toExpr(x_251); +lean_dec(x_251); +x_272 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_272, 0, x_78); +lean_ctor_set(x_272, 1, x_230); +lean_ctor_set(x_272, 2, x_271); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_177); +return x_273; +} +} +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec(x_178); +lean_dec(x_79); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_274 = lean_ctor_get(x_229, 0); +lean_inc(x_274); +lean_dec(x_229); +x_275 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_78); +lean_ctor_set(x_275, 2, x_228); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_177); +return x_276; +} } } } default: { -lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; -x_266 = lean_ctor_get(x_17, 0); -lean_inc(x_266); -lean_dec(x_17); -x_267 = lean_ctor_get(x_3, 0); -lean_inc(x_267); +lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; +x_277 = lean_ctor_get(x_11, 0); +lean_inc(x_277); +lean_dec(x_11); +x_278 = lean_ctor_get(x_3, 0); +lean_inc(x_278); lean_dec(x_3); -x_268 = lean_st_ref_get(x_9, x_10); -x_269 = !lean_is_exclusive(x_268); -if (x_269 == 0) +x_279 = lean_st_ref_get(x_9, x_10); +x_280 = !lean_is_exclusive(x_279); +if (x_280 == 0) { -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_270 = lean_ctor_get(x_268, 0); -x_271 = lean_ctor_get(x_268, 1); -x_272 = lean_ctor_get(x_270, 0); -lean_inc(x_272); -lean_dec(x_270); -x_273 = l___private_Lean_Elab_App_24__resolveLValAux___closed__25; -x_274 = lean_name_mk_string(x_266, x_273); -lean_inc(x_274); -x_275 = lean_environment_find(x_272, x_274); -if (lean_obj_tag(x_275) == 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_free_object(x_268); -lean_dec(x_267); -x_276 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_276, 0, x_274); -x_277 = l___private_Lean_Elab_App_24__resolveLValAux___closed__28; -x_278 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_276); -x_279 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_280 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -x_281 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_280, x_4, x_5, x_6, x_7, x_8, x_9, x_271); -lean_dec(x_6); -return x_281; -} -else -{ -lean_object* x_282; -lean_dec(x_275); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_282 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_282, 0, x_274); -lean_ctor_set(x_282, 1, x_267); -lean_ctor_set(x_268, 0, x_282); -return x_268; -} -} -else -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_283 = lean_ctor_get(x_268, 0); -x_284 = lean_ctor_get(x_268, 1); -lean_inc(x_284); +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_281 = lean_ctor_get(x_279, 0); +x_282 = lean_ctor_get(x_279, 1); +x_283 = lean_ctor_get(x_281, 0); lean_inc(x_283); -lean_dec(x_268); -x_285 = lean_ctor_get(x_283, 0); +lean_dec(x_281); +x_284 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21; +x_285 = lean_name_mk_string(x_277, x_284); lean_inc(x_285); -lean_dec(x_283); -x_286 = l___private_Lean_Elab_App_24__resolveLValAux___closed__25; -x_287 = lean_name_mk_string(x_266, x_286); -lean_inc(x_287); -x_288 = lean_environment_find(x_285, x_287); -if (lean_obj_tag(x_288) == 0) +x_286 = lean_environment_find(x_283, x_285); +if (lean_obj_tag(x_286) == 0) { -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_dec(x_267); -x_289 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_289, 0, x_287); -x_290 = l___private_Lean_Elab_App_24__resolveLValAux___closed__28; +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_free_object(x_279); +lean_dec(x_278); +x_287 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_287, 0, x_285); +x_288 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23; +x_289 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_287); +x_290 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; x_291 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_291, 0, x_290); -lean_ctor_set(x_291, 1, x_289); -x_292 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_293 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -x_294 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_293, x_4, x_5, x_6, x_7, x_8, x_9, x_284); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +x_292 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_291, x_4, x_5, x_6, x_7, x_8, x_9, x_282); lean_dec(x_6); -return x_294; +return x_292; } else { -lean_object* x_295; lean_object* x_296; -lean_dec(x_288); +lean_object* x_293; +lean_dec(x_286); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_295 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_295, 0, x_287); -lean_ctor_set(x_295, 1, x_267); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_284); -return x_296; +x_293 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_293, 0, x_285); +lean_ctor_set(x_293, 1, x_278); +lean_ctor_set(x_279, 0, x_293); +return x_279; +} +} +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; +x_294 = lean_ctor_get(x_279, 0); +x_295 = lean_ctor_get(x_279, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_279); +x_296 = lean_ctor_get(x_294, 0); +lean_inc(x_296); +lean_dec(x_294); +x_297 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21; +x_298 = lean_name_mk_string(x_277, x_297); +lean_inc(x_298); +x_299 = lean_environment_find(x_296, x_298); +if (lean_obj_tag(x_299) == 0) +{ +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_dec(x_278); +x_300 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_300, 0, x_298); +x_301 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23; +x_302 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_302, 0, x_301); +lean_ctor_set(x_302, 1, x_300); +x_303 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_304 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_304, 0, x_302); +lean_ctor_set(x_304, 1, x_303); +x_305 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_304, x_4, x_5, x_6, x_7, x_8, x_9, x_295); +lean_dec(x_6); +return x_305; +} +else +{ +lean_object* x_306; lean_object* x_307; +lean_dec(x_299); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_306 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_306, 0, x_298); +lean_ctor_set(x_306, 1, x_278); +x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_307, 0, x_306); +lean_ctor_set(x_307, 1, x_295); +return x_307; } } } @@ -15836,41 +18341,33 @@ return x_296; } else { -lean_object* x_297; -lean_dec(x_17); -x_297 = lean_box(0); -x_11 = x_297; -goto block_16; -} -block_16: -{ lean_dec(x_11); if (lean_obj_tag(x_3) == 2) { -lean_object* x_12; lean_object* x_13; +lean_object* x_308; lean_object* x_309; lean_dec(x_3); -x_12 = l___private_Lean_Elab_App_24__resolveLValAux___closed__6; -x_13 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_308 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6; +x_309 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_308, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); -return x_13; +return x_309; } else { -lean_object* x_14; lean_object* x_15; +lean_object* x_310; lean_object* x_311; lean_dec(x_3); -x_14 = l___private_Lean_Elab_App_24__resolveLValAux___closed__3; -x_15 = l___private_Lean_Elab_App_22__throwLValError___rarg(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_310 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3; +x_311 = l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(x_1, x_2, x_310, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); -return x_15; +return x_311; } } } } -lean_object* l___private_Lean_Elab_App_24__resolveLValAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_App_24__resolveLValAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(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); @@ -15878,7 +18375,89 @@ lean_dec(x_5); return x_11; } } -lean_object* l___private_Lean_Elab_App_25__consumeImplicits___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_App_0__Lean_Elab_Term_consumeImplicits_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_8 = lean_box_uint64(x_7); +x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_apply_2(x_3, x_1, x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -16117,35 +18696,118 @@ return x_66; } } } -lean_object* l___private_Lean_Elab_App_25__consumeImplicits___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_25__consumeImplicits___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_App_0__Lean_Elab_Term_consumeImplicits(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_3); return x_10; } } -lean_object* l___private_Lean_Elab_App_25__consumeImplicits(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_resolveLValLoop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_10; -x_10 = l___private_Lean_Elab_App_25__consumeImplicits___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -lean_object* l___private_Lean_Elab_App_25__consumeImplicits___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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) { -lean_object* x_10; -x_10 = l___private_Lean_Elab_App_25__consumeImplicits(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_dec(x_3); -return x_10; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___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* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_apply_3(x_2, x_1, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_apply_2(x_3, x_1, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_apply_3(x_4, x_1, x_2, x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__4___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___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; @@ -16166,7 +18828,7 @@ else { lean_object* x_14; lean_object* x_15; x_14 = lean_array_fget(x_1, x_2); -x_15 = l_Lean_Elab_logException___at___private_Lean_Elab_Term_10__exceptionToSorry___spec__1(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = l_Lean_Elab_logException___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(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; @@ -16206,7 +18868,7 @@ return x_23; } } } -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop___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_App_0__Lean_Elab_Term_resolveLValLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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; @@ -16214,7 +18876,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_12 = l___private_Lean_Elab_App_25__consumeImplicits___main(x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits(x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -16242,7 +18904,7 @@ lean_inc(x_5); lean_inc(x_1); lean_inc(x_17); lean_inc(x_16); -x_20 = l___private_Lean_Elab_App_24__resolveLValAux(x_16, x_17, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(x_16, x_17, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_19); if (lean_obj_tag(x_20) == 0) { uint8_t x_21; @@ -16306,7 +18968,7 @@ x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); x_31 = lean_unsigned_to_nat(0u); -x_32 = l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___main___spec__1(x_4, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +x_32 = l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -16466,7 +19128,7 @@ lean_inc(x_5); lean_inc(x_1); lean_inc(x_54); lean_inc(x_53); -x_57 = l___private_Lean_Elab_App_24__resolveLValAux(x_53, x_54, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_56); +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(x_53, x_54, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_56); if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; @@ -16529,7 +19191,7 @@ x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); lean_dec(x_65); x_68 = lean_unsigned_to_nat(0u); -x_69 = l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___main___spec__1(x_4, x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_67); +x_69 = l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(x_4, x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_67); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -16703,11 +19365,11 @@ return x_92; } } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_26__resolveLValLoop___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* l_Array_forMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___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___private_Lean_Elab_App_26__resolveLValLoop___main___spec__1(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_App_0__Lean_Elab_Term_resolveLValLoop___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); @@ -16718,33 +19380,16 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop___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_App_0__Lean_Elab_Term_resolveLValLoop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_26__resolveLValLoop___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_App_0__Lean_Elab_Term_resolveLValLoop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_12; } } -lean_object* l___private_Lean_Elab_App_26__resolveLValLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_26__resolveLValLoop___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_App_26__resolveLValLoop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_26__resolveLValLoop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); -return x_12; -} -} -lean_object* l___private_Lean_Elab_App_27__resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -16753,7 +19398,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_10 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(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; @@ -16763,7 +19408,7 @@ x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); x_13 = l_Array_empty___closed__1; -x_14 = l___private_Lean_Elab_App_26__resolveLValLoop___main(x_2, x_1, x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(x_2, x_1, x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_14; } else @@ -16797,16 +19442,47 @@ return x_18; } } } -lean_object* l___private_Lean_Elab_App_27__resolveLVal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_resolveLVal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_App_27__resolveLVal(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal(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; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1() { _start: { lean_object* x_1; @@ -16814,20 +19490,20 @@ x_1 = lean_mk_string("self"); return x_1; } } -static lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2() { +static lean_object* _init_l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1; +x_2 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___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_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___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: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { lean_object* x_10; lean_dec(x_8); @@ -16837,18 +19513,18 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 0, x_2); lean_ctor_set(x_10, 1, x_9); return x_10; } else { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); -x_12 = lean_ctor_get(x_2, 1); +x_12 = lean_ctor_get(x_1, 1); lean_inc(x_12); -lean_dec(x_2); +lean_dec(x_1); x_13 = lean_box(0); lean_inc(x_3); x_14 = l_Lean_Elab_Term_mkConst(x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); @@ -16861,8 +19537,8 @@ x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_1); -x_18 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; +lean_ctor_set(x_17, 0, x_2); +x_18 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -16877,7 +19553,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_25 = l___private_Lean_Elab_App_21__elabAppArgs(x_15, x_21, x_23, x_22, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_15, x_21, x_23, x_22, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_16); lean_dec(x_21); if (lean_obj_tag(x_25) == 0) { @@ -16887,8 +19563,8 @@ lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); -x_1 = x_26; -x_2 = x_12; +x_1 = x_12; +x_2 = x_26; x_9 = x_27; goto _start; } @@ -16932,7 +19608,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); +lean_dec(x_2); x_33 = !lean_is_exclusive(x_14); if (x_33 == 0) { @@ -16955,7 +19631,7 @@ return x_36; } } } -static lean_object* _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1() { _start: { lean_object* x_1; @@ -16963,27 +19639,27 @@ x_1 = lean_mk_string("failed to access field in parent structure"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_28__mkBaseProjections___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_28__mkBaseProjections___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___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_App_28__mkBaseProjections(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; @@ -17001,8 +19677,8 @@ if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_dec(x_3); -x_16 = l___private_Lean_Elab_App_28__mkBaseProjections___closed__3; -x_17 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3; +x_17 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -17016,21 +19692,131 @@ lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_15, 0); lean_inc(x_18); lean_dec(x_15); -x_19 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1(x_3, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_19 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ return x_19; } +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } -lean_object* l___private_Lean_Elab_App_28__mkBaseProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_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; +} +} +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_App_28__mkBaseProjections(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(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_Array_findIdxAux___main___at___private_Lean_Elab_App_29__addLValArg___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_3, 2); +lean_inc(x_8); +x_9 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +lean_dec(x_3); +x_10 = lean_box_uint64(x_9); +x_11 = lean_apply_6(x_4, x_1, x_2, x_6, x_7, x_8, x_10); +return x_11; +} +else +{ +lean_object* x_12; +lean_dec(x_4); +x_12 = lean_apply_3(x_5, x_1, x_2, x_3); +return x_12; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg_match__2___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -17072,7 +19858,7 @@ return x_13; } } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1() { _start: { lean_object* x_1; @@ -17080,27 +19866,16 @@ x_1 = lean_mk_string("invalid field notation, function '"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3() { _start: { lean_object* x_1; @@ -17108,27 +19883,16 @@ x_1 = lean_mk_string("' does not have explicit argument with type ("); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__5() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__7() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5() { _start: { lean_object* x_1; @@ -17136,27 +19900,16 @@ x_1 = lean_mk_string(" ...)"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__8() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__10() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7() { _start: { lean_object* x_1; @@ -17164,178 +19917,175 @@ x_1 = lean_mk_string("invalid field notation, insufficient number of arguments f return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__11() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__12() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_29__addLValArg___main___closed__11; -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_App_29__addLValArg___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; if (lean_obj_tag(x_7) == 7) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint64_t x_30; uint8_t x_31; uint8_t x_32; -x_27 = lean_ctor_get(x_7, 0); -x_28 = lean_ctor_get(x_7, 1); -x_29 = lean_ctor_get(x_7, 2); -x_30 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); -x_31 = (uint8_t)((x_30 << 24) >> 61); -x_32 = l_Lean_BinderInfo_isExplicit(x_31); -if (x_32 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint8_t x_19; uint8_t x_43; uint8_t x_44; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +x_17 = lean_ctor_get(x_7, 2); +x_18 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); +x_43 = (uint8_t)((x_18 << 24) >> 61); +x_44 = l_Lean_BinderInfo_isExplicit(x_43); +if (x_44 == 0) { -x_7 = x_29; -goto _start; +uint8_t x_45; +x_45 = 1; +x_19 = x_45; +goto block_42; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_unsigned_to_nat(0u); -x_35 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_29__addLValArg___main___spec__1(x_27, x_6, x_34); -if (lean_obj_tag(x_35) == 0) +uint8_t x_46; +x_46 = 0; +x_19 = x_46; +goto block_42; +} +block_42: { -lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_Expr_consumeMData___main(x_28); -x_37 = l_Lean_Expr_isAppOf(x_36, x_1); -lean_dec(x_36); -if (x_37 == 0) +if (x_19 == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_array_get_size(x_4); -x_39 = lean_nat_dec_lt(x_5, x_38); -lean_dec(x_38); -if (x_39 == 0) +lean_object* x_20; lean_object* x_21; +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1(x_15, x_6, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_object* x_22; uint8_t x_23; +x_22 = l_Lean_Expr_consumeMData___main(x_16); +x_23 = l_Lean_Expr_isAppOf(x_22, x_1); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; uint8_t x_25; +x_24 = lean_array_get_size(x_4); +x_25 = lean_nat_dec_lt(x_5, x_24); +lean_dec(x_24); +if (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_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_40 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_40, 0, x_2); -x_41 = l___private_Lean_Elab_App_29__addLValArg___main___closed__12; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_44, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_45; +x_26 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_26, 0, x_2); +x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_31; } else { -lean_object* x_46; lean_object* x_47; -x_46 = lean_unsigned_to_nat(1u); -x_47 = lean_nat_add(x_5, x_46); +lean_object* x_32; lean_object* x_33; +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_5, x_32); lean_dec(x_5); -x_5 = x_47; -x_7 = x_29; +x_5 = x_33; +x_7 = x_17; goto _start; } } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_dec(x_8); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_49 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_49, 0, x_3); -x_50 = l_Array_insertAt___rarg(x_4, x_5, x_49); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_3); +x_36 = l_Array_insertAt___rarg(x_4, x_5, x_35); lean_dec(x_5); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_14); -return x_51; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_14); +return x_37; } } else { -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_35, 0); -lean_inc(x_52); -lean_dec(x_35); -x_53 = l_Array_eraseIdx___rarg(x_6, x_52); -lean_dec(x_52); -x_6 = x_53; -x_7 = x_29; +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_21, 0); +lean_inc(x_38); +lean_dec(x_21); +x_39 = l_Array_eraseIdx___rarg(x_6, x_38); +lean_dec(x_38); +x_6 = x_39; +x_7 = x_17; +goto _start; +} +} +else +{ +x_7 = x_17; goto _start; } } } else { -lean_object* x_55; +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_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_55 = lean_box(0); -x_15 = x_55; -goto block_26; -} -block_26: -{ -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_dec(x_15); -x_16 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_16, 0, x_2); -x_17 = l___private_Lean_Elab_App_29__addLValArg___main___closed__3; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l___private_Lean_Elab_App_29__addLValArg___main___closed__6; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_21, 0, x_1); -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l___private_Lean_Elab_App_29__addLValArg___main___closed__9; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_25; +x_47 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_47, 0, x_2); +x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_52, 0, x_1); +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_55, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_56; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_29__addLValArg___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___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_App_29__addLValArg___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___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_App_29__addLValArg___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* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l___private_Lean_Elab_App_29__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -17345,29 +20095,156 @@ lean_dec(x_7); return x_15; } } -lean_object* l___private_Lean_Elab_App_29__addLValArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__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_15; -x_15 = l___private_Lean_Elab_App_29__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_15; +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 2); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_apply_3(x_3, x_7, x_8, x_9); +return x_10; +} +case 1: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_apply_2(x_2, x_11, x_12); +return x_13; +} +case 2: +{ +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_3); +lean_dec(x_2); +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 2); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_apply_3(x_4, x_14, x_15, x_16); +return x_17; +} +case 3: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_ctor_get(x_1, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_1, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_1, 2); +lean_inc(x_20); +lean_dec(x_1); +x_21 = lean_apply_3(x_5, x_18, x_19, x_20); +return x_21; +} +default: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_dec(x_1); +x_24 = lean_apply_2(x_6, x_22, x_23); +return x_24; } } -lean_object* l___private_Lean_Elab_App_29__addLValArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__1(lean_object* x_1) { _start: { -lean_object* x_15; -x_15 = l___private_Lean_Elab_App_29__addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -return x_15; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__1___rarg), 6, 0); +return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_apply_1(x_3, x_1); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +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 = lean_apply_3(x_4, x_1, x_6, x_7); +return x_8; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__3___rarg), 4, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1() { _start: { lean_object* x_1; @@ -17375,23 +20252,23 @@ x_1 = lean_mk_string("idx"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___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_Elab_App_30__elabAppLValsAux___main___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { if (lean_obj_tag(x_6) == 0) { lean_object* x_14; -x_14 = l___private_Lean_Elab_App_21__elabAppArgs(x_5, x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_5, x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_2); lean_dec(x_1); return x_14; @@ -17409,7 +20286,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_7); -x_17 = l___private_Lean_Elab_App_27__resolveLVal(x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal(x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; @@ -17440,7 +20317,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_25 = l___private_Lean_Elab_App_28__mkBaseProjections(x_22, x_23, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(x_22, x_23, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_20); 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; @@ -17468,7 +20345,7 @@ if (x_33 == 0) lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; x_34 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_34, 0, x_26); -x_35 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; +x_35 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); @@ -17483,7 +20360,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_42 = l___private_Lean_Elab_App_21__elabAppArgs(x_31, x_38, x_40, x_39, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_31, x_38, x_40, x_39, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_32); lean_dec(x_38); if (lean_obj_tag(x_42) == 0) { @@ -17537,7 +20414,7 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_16); x_50 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_50, 0, x_26); -x_51 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; +x_51 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; x_52 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_52, 0, x_51); lean_ctor_set(x_52, 1, x_50); @@ -17551,7 +20428,7 @@ lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -x_56 = l___private_Lean_Elab_App_21__elabAppArgs(x_31, x_54, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_55); +x_56 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_31, x_54, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_55); lean_dec(x_2); lean_dec(x_54); return x_56; @@ -17680,7 +20557,7 @@ goto _start; } case 2: { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; uint8_t x_167; x_75 = lean_ctor_get(x_17, 1); lean_inc(x_75); lean_dec(x_17); @@ -17694,74 +20571,76 @@ lean_inc(x_78); x_79 = lean_ctor_get(x_19, 2); lean_inc(x_79); lean_dec(x_19); -x_80 = lean_name_eq(x_77, x_78); +x_167 = lean_name_eq(x_77, x_78); +if (x_167 == 0) +{ +uint8_t x_168; +x_168 = 1; +x_80 = x_168; +goto block_166; +} +else +{ +uint8_t x_169; +x_169 = 0; +x_80 = x_169; +goto block_166; +} +block_166: +{ if (x_80 == 0) { -lean_object* x_81; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_81 = l___private_Lean_Elab_App_28__mkBaseProjections(x_77, x_78, x_76, x_7, x_8, x_9, x_10, x_11, x_12, x_75); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_box(0); +lean_object* x_81; lean_object* x_82; +lean_dec(x_78); +x_81 = lean_box(0); lean_inc(x_7); lean_inc(x_79); -x_85 = l_Lean_Elab_Term_mkConst(x_79, x_84, x_7, x_8, x_9, x_10, x_11, x_12, x_83); -if (lean_obj_tag(x_85) == 0) +x_82 = l_Lean_Elab_Term_mkConst(x_79, x_81, x_7, x_8, x_9, x_10, x_11, x_12, x_75); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = l_List_isEmpty___rarg(x_16); -if (x_88 == 0) +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = l_List_isEmpty___rarg(x_16); +if (x_85 == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; +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_dec(x_79); lean_dec(x_77); -x_89 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_89, 0, x_82); -x_90 = l_Lean_mkOptionalNode___closed__2; -x_91 = lean_array_push(x_90, x_89); -x_92 = lean_box(0); -x_93 = l_Array_empty___closed__1; -x_94 = 0; +x_86 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_86, 0, x_76); +x_87 = l_Lean_mkOptionalNode___closed__2; +x_88 = lean_array_push(x_87, x_86); +x_89 = lean_box(0); +x_90 = l_Array_empty___closed__1; +x_91 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_95 = l___private_Lean_Elab_App_21__elabAppArgs(x_86, x_93, x_91, x_92, x_94, x_7, x_8, x_9, x_10, x_11, x_12, x_87); -lean_dec(x_91); -if (lean_obj_tag(x_95) == 0) +x_92 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_83, x_90, x_88, x_89, x_91, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +lean_dec(x_88); +if (lean_obj_tag(x_92) == 0) { -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_5 = x_96; +lean_object* x_93; lean_object* x_94; +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_5 = x_93; x_6 = x_16; -x_13 = x_97; +x_13 = x_94; goto _start; } else { -uint8_t x_99; +uint8_t x_96; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -17772,325 +20651,66 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_99 = !lean_is_exclusive(x_95); -if (x_99 == 0) +x_96 = !lean_is_exclusive(x_92); +if (x_96 == 0) { -return x_95; +return x_92; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_95, 0); -x_101 = lean_ctor_get(x_95, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_95); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_92, 0); +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_92); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; } } } else { -lean_object* x_103; +lean_object* x_100; lean_dec(x_16); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_86); -x_103 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_86, x_7, x_8, x_9, x_10, x_11, x_12, x_87); -if (lean_obj_tag(x_103) == 0) +lean_inc(x_83); +x_100 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_83, x_7, x_8, x_9, x_10, x_11, x_12, x_84); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -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_106 = lean_unsigned_to_nat(0u); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_unsigned_to_nat(0u); lean_inc(x_7); lean_inc(x_1); -x_107 = l___private_Lean_Elab_App_29__addLValArg___main(x_77, x_79, x_82, x_2, x_106, x_1, x_104, x_7, x_8, x_9, x_10, x_11, x_12, x_105); +x_104 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_77, x_79, x_76, x_2, x_103, x_1, x_101, x_7, x_8, x_9, x_10, x_11, x_12, x_102); +lean_dec(x_101); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); lean_dec(x_104); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = l___private_Lean_Elab_App_21__elabAppArgs(x_86, x_1, x_108, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_109); -lean_dec(x_108); +x_107 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_83, x_1, x_105, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_106); +lean_dec(x_105); lean_dec(x_1); -return x_110; -} -else -{ -uint8_t x_111; -lean_dec(x_86); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_111 = !lean_is_exclusive(x_107); -if (x_111 == 0) -{ return x_107; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_107, 0); -x_113 = lean_ctor_get(x_107, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_107); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; -} -} -} -else -{ -uint8_t x_115; -lean_dec(x_86); -lean_dec(x_82); -lean_dec(x_79); -lean_dec(x_77); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_115 = !lean_is_exclusive(x_103); -if (x_115 == 0) -{ -return x_103; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_103, 0); -x_117 = lean_ctor_get(x_103, 1); -lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_103); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -return x_118; -} -} -} -} -else -{ -uint8_t x_119; -lean_dec(x_82); -lean_dec(x_79); -lean_dec(x_77); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_119 = !lean_is_exclusive(x_85); -if (x_119 == 0) -{ -return x_85; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_85, 0); -x_121 = lean_ctor_get(x_85, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_85); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -else -{ -uint8_t x_123; -lean_dec(x_79); -lean_dec(x_77); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_81); -if (x_123 == 0) -{ -return x_81; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_81, 0); -x_125 = lean_ctor_get(x_81, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_81); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; -} -} -} -else -{ -lean_object* x_127; lean_object* x_128; -lean_dec(x_78); -x_127 = lean_box(0); -lean_inc(x_7); -lean_inc(x_79); -x_128 = l_Lean_Elab_Term_mkConst(x_79, x_127, x_7, x_8, x_9, x_10, x_11, x_12, x_75); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; lean_object* x_130; uint8_t x_131; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = l_List_isEmpty___rarg(x_16); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; -lean_dec(x_79); -lean_dec(x_77); -x_132 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_132, 0, x_76); -x_133 = l_Lean_mkOptionalNode___closed__2; -x_134 = lean_array_push(x_133, x_132); -x_135 = lean_box(0); -x_136 = l_Array_empty___closed__1; -x_137 = 0; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_138 = l___private_Lean_Elab_App_21__elabAppArgs(x_129, x_136, x_134, x_135, x_137, x_7, x_8, x_9, x_10, x_11, x_12, x_130); -lean_dec(x_134); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_5 = x_139; -x_6 = x_16; -x_13 = x_140; -goto _start; -} -else -{ -uint8_t x_142; -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_142 = !lean_is_exclusive(x_138); -if (x_142 == 0) -{ -return x_138; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_138, 0); -x_144 = lean_ctor_get(x_138, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_138); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -return x_145; -} -} -} -else -{ -lean_object* x_146; -lean_dec(x_16); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_129); -x_146 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_129, x_7, x_8, x_9, x_10, x_11, x_12, x_130); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec(x_146); -x_149 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -lean_inc(x_1); -x_150 = l___private_Lean_Elab_App_29__addLValArg___main(x_77, x_79, x_76, x_2, x_149, x_1, x_147, x_7, x_8, x_9, x_10, x_11, x_12, x_148); -lean_dec(x_147); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -x_153 = l___private_Lean_Elab_App_21__elabAppArgs(x_129, x_1, x_151, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_152); -lean_dec(x_151); -lean_dec(x_1); -return x_153; -} -else -{ -uint8_t x_154; -lean_dec(x_129); +uint8_t x_108; +lean_dec(x_83); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -18099,30 +20719,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_1); -x_154 = !lean_is_exclusive(x_150); -if (x_154 == 0) +x_108 = !lean_is_exclusive(x_104); +if (x_108 == 0) { -return x_150; +return x_104; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_155 = lean_ctor_get(x_150, 0); -x_156 = lean_ctor_get(x_150, 1); -lean_inc(x_156); -lean_inc(x_155); -lean_dec(x_150); -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; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_104, 0); +x_110 = lean_ctor_get(x_104, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_104); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } else { -uint8_t x_158; -lean_dec(x_129); +uint8_t x_112; +lean_dec(x_83); lean_dec(x_79); lean_dec(x_77); lean_dec(x_76); @@ -18135,19 +20755,294 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_158 = !lean_is_exclusive(x_146); -if (x_158 == 0) +x_112 = !lean_is_exclusive(x_100); +if (x_112 == 0) +{ +return x_100; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_100, 0); +x_114 = lean_ctor_get(x_100, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_100); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +} +else +{ +uint8_t x_116; +lean_dec(x_79); +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_116 = !lean_is_exclusive(x_82); +if (x_116 == 0) +{ +return x_82; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_82, 0); +x_118 = lean_ctor_get(x_82, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_82); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else +{ +lean_object* x_120; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_120 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(x_77, x_78, x_76, x_7, x_8, x_9, x_10, x_11, x_12, x_75); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_box(0); +lean_inc(x_7); +lean_inc(x_79); +x_124 = l_Lean_Elab_Term_mkConst(x_79, x_123, x_7, x_8, x_9, x_10, x_11, x_12, x_122); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; uint8_t x_127; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +x_127 = l_List_isEmpty___rarg(x_16); +if (x_127 == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; +lean_dec(x_79); +lean_dec(x_77); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_121); +x_129 = l_Lean_mkOptionalNode___closed__2; +x_130 = lean_array_push(x_129, x_128); +x_131 = lean_box(0); +x_132 = l_Array_empty___closed__1; +x_133 = 0; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_134 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_125, x_132, x_130, x_131, x_133, x_7, x_8, x_9, x_10, x_11, x_12, x_126); +lean_dec(x_130); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_5 = x_135; +x_6 = x_16; +x_13 = x_136; +goto _start; +} +else +{ +uint8_t x_138; +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_138 = !lean_is_exclusive(x_134); +if (x_138 == 0) +{ +return x_134; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_134, 0); +x_140 = lean_ctor_get(x_134, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_134); +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_142; +lean_dec(x_16); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_125); +x_142 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_125, x_7, x_8, x_9, x_10, x_11, x_12, x_126); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +x_145 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +lean_inc(x_1); +x_146 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_77, x_79, x_121, x_2, x_145, x_1, x_143, x_7, x_8, x_9, x_10, x_11, x_12, x_144); +lean_dec(x_143); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_125, x_1, x_147, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_148); +lean_dec(x_147); +lean_dec(x_1); +return x_149; +} +else +{ +uint8_t x_150; +lean_dec(x_125); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +x_150 = !lean_is_exclusive(x_146); +if (x_150 == 0) { return x_146; } else { +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_146, 0); +x_152 = lean_ctor_get(x_146, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_146); +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 +{ +uint8_t x_154; +lean_dec(x_125); +lean_dec(x_121); +lean_dec(x_79); +lean_dec(x_77); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_154 = !lean_is_exclusive(x_142); +if (x_154 == 0) +{ +return x_142; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_142, 0); +x_156 = lean_ctor_get(x_142, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_142); +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_121); +lean_dec(x_79); +lean_dec(x_77); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_158 = !lean_is_exclusive(x_124); +if (x_158 == 0) +{ +return x_124; +} +else +{ lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_159 = lean_ctor_get(x_146, 0); -x_160 = lean_ctor_get(x_146, 1); +x_159 = lean_ctor_get(x_124, 0); +x_160 = lean_ctor_get(x_124, 1); lean_inc(x_160); lean_inc(x_159); -lean_dec(x_146); +lean_dec(x_124); x_161 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_161, 0, x_159); lean_ctor_set(x_161, 1, x_160); @@ -18155,13 +21050,11 @@ return x_161; } } } -} else { uint8_t x_162; lean_dec(x_79); lean_dec(x_77); -lean_dec(x_76); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -18172,19 +21065,19 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_162 = !lean_is_exclusive(x_128); +x_162 = !lean_is_exclusive(x_120); if (x_162 == 0) { -return x_128; +return x_120; } else { lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_128, 0); -x_164 = lean_ctor_get(x_128, 1); +x_163 = lean_ctor_get(x_120, 0); +x_164 = lean_ctor_get(x_120, 1); lean_inc(x_164); lean_inc(x_163); -lean_dec(x_128); +lean_dec(x_120); x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_163); lean_ctor_set(x_165, 1, x_164); @@ -18193,59 +21086,60 @@ return x_165; } } } +} case 3: { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; -x_166 = lean_ctor_get(x_17, 1); -lean_inc(x_166); -lean_dec(x_17); -x_167 = lean_ctor_get(x_18, 0); -lean_inc(x_167); -lean_dec(x_18); -x_168 = lean_ctor_get(x_19, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_19, 1); -lean_inc(x_169); -x_170 = lean_ctor_get(x_19, 2); +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_170 = lean_ctor_get(x_17, 1); lean_inc(x_170); +lean_dec(x_17); +x_171 = lean_ctor_get(x_18, 0); +lean_inc(x_171); +lean_dec(x_18); +x_172 = lean_ctor_get(x_19, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_19, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_19, 2); +lean_inc(x_174); lean_dec(x_19); -x_171 = l_List_isEmpty___rarg(x_16); -if (x_171 == 0) +x_175 = l_List_isEmpty___rarg(x_16); +if (x_175 == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; -lean_dec(x_169); -lean_dec(x_168); -x_172 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_172, 0, x_167); -x_173 = l_Lean_mkOptionalNode___closed__2; -x_174 = lean_array_push(x_173, x_172); -x_175 = lean_box(0); -x_176 = l_Array_empty___closed__1; -x_177 = 0; +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; +lean_dec(x_173); +lean_dec(x_172); +x_176 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_176, 0, x_171); +x_177 = l_Lean_mkOptionalNode___closed__2; +x_178 = lean_array_push(x_177, x_176); +x_179 = lean_box(0); +x_180 = l_Array_empty___closed__1; +x_181 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_178 = l___private_Lean_Elab_App_21__elabAppArgs(x_170, x_176, x_174, x_175, x_177, x_7, x_8, x_9, x_10, x_11, x_12, x_166); -lean_dec(x_174); -if (lean_obj_tag(x_178) == 0) -{ -lean_object* x_179; lean_object* x_180; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); +x_182 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_174, x_180, x_178, x_179, x_181, x_7, x_8, x_9, x_10, x_11, x_12, x_170); lean_dec(x_178); -x_5 = x_179; +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_5 = x_183; x_6 = x_16; -x_13 = x_180; +x_13 = x_184; goto _start; } else { -uint8_t x_182; +uint8_t x_186; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -18256,101 +21150,66 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_182 = !lean_is_exclusive(x_178); -if (x_182 == 0) +x_186 = !lean_is_exclusive(x_182); +if (x_186 == 0) { -return x_178; +return x_182; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_178, 0); -x_184 = lean_ctor_get(x_178, 1); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_178); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_182, 0); +x_188 = lean_ctor_get(x_182, 1); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_182); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; } } } else { -lean_object* x_186; +lean_object* x_190; lean_dec(x_16); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_170); -x_186 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_170, x_7, x_8, x_9, x_10, x_11, x_12, x_166); -if (lean_obj_tag(x_186) == 0) -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec(x_186); -x_189 = lean_unsigned_to_nat(0u); -lean_inc(x_7); -lean_inc(x_1); -x_190 = l___private_Lean_Elab_App_29__addLValArg___main(x_168, x_169, x_167, x_2, x_189, x_1, x_187, x_7, x_8, x_9, x_10, x_11, x_12, x_188); -lean_dec(x_187); +lean_inc(x_174); +x_190 = l_Lean_Meta_inferType___at___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType___spec__1(x_174, x_7, x_8, x_9, x_10, x_11, x_12, x_170); if (lean_obj_tag(x_190) == 0) { -lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; x_191 = lean_ctor_get(x_190, 0); lean_inc(x_191); x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); lean_dec(x_190); -x_193 = l___private_Lean_Elab_App_21__elabAppArgs(x_170, x_1, x_191, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_192); +x_193 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +lean_inc(x_1); +x_194 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_172, x_173, x_171, x_2, x_193, x_1, x_191, x_7, x_8, x_9, x_10, x_11, x_12, x_192); lean_dec(x_191); -lean_dec(x_1); -return x_193; -} -else -{ -uint8_t x_194; -lean_dec(x_170); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_194 = !lean_is_exclusive(x_190); -if (x_194 == 0) -{ -return x_190; -} -else +if (lean_obj_tag(x_194) == 0) { lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_190, 0); -x_196 = lean_ctor_get(x_190, 1); -lean_inc(x_196); +x_195 = lean_ctor_get(x_194, 0); lean_inc(x_195); -lean_dec(x_190); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_197 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_174, x_1, x_195, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_196); +lean_dec(x_195); +lean_dec(x_1); return x_197; } -} -} else { uint8_t x_198; -lean_dec(x_170); -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_167); +lean_dec(x_174); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -18358,21 +21217,20 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_198 = !lean_is_exclusive(x_186); +x_198 = !lean_is_exclusive(x_194); if (x_198 == 0) { -return x_186; +return x_194; } else { lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_186, 0); -x_200 = lean_ctor_get(x_186, 1); +x_199 = lean_ctor_get(x_194, 0); +x_200 = lean_ctor_get(x_194, 1); lean_inc(x_200); lean_inc(x_199); -lean_dec(x_186); +lean_dec(x_194); x_201 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_201, 0, x_199); lean_ctor_set(x_201, 1, x_200); @@ -18380,78 +21238,114 @@ return x_201; } } } +else +{ +uint8_t x_202; +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_172); +lean_dec(x_171); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_202 = !lean_is_exclusive(x_190); +if (x_202 == 0) +{ +return x_190; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_190, 0); +x_204 = lean_ctor_get(x_190, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_190); +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; +} +} +} } default: { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_202 = lean_ctor_get(x_17, 1); -lean_inc(x_202); +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_206 = lean_ctor_get(x_17, 1); +lean_inc(x_206); lean_dec(x_17); -x_203 = lean_ctor_get(x_18, 0); -lean_inc(x_203); +x_207 = lean_ctor_get(x_18, 0); +lean_inc(x_207); lean_dec(x_18); -x_204 = lean_ctor_get(x_19, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_19, 1); -lean_inc(x_205); -lean_dec(x_19); -x_206 = lean_box(0); -lean_inc(x_7); -x_207 = l_Lean_Elab_Term_mkConst(x_204, x_206, x_7, x_8, x_9, x_10, x_11, x_12, x_202); -if (lean_obj_tag(x_207) == 0) -{ -lean_object* x_208; lean_object* x_209; uint8_t x_210; -x_208 = lean_ctor_get(x_207, 0); +x_208 = lean_ctor_get(x_19, 0); lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); +x_209 = lean_ctor_get(x_19, 1); lean_inc(x_209); -lean_dec(x_207); -x_210 = l_List_isEmpty___rarg(x_16); -if (x_210 == 0) +lean_dec(x_19); +x_210 = lean_box(0); +lean_inc(x_7); +x_211 = l_Lean_Elab_Term_mkConst(x_208, x_210, x_7, x_8, x_9, x_10, x_11, x_12, x_206); +if (lean_obj_tag(x_211) == 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; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; -x_211 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_211, 0, x_203); -x_212 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_211); -x_214 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_214, 0, x_205); -x_215 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; -x_216 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_214); -x_217 = l_Lean_mkAppStx___closed__9; -x_218 = lean_array_push(x_217, x_213); -x_219 = lean_array_push(x_218, x_216); -x_220 = lean_box(0); -x_221 = l_Array_empty___closed__1; -x_222 = 0; +lean_object* x_212; lean_object* x_213; uint8_t x_214; +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +x_214 = l_List_isEmpty___rarg(x_16); +if (x_214 == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; +x_215 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_215, 0, x_207); +x_216 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_215); +x_218 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_218, 0, x_209); +x_219 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; +x_220 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_218); +x_221 = l_Lean_mkAppStx___closed__9; +x_222 = lean_array_push(x_221, x_217); +x_223 = lean_array_push(x_222, x_220); +x_224 = lean_box(0); +x_225 = l_Array_empty___closed__1; +x_226 = 0; lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_223 = l___private_Lean_Elab_App_21__elabAppArgs(x_208, x_219, x_221, x_220, x_222, x_7, x_8, x_9, x_10, x_11, x_12, x_209); -lean_dec(x_219); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; lean_object* x_225; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); +x_227 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_212, x_223, x_225, x_224, x_226, x_7, x_8, x_9, x_10, x_11, x_12, x_213); lean_dec(x_223); -x_5 = x_224; +if (lean_obj_tag(x_227) == 0) +{ +lean_object* x_228; lean_object* x_229; +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_5 = x_228; x_6 = x_16; -x_13 = x_225; +x_13 = x_229; goto _start; } else { -uint8_t x_227; +uint8_t x_231; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -18462,104 +21356,71 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_227 = !lean_is_exclusive(x_223); -if (x_227 == 0) +x_231 = !lean_is_exclusive(x_227); +if (x_231 == 0) { -return x_223; +return x_227; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_228 = lean_ctor_get(x_223, 0); -x_229 = lean_ctor_get(x_223, 1); -lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_223); -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -return x_230; +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_227, 0); +x_233 = lean_ctor_get(x_227, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_227); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +return x_234; } } } else { -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_dec(x_16); -x_231 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_231, 0, x_203); -x_232 = l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2; -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_231); +x_235 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_235, 0, x_207); +x_236 = l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_235); lean_inc(x_7); -x_234 = l_Lean_Elab_Term_addNamedArg(x_1, x_233, x_7, x_8, x_9, x_10, x_11, x_12, x_209); -if (lean_obj_tag(x_234) == 0) +x_238 = l_Lean_Elab_Term_addNamedArg(x_1, x_237, x_7, x_8, x_9, x_10, x_11, x_12, x_213); +if (lean_obj_tag(x_238) == 0) { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec(x_234); -x_237 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_237, 0, x_205); -x_238 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; -x_239 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); +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_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +x_241 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_241, 0, x_209); +x_242 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_241); lean_inc(x_7); -x_240 = l_Lean_Elab_Term_addNamedArg(x_235, x_239, x_7, x_8, x_9, x_10, x_11, x_12, x_236); -if (lean_obj_tag(x_240) == 0) -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -lean_dec(x_240); -x_243 = l___private_Lean_Elab_App_21__elabAppArgs(x_208, x_241, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_242); -lean_dec(x_2); -lean_dec(x_241); -return x_243; -} -else -{ -uint8_t x_244; -lean_dec(x_208); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -x_244 = !lean_is_exclusive(x_240); -if (x_244 == 0) -{ -return x_240; -} -else +x_244 = l_Lean_Elab_Term_addNamedArg(x_239, x_243, x_7, x_8, x_9, x_10, x_11, x_12, x_240); +if (lean_obj_tag(x_244) == 0) { lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_245 = lean_ctor_get(x_240, 0); -x_246 = lean_ctor_get(x_240, 1); -lean_inc(x_246); +x_245 = lean_ctor_get(x_244, 0); lean_inc(x_245); -lean_dec(x_240); -x_247 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_247, 0, x_245); -lean_ctor_set(x_247, 1, x_246); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs(x_212, x_245, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_246); +lean_dec(x_2); +lean_dec(x_245); return x_247; } -} -} else { uint8_t x_248; -lean_dec(x_208); -lean_dec(x_205); +lean_dec(x_212); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -18568,19 +21429,19 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); -x_248 = !lean_is_exclusive(x_234); +x_248 = !lean_is_exclusive(x_244); if (x_248 == 0) { -return x_234; +return x_244; } else { lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_234, 0); -x_250 = lean_ctor_get(x_234, 1); +x_249 = lean_ctor_get(x_244, 0); +x_250 = lean_ctor_get(x_244, 1); lean_inc(x_250); lean_inc(x_249); -lean_dec(x_234); +lean_dec(x_244); x_251 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_251, 0, x_249); lean_ctor_set(x_251, 1, x_250); @@ -18588,13 +21449,11 @@ return x_251; } } } -} else { uint8_t x_252; -lean_dec(x_205); -lean_dec(x_203); -lean_dec(x_16); +lean_dec(x_212); +lean_dec(x_209); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -18603,20 +21462,19 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_252 = !lean_is_exclusive(x_207); +x_252 = !lean_is_exclusive(x_238); if (x_252 == 0) { -return x_207; +return x_238; } else { lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_207, 0); -x_254 = lean_ctor_get(x_207, 1); +x_253 = lean_ctor_get(x_238, 0); +x_254 = lean_ctor_get(x_238, 1); lean_inc(x_254); lean_inc(x_253); -lean_dec(x_207); +lean_dec(x_238); x_255 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_255, 0, x_253); lean_ctor_set(x_255, 1, x_254); @@ -18625,10 +21483,11 @@ return x_255; } } } -} else { uint8_t x_256; +lean_dec(x_209); +lean_dec(x_207); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -18639,19 +21498,19 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_256 = !lean_is_exclusive(x_17); +x_256 = !lean_is_exclusive(x_211); if (x_256 == 0) { -return x_17; +return x_211; } else { lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_257 = lean_ctor_get(x_17, 0); -x_258 = lean_ctor_get(x_17, 1); +x_257 = lean_ctor_get(x_211, 0); +x_258 = lean_ctor_get(x_211, 1); lean_inc(x_258); lean_inc(x_257); -lean_dec(x_17); +lean_dec(x_211); x_259 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_259, 0, x_257); lean_ctor_set(x_259, 1, x_258); @@ -18661,35 +21520,70 @@ return x_259; } } } -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___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* x_12, lean_object* x_13) { +else +{ +uint8_t x_260; +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_260 = !lean_is_exclusive(x_17); +if (x_260 == 0) +{ +return x_17; +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_17, 0); +x_262 = lean_ctor_get(x_17, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_17); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +return x_263; +} +} +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_4); lean_dec(x_4); -x_15 = l___private_Lean_Elab_App_30__elabAppLValsAux___main(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_App_30__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_14; } } -lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_0__Lean_Elab_Term_elabAppLValsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_4); lean_dec(x_4); -x_15 = l___private_Lean_Elab_App_30__elabAppLValsAux(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } -static lean_object* _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1() { _start: { lean_object* x_1; @@ -18697,37 +21591,49 @@ x_1 = lean_mk_string("invalid use of field notation with `@` modifier"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_31__elabAppLVals___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_31__elabAppLVals___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___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_App_31__elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_14; -x_14 = l_List_isEmpty___rarg(x_2); +uint8_t x_14; uint8_t x_23; +x_23 = l_List_isEmpty___rarg(x_2); +if (x_23 == 0) +{ +x_14 = x_6; +goto block_22; +} +else +{ +uint8_t x_24; +x_24 = 0; +x_14 = x_24; +goto block_22; +} +block_22: +{ if (x_14 == 0) { -if (x_6 == 0) -{ lean_object* x_15; -x_15 = l___private_Lean_Elab_App_30__elabAppLValsAux___main(x_3, x_4, x_5, x_6, x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_3, x_4, x_5, x_6, x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } else @@ -18738,8 +21644,8 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_16 = l___private_Lean_Elab_App_31__elabAppLVals___closed__3; -x_17 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3; +x_17 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -18765,21 +21671,15 @@ return x_21; } } } -else -{ -lean_object* x_22; -x_22 = l___private_Lean_Elab_App_30__elabAppLValsAux___main(x_3, x_4, x_5, x_6, x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_22; } } -} -lean_object* l___private_Lean_Elab_App_31__elabAppLVals___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_0__Lean_Elab_Term_elabAppLVals___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; x_14 = lean_unbox(x_6); lean_dec(x_6); -x_15 = l___private_Lean_Elab_App_31__elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_15; } } @@ -18891,7 +21791,64 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___rarg(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 3); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_apply_4(x_2, x_4, x_5, x_6, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -18902,15 +21859,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___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_App_0__Lean_Elab_Term_elabAppFnId___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_App_32__elabAppFnId___spec__1___rarg), 1, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___rarg), 1, 0); return x_7; } } -lean_object* l_List_map___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18930,7 +21887,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__2(x_5); +x_7 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -18945,7 +21902,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__2(x_9); +x_11 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(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); @@ -18954,7 +21911,7 @@ return x_12; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { if (lean_obj_tag(x_8) == 0) @@ -18988,7 +21945,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = l_List_map___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__2(x_20); +x_21 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_20); lean_inc(x_1); x_22 = l_List_append___rarg(x_21, x_1); x_23 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); @@ -19013,7 +21970,7 @@ lean_inc(x_9); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_52 = l___private_Lean_Elab_App_31__elabAppLVals(x_19, x_22, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_25); +x_52 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_19, x_22, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_25); if (lean_obj_tag(x_52) == 0) { if (x_6 == 0) @@ -19269,7 +22226,7 @@ return x_50; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { if (lean_obj_tag(x_8) == 0) @@ -19303,7 +22260,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = l_List_map___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__2(x_20); +x_21 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(x_20); lean_inc(x_1); x_22 = l_List_append___rarg(x_21, x_1); x_23 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); @@ -19328,7 +22285,7 @@ lean_inc(x_9); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_52 = l___private_Lean_Elab_App_31__elabAppLVals(x_19, x_22, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_25); +x_52 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_19, x_22, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_25); if (lean_obj_tag(x_52) == 0) { if (x_6 == 0) @@ -19584,7 +22541,7 @@ return x_50; } } } -lean_object* l___private_Lean_Elab_App_32__elabAppFnId(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, uint8_t 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* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(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, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { if (lean_obj_tag(x_1) == 3) @@ -19690,7 +22647,7 @@ x_52 = lean_ctor_get(x_10, 0); lean_dec(x_52); x_53 = 0; lean_ctor_set_uint8(x_10, sizeof(void*)*8 + 1, x_53); -x_54 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +x_54 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); return x_54; } else @@ -19709,7 +22666,7 @@ lean_ctor_set(x_56, 6, x_36); lean_ctor_set(x_56, 7, x_37); lean_ctor_set_uint8(x_56, sizeof(void*)*8, x_38); lean_ctor_set_uint8(x_56, sizeof(void*)*8 + 1, x_55); -x_57 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_56, x_11, x_12, x_13, x_14, x_15, x_29); +x_57 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_56, x_11, x_12, x_13, x_14, x_15, x_29); return x_57; } } @@ -19736,7 +22693,7 @@ x_65 = lean_ctor_get(x_10, 1); lean_dec(x_65); x_66 = lean_ctor_get(x_10, 0); lean_dec(x_66); -x_67 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +x_67 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); return x_67; } else @@ -19755,7 +22712,7 @@ lean_ctor_set(x_69, 6, x_36); lean_ctor_set(x_69, 7, x_37); lean_ctor_set_uint8(x_69, sizeof(void*)*8, x_38); lean_ctor_set_uint8(x_69, sizeof(void*)*8 + 1, x_68); -x_70 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_69, x_11, x_12, x_13, x_14, x_15, x_29); +x_70 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4(x_3, x_4, x_5, x_6, x_7, x_43, x_9, x_28, x_69, x_11, x_12, x_13, x_14, x_15, x_29); return x_70; } } @@ -19811,16 +22768,16 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_78 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___rarg(x_16); +x_78 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___rarg(x_16); return x_78; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___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_App_0__Lean_Elab_Term_elabAppFnId___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_App_32__elabAppFnId___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___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); @@ -19830,7 +22787,7 @@ lean_dec(x_1); return x_7; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; uint8_t x_17; lean_object* x_18; @@ -19838,11 +22795,11 @@ x_16 = lean_unbox(x_5); lean_dec(x_5); x_17 = lean_unbox(x_6); lean_dec(x_6); -x_18 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__3(x_1, x_2, x_3, x_4, x_16, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(x_1, x_2, x_3, x_4, x_16, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_18; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; uint8_t x_17; lean_object* x_18; @@ -19850,11 +22807,11 @@ x_16 = lean_unbox(x_5); lean_dec(x_5); x_17 = lean_unbox(x_6); lean_dec(x_6); -x_18 = l_List_foldlM___main___at___private_Lean_Elab_App_32__elabAppFnId___spec__4(x_1, x_2, x_3, x_4, x_16, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l_List_foldlM___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4(x_1, x_2, x_3, x_4, x_16, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_18; } } -lean_object* l___private_Lean_Elab_App_32__elabAppFnId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { uint8_t x_17; uint8_t x_18; lean_object* x_19; @@ -19862,11 +22819,60 @@ x_17 = lean_unbox(x_7); lean_dec(x_7); x_18 = lean_unbox(x_8); lean_dec(x_8); -x_19 = l___private_Lean_Elab_App_32__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_19; } } -lean_object* l_List_map___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__1(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_box(x_6); +x_11 = lean_box(x_7); +x_12 = lean_apply_8(x_9, x_1, x_2, x_3, x_4, x_5, x_10, x_11, x_8); +return x_12; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1___rarg___boxed), 9, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__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: +{ +uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_10 = lean_unbox(x_6); +lean_dec(x_6); +x_11 = lean_unbox(x_7); +lean_dec(x_7); +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_match__1___rarg(x_1, x_2, x_3, x_4, x_5, x_10, x_11, x_8, x_9); +return x_12; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg), 1, 0); +return x_7; +} +} +lean_object* l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19888,7 +22894,7 @@ x_6 = l_System_FilePath_dirName___closed__1; x_7 = l_Lean_Name_toStringWithSep___main(x_6, x_4); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_7); -x_9 = l_List_map___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__1(x_5); +x_9 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -19905,7 +22911,7 @@ x_12 = l_System_FilePath_dirName___closed__1; x_13 = l_Lean_Name_toStringWithSep___main(x_12, x_10); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); -x_15 = l_List_map___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__1(x_11); +x_15 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_11); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -19914,7 +22920,7 @@ return x_16; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { lean_object* x_17; uint8_t x_18; @@ -19958,7 +22964,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_24 = l___private_Lean_Elab_App_33__elabAppFn___main(x_20, x_2, x_3, x_4, x_5, x_6, x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(x_20, x_2, x_3, x_4, x_5, x_6, x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; @@ -20008,53 +23014,7 @@ return x_31; } } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("placeholders '_' cannot be used where a function is expected"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("explicitUniv"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___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___private_Lean_Elab_App_33__elabAppFn___main___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__6() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1() { _start: { lean_object* x_1; @@ -20062,27 +23022,109 @@ x_1 = lean_mk_string("unexpected occurrence of named pattern"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__7() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__6; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__8() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__7; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__9() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("placeholders '_' cannot be used where a function is expected"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("explicitUniv"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8() { +_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_App_0__Lean_Elab_Term_elabAppFn___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("arrayRef"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10() { +_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_App_0__Lean_Elab_Term_elabAppFn___closed__9; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("namedPattern"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12() { +_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_App_0__Lean_Elab_Term_elabAppFn___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20092,43 +23134,25 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__10() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14() { _start: { lean_object* x_1; -x_1 = lean_mk_string("arrayRef"); +x_1 = lean_mk_string("dollarProj"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__11() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15() { _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_App_33__elabAppFn___main___closed__10; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__12() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("namedPattern"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__13() { -_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_App_33__elabAppFn___main___closed__12; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__14() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -20140,289 +23164,179 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__15() { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_1; -x_1 = lean_mk_string("dollarProj"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__16() { -_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_App_33__elabAppFn___main___closed__15; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_App_33__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -uint8_t x_16; lean_object* x_382; lean_object* x_383; uint8_t x_384; +lean_object* x_16; lean_object* x_230; lean_object* x_450; lean_object* x_451; uint8_t x_452; lean_inc(x_1); -x_382 = l_Lean_Syntax_getKind(x_1); -x_383 = l_Lean_choiceKind; -x_384 = lean_name_eq(x_382, x_383); -lean_dec(x_382); -if (x_384 == 0) +x_450 = l_Lean_Syntax_getKind(x_1); +x_451 = l_Lean_choiceKind; +x_452 = lean_name_eq(x_450, x_451); +lean_dec(x_450); +if (x_452 == 0) { -uint8_t x_385; uint8_t x_1183; uint8_t x_1226; lean_object* x_1623; uint8_t x_1624; -x_1623 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +lean_object* x_453; lean_object* x_465; lean_object* x_742; lean_object* x_773; uint8_t x_774; +x_773 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; lean_inc(x_1); -x_1624 = l_Lean_Syntax_isOfKind(x_1, x_1623); -if (x_1624 == 0) +x_774 = l_Lean_Syntax_isOfKind(x_1, x_773); +if (x_774 == 0) { -uint8_t x_1625; -x_1625 = 0; -x_1226 = x_1625; -goto block_1622; +lean_object* x_775; uint8_t x_776; +x_775 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15; +lean_inc(x_1); +x_776 = l_Lean_Syntax_isOfKind(x_1, x_775); +if (x_776 == 0) +{ +lean_object* x_777; +x_777 = lean_box(0); +x_742 = x_777; +goto block_772; } else { -lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; uint8_t x_1629; -x_1626 = l_Lean_Syntax_getArgs(x_1); -x_1627 = lean_array_get_size(x_1626); -lean_dec(x_1626); -x_1628 = lean_unsigned_to_nat(3u); -x_1629 = lean_nat_dec_eq(x_1627, x_1628); -lean_dec(x_1627); -x_1226 = x_1629; -goto block_1622; -} -block_1182: +lean_object* x_778; lean_object* x_779; lean_object* x_780; uint8_t x_781; +x_778 = l_Lean_Syntax_getArgs(x_1); +x_779 = lean_array_get_size(x_778); +lean_dec(x_778); +x_780 = lean_unsigned_to_nat(3u); +x_781 = lean_nat_dec_eq(x_779, x_780); +lean_dec(x_779); +if (x_781 == 0) { -if (x_385 == 0) -{ -lean_object* x_386; uint8_t x_387; -x_386 = l_Lean_identKind___closed__2; -lean_inc(x_1); -x_387 = l_Lean_Syntax_isOfKind(x_1, x_386); -if (x_387 == 0) -{ -uint8_t x_388; uint8_t x_418; lean_object* x_805; uint8_t x_806; -x_805 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; -lean_inc(x_1); -x_806 = l_Lean_Syntax_isOfKind(x_1, x_805); -if (x_806 == 0) -{ -uint8_t x_807; -x_807 = 0; -x_418 = x_807; -goto block_804; +lean_object* x_782; +x_782 = lean_box(0); +x_742 = x_782; +goto block_772; } else { -lean_object* x_808; lean_object* x_809; lean_object* x_810; uint8_t x_811; -x_808 = l_Lean_Syntax_getArgs(x_1); -x_809 = lean_array_get_size(x_808); -lean_dec(x_808); -x_810 = lean_unsigned_to_nat(4u); -x_811 = lean_nat_dec_eq(x_809, x_810); -lean_dec(x_809); -x_418 = x_811; -goto block_804; -} -block_417: -{ -if (x_388 == 0) -{ -lean_object* x_389; uint8_t x_390; -x_389 = l_Lean_mkHole___closed__2; -lean_inc(x_1); -x_390 = l_Lean_Syntax_isOfKind(x_1, x_389); -if (x_390 == 0) -{ -uint8_t x_391; -x_391 = 0; -x_16 = x_391; -goto block_381; -} -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; -x_392 = l_Lean_Syntax_getArgs(x_1); -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_16 = x_395; -goto block_381; -} -} -else -{ -lean_object* x_396; lean_object* x_397; uint8_t x_398; uint8_t x_407; -x_396 = lean_unsigned_to_nat(1u); -x_397 = l_Lean_Syntax_getArg(x_1, x_396); +lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; +x_783 = lean_unsigned_to_nat(0u); +x_784 = l_Lean_Syntax_getArg(x_1, x_783); +x_785 = lean_unsigned_to_nat(2u); +x_786 = l_Lean_Syntax_getArg(x_1, x_785); lean_dec(x_1); -lean_inc(x_397); -x_407 = l_Lean_Syntax_isOfKind(x_397, x_386); -if (x_407 == 0) -{ -lean_object* x_408; uint8_t x_409; -x_408 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; -lean_inc(x_397); -x_409 = l_Lean_Syntax_isOfKind(x_397, x_408); -if (x_409 == 0) -{ -uint8_t x_410; -x_410 = 0; -x_398 = x_410; -goto block_406; -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; -x_411 = l_Lean_Syntax_getArgs(x_397); -x_412 = lean_array_get_size(x_411); -lean_dec(x_411); -x_413 = lean_unsigned_to_nat(4u); -x_414 = lean_nat_dec_eq(x_412, x_413); -lean_dec(x_412); -x_398 = x_414; -goto block_406; -} -} -else -{ -uint8_t x_415; -x_415 = 1; -x_1 = x_397; -x_6 = x_415; -goto _start; -} -block_406: -{ -if (x_398 == 0) -{ -lean_object* x_399; -lean_dec(x_397); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_399 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___rarg(x_15); -return x_399; -} -else -{ -lean_object* x_400; lean_object* x_401; uint8_t x_402; -x_400 = lean_unsigned_to_nat(0u); -x_401 = l_Lean_Syntax_getArg(x_397, x_400); -x_402 = l_Lean_Syntax_isOfKind(x_401, x_386); -if (x_402 == 0) -{ -lean_object* x_403; -lean_dec(x_397); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_403 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_32__elabAppFnId___spec__1___rarg(x_15); -return x_403; -} -else -{ -uint8_t x_404; -x_404 = 1; -x_1 = x_397; -x_6 = x_404; +x_787 = l_Lean_Elab_Term_getCurrMacroScope(x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_788 = lean_ctor_get(x_787, 1); +lean_inc(x_788); +lean_dec(x_787); +x_789 = l_Lean_Elab_Term_getMainModule___rarg(x_14, x_788); +x_790 = lean_ctor_get(x_789, 1); +lean_inc(x_790); +lean_dec(x_789); +x_791 = l_Array_empty___closed__1; +x_792 = lean_array_push(x_791, x_784); +x_793 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +x_794 = lean_array_push(x_792, x_793); +x_795 = lean_array_push(x_794, x_786); +x_796 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_796, 0, x_773); +lean_ctor_set(x_796, 1, x_795); +x_1 = x_796; +x_15 = x_790; goto _start; } } } -} -} -block_804: +else { -if (x_418 == 0) +lean_object* x_798; lean_object* x_799; lean_object* x_800; uint8_t x_801; +x_798 = l_Lean_Syntax_getArgs(x_1); +x_799 = lean_array_get_size(x_798); +lean_dec(x_798); +x_800 = lean_unsigned_to_nat(3u); +x_801 = lean_nat_dec_eq(x_799, x_800); +lean_dec(x_799); +if (x_801 == 0) { -lean_object* x_419; uint8_t x_420; -x_419 = l___private_Lean_Elab_Term_14__isExplicit___closed__2; -lean_inc(x_1); -x_420 = l_Lean_Syntax_isOfKind(x_1, x_419); -if (x_420 == 0) -{ -uint8_t x_421; -x_421 = 0; -x_388 = x_421; -goto block_417; +lean_object* x_802; +x_802 = lean_box(0); +x_742 = x_802; +goto block_772; } else { -lean_object* x_422; lean_object* x_423; lean_object* x_424; uint8_t x_425; -x_422 = l_Lean_Syntax_getArgs(x_1); -x_423 = lean_array_get_size(x_422); -lean_dec(x_422); -x_424 = lean_unsigned_to_nat(2u); -x_425 = lean_nat_dec_eq(x_423, x_424); -lean_dec(x_423); -x_388 = x_425; -goto block_417; -} -} -else +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; uint8_t x_808; +x_803 = lean_unsigned_to_nat(0u); +x_804 = l_Lean_Syntax_getArg(x_1, x_803); +x_805 = lean_unsigned_to_nat(2u); +x_806 = l_Lean_Syntax_getArg(x_1, x_805); +x_807 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_806); +x_808 = l_Lean_Syntax_isOfKind(x_806, x_807); +if (x_808 == 0) { -lean_object* x_426; lean_object* x_427; uint8_t x_428; -x_426 = lean_unsigned_to_nat(0u); -x_427 = l_Lean_Syntax_getArg(x_1, x_426); -lean_inc(x_427); -x_428 = l_Lean_Syntax_isOfKind(x_427, x_386); -if (x_428 == 0) +lean_object* x_809; uint8_t x_810; +x_809 = l_Lean_identKind___closed__2; +lean_inc(x_806); +x_810 = l_Lean_Syntax_isOfKind(x_806, x_809); +if (x_810 == 0) { -uint8_t x_429; uint8_t x_430; -lean_dec(x_427); -x_429 = l_List_isEmpty___rarg(x_2); +uint8_t x_811; uint8_t x_812; +lean_dec(x_806); +lean_dec(x_804); +x_811 = l_List_isEmpty___rarg(x_2); if (x_7 == 0) { -uint8_t x_789; -x_789 = 1; -x_430 = x_789; -goto block_788; +uint8_t x_1021; +x_1021 = 1; +x_812 = x_1021; +goto block_1020; } else { -uint8_t x_790; -x_790 = 0; -x_430 = x_790; -goto block_788; +uint8_t x_1022; +x_1022 = 0; +x_812 = x_1022; +goto block_1020; } -block_788: +block_1020: { -if (x_429 == 0) +uint8_t x_813; +if (x_811 == 0) { -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_468; lean_object* x_469; lean_object* x_491; -x_431 = lean_box(0); -x_432 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_433 = lean_ctor_get(x_432, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_432, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_432)) { - lean_ctor_release(x_432, 0); - lean_ctor_release(x_432, 1); - x_435 = x_432; +uint8_t x_1016; +x_1016 = 0; +x_813 = x_1016; +goto block_1015; +} +else +{ +uint8_t x_1017; +x_1017 = l_Array_isEmpty___rarg(x_3); +if (x_1017 == 0) +{ +uint8_t x_1018; +x_1018 = 0; +x_813 = x_1018; +goto block_1015; +} +else +{ +uint8_t x_1019; +x_1019 = l_Array_isEmpty___rarg(x_4); +x_813 = x_1019; +goto block_1015; +} +} +block_1015: +{ +if (x_813 == 0) +{ +lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_851; lean_object* x_852; lean_object* x_874; +x_814 = lean_box(0); +x_815 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_816 = lean_ctor_get(x_815, 0); +lean_inc(x_816); +x_817 = lean_ctor_get(x_815, 1); +lean_inc(x_817); +if (lean_is_exclusive(x_815)) { + lean_ctor_release(x_815, 0); + lean_ctor_release(x_815, 1); + x_818 = x_815; } else { - lean_dec_ref(x_432); - x_435 = lean_box(0); + lean_dec_ref(x_815); + x_818 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -20430,15 +23344,15 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_491 = l_Lean_Elab_Term_elabTerm(x_1, x_431, x_430, x_9, x_10, x_11, x_12, x_13, x_14, x_434); -if (lean_obj_tag(x_491) == 0) +x_874 = l_Lean_Elab_Term_elabTerm(x_1, x_814, x_812, x_9, x_10, x_11, x_12, x_13, x_14, x_817); +if (lean_obj_tag(x_874) == 0) { -lean_object* x_492; lean_object* x_493; lean_object* x_494; -x_492 = lean_ctor_get(x_491, 0); -lean_inc(x_492); -x_493 = lean_ctor_get(x_491, 1); -lean_inc(x_493); -lean_dec(x_491); +lean_object* x_875; lean_object* x_876; lean_object* x_877; +x_875 = lean_ctor_get(x_874, 0); +lean_inc(x_875); +x_876 = lean_ctor_get(x_874, 1); +lean_inc(x_876); +lean_dec(x_874); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -20446,1358 +23360,1815 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_494 = l___private_Lean_Elab_App_31__elabAppLVals(x_492, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_493); -if (lean_obj_tag(x_494) == 0) +x_877 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_875, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_876); +if (lean_obj_tag(x_877) == 0) { if (x_7 == 0) { -lean_object* x_495; lean_object* x_496; -lean_dec(x_435); +lean_object* x_878; lean_object* x_879; +lean_dec(x_818); lean_dec(x_5); -x_495 = lean_ctor_get(x_494, 0); -lean_inc(x_495); -x_496 = lean_ctor_get(x_494, 1); -lean_inc(x_496); -lean_dec(x_494); -x_468 = x_495; -x_469 = x_496; -goto block_490; +x_878 = lean_ctor_get(x_877, 0); +lean_inc(x_878); +x_879 = lean_ctor_get(x_877, 1); +lean_inc(x_879); +lean_dec(x_877); +x_851 = x_878; +x_852 = x_879; +goto block_873; } else { -lean_object* x_497; lean_object* x_498; lean_object* x_499; -x_497 = lean_ctor_get(x_494, 0); -lean_inc(x_497); -x_498 = lean_ctor_get(x_494, 1); -lean_inc(x_498); -lean_dec(x_494); +lean_object* x_880; lean_object* x_881; lean_object* x_882; +x_880 = lean_ctor_get(x_877, 0); +lean_inc(x_880); +x_881 = lean_ctor_get(x_877, 1); +lean_inc(x_881); +lean_dec(x_877); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_9); -x_499 = l_Lean_Elab_Term_ensureHasType(x_5, x_497, x_431, x_9, x_10, x_11, x_12, x_13, x_14, x_498); -if (lean_obj_tag(x_499) == 0) +x_882 = l_Lean_Elab_Term_ensureHasType(x_5, x_880, x_814, x_9, x_10, x_11, x_12, x_13, x_14, x_881); +if (lean_obj_tag(x_882) == 0) { -lean_object* x_500; lean_object* x_501; -lean_dec(x_435); -x_500 = lean_ctor_get(x_499, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_499, 1); -lean_inc(x_501); -lean_dec(x_499); -x_468 = x_500; -x_469 = x_501; -goto block_490; +lean_object* x_883; lean_object* x_884; +lean_dec(x_818); +x_883 = lean_ctor_get(x_882, 0); +lean_inc(x_883); +x_884 = lean_ctor_get(x_882, 1); +lean_inc(x_884); +lean_dec(x_882); +x_851 = x_883; +x_852 = x_884; +goto block_873; } else { -lean_object* x_502; lean_object* x_503; -x_502 = lean_ctor_get(x_499, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_499, 1); -lean_inc(x_503); -lean_dec(x_499); -x_436 = x_502; -x_437 = x_503; -goto block_467; +lean_object* x_885; lean_object* x_886; +x_885 = lean_ctor_get(x_882, 0); +lean_inc(x_885); +x_886 = lean_ctor_get(x_882, 1); +lean_inc(x_886); +lean_dec(x_882); +x_819 = x_885; +x_820 = x_886; +goto block_850; } } } else { -lean_object* x_504; lean_object* x_505; +lean_object* x_887; lean_object* x_888; lean_dec(x_5); -x_504 = lean_ctor_get(x_494, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_494, 1); -lean_inc(x_505); -lean_dec(x_494); -x_436 = x_504; -x_437 = x_505; -goto block_467; +x_887 = lean_ctor_get(x_877, 0); +lean_inc(x_887); +x_888 = lean_ctor_get(x_877, 1); +lean_inc(x_888); +lean_dec(x_877); +x_819 = x_887; +x_820 = x_888; +goto block_850; } } else { -lean_object* x_506; lean_object* x_507; +lean_object* x_889; lean_object* x_890; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_506 = lean_ctor_get(x_491, 0); -lean_inc(x_506); -x_507 = lean_ctor_get(x_491, 1); -lean_inc(x_507); -lean_dec(x_491); -x_436 = x_506; -x_437 = x_507; -goto block_467; +x_889 = lean_ctor_get(x_874, 0); +lean_inc(x_889); +x_890 = lean_ctor_get(x_874, 1); +lean_inc(x_890); +lean_dec(x_874); +x_819 = x_889; +x_820 = x_890; +goto block_850; } -block_467: +block_850: { -if (lean_obj_tag(x_436) == 0) +if (lean_obj_tag(x_819) == 0) { -lean_object* x_438; uint8_t x_439; -lean_dec(x_435); -x_438 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_437); -x_439 = !lean_is_exclusive(x_438); -if (x_439 == 0) +lean_object* x_821; uint8_t x_822; +lean_dec(x_818); +x_821 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_820); +x_822 = !lean_is_exclusive(x_821); +if (x_822 == 0) { -lean_object* x_440; lean_object* x_441; lean_object* x_442; uint8_t x_443; -x_440 = lean_ctor_get(x_438, 0); -x_441 = lean_ctor_get(x_438, 1); -x_442 = l_Lean_Elab_Term_SavedState_restore(x_433, x_9, x_10, x_11, x_12, x_13, x_14, x_441); +lean_object* x_823; lean_object* x_824; lean_object* x_825; uint8_t x_826; +x_823 = lean_ctor_get(x_821, 0); +x_824 = lean_ctor_get(x_821, 1); +x_825 = l_Lean_Elab_Term_SavedState_restore(x_816, x_9, x_10, x_11, x_12, x_13, x_14, x_824); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_443 = !lean_is_exclusive(x_442); -if (x_443 == 0) +x_826 = !lean_is_exclusive(x_825); +if (x_826 == 0) { -lean_object* x_444; lean_object* x_445; lean_object* x_446; -x_444 = lean_ctor_get(x_442, 1); -x_445 = lean_ctor_get(x_442, 0); -lean_dec(x_445); -lean_ctor_set_tag(x_442, 1); -lean_ctor_set(x_442, 1, x_440); -lean_ctor_set(x_442, 0, x_436); -x_446 = lean_array_push(x_8, x_442); -lean_ctor_set(x_438, 1, x_444); -lean_ctor_set(x_438, 0, x_446); -return x_438; +lean_object* x_827; lean_object* x_828; lean_object* x_829; +x_827 = lean_ctor_get(x_825, 1); +x_828 = lean_ctor_get(x_825, 0); +lean_dec(x_828); +lean_ctor_set_tag(x_825, 1); +lean_ctor_set(x_825, 1, x_823); +lean_ctor_set(x_825, 0, x_819); +x_829 = lean_array_push(x_8, x_825); +lean_ctor_set(x_821, 1, x_827); +lean_ctor_set(x_821, 0, x_829); +return x_821; } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_442, 1); -lean_inc(x_447); -lean_dec(x_442); -x_448 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_448, 0, x_436); -lean_ctor_set(x_448, 1, x_440); -x_449 = lean_array_push(x_8, x_448); -lean_ctor_set(x_438, 1, x_447); -lean_ctor_set(x_438, 0, x_449); -return x_438; +lean_object* x_830; lean_object* x_831; lean_object* x_832; +x_830 = lean_ctor_get(x_825, 1); +lean_inc(x_830); +lean_dec(x_825); +x_831 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_831, 0, x_819); +lean_ctor_set(x_831, 1, x_823); +x_832 = lean_array_push(x_8, x_831); +lean_ctor_set(x_821, 1, x_830); +lean_ctor_set(x_821, 0, x_832); +return x_821; } } else { -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; -x_450 = lean_ctor_get(x_438, 0); -x_451 = lean_ctor_get(x_438, 1); -lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_438); -x_452 = l_Lean_Elab_Term_SavedState_restore(x_433, x_9, x_10, x_11, x_12, x_13, x_14, x_451); +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; +x_833 = lean_ctor_get(x_821, 0); +x_834 = lean_ctor_get(x_821, 1); +lean_inc(x_834); +lean_inc(x_833); +lean_dec(x_821); +x_835 = l_Lean_Elab_Term_SavedState_restore(x_816, x_9, x_10, x_11, x_12, x_13, x_14, x_834); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_453 = lean_ctor_get(x_452, 1); -lean_inc(x_453); -if (lean_is_exclusive(x_452)) { - lean_ctor_release(x_452, 0); - lean_ctor_release(x_452, 1); - x_454 = x_452; +x_836 = lean_ctor_get(x_835, 1); +lean_inc(x_836); +if (lean_is_exclusive(x_835)) { + lean_ctor_release(x_835, 0); + lean_ctor_release(x_835, 1); + x_837 = x_835; } else { - lean_dec_ref(x_452); - x_454 = lean_box(0); + lean_dec_ref(x_835); + x_837 = lean_box(0); } -if (lean_is_scalar(x_454)) { - x_455 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_837)) { + x_838 = lean_alloc_ctor(1, 2, 0); } else { - x_455 = x_454; - lean_ctor_set_tag(x_455, 1); + x_838 = x_837; + lean_ctor_set_tag(x_838, 1); } -lean_ctor_set(x_455, 0, x_436); -lean_ctor_set(x_455, 1, x_450); -x_456 = lean_array_push(x_8, x_455); -x_457 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_457, 0, x_456); -lean_ctor_set(x_457, 1, x_453); -return x_457; +lean_ctor_set(x_838, 0, x_819); +lean_ctor_set(x_838, 1, x_833); +x_839 = lean_array_push(x_8, x_838); +x_840 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_840, 0, x_839); +lean_ctor_set(x_840, 1, x_836); +return x_840; } } else { -lean_object* x_458; lean_object* x_459; uint8_t x_460; +lean_object* x_841; lean_object* x_842; uint8_t x_843; lean_dec(x_8); -x_458 = lean_ctor_get(x_436, 0); -lean_inc(x_458); -x_459 = l_Lean_Elab_postponeExceptionId; +x_841 = lean_ctor_get(x_819, 0); +lean_inc(x_841); +x_842 = l_Lean_Elab_postponeExceptionId; +x_843 = lean_nat_dec_eq(x_841, x_842); +lean_dec(x_841); +if (x_843 == 0) +{ +lean_object* x_844; +lean_dec(x_816); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_818)) { + x_844 = lean_alloc_ctor(1, 2, 0); +} else { + x_844 = x_818; + lean_ctor_set_tag(x_844, 1); +} +lean_ctor_set(x_844, 0, x_819); +lean_ctor_set(x_844, 1, x_820); +return x_844; +} +else +{ +lean_object* x_845; uint8_t x_846; +lean_dec(x_818); +x_845 = l_Lean_Elab_Term_SavedState_restore(x_816, x_9, x_10, x_11, x_12, x_13, x_14, x_820); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_846 = !lean_is_exclusive(x_845); +if (x_846 == 0) +{ +lean_object* x_847; +x_847 = lean_ctor_get(x_845, 0); +lean_dec(x_847); +lean_ctor_set_tag(x_845, 1); +lean_ctor_set(x_845, 0, x_819); +return x_845; +} +else +{ +lean_object* x_848; lean_object* x_849; +x_848 = lean_ctor_get(x_845, 1); +lean_inc(x_848); +lean_dec(x_845); +x_849 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_849, 0, x_819); +lean_ctor_set(x_849, 1, x_848); +return x_849; +} +} +} +} +block_873: +{ +lean_object* x_853; uint8_t x_854; +x_853 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_852); +x_854 = !lean_is_exclusive(x_853); +if (x_854 == 0) +{ +lean_object* x_855; lean_object* x_856; lean_object* x_857; uint8_t x_858; +x_855 = lean_ctor_get(x_853, 0); +x_856 = lean_ctor_get(x_853, 1); +x_857 = l_Lean_Elab_Term_SavedState_restore(x_816, x_9, x_10, x_11, x_12, x_13, x_14, x_856); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_858 = !lean_is_exclusive(x_857); +if (x_858 == 0) +{ +lean_object* x_859; lean_object* x_860; lean_object* x_861; +x_859 = lean_ctor_get(x_857, 1); +x_860 = lean_ctor_get(x_857, 0); +lean_dec(x_860); +lean_ctor_set(x_857, 1, x_855); +lean_ctor_set(x_857, 0, x_851); +x_861 = lean_array_push(x_8, x_857); +lean_ctor_set(x_853, 1, x_859); +lean_ctor_set(x_853, 0, x_861); +return x_853; +} +else +{ +lean_object* x_862; lean_object* x_863; lean_object* x_864; +x_862 = lean_ctor_get(x_857, 1); +lean_inc(x_862); +lean_dec(x_857); +x_863 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_863, 0, x_851); +lean_ctor_set(x_863, 1, x_855); +x_864 = lean_array_push(x_8, x_863); +lean_ctor_set(x_853, 1, x_862); +lean_ctor_set(x_853, 0, x_864); +return x_853; +} +} +else +{ +lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_865 = lean_ctor_get(x_853, 0); +x_866 = lean_ctor_get(x_853, 1); +lean_inc(x_866); +lean_inc(x_865); +lean_dec(x_853); +x_867 = l_Lean_Elab_Term_SavedState_restore(x_816, x_9, x_10, x_11, x_12, x_13, x_14, x_866); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_868 = lean_ctor_get(x_867, 1); +lean_inc(x_868); +if (lean_is_exclusive(x_867)) { + lean_ctor_release(x_867, 0); + lean_ctor_release(x_867, 1); + x_869 = x_867; +} else { + lean_dec_ref(x_867); + x_869 = lean_box(0); +} +if (lean_is_scalar(x_869)) { + x_870 = lean_alloc_ctor(0, 2, 0); +} else { + x_870 = x_869; +} +lean_ctor_set(x_870, 0, x_851); +lean_ctor_set(x_870, 1, x_865); +x_871 = lean_array_push(x_8, x_870); +x_872 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_872, 0, x_871); +lean_ctor_set(x_872, 1, x_868); +return x_872; +} +} +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (x_7 == 0) +{ +lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; uint8_t x_927; lean_object* x_928; +x_891 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_892 = lean_ctor_get(x_891, 0); +lean_inc(x_892); +x_893 = lean_ctor_get(x_891, 1); +lean_inc(x_893); +if (lean_is_exclusive(x_891)) { + lean_ctor_release(x_891, 0); + lean_ctor_release(x_891, 1); + x_894 = x_891; +} else { + lean_dec_ref(x_891); + x_894 = lean_box(0); +} +x_927 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_928 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_927, x_9, x_10, x_11, x_12, x_13, x_14, x_893); +if (lean_obj_tag(x_928) == 0) +{ +lean_object* x_929; lean_object* x_930; lean_object* x_931; uint8_t x_932; +lean_dec(x_894); +x_929 = lean_ctor_get(x_928, 0); +lean_inc(x_929); +x_930 = lean_ctor_get(x_928, 1); +lean_inc(x_930); +lean_dec(x_928); +x_931 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_930); +x_932 = !lean_is_exclusive(x_931); +if (x_932 == 0) +{ +lean_object* x_933; lean_object* x_934; lean_object* x_935; uint8_t x_936; +x_933 = lean_ctor_get(x_931, 0); +x_934 = lean_ctor_get(x_931, 1); +x_935 = l_Lean_Elab_Term_SavedState_restore(x_892, x_9, x_10, x_11, x_12, x_13, x_14, x_934); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_936 = !lean_is_exclusive(x_935); +if (x_936 == 0) +{ +lean_object* x_937; lean_object* x_938; lean_object* x_939; +x_937 = lean_ctor_get(x_935, 1); +x_938 = lean_ctor_get(x_935, 0); +lean_dec(x_938); +lean_ctor_set(x_935, 1, x_933); +lean_ctor_set(x_935, 0, x_929); +x_939 = lean_array_push(x_8, x_935); +lean_ctor_set(x_931, 1, x_937); +lean_ctor_set(x_931, 0, x_939); +return x_931; +} +else +{ +lean_object* x_940; lean_object* x_941; lean_object* x_942; +x_940 = lean_ctor_get(x_935, 1); +lean_inc(x_940); +lean_dec(x_935); +x_941 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_941, 0, x_929); +lean_ctor_set(x_941, 1, x_933); +x_942 = lean_array_push(x_8, x_941); +lean_ctor_set(x_931, 1, x_940); +lean_ctor_set(x_931, 0, x_942); +return x_931; +} +} +else +{ +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_943 = lean_ctor_get(x_931, 0); +x_944 = lean_ctor_get(x_931, 1); +lean_inc(x_944); +lean_inc(x_943); +lean_dec(x_931); +x_945 = l_Lean_Elab_Term_SavedState_restore(x_892, x_9, x_10, x_11, x_12, x_13, x_14, x_944); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_946 = lean_ctor_get(x_945, 1); +lean_inc(x_946); +if (lean_is_exclusive(x_945)) { + lean_ctor_release(x_945, 0); + lean_ctor_release(x_945, 1); + x_947 = x_945; +} else { + lean_dec_ref(x_945); + x_947 = lean_box(0); +} +if (lean_is_scalar(x_947)) { + x_948 = lean_alloc_ctor(0, 2, 0); +} else { + x_948 = x_947; +} +lean_ctor_set(x_948, 0, x_929); +lean_ctor_set(x_948, 1, x_943); +x_949 = lean_array_push(x_8, x_948); +x_950 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_950, 0, x_949); +lean_ctor_set(x_950, 1, x_946); +return x_950; +} +} +else +{ +lean_object* x_951; lean_object* x_952; +x_951 = lean_ctor_get(x_928, 0); +lean_inc(x_951); +x_952 = lean_ctor_get(x_928, 1); +lean_inc(x_952); +lean_dec(x_928); +x_895 = x_951; +x_896 = x_952; +goto block_926; +} +block_926: +{ +if (lean_obj_tag(x_895) == 0) +{ +lean_object* x_897; uint8_t x_898; +lean_dec(x_894); +x_897 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_896); +x_898 = !lean_is_exclusive(x_897); +if (x_898 == 0) +{ +lean_object* x_899; lean_object* x_900; lean_object* x_901; uint8_t x_902; +x_899 = lean_ctor_get(x_897, 0); +x_900 = lean_ctor_get(x_897, 1); +x_901 = l_Lean_Elab_Term_SavedState_restore(x_892, x_9, x_10, x_11, x_12, x_13, x_14, x_900); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_902 = !lean_is_exclusive(x_901); +if (x_902 == 0) +{ +lean_object* x_903; lean_object* x_904; lean_object* x_905; +x_903 = lean_ctor_get(x_901, 1); +x_904 = lean_ctor_get(x_901, 0); +lean_dec(x_904); +lean_ctor_set_tag(x_901, 1); +lean_ctor_set(x_901, 1, x_899); +lean_ctor_set(x_901, 0, x_895); +x_905 = lean_array_push(x_8, x_901); +lean_ctor_set(x_897, 1, x_903); +lean_ctor_set(x_897, 0, x_905); +return x_897; +} +else +{ +lean_object* x_906; lean_object* x_907; lean_object* x_908; +x_906 = lean_ctor_get(x_901, 1); +lean_inc(x_906); +lean_dec(x_901); +x_907 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_907, 0, x_895); +lean_ctor_set(x_907, 1, x_899); +x_908 = lean_array_push(x_8, x_907); +lean_ctor_set(x_897, 1, x_906); +lean_ctor_set(x_897, 0, x_908); +return x_897; +} +} +else +{ +lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; +x_909 = lean_ctor_get(x_897, 0); +x_910 = lean_ctor_get(x_897, 1); +lean_inc(x_910); +lean_inc(x_909); +lean_dec(x_897); +x_911 = l_Lean_Elab_Term_SavedState_restore(x_892, x_9, x_10, x_11, x_12, x_13, x_14, x_910); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +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(1, 2, 0); +} else { + x_914 = x_913; + lean_ctor_set_tag(x_914, 1); +} +lean_ctor_set(x_914, 0, x_895); +lean_ctor_set(x_914, 1, x_909); +x_915 = lean_array_push(x_8, x_914); +x_916 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_916, 0, x_915); +lean_ctor_set(x_916, 1, x_912); +return x_916; +} +} +else +{ +lean_object* x_917; lean_object* x_918; uint8_t x_919; +lean_dec(x_8); +x_917 = lean_ctor_get(x_895, 0); +lean_inc(x_917); +x_918 = l_Lean_Elab_postponeExceptionId; +x_919 = lean_nat_dec_eq(x_917, x_918); +lean_dec(x_917); +if (x_919 == 0) +{ +lean_object* x_920; +lean_dec(x_892); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_894)) { + x_920 = lean_alloc_ctor(1, 2, 0); +} else { + x_920 = x_894; + lean_ctor_set_tag(x_920, 1); +} +lean_ctor_set(x_920, 0, x_895); +lean_ctor_set(x_920, 1, x_896); +return x_920; +} +else +{ +lean_object* x_921; uint8_t x_922; +lean_dec(x_894); +x_921 = l_Lean_Elab_Term_SavedState_restore(x_892, x_9, x_10, x_11, x_12, x_13, x_14, x_896); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_922 = !lean_is_exclusive(x_921); +if (x_922 == 0) +{ +lean_object* x_923; +x_923 = lean_ctor_get(x_921, 0); +lean_dec(x_923); +lean_ctor_set_tag(x_921, 1); +lean_ctor_set(x_921, 0, x_895); +return x_921; +} +else +{ +lean_object* x_924; lean_object* x_925; +x_924 = lean_ctor_get(x_921, 1); +lean_inc(x_924); +lean_dec(x_921); +x_925 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_925, 0, x_895); +lean_ctor_set(x_925, 1, x_924); +return x_925; +} +} +} +} +} +else +{ +lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_990; +x_953 = lean_box(0); +x_954 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_955 = lean_ctor_get(x_954, 0); +lean_inc(x_955); +x_956 = lean_ctor_get(x_954, 1); +lean_inc(x_956); +if (lean_is_exclusive(x_954)) { + lean_ctor_release(x_954, 0); + lean_ctor_release(x_954, 1); + x_957 = x_954; +} else { + lean_dec_ref(x_954); + x_957 = lean_box(0); +} +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_990 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_812, x_953, x_9, x_10, x_11, x_12, x_13, x_14, x_956); +if (lean_obj_tag(x_990) == 0) +{ +lean_object* x_991; lean_object* x_992; lean_object* x_993; uint8_t x_994; +lean_dec(x_957); +x_991 = lean_ctor_get(x_990, 0); +lean_inc(x_991); +x_992 = lean_ctor_get(x_990, 1); +lean_inc(x_992); +lean_dec(x_990); +x_993 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_992); +x_994 = !lean_is_exclusive(x_993); +if (x_994 == 0) +{ +lean_object* x_995; lean_object* x_996; lean_object* x_997; uint8_t x_998; +x_995 = lean_ctor_get(x_993, 0); +x_996 = lean_ctor_get(x_993, 1); +x_997 = l_Lean_Elab_Term_SavedState_restore(x_955, x_9, x_10, x_11, x_12, x_13, x_14, x_996); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_998 = !lean_is_exclusive(x_997); +if (x_998 == 0) +{ +lean_object* x_999; lean_object* x_1000; lean_object* x_1001; +x_999 = lean_ctor_get(x_997, 1); +x_1000 = lean_ctor_get(x_997, 0); +lean_dec(x_1000); +lean_ctor_set(x_997, 1, x_995); +lean_ctor_set(x_997, 0, x_991); +x_1001 = lean_array_push(x_8, x_997); +lean_ctor_set(x_993, 1, x_999); +lean_ctor_set(x_993, 0, x_1001); +return x_993; +} +else +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1002 = lean_ctor_get(x_997, 1); +lean_inc(x_1002); +lean_dec(x_997); +x_1003 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1003, 0, x_991); +lean_ctor_set(x_1003, 1, x_995); +x_1004 = lean_array_push(x_8, x_1003); +lean_ctor_set(x_993, 1, x_1002); +lean_ctor_set(x_993, 0, x_1004); +return x_993; +} +} +else +{ +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; +x_1005 = lean_ctor_get(x_993, 0); +x_1006 = lean_ctor_get(x_993, 1); +lean_inc(x_1006); +lean_inc(x_1005); +lean_dec(x_993); +x_1007 = l_Lean_Elab_Term_SavedState_restore(x_955, x_9, x_10, x_11, x_12, x_13, x_14, x_1006); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_1008 = lean_ctor_get(x_1007, 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; +} else { + lean_dec_ref(x_1007); + x_1009 = lean_box(0); +} +if (lean_is_scalar(x_1009)) { + x_1010 = lean_alloc_ctor(0, 2, 0); +} else { + x_1010 = x_1009; +} +lean_ctor_set(x_1010, 0, x_991); +lean_ctor_set(x_1010, 1, x_1005); +x_1011 = lean_array_push(x_8, x_1010); +x_1012 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1012, 0, x_1011); +lean_ctor_set(x_1012, 1, x_1008); +return x_1012; +} +} +else +{ +lean_object* x_1013; lean_object* x_1014; +x_1013 = lean_ctor_get(x_990, 0); +lean_inc(x_1013); +x_1014 = lean_ctor_get(x_990, 1); +lean_inc(x_1014); +lean_dec(x_990); +x_958 = x_1013; +x_959 = x_1014; +goto block_989; +} +block_989: +{ +if (lean_obj_tag(x_958) == 0) +{ +lean_object* x_960; uint8_t x_961; +lean_dec(x_957); +x_960 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_959); +x_961 = !lean_is_exclusive(x_960); +if (x_961 == 0) +{ +lean_object* x_962; lean_object* x_963; lean_object* x_964; uint8_t x_965; +x_962 = lean_ctor_get(x_960, 0); +x_963 = lean_ctor_get(x_960, 1); +x_964 = l_Lean_Elab_Term_SavedState_restore(x_955, x_9, x_10, x_11, x_12, x_13, x_14, x_963); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_965 = !lean_is_exclusive(x_964); +if (x_965 == 0) +{ +lean_object* x_966; lean_object* x_967; lean_object* x_968; +x_966 = lean_ctor_get(x_964, 1); +x_967 = lean_ctor_get(x_964, 0); +lean_dec(x_967); +lean_ctor_set_tag(x_964, 1); +lean_ctor_set(x_964, 1, x_962); +lean_ctor_set(x_964, 0, x_958); +x_968 = lean_array_push(x_8, x_964); +lean_ctor_set(x_960, 1, x_966); +lean_ctor_set(x_960, 0, x_968); +return x_960; +} +else +{ +lean_object* x_969; lean_object* x_970; lean_object* x_971; +x_969 = lean_ctor_get(x_964, 1); +lean_inc(x_969); +lean_dec(x_964); +x_970 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_970, 0, x_958); +lean_ctor_set(x_970, 1, x_962); +x_971 = lean_array_push(x_8, x_970); +lean_ctor_set(x_960, 1, x_969); +lean_ctor_set(x_960, 0, x_971); +return x_960; +} +} +else +{ +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; lean_object* x_979; +x_972 = lean_ctor_get(x_960, 0); +x_973 = lean_ctor_get(x_960, 1); +lean_inc(x_973); +lean_inc(x_972); +lean_dec(x_960); +x_974 = l_Lean_Elab_Term_SavedState_restore(x_955, x_9, x_10, x_11, x_12, x_13, x_14, x_973); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_975 = lean_ctor_get(x_974, 1); +lean_inc(x_975); +if (lean_is_exclusive(x_974)) { + lean_ctor_release(x_974, 0); + lean_ctor_release(x_974, 1); + x_976 = x_974; +} else { + lean_dec_ref(x_974); + x_976 = lean_box(0); +} +if (lean_is_scalar(x_976)) { + x_977 = lean_alloc_ctor(1, 2, 0); +} else { + x_977 = x_976; + lean_ctor_set_tag(x_977, 1); +} +lean_ctor_set(x_977, 0, x_958); +lean_ctor_set(x_977, 1, x_972); +x_978 = lean_array_push(x_8, x_977); +x_979 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_979, 0, x_978); +lean_ctor_set(x_979, 1, x_975); +return x_979; +} +} +else +{ +lean_object* x_980; lean_object* x_981; uint8_t x_982; +lean_dec(x_8); +x_980 = lean_ctor_get(x_958, 0); +lean_inc(x_980); +x_981 = l_Lean_Elab_postponeExceptionId; +x_982 = lean_nat_dec_eq(x_980, x_981); +lean_dec(x_980); +if (x_982 == 0) +{ +lean_object* x_983; +lean_dec(x_955); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_957)) { + x_983 = lean_alloc_ctor(1, 2, 0); +} else { + x_983 = x_957; + lean_ctor_set_tag(x_983, 1); +} +lean_ctor_set(x_983, 0, x_958); +lean_ctor_set(x_983, 1, x_959); +return x_983; +} +else +{ +lean_object* x_984; uint8_t x_985; +lean_dec(x_957); +x_984 = l_Lean_Elab_Term_SavedState_restore(x_955, x_9, x_10, x_11, x_12, x_13, x_14, x_959); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_985 = !lean_is_exclusive(x_984); +if (x_985 == 0) +{ +lean_object* x_986; +x_986 = lean_ctor_get(x_984, 0); +lean_dec(x_986); +lean_ctor_set_tag(x_984, 1); +lean_ctor_set(x_984, 0, x_958); +return x_984; +} +else +{ +lean_object* x_987; lean_object* x_988; +x_987 = lean_ctor_get(x_984, 1); +lean_inc(x_987); +lean_dec(x_984); +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_958); +lean_ctor_set(x_988, 1, x_987); +return x_988; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +lean_dec(x_1); +x_1023 = l_Lean_Syntax_getId(x_806); +lean_dec(x_806); +x_1024 = l_Lean_Name_eraseMacroScopes(x_1023); +lean_dec(x_1023); +x_1025 = l_Lean_Name_components(x_1024); +x_1026 = l_List_map___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(x_1025); +x_1027 = l_List_append___rarg(x_1026, x_2); +x_1 = x_804; +x_2 = x_1027; +goto _start; +} +} +else +{ +lean_object* x_1029; lean_object* x_1030; +lean_dec(x_1); +x_1029 = l_Lean_fieldIdxKind; +x_1030 = l_Lean_Syntax_isNatLitAux(x_1029, x_806); +lean_dec(x_806); +if (lean_obj_tag(x_1030) == 0) +{ +lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; +x_1031 = l_Nat_Inhabited; +x_1032 = l_Option_get_x21___rarg___closed__3; +x_1033 = lean_panic_fn(x_1031, x_1032); +x_1034 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1034, 0, x_1033); +x_1035 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1035, 0, x_1034); +lean_ctor_set(x_1035, 1, x_2); +x_1 = x_804; +x_2 = x_1035; +goto _start; +} +else +{ +lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; +x_1037 = lean_ctor_get(x_1030, 0); +lean_inc(x_1037); +lean_dec(x_1030); +x_1038 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1038, 0, x_1037); +x_1039 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1039, 0, x_1038); +lean_ctor_set(x_1039, 1, x_2); +x_1 = x_804; +x_2 = x_1039; +goto _start; +} +} +} +} +block_464: +{ +lean_object* x_454; uint8_t x_455; +lean_dec(x_453); +x_454 = l_Lean_mkHole___closed__2; +lean_inc(x_1); +x_455 = l_Lean_Syntax_isOfKind(x_1, x_454); +if (x_455 == 0) +{ +lean_object* x_456; +x_456 = lean_box(0); +x_16 = x_456; +goto block_229; +} +else +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; +x_457 = l_Lean_Syntax_getArgs(x_1); +x_458 = lean_array_get_size(x_457); +lean_dec(x_457); +x_459 = lean_unsigned_to_nat(1u); x_460 = lean_nat_dec_eq(x_458, x_459); lean_dec(x_458); if (x_460 == 0) { lean_object* x_461; -lean_dec(x_433); +x_461 = lean_box(0); +x_16 = x_461; +goto block_229; +} +else +{ +lean_object* x_462; lean_object* x_463; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_462 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6; +x_463 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_462, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_435)) { - x_461 = lean_alloc_ctor(1, 2, 0); -} else { - x_461 = x_435; - lean_ctor_set_tag(x_461, 1); +return x_463; } -lean_ctor_set(x_461, 0, x_436); -lean_ctor_set(x_461, 1, x_437); -return x_461; +} +} +block_741: +{ +lean_object* x_466; uint8_t x_467; +lean_dec(x_465); +x_466 = l_Lean_identKind___closed__2; +lean_inc(x_1); +x_467 = l_Lean_Syntax_isOfKind(x_1, x_466); +if (x_467 == 0) +{ +lean_object* x_468; lean_object* x_489; uint8_t x_490; +x_489 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; +lean_inc(x_1); +x_490 = l_Lean_Syntax_isOfKind(x_1, x_489); +if (x_490 == 0) +{ +lean_object* x_491; uint8_t x_492; +x_491 = l___private_Lean_Elab_Term_14__isExplicit___closed__2; +lean_inc(x_1); +x_492 = l_Lean_Syntax_isOfKind(x_1, x_491); +if (x_492 == 0) +{ +lean_object* x_493; +x_493 = lean_box(0); +x_453 = x_493; +goto block_464; } else { -lean_object* x_462; uint8_t x_463; -lean_dec(x_435); -x_462 = l_Lean_Elab_Term_SavedState_restore(x_433, x_9, x_10, x_11, x_12, x_13, x_14, x_437); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_463 = !lean_is_exclusive(x_462); -if (x_463 == 0) +lean_object* x_494; lean_object* x_495; lean_object* x_496; uint8_t x_497; +x_494 = l_Lean_Syntax_getArgs(x_1); +x_495 = lean_array_get_size(x_494); +lean_dec(x_494); +x_496 = lean_unsigned_to_nat(2u); +x_497 = lean_nat_dec_eq(x_495, x_496); +lean_dec(x_495); +if (x_497 == 0) { -lean_object* x_464; -x_464 = lean_ctor_get(x_462, 0); -lean_dec(x_464); -lean_ctor_set_tag(x_462, 1); -lean_ctor_set(x_462, 0, x_436); -return x_462; +lean_object* x_498; +x_498 = lean_box(0); +x_453 = x_498; +goto block_464; } else { -lean_object* x_465; lean_object* x_466; -x_465 = lean_ctor_get(x_462, 1); -lean_inc(x_465); -lean_dec(x_462); -x_466 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_466, 0, x_436); -lean_ctor_set(x_466, 1, x_465); -return x_466; -} -} -} -} -block_490: -{ -lean_object* x_470; uint8_t x_471; -x_470 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_469); -x_471 = !lean_is_exclusive(x_470); -if (x_471 == 0) -{ -lean_object* x_472; lean_object* x_473; lean_object* x_474; uint8_t x_475; -x_472 = lean_ctor_get(x_470, 0); -x_473 = lean_ctor_get(x_470, 1); -x_474 = l_Lean_Elab_Term_SavedState_restore(x_433, x_9, x_10, x_11, x_12, x_13, x_14, x_473); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_475 = !lean_is_exclusive(x_474); -if (x_475 == 0) -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_476 = lean_ctor_get(x_474, 1); -x_477 = lean_ctor_get(x_474, 0); -lean_dec(x_477); -lean_ctor_set(x_474, 1, x_472); -lean_ctor_set(x_474, 0, x_468); -x_478 = lean_array_push(x_8, x_474); -lean_ctor_set(x_470, 1, x_476); -lean_ctor_set(x_470, 0, x_478); -return x_470; -} -else -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; -x_479 = lean_ctor_get(x_474, 1); -lean_inc(x_479); -lean_dec(x_474); -x_480 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_480, 0, x_468); -lean_ctor_set(x_480, 1, x_472); -x_481 = lean_array_push(x_8, x_480); -lean_ctor_set(x_470, 1, x_479); -lean_ctor_set(x_470, 0, x_481); -return x_470; -} -} -else -{ -lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_482 = lean_ctor_get(x_470, 0); -x_483 = lean_ctor_get(x_470, 1); -lean_inc(x_483); -lean_inc(x_482); -lean_dec(x_470); -x_484 = l_Lean_Elab_Term_SavedState_restore(x_433, x_9, x_10, x_11, x_12, x_13, x_14, x_483); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_485 = lean_ctor_get(x_484, 1); -lean_inc(x_485); -if (lean_is_exclusive(x_484)) { - lean_ctor_release(x_484, 0); - lean_ctor_release(x_484, 1); - x_486 = x_484; -} else { - lean_dec_ref(x_484); - x_486 = lean_box(0); -} -if (lean_is_scalar(x_486)) { - x_487 = lean_alloc_ctor(0, 2, 0); -} else { - x_487 = x_486; -} -lean_ctor_set(x_487, 0, x_468); -lean_ctor_set(x_487, 1, x_482); -x_488 = lean_array_push(x_8, x_487); -x_489 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_489, 0, x_488); -lean_ctor_set(x_489, 1, x_485); -return x_489; +lean_object* x_499; +x_499 = lean_box(0); +x_468 = x_499; +goto block_488; } } } else { -uint8_t x_508; -x_508 = l_Array_isEmpty___rarg(x_3); +lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; +x_500 = l_Lean_Syntax_getArgs(x_1); +x_501 = lean_array_get_size(x_500); +lean_dec(x_500); +x_502 = lean_unsigned_to_nat(4u); +x_503 = lean_nat_dec_eq(x_501, x_502); +if (x_503 == 0) +{ +lean_object* x_504; uint8_t x_505; +x_504 = l___private_Lean_Elab_Term_14__isExplicit___closed__2; +lean_inc(x_1); +x_505 = l_Lean_Syntax_isOfKind(x_1, x_504); +if (x_505 == 0) +{ +lean_object* x_506; +lean_dec(x_501); +x_506 = lean_box(0); +x_453 = x_506; +goto block_464; +} +else +{ +lean_object* x_507; uint8_t x_508; +x_507 = lean_unsigned_to_nat(2u); +x_508 = lean_nat_dec_eq(x_501, x_507); +lean_dec(x_501); if (x_508 == 0) { -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_546; lean_object* x_547; lean_object* x_569; +lean_object* x_509; x_509 = lean_box(0); -x_510 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_511 = lean_ctor_get(x_510, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_510, 1); -lean_inc(x_512); -if (lean_is_exclusive(x_510)) { - lean_ctor_release(x_510, 0); - lean_ctor_release(x_510, 1); - x_513 = x_510; -} else { - lean_dec_ref(x_510); - x_513 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_569 = l_Lean_Elab_Term_elabTerm(x_1, x_509, x_430, x_9, x_10, x_11, x_12, x_13, x_14, x_512); -if (lean_obj_tag(x_569) == 0) -{ -lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_570 = lean_ctor_get(x_569, 0); -lean_inc(x_570); -x_571 = lean_ctor_get(x_569, 1); -lean_inc(x_571); -lean_dec(x_569); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_572 = l___private_Lean_Elab_App_31__elabAppLVals(x_570, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_571); -if (lean_obj_tag(x_572) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_573; lean_object* x_574; -lean_dec(x_513); -lean_dec(x_5); -x_573 = lean_ctor_get(x_572, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_572, 1); -lean_inc(x_574); -lean_dec(x_572); -x_546 = x_573; -x_547 = x_574; -goto block_568; +x_453 = x_509; +goto block_464; } else { -lean_object* x_575; lean_object* x_576; lean_object* x_577; -x_575 = lean_ctor_get(x_572, 0); -lean_inc(x_575); -x_576 = lean_ctor_get(x_572, 1); -lean_inc(x_576); -lean_dec(x_572); +lean_object* x_510; +x_510 = lean_box(0); +x_468 = x_510; +goto block_488; +} +} +} +else +{ +lean_object* x_511; lean_object* x_512; uint8_t x_513; +lean_dec(x_501); +x_511 = lean_unsigned_to_nat(0u); +x_512 = l_Lean_Syntax_getArg(x_1, x_511); +lean_inc(x_512); +x_513 = l_Lean_Syntax_isOfKind(x_512, x_466); +if (x_513 == 0) +{ +uint8_t x_514; uint8_t x_515; +lean_dec(x_512); +x_514 = l_List_isEmpty___rarg(x_2); +if (x_7 == 0) +{ +uint8_t x_724; +x_724 = 1; +x_515 = x_724; +goto block_723; +} +else +{ +uint8_t x_725; +x_725 = 0; +x_515 = x_725; +goto block_723; +} +block_723: +{ +uint8_t x_516; +if (x_514 == 0) +{ +uint8_t x_719; +x_719 = 0; +x_516 = x_719; +goto block_718; +} +else +{ +uint8_t x_720; +x_720 = l_Array_isEmpty___rarg(x_3); +if (x_720 == 0) +{ +uint8_t x_721; +x_721 = 0; +x_516 = x_721; +goto block_718; +} +else +{ +uint8_t x_722; +x_722 = l_Array_isEmpty___rarg(x_4); +x_516 = x_722; +goto block_718; +} +} +block_718: +{ +if (x_516 == 0) +{ +lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_554; lean_object* x_555; lean_object* x_577; +x_517 = lean_box(0); +x_518 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_519 = lean_ctor_get(x_518, 0); +lean_inc(x_519); +x_520 = lean_ctor_get(x_518, 1); +lean_inc(x_520); +if (lean_is_exclusive(x_518)) { + lean_ctor_release(x_518, 0); + lean_ctor_release(x_518, 1); + x_521 = x_518; +} else { + lean_dec_ref(x_518); + x_521 = lean_box(0); +} lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); +lean_inc(x_10); lean_inc(x_9); -x_577 = l_Lean_Elab_Term_ensureHasType(x_5, x_575, x_509, x_9, x_10, x_11, x_12, x_13, x_14, x_576); +x_577 = l_Lean_Elab_Term_elabTerm(x_1, x_517, x_515, x_9, x_10, x_11, x_12, x_13, x_14, x_520); if (lean_obj_tag(x_577) == 0) { -lean_object* x_578; lean_object* x_579; -lean_dec(x_513); +lean_object* x_578; lean_object* x_579; lean_object* x_580; x_578 = lean_ctor_get(x_577, 0); lean_inc(x_578); x_579 = lean_ctor_get(x_577, 1); lean_inc(x_579); lean_dec(x_577); -x_546 = x_578; -x_547 = x_579; -goto block_568; -} -else +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_5); +x_580 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_578, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_579); +if (lean_obj_tag(x_580) == 0) { -lean_object* x_580; lean_object* x_581; -x_580 = lean_ctor_get(x_577, 0); -lean_inc(x_580); -x_581 = lean_ctor_get(x_577, 1); -lean_inc(x_581); -lean_dec(x_577); -x_514 = x_580; -x_515 = x_581; -goto block_545; -} -} -} -else +if (x_7 == 0) { -lean_object* x_582; lean_object* x_583; +lean_object* x_581; lean_object* x_582; +lean_dec(x_521); lean_dec(x_5); -x_582 = lean_ctor_get(x_572, 0); +x_581 = lean_ctor_get(x_580, 0); +lean_inc(x_581); +x_582 = lean_ctor_get(x_580, 1); lean_inc(x_582); -x_583 = lean_ctor_get(x_572, 1); +lean_dec(x_580); +x_554 = x_581; +x_555 = x_582; +goto block_576; +} +else +{ +lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_583 = lean_ctor_get(x_580, 0); lean_inc(x_583); -lean_dec(x_572); -x_514 = x_582; -x_515 = x_583; -goto block_545; +x_584 = lean_ctor_get(x_580, 1); +lean_inc(x_584); +lean_dec(x_580); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_9); +x_585 = l_Lean_Elab_Term_ensureHasType(x_5, x_583, x_517, x_9, x_10, x_11, x_12, x_13, x_14, x_584); +if (lean_obj_tag(x_585) == 0) +{ +lean_object* x_586; lean_object* x_587; +lean_dec(x_521); +x_586 = lean_ctor_get(x_585, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_585, 1); +lean_inc(x_587); +lean_dec(x_585); +x_554 = x_586; +x_555 = x_587; +goto block_576; +} +else +{ +lean_object* x_588; lean_object* x_589; +x_588 = lean_ctor_get(x_585, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_585, 1); +lean_inc(x_589); +lean_dec(x_585); +x_522 = x_588; +x_523 = x_589; +goto block_553; +} } } else { -lean_object* x_584; lean_object* x_585; +lean_object* x_590; lean_object* x_591; +lean_dec(x_5); +x_590 = lean_ctor_get(x_580, 0); +lean_inc(x_590); +x_591 = lean_ctor_get(x_580, 1); +lean_inc(x_591); +lean_dec(x_580); +x_522 = x_590; +x_523 = x_591; +goto block_553; +} +} +else +{ +lean_object* x_592; lean_object* x_593; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_584 = lean_ctor_get(x_569, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_569, 1); -lean_inc(x_585); -lean_dec(x_569); -x_514 = x_584; -x_515 = x_585; -goto block_545; +x_592 = lean_ctor_get(x_577, 0); +lean_inc(x_592); +x_593 = lean_ctor_get(x_577, 1); +lean_inc(x_593); +lean_dec(x_577); +x_522 = x_592; +x_523 = x_593; +goto block_553; } -block_545: +block_553: { -if (lean_obj_tag(x_514) == 0) +if (lean_obj_tag(x_522) == 0) { -lean_object* x_516; uint8_t x_517; -lean_dec(x_513); -x_516 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_515); -x_517 = !lean_is_exclusive(x_516); -if (x_517 == 0) +lean_object* x_524; uint8_t x_525; +lean_dec(x_521); +x_524 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_523); +x_525 = !lean_is_exclusive(x_524); +if (x_525 == 0) { -lean_object* x_518; lean_object* x_519; lean_object* x_520; uint8_t x_521; -x_518 = lean_ctor_get(x_516, 0); -x_519 = lean_ctor_get(x_516, 1); -x_520 = l_Lean_Elab_Term_SavedState_restore(x_511, x_9, x_10, x_11, x_12, x_13, x_14, x_519); +lean_object* x_526; lean_object* x_527; lean_object* x_528; uint8_t x_529; +x_526 = lean_ctor_get(x_524, 0); +x_527 = lean_ctor_get(x_524, 1); +x_528 = l_Lean_Elab_Term_SavedState_restore(x_519, x_9, x_10, x_11, x_12, x_13, x_14, x_527); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_521 = !lean_is_exclusive(x_520); -if (x_521 == 0) +x_529 = !lean_is_exclusive(x_528); +if (x_529 == 0) { -lean_object* x_522; lean_object* x_523; lean_object* x_524; -x_522 = lean_ctor_get(x_520, 1); -x_523 = lean_ctor_get(x_520, 0); -lean_dec(x_523); -lean_ctor_set_tag(x_520, 1); -lean_ctor_set(x_520, 1, x_518); -lean_ctor_set(x_520, 0, x_514); -x_524 = lean_array_push(x_8, x_520); -lean_ctor_set(x_516, 1, x_522); -lean_ctor_set(x_516, 0, x_524); -return x_516; +lean_object* x_530; lean_object* x_531; lean_object* x_532; +x_530 = lean_ctor_get(x_528, 1); +x_531 = lean_ctor_get(x_528, 0); +lean_dec(x_531); +lean_ctor_set_tag(x_528, 1); +lean_ctor_set(x_528, 1, x_526); +lean_ctor_set(x_528, 0, x_522); +x_532 = lean_array_push(x_8, x_528); +lean_ctor_set(x_524, 1, x_530); +lean_ctor_set(x_524, 0, x_532); +return x_524; } else { -lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_525 = lean_ctor_get(x_520, 1); -lean_inc(x_525); -lean_dec(x_520); -x_526 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_526, 0, x_514); -lean_ctor_set(x_526, 1, x_518); -x_527 = lean_array_push(x_8, x_526); -lean_ctor_set(x_516, 1, x_525); -lean_ctor_set(x_516, 0, x_527); -return x_516; +lean_object* x_533; lean_object* x_534; lean_object* x_535; +x_533 = lean_ctor_get(x_528, 1); +lean_inc(x_533); +lean_dec(x_528); +x_534 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_534, 0, x_522); +lean_ctor_set(x_534, 1, x_526); +x_535 = lean_array_push(x_8, x_534); +lean_ctor_set(x_524, 1, x_533); +lean_ctor_set(x_524, 0, x_535); +return x_524; } } else { -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; -x_528 = lean_ctor_get(x_516, 0); -x_529 = lean_ctor_get(x_516, 1); -lean_inc(x_529); -lean_inc(x_528); -lean_dec(x_516); -x_530 = l_Lean_Elab_Term_SavedState_restore(x_511, x_9, x_10, x_11, x_12, x_13, x_14, x_529); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_531 = lean_ctor_get(x_530, 1); -lean_inc(x_531); -if (lean_is_exclusive(x_530)) { - lean_ctor_release(x_530, 0); - lean_ctor_release(x_530, 1); - x_532 = x_530; -} else { - lean_dec_ref(x_530); - 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_tag(x_533, 1); -} -lean_ctor_set(x_533, 0, x_514); -lean_ctor_set(x_533, 1, x_528); -x_534 = lean_array_push(x_8, x_533); -x_535 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_535, 0, x_534); -lean_ctor_set(x_535, 1, x_531); -return x_535; -} -} -else -{ -lean_object* x_536; lean_object* x_537; uint8_t x_538; -lean_dec(x_8); -x_536 = lean_ctor_get(x_514, 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; +x_536 = lean_ctor_get(x_524, 0); +x_537 = lean_ctor_get(x_524, 1); +lean_inc(x_537); lean_inc(x_536); -x_537 = l_Lean_Elab_postponeExceptionId; -x_538 = lean_nat_dec_eq(x_536, x_537); -lean_dec(x_536); -if (x_538 == 0) -{ -lean_object* x_539; -lean_dec(x_511); +lean_dec(x_524); +x_538 = l_Lean_Elab_Term_SavedState_restore(x_519, x_9, x_10, x_11, x_12, x_13, x_14, x_537); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_513)) { - x_539 = lean_alloc_ctor(1, 2, 0); +x_539 = lean_ctor_get(x_538, 1); +lean_inc(x_539); +if (lean_is_exclusive(x_538)) { + lean_ctor_release(x_538, 0); + lean_ctor_release(x_538, 1); + x_540 = x_538; } else { - x_539 = x_513; - lean_ctor_set_tag(x_539, 1); + lean_dec_ref(x_538); + x_540 = lean_box(0); +} +if (lean_is_scalar(x_540)) { + x_541 = lean_alloc_ctor(1, 2, 0); +} else { + x_541 = x_540; + lean_ctor_set_tag(x_541, 1); +} +lean_ctor_set(x_541, 0, x_522); +lean_ctor_set(x_541, 1, x_536); +x_542 = lean_array_push(x_8, x_541); +x_543 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_543, 0, x_542); +lean_ctor_set(x_543, 1, x_539); +return x_543; } -lean_ctor_set(x_539, 0, x_514); -lean_ctor_set(x_539, 1, x_515); -return x_539; } else { -lean_object* x_540; uint8_t x_541; -lean_dec(x_513); -x_540 = l_Lean_Elab_Term_SavedState_restore(x_511, x_9, x_10, x_11, x_12, x_13, x_14, x_515); +lean_object* x_544; lean_object* x_545; uint8_t x_546; +lean_dec(x_8); +x_544 = lean_ctor_get(x_522, 0); +lean_inc(x_544); +x_545 = l_Lean_Elab_postponeExceptionId; +x_546 = lean_nat_dec_eq(x_544, x_545); +lean_dec(x_544); +if (x_546 == 0) +{ +lean_object* x_547; +lean_dec(x_519); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_541 = !lean_is_exclusive(x_540); -if (x_541 == 0) -{ -lean_object* x_542; -x_542 = lean_ctor_get(x_540, 0); -lean_dec(x_542); -lean_ctor_set_tag(x_540, 1); -lean_ctor_set(x_540, 0, x_514); -return x_540; +if (lean_is_scalar(x_521)) { + x_547 = lean_alloc_ctor(1, 2, 0); +} else { + x_547 = x_521; + lean_ctor_set_tag(x_547, 1); +} +lean_ctor_set(x_547, 0, x_522); +lean_ctor_set(x_547, 1, x_523); +return x_547; } else { -lean_object* x_543; lean_object* x_544; -x_543 = lean_ctor_get(x_540, 1); -lean_inc(x_543); -lean_dec(x_540); -x_544 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_544, 0, x_514); -lean_ctor_set(x_544, 1, x_543); -return x_544; -} -} -} -} -block_568: -{ lean_object* x_548; uint8_t x_549; -x_548 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_547); +lean_dec(x_521); +x_548 = l_Lean_Elab_Term_SavedState_restore(x_519, x_9, x_10, x_11, x_12, x_13, x_14, x_523); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); x_549 = !lean_is_exclusive(x_548); if (x_549 == 0) { -lean_object* x_550; lean_object* x_551; lean_object* x_552; uint8_t x_553; +lean_object* x_550; x_550 = lean_ctor_get(x_548, 0); +lean_dec(x_550); +lean_ctor_set_tag(x_548, 1); +lean_ctor_set(x_548, 0, x_522); +return x_548; +} +else +{ +lean_object* x_551; lean_object* x_552; x_551 = lean_ctor_get(x_548, 1); -x_552 = l_Lean_Elab_Term_SavedState_restore(x_511, x_9, x_10, x_11, x_12, x_13, x_14, x_551); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_553 = !lean_is_exclusive(x_552); -if (x_553 == 0) -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_554 = lean_ctor_get(x_552, 1); -x_555 = lean_ctor_get(x_552, 0); -lean_dec(x_555); -lean_ctor_set(x_552, 1, x_550); -lean_ctor_set(x_552, 0, x_546); -x_556 = lean_array_push(x_8, x_552); -lean_ctor_set(x_548, 1, x_554); -lean_ctor_set(x_548, 0, x_556); -return x_548; -} -else -{ -lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_557 = lean_ctor_get(x_552, 1); -lean_inc(x_557); -lean_dec(x_552); -x_558 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_558, 0, x_546); -lean_ctor_set(x_558, 1, x_550); -x_559 = lean_array_push(x_8, x_558); -lean_ctor_set(x_548, 1, x_557); -lean_ctor_set(x_548, 0, x_559); -return x_548; -} -} -else -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; -x_560 = lean_ctor_get(x_548, 0); -x_561 = lean_ctor_get(x_548, 1); -lean_inc(x_561); -lean_inc(x_560); +lean_inc(x_551); lean_dec(x_548); -x_562 = l_Lean_Elab_Term_SavedState_restore(x_511, x_9, x_10, x_11, x_12, x_13, x_14, x_561); +x_552 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_552, 0, x_522); +lean_ctor_set(x_552, 1, x_551); +return x_552; +} +} +} +} +block_576: +{ +lean_object* x_556; uint8_t x_557; +x_556 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_555); +x_557 = !lean_is_exclusive(x_556); +if (x_557 == 0) +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; +x_558 = lean_ctor_get(x_556, 0); +x_559 = lean_ctor_get(x_556, 1); +x_560 = l_Lean_Elab_Term_SavedState_restore(x_519, x_9, x_10, x_11, x_12, x_13, x_14, x_559); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_563 = lean_ctor_get(x_562, 1); -lean_inc(x_563); -if (lean_is_exclusive(x_562)) { - lean_ctor_release(x_562, 0); - lean_ctor_release(x_562, 1); - x_564 = x_562; +x_561 = !lean_is_exclusive(x_560); +if (x_561 == 0) +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_562 = lean_ctor_get(x_560, 1); +x_563 = lean_ctor_get(x_560, 0); +lean_dec(x_563); +lean_ctor_set(x_560, 1, x_558); +lean_ctor_set(x_560, 0, x_554); +x_564 = lean_array_push(x_8, x_560); +lean_ctor_set(x_556, 1, x_562); +lean_ctor_set(x_556, 0, x_564); +return x_556; +} +else +{ +lean_object* x_565; lean_object* x_566; lean_object* x_567; +x_565 = lean_ctor_get(x_560, 1); +lean_inc(x_565); +lean_dec(x_560); +x_566 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_566, 0, x_554); +lean_ctor_set(x_566, 1, x_558); +x_567 = lean_array_push(x_8, x_566); +lean_ctor_set(x_556, 1, x_565); +lean_ctor_set(x_556, 0, x_567); +return x_556; +} +} +else +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_568 = lean_ctor_get(x_556, 0); +x_569 = lean_ctor_get(x_556, 1); +lean_inc(x_569); +lean_inc(x_568); +lean_dec(x_556); +x_570 = l_Lean_Elab_Term_SavedState_restore(x_519, x_9, x_10, x_11, x_12, x_13, x_14, x_569); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_571 = lean_ctor_get(x_570, 1); +lean_inc(x_571); +if (lean_is_exclusive(x_570)) { + lean_ctor_release(x_570, 0); + lean_ctor_release(x_570, 1); + x_572 = x_570; } else { - lean_dec_ref(x_562); - x_564 = lean_box(0); + lean_dec_ref(x_570); + x_572 = lean_box(0); } -if (lean_is_scalar(x_564)) { - x_565 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_572)) { + x_573 = lean_alloc_ctor(0, 2, 0); } else { - x_565 = x_564; + x_573 = x_572; } -lean_ctor_set(x_565, 0, x_546); -lean_ctor_set(x_565, 1, x_560); -x_566 = lean_array_push(x_8, x_565); -x_567 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_567, 0, x_566); -lean_ctor_set(x_567, 1, x_563); -return x_567; +lean_ctor_set(x_573, 0, x_554); +lean_ctor_set(x_573, 1, x_568); +x_574 = lean_array_push(x_8, x_573); +x_575 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_575, 0, x_574); +lean_ctor_set(x_575, 1, x_571); +return x_575; } } } else { -uint8_t x_586; -x_586 = l_Array_isEmpty___rarg(x_4); -if (x_586 == 0) -{ -lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_624; lean_object* x_625; lean_object* x_647; -x_587 = lean_box(0); -x_588 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_589 = lean_ctor_get(x_588, 0); -lean_inc(x_589); -x_590 = lean_ctor_get(x_588, 1); -lean_inc(x_590); -if (lean_is_exclusive(x_588)) { - lean_ctor_release(x_588, 0); - lean_ctor_release(x_588, 1); - x_591 = x_588; -} else { - lean_dec_ref(x_588); - x_591 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_647 = l_Lean_Elab_Term_elabTerm(x_1, x_587, x_430, x_9, x_10, x_11, x_12, x_13, x_14, x_590); -if (lean_obj_tag(x_647) == 0) -{ -lean_object* x_648; lean_object* x_649; lean_object* x_650; -x_648 = lean_ctor_get(x_647, 0); -lean_inc(x_648); -x_649 = lean_ctor_get(x_647, 1); -lean_inc(x_649); -lean_dec(x_647); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_650 = l___private_Lean_Elab_App_31__elabAppLVals(x_648, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_649); -if (lean_obj_tag(x_650) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_651; lean_object* x_652; -lean_dec(x_591); -lean_dec(x_5); -x_651 = lean_ctor_get(x_650, 0); -lean_inc(x_651); -x_652 = lean_ctor_get(x_650, 1); -lean_inc(x_652); -lean_dec(x_650); -x_624 = x_651; -x_625 = x_652; -goto block_646; -} -else -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_653 = lean_ctor_get(x_650, 0); -lean_inc(x_653); -x_654 = lean_ctor_get(x_650, 1); -lean_inc(x_654); -lean_dec(x_650); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_655 = l_Lean_Elab_Term_ensureHasType(x_5, x_653, x_587, x_9, x_10, x_11, x_12, x_13, x_14, x_654); -if (lean_obj_tag(x_655) == 0) -{ -lean_object* x_656; lean_object* x_657; -lean_dec(x_591); -x_656 = lean_ctor_get(x_655, 0); -lean_inc(x_656); -x_657 = lean_ctor_get(x_655, 1); -lean_inc(x_657); -lean_dec(x_655); -x_624 = x_656; -x_625 = x_657; -goto block_646; -} -else -{ -lean_object* x_658; lean_object* x_659; -x_658 = lean_ctor_get(x_655, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_655, 1); -lean_inc(x_659); -lean_dec(x_655); -x_592 = x_658; -x_593 = x_659; -goto block_623; -} -} -} -else -{ -lean_object* x_660; lean_object* x_661; -lean_dec(x_5); -x_660 = lean_ctor_get(x_650, 0); -lean_inc(x_660); -x_661 = lean_ctor_get(x_650, 1); -lean_inc(x_661); -lean_dec(x_650); -x_592 = x_660; -x_593 = x_661; -goto block_623; -} -} -else -{ -lean_object* x_662; lean_object* x_663; -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_662 = lean_ctor_get(x_647, 0); -lean_inc(x_662); -x_663 = lean_ctor_get(x_647, 1); -lean_inc(x_663); -lean_dec(x_647); -x_592 = x_662; -x_593 = x_663; -goto block_623; +if (x_7 == 0) +{ +lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; uint8_t x_630; lean_object* x_631; +x_594 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_595 = lean_ctor_get(x_594, 0); +lean_inc(x_595); +x_596 = lean_ctor_get(x_594, 1); +lean_inc(x_596); +if (lean_is_exclusive(x_594)) { + lean_ctor_release(x_594, 0); + lean_ctor_release(x_594, 1); + x_597 = x_594; +} else { + lean_dec_ref(x_594); + x_597 = lean_box(0); } -block_623: +x_630 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_631 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_630, x_9, x_10, x_11, x_12, x_13, x_14, x_596); +if (lean_obj_tag(x_631) == 0) { -if (lean_obj_tag(x_592) == 0) +lean_object* x_632; lean_object* x_633; lean_object* x_634; uint8_t x_635; +lean_dec(x_597); +x_632 = lean_ctor_get(x_631, 0); +lean_inc(x_632); +x_633 = lean_ctor_get(x_631, 1); +lean_inc(x_633); +lean_dec(x_631); +x_634 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_633); +x_635 = !lean_is_exclusive(x_634); +if (x_635 == 0) { -lean_object* x_594; uint8_t x_595; -lean_dec(x_591); -x_594 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_593); -x_595 = !lean_is_exclusive(x_594); -if (x_595 == 0) -{ -lean_object* x_596; lean_object* x_597; lean_object* x_598; uint8_t x_599; -x_596 = lean_ctor_get(x_594, 0); -x_597 = lean_ctor_get(x_594, 1); -x_598 = l_Lean_Elab_Term_SavedState_restore(x_589, x_9, x_10, x_11, x_12, x_13, x_14, x_597); +lean_object* x_636; lean_object* x_637; lean_object* x_638; uint8_t x_639; +x_636 = lean_ctor_get(x_634, 0); +x_637 = lean_ctor_get(x_634, 1); +x_638 = l_Lean_Elab_Term_SavedState_restore(x_595, x_9, x_10, x_11, x_12, x_13, x_14, x_637); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_599 = !lean_is_exclusive(x_598); -if (x_599 == 0) +x_639 = !lean_is_exclusive(x_638); +if (x_639 == 0) { -lean_object* x_600; lean_object* x_601; lean_object* x_602; -x_600 = lean_ctor_get(x_598, 1); -x_601 = lean_ctor_get(x_598, 0); -lean_dec(x_601); -lean_ctor_set_tag(x_598, 1); -lean_ctor_set(x_598, 1, x_596); -lean_ctor_set(x_598, 0, x_592); -x_602 = lean_array_push(x_8, x_598); -lean_ctor_set(x_594, 1, x_600); -lean_ctor_set(x_594, 0, x_602); -return x_594; +lean_object* x_640; lean_object* x_641; lean_object* x_642; +x_640 = lean_ctor_get(x_638, 1); +x_641 = lean_ctor_get(x_638, 0); +lean_dec(x_641); +lean_ctor_set(x_638, 1, x_636); +lean_ctor_set(x_638, 0, x_632); +x_642 = lean_array_push(x_8, x_638); +lean_ctor_set(x_634, 1, x_640); +lean_ctor_set(x_634, 0, x_642); +return x_634; } else { -lean_object* x_603; lean_object* x_604; lean_object* x_605; -x_603 = lean_ctor_get(x_598, 1); -lean_inc(x_603); -lean_dec(x_598); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_592); -lean_ctor_set(x_604, 1, x_596); -x_605 = lean_array_push(x_8, x_604); -lean_ctor_set(x_594, 1, x_603); -lean_ctor_set(x_594, 0, x_605); -return x_594; +lean_object* x_643; lean_object* x_644; lean_object* x_645; +x_643 = lean_ctor_get(x_638, 1); +lean_inc(x_643); +lean_dec(x_638); +x_644 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_644, 0, x_632); +lean_ctor_set(x_644, 1, x_636); +x_645 = lean_array_push(x_8, x_644); +lean_ctor_set(x_634, 1, x_643); +lean_ctor_set(x_634, 0, x_645); +return x_634; } } else { -lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_606 = lean_ctor_get(x_594, 0); -x_607 = lean_ctor_get(x_594, 1); -lean_inc(x_607); -lean_inc(x_606); -lean_dec(x_594); -x_608 = l_Lean_Elab_Term_SavedState_restore(x_589, x_9, x_10, x_11, x_12, x_13, x_14, x_607); +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; +x_646 = lean_ctor_get(x_634, 0); +x_647 = lean_ctor_get(x_634, 1); +lean_inc(x_647); +lean_inc(x_646); +lean_dec(x_634); +x_648 = l_Lean_Elab_Term_SavedState_restore(x_595, x_9, x_10, x_11, x_12, x_13, x_14, x_647); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_609 = lean_ctor_get(x_608, 1); +x_649 = lean_ctor_get(x_648, 1); +lean_inc(x_649); +if (lean_is_exclusive(x_648)) { + lean_ctor_release(x_648, 0); + lean_ctor_release(x_648, 1); + x_650 = x_648; +} else { + lean_dec_ref(x_648); + x_650 = lean_box(0); +} +if (lean_is_scalar(x_650)) { + x_651 = lean_alloc_ctor(0, 2, 0); +} else { + x_651 = x_650; +} +lean_ctor_set(x_651, 0, x_632); +lean_ctor_set(x_651, 1, x_646); +x_652 = lean_array_push(x_8, x_651); +x_653 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_649); +return x_653; +} +} +else +{ +lean_object* x_654; lean_object* x_655; +x_654 = lean_ctor_get(x_631, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_631, 1); +lean_inc(x_655); +lean_dec(x_631); +x_598 = x_654; +x_599 = x_655; +goto block_629; +} +block_629: +{ +if (lean_obj_tag(x_598) == 0) +{ +lean_object* x_600; uint8_t x_601; +lean_dec(x_597); +x_600 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_599); +x_601 = !lean_is_exclusive(x_600); +if (x_601 == 0) +{ +lean_object* x_602; lean_object* x_603; lean_object* x_604; uint8_t x_605; +x_602 = lean_ctor_get(x_600, 0); +x_603 = lean_ctor_get(x_600, 1); +x_604 = l_Lean_Elab_Term_SavedState_restore(x_595, x_9, x_10, x_11, x_12, x_13, x_14, x_603); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_605 = !lean_is_exclusive(x_604); +if (x_605 == 0) +{ +lean_object* x_606; lean_object* x_607; lean_object* x_608; +x_606 = lean_ctor_get(x_604, 1); +x_607 = lean_ctor_get(x_604, 0); +lean_dec(x_607); +lean_ctor_set_tag(x_604, 1); +lean_ctor_set(x_604, 1, x_602); +lean_ctor_set(x_604, 0, x_598); +x_608 = lean_array_push(x_8, x_604); +lean_ctor_set(x_600, 1, x_606); +lean_ctor_set(x_600, 0, x_608); +return x_600; +} +else +{ +lean_object* x_609; lean_object* x_610; lean_object* x_611; +x_609 = lean_ctor_get(x_604, 1); lean_inc(x_609); -if (lean_is_exclusive(x_608)) { - lean_ctor_release(x_608, 0); - lean_ctor_release(x_608, 1); - x_610 = x_608; -} else { - lean_dec_ref(x_608); - x_610 = lean_box(0); -} -if (lean_is_scalar(x_610)) { - x_611 = lean_alloc_ctor(1, 2, 0); -} else { - x_611 = x_610; - lean_ctor_set_tag(x_611, 1); -} -lean_ctor_set(x_611, 0, x_592); -lean_ctor_set(x_611, 1, x_606); -x_612 = lean_array_push(x_8, x_611); -x_613 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_613, 0, x_612); -lean_ctor_set(x_613, 1, x_609); -return x_613; +lean_dec(x_604); +x_610 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_610, 0, x_598); +lean_ctor_set(x_610, 1, x_602); +x_611 = lean_array_push(x_8, x_610); +lean_ctor_set(x_600, 1, x_609); +lean_ctor_set(x_600, 0, x_611); +return x_600; } } else { -lean_object* x_614; lean_object* x_615; uint8_t x_616; -lean_dec(x_8); -x_614 = lean_ctor_get(x_592, 0); -lean_inc(x_614); -x_615 = l_Lean_Elab_postponeExceptionId; -x_616 = lean_nat_dec_eq(x_614, x_615); -lean_dec(x_614); -if (x_616 == 0) -{ -lean_object* x_617; -lean_dec(x_589); +lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; +x_612 = lean_ctor_get(x_600, 0); +x_613 = lean_ctor_get(x_600, 1); +lean_inc(x_613); +lean_inc(x_612); +lean_dec(x_600); +x_614 = l_Lean_Elab_Term_SavedState_restore(x_595, x_9, x_10, x_11, x_12, x_13, x_14, x_613); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_591)) { +x_615 = lean_ctor_get(x_614, 1); +lean_inc(x_615); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_616 = x_614; +} else { + lean_dec_ref(x_614); + x_616 = lean_box(0); +} +if (lean_is_scalar(x_616)) { x_617 = lean_alloc_ctor(1, 2, 0); } else { - x_617 = x_591; + x_617 = x_616; lean_ctor_set_tag(x_617, 1); } -lean_ctor_set(x_617, 0, x_592); -lean_ctor_set(x_617, 1, x_593); -return x_617; -} -else -{ -lean_object* x_618; uint8_t x_619; -lean_dec(x_591); -x_618 = l_Lean_Elab_Term_SavedState_restore(x_589, x_9, x_10, x_11, x_12, x_13, x_14, x_593); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_619 = !lean_is_exclusive(x_618); -if (x_619 == 0) -{ -lean_object* x_620; -x_620 = lean_ctor_get(x_618, 0); -lean_dec(x_620); -lean_ctor_set_tag(x_618, 1); -lean_ctor_set(x_618, 0, x_592); -return x_618; -} -else -{ -lean_object* x_621; lean_object* x_622; -x_621 = lean_ctor_get(x_618, 1); -lean_inc(x_621); -lean_dec(x_618); -x_622 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_622, 0, x_592); -lean_ctor_set(x_622, 1, x_621); -return x_622; -} -} -} -} -block_646: -{ -lean_object* x_626; uint8_t x_627; -x_626 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_625); -x_627 = !lean_is_exclusive(x_626); -if (x_627 == 0) -{ -lean_object* x_628; lean_object* x_629; lean_object* x_630; uint8_t x_631; -x_628 = lean_ctor_get(x_626, 0); -x_629 = lean_ctor_get(x_626, 1); -x_630 = l_Lean_Elab_Term_SavedState_restore(x_589, x_9, x_10, x_11, x_12, x_13, x_14, x_629); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_631 = !lean_is_exclusive(x_630); -if (x_631 == 0) -{ -lean_object* x_632; lean_object* x_633; lean_object* x_634; -x_632 = lean_ctor_get(x_630, 1); -x_633 = lean_ctor_get(x_630, 0); -lean_dec(x_633); -lean_ctor_set(x_630, 1, x_628); -lean_ctor_set(x_630, 0, x_624); -x_634 = lean_array_push(x_8, x_630); -lean_ctor_set(x_626, 1, x_632); -lean_ctor_set(x_626, 0, x_634); -return x_626; -} -else -{ -lean_object* x_635; lean_object* x_636; lean_object* x_637; -x_635 = lean_ctor_get(x_630, 1); -lean_inc(x_635); -lean_dec(x_630); -x_636 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_636, 0, x_624); -lean_ctor_set(x_636, 1, x_628); -x_637 = lean_array_push(x_8, x_636); -lean_ctor_set(x_626, 1, x_635); -lean_ctor_set(x_626, 0, x_637); -return x_626; +lean_ctor_set(x_617, 0, x_598); +lean_ctor_set(x_617, 1, x_612); +x_618 = lean_array_push(x_8, x_617); +x_619 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_619, 0, x_618); +lean_ctor_set(x_619, 1, x_615); +return x_619; } } else { -lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; -x_638 = lean_ctor_get(x_626, 0); -x_639 = lean_ctor_get(x_626, 1); -lean_inc(x_639); -lean_inc(x_638); -lean_dec(x_626); -x_640 = l_Lean_Elab_Term_SavedState_restore(x_589, x_9, x_10, x_11, x_12, x_13, x_14, x_639); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_641 = lean_ctor_get(x_640, 1); -lean_inc(x_641); -if (lean_is_exclusive(x_640)) { - lean_ctor_release(x_640, 0); - lean_ctor_release(x_640, 1); - x_642 = x_640; -} else { - lean_dec_ref(x_640); - x_642 = lean_box(0); -} -if (lean_is_scalar(x_642)) { - x_643 = lean_alloc_ctor(0, 2, 0); -} else { - x_643 = x_642; -} -lean_ctor_set(x_643, 0, x_624); -lean_ctor_set(x_643, 1, x_638); -x_644 = lean_array_push(x_8, x_643); -x_645 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_645, 0, x_644); -lean_ctor_set(x_645, 1, x_641); -return x_645; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_7 == 0) -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; uint8_t x_700; lean_object* x_701; -x_664 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_665 = lean_ctor_get(x_664, 0); -lean_inc(x_665); -x_666 = lean_ctor_get(x_664, 1); -lean_inc(x_666); -if (lean_is_exclusive(x_664)) { - lean_ctor_release(x_664, 0); - lean_ctor_release(x_664, 1); - x_667 = x_664; -} else { - lean_dec_ref(x_664); - x_667 = lean_box(0); -} -x_700 = 1; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_701 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_700, x_9, x_10, x_11, x_12, x_13, x_14, x_666); -if (lean_obj_tag(x_701) == 0) -{ -lean_object* x_702; lean_object* x_703; lean_object* x_704; uint8_t x_705; -lean_dec(x_667); -x_702 = lean_ctor_get(x_701, 0); -lean_inc(x_702); -x_703 = lean_ctor_get(x_701, 1); -lean_inc(x_703); -lean_dec(x_701); -x_704 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_703); -x_705 = !lean_is_exclusive(x_704); -if (x_705 == 0) -{ -lean_object* x_706; lean_object* x_707; lean_object* x_708; uint8_t x_709; -x_706 = lean_ctor_get(x_704, 0); -x_707 = lean_ctor_get(x_704, 1); -x_708 = l_Lean_Elab_Term_SavedState_restore(x_665, x_9, x_10, x_11, x_12, x_13, x_14, x_707); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_709 = !lean_is_exclusive(x_708); -if (x_709 == 0) -{ -lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_710 = lean_ctor_get(x_708, 1); -x_711 = lean_ctor_get(x_708, 0); -lean_dec(x_711); -lean_ctor_set(x_708, 1, x_706); -lean_ctor_set(x_708, 0, x_702); -x_712 = lean_array_push(x_8, x_708); -lean_ctor_set(x_704, 1, x_710); -lean_ctor_set(x_704, 0, x_712); -return x_704; -} -else -{ -lean_object* x_713; lean_object* x_714; lean_object* x_715; -x_713 = lean_ctor_get(x_708, 1); -lean_inc(x_713); -lean_dec(x_708); -x_714 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_714, 0, x_702); -lean_ctor_set(x_714, 1, x_706); -x_715 = lean_array_push(x_8, x_714); -lean_ctor_set(x_704, 1, x_713); -lean_ctor_set(x_704, 0, x_715); -return x_704; -} -} -else -{ -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; -x_716 = lean_ctor_get(x_704, 0); -x_717 = lean_ctor_get(x_704, 1); -lean_inc(x_717); -lean_inc(x_716); -lean_dec(x_704); -x_718 = l_Lean_Elab_Term_SavedState_restore(x_665, x_9, x_10, x_11, x_12, x_13, x_14, x_717); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_719 = lean_ctor_get(x_718, 1); -lean_inc(x_719); -if (lean_is_exclusive(x_718)) { - lean_ctor_release(x_718, 0); - lean_ctor_release(x_718, 1); - x_720 = x_718; -} else { - lean_dec_ref(x_718); - x_720 = lean_box(0); -} -if (lean_is_scalar(x_720)) { - x_721 = lean_alloc_ctor(0, 2, 0); -} else { - x_721 = x_720; -} -lean_ctor_set(x_721, 0, x_702); -lean_ctor_set(x_721, 1, x_716); -x_722 = lean_array_push(x_8, x_721); -x_723 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_723, 0, x_722); -lean_ctor_set(x_723, 1, x_719); -return x_723; -} -} -else -{ -lean_object* x_724; lean_object* x_725; -x_724 = lean_ctor_get(x_701, 0); -lean_inc(x_724); -x_725 = lean_ctor_get(x_701, 1); -lean_inc(x_725); -lean_dec(x_701); -x_668 = x_724; -x_669 = x_725; -goto block_699; -} -block_699: -{ -if (lean_obj_tag(x_668) == 0) -{ -lean_object* x_670; uint8_t x_671; -lean_dec(x_667); -x_670 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_669); -x_671 = !lean_is_exclusive(x_670); -if (x_671 == 0) -{ -lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; -x_672 = lean_ctor_get(x_670, 0); -x_673 = lean_ctor_get(x_670, 1); -x_674 = l_Lean_Elab_Term_SavedState_restore(x_665, x_9, x_10, x_11, x_12, x_13, x_14, x_673); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_675 = !lean_is_exclusive(x_674); -if (x_675 == 0) -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_676 = lean_ctor_get(x_674, 1); -x_677 = lean_ctor_get(x_674, 0); -lean_dec(x_677); -lean_ctor_set_tag(x_674, 1); -lean_ctor_set(x_674, 1, x_672); -lean_ctor_set(x_674, 0, x_668); -x_678 = lean_array_push(x_8, x_674); -lean_ctor_set(x_670, 1, x_676); -lean_ctor_set(x_670, 0, x_678); -return x_670; -} -else -{ -lean_object* x_679; lean_object* x_680; lean_object* x_681; -x_679 = lean_ctor_get(x_674, 1); -lean_inc(x_679); -lean_dec(x_674); -x_680 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_680, 0, x_668); -lean_ctor_set(x_680, 1, x_672); -x_681 = lean_array_push(x_8, x_680); -lean_ctor_set(x_670, 1, x_679); -lean_ctor_set(x_670, 0, x_681); -return x_670; -} -} -else -{ -lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; -x_682 = lean_ctor_get(x_670, 0); -x_683 = lean_ctor_get(x_670, 1); -lean_inc(x_683); -lean_inc(x_682); -lean_dec(x_670); -x_684 = l_Lean_Elab_Term_SavedState_restore(x_665, x_9, x_10, x_11, x_12, x_13, x_14, x_683); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_685 = lean_ctor_get(x_684, 1); -lean_inc(x_685); -if (lean_is_exclusive(x_684)) { - lean_ctor_release(x_684, 0); - lean_ctor_release(x_684, 1); - x_686 = x_684; -} else { - lean_dec_ref(x_684); - 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_tag(x_687, 1); -} -lean_ctor_set(x_687, 0, x_668); -lean_ctor_set(x_687, 1, x_682); -x_688 = lean_array_push(x_8, x_687); -x_689 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_689, 0, x_688); -lean_ctor_set(x_689, 1, x_685); -return x_689; -} -} -else -{ -lean_object* x_690; lean_object* x_691; uint8_t x_692; +lean_object* x_620; lean_object* x_621; uint8_t x_622; lean_dec(x_8); -x_690 = lean_ctor_get(x_668, 0); -lean_inc(x_690); -x_691 = l_Lean_Elab_postponeExceptionId; -x_692 = lean_nat_dec_eq(x_690, x_691); -lean_dec(x_690); -if (x_692 == 0) +x_620 = lean_ctor_get(x_598, 0); +lean_inc(x_620); +x_621 = l_Lean_Elab_postponeExceptionId; +x_622 = lean_nat_dec_eq(x_620, x_621); +lean_dec(x_620); +if (x_622 == 0) { -lean_object* x_693; -lean_dec(x_665); +lean_object* x_623; +lean_dec(x_595); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_667)) { - x_693 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_597)) { + x_623 = lean_alloc_ctor(1, 2, 0); } else { - x_693 = x_667; - lean_ctor_set_tag(x_693, 1); + x_623 = x_597; + lean_ctor_set_tag(x_623, 1); } -lean_ctor_set(x_693, 0, x_668); -lean_ctor_set(x_693, 1, x_669); -return x_693; +lean_ctor_set(x_623, 0, x_598); +lean_ctor_set(x_623, 1, x_599); +return x_623; } else { -lean_object* x_694; uint8_t x_695; -lean_dec(x_667); -x_694 = l_Lean_Elab_Term_SavedState_restore(x_665, x_9, x_10, x_11, x_12, x_13, x_14, x_669); +lean_object* x_624; uint8_t x_625; +lean_dec(x_597); +x_624 = l_Lean_Elab_Term_SavedState_restore(x_595, x_9, x_10, x_11, x_12, x_13, x_14, x_599); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_695 = !lean_is_exclusive(x_694); -if (x_695 == 0) +x_625 = !lean_is_exclusive(x_624); +if (x_625 == 0) { -lean_object* x_696; -x_696 = lean_ctor_get(x_694, 0); -lean_dec(x_696); -lean_ctor_set_tag(x_694, 1); -lean_ctor_set(x_694, 0, x_668); -return x_694; +lean_object* x_626; +x_626 = lean_ctor_get(x_624, 0); +lean_dec(x_626); +lean_ctor_set_tag(x_624, 1); +lean_ctor_set(x_624, 0, x_598); +return x_624; } else { -lean_object* x_697; lean_object* x_698; -x_697 = lean_ctor_get(x_694, 1); -lean_inc(x_697); -lean_dec(x_694); -x_698 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_698, 0, x_668); -lean_ctor_set(x_698, 1, x_697); -return x_698; +lean_object* x_627; lean_object* x_628; +x_627 = lean_ctor_get(x_624, 1); +lean_inc(x_627); +lean_dec(x_624); +x_628 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_628, 0, x_598); +lean_ctor_set(x_628, 1, x_627); +return x_628; } } } @@ -21805,20 +25176,20 @@ return x_698; } else { -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_763; -x_726 = lean_box(0); -x_727 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_728 = lean_ctor_get(x_727, 0); -lean_inc(x_728); -x_729 = lean_ctor_get(x_727, 1); -lean_inc(x_729); -if (lean_is_exclusive(x_727)) { - lean_ctor_release(x_727, 0); - lean_ctor_release(x_727, 1); - x_730 = x_727; +lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_693; +x_656 = lean_box(0); +x_657 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_658 = lean_ctor_get(x_657, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_657, 1); +lean_inc(x_659); +if (lean_is_exclusive(x_657)) { + lean_ctor_release(x_657, 0); + lean_ctor_release(x_657, 1); + x_660 = x_657; } else { - lean_dec_ref(x_727); - x_730 = lean_box(0); + lean_dec_ref(x_657); + x_660 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -21826,298 +25197,349 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_763 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_430, x_726, x_9, x_10, x_11, x_12, x_13, x_14, x_729); -if (lean_obj_tag(x_763) == 0) +x_693 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_515, x_656, x_9, x_10, x_11, x_12, x_13, x_14, x_659); +if (lean_obj_tag(x_693) == 0) { -lean_object* x_764; lean_object* x_765; lean_object* x_766; uint8_t x_767; +lean_object* x_694; lean_object* x_695; lean_object* x_696; uint8_t x_697; +lean_dec(x_660); +x_694 = lean_ctor_get(x_693, 0); +lean_inc(x_694); +x_695 = lean_ctor_get(x_693, 1); +lean_inc(x_695); +lean_dec(x_693); +x_696 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_695); +x_697 = !lean_is_exclusive(x_696); +if (x_697 == 0) +{ +lean_object* x_698; lean_object* x_699; lean_object* x_700; uint8_t x_701; +x_698 = lean_ctor_get(x_696, 0); +x_699 = lean_ctor_get(x_696, 1); +x_700 = l_Lean_Elab_Term_SavedState_restore(x_658, x_9, x_10, x_11, x_12, x_13, x_14, x_699); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_701 = !lean_is_exclusive(x_700); +if (x_701 == 0) +{ +lean_object* x_702; lean_object* x_703; lean_object* x_704; +x_702 = lean_ctor_get(x_700, 1); +x_703 = lean_ctor_get(x_700, 0); +lean_dec(x_703); +lean_ctor_set(x_700, 1, x_698); +lean_ctor_set(x_700, 0, x_694); +x_704 = lean_array_push(x_8, x_700); +lean_ctor_set(x_696, 1, x_702); +lean_ctor_set(x_696, 0, x_704); +return x_696; +} +else +{ +lean_object* x_705; lean_object* x_706; lean_object* x_707; +x_705 = lean_ctor_get(x_700, 1); +lean_inc(x_705); +lean_dec(x_700); +x_706 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_706, 0, x_694); +lean_ctor_set(x_706, 1, x_698); +x_707 = lean_array_push(x_8, x_706); +lean_ctor_set(x_696, 1, x_705); +lean_ctor_set(x_696, 0, x_707); +return x_696; +} +} +else +{ +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; lean_object* x_715; +x_708 = lean_ctor_get(x_696, 0); +x_709 = lean_ctor_get(x_696, 1); +lean_inc(x_709); +lean_inc(x_708); +lean_dec(x_696); +x_710 = l_Lean_Elab_Term_SavedState_restore(x_658, x_9, x_10, x_11, x_12, x_13, x_14, x_709); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_711 = lean_ctor_get(x_710, 1); +lean_inc(x_711); +if (lean_is_exclusive(x_710)) { + lean_ctor_release(x_710, 0); + lean_ctor_release(x_710, 1); + x_712 = x_710; +} else { + lean_dec_ref(x_710); + x_712 = lean_box(0); +} +if (lean_is_scalar(x_712)) { + x_713 = lean_alloc_ctor(0, 2, 0); +} else { + x_713 = x_712; +} +lean_ctor_set(x_713, 0, x_694); +lean_ctor_set(x_713, 1, x_708); +x_714 = lean_array_push(x_8, x_713); +x_715 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_715, 0, x_714); +lean_ctor_set(x_715, 1, x_711); +return x_715; +} +} +else +{ +lean_object* x_716; lean_object* x_717; +x_716 = lean_ctor_get(x_693, 0); +lean_inc(x_716); +x_717 = lean_ctor_get(x_693, 1); +lean_inc(x_717); +lean_dec(x_693); +x_661 = x_716; +x_662 = x_717; +goto block_692; +} +block_692: +{ +if (lean_obj_tag(x_661) == 0) +{ +lean_object* x_663; uint8_t x_664; +lean_dec(x_660); +x_663 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_662); +x_664 = !lean_is_exclusive(x_663); +if (x_664 == 0) +{ +lean_object* x_665; lean_object* x_666; lean_object* x_667; uint8_t x_668; +x_665 = lean_ctor_get(x_663, 0); +x_666 = lean_ctor_get(x_663, 1); +x_667 = l_Lean_Elab_Term_SavedState_restore(x_658, x_9, x_10, x_11, x_12, x_13, x_14, x_666); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_668 = !lean_is_exclusive(x_667); +if (x_668 == 0) +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; +x_669 = lean_ctor_get(x_667, 1); +x_670 = lean_ctor_get(x_667, 0); +lean_dec(x_670); +lean_ctor_set_tag(x_667, 1); +lean_ctor_set(x_667, 1, x_665); +lean_ctor_set(x_667, 0, x_661); +x_671 = lean_array_push(x_8, x_667); +lean_ctor_set(x_663, 1, x_669); +lean_ctor_set(x_663, 0, x_671); +return x_663; +} +else +{ +lean_object* x_672; lean_object* x_673; lean_object* x_674; +x_672 = lean_ctor_get(x_667, 1); +lean_inc(x_672); +lean_dec(x_667); +x_673 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_673, 0, x_661); +lean_ctor_set(x_673, 1, x_665); +x_674 = lean_array_push(x_8, x_673); +lean_ctor_set(x_663, 1, x_672); +lean_ctor_set(x_663, 0, x_674); +return x_663; +} +} +else +{ +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; +x_675 = lean_ctor_get(x_663, 0); +x_676 = lean_ctor_get(x_663, 1); +lean_inc(x_676); +lean_inc(x_675); +lean_dec(x_663); +x_677 = l_Lean_Elab_Term_SavedState_restore(x_658, x_9, x_10, x_11, x_12, x_13, x_14, x_676); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_678 = lean_ctor_get(x_677, 1); +lean_inc(x_678); +if (lean_is_exclusive(x_677)) { + lean_ctor_release(x_677, 0); + lean_ctor_release(x_677, 1); + x_679 = x_677; +} else { + lean_dec_ref(x_677); + x_679 = lean_box(0); +} +if (lean_is_scalar(x_679)) { + x_680 = lean_alloc_ctor(1, 2, 0); +} else { + x_680 = x_679; + lean_ctor_set_tag(x_680, 1); +} +lean_ctor_set(x_680, 0, x_661); +lean_ctor_set(x_680, 1, x_675); +x_681 = lean_array_push(x_8, x_680); +x_682 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_682, 0, x_681); +lean_ctor_set(x_682, 1, x_678); +return x_682; +} +} +else +{ +lean_object* x_683; lean_object* x_684; uint8_t x_685; +lean_dec(x_8); +x_683 = lean_ctor_get(x_661, 0); +lean_inc(x_683); +x_684 = l_Lean_Elab_postponeExceptionId; +x_685 = lean_nat_dec_eq(x_683, x_684); +lean_dec(x_683); +if (x_685 == 0) +{ +lean_object* x_686; +lean_dec(x_658); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_660)) { + x_686 = lean_alloc_ctor(1, 2, 0); +} else { + x_686 = x_660; + lean_ctor_set_tag(x_686, 1); +} +lean_ctor_set(x_686, 0, x_661); +lean_ctor_set(x_686, 1, x_662); +return x_686; +} +else +{ +lean_object* x_687; uint8_t x_688; +lean_dec(x_660); +x_687 = l_Lean_Elab_Term_SavedState_restore(x_658, x_9, x_10, x_11, x_12, x_13, x_14, x_662); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_688 = !lean_is_exclusive(x_687); +if (x_688 == 0) +{ +lean_object* x_689; +x_689 = lean_ctor_get(x_687, 0); +lean_dec(x_689); +lean_ctor_set_tag(x_687, 1); +lean_ctor_set(x_687, 0, x_661); +return x_687; +} +else +{ +lean_object* x_690; lean_object* x_691; +x_690 = lean_ctor_get(x_687, 1); +lean_inc(x_690); +lean_dec(x_687); +x_691 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_691, 0, x_661); +lean_ctor_set(x_691, 1, x_690); +return x_691; +} +} +} +} +} +} +} +} +} +else +{ +lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; +x_726 = lean_unsigned_to_nat(2u); +x_727 = l_Lean_Syntax_getArg(x_1, x_726); +lean_dec(x_1); +x_728 = l_Lean_Syntax_getArgs(x_727); +lean_dec(x_727); +x_729 = l_Array_empty___closed__1; +x_730 = l_Array_foldlStepMAux___main___at_Lean_Syntax_getSepArgs___spec__1(x_726, x_728, x_511, x_729); +lean_dec(x_728); +x_731 = l_Lean_Elab_Term_elabExplicitUnivs(x_730, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_730); -x_764 = lean_ctor_get(x_763, 0); -lean_inc(x_764); -x_765 = lean_ctor_get(x_763, 1); -lean_inc(x_765); -lean_dec(x_763); -x_766 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_765); -x_767 = !lean_is_exclusive(x_766); -if (x_767 == 0) -{ -lean_object* x_768; lean_object* x_769; lean_object* x_770; uint8_t x_771; -x_768 = lean_ctor_get(x_766, 0); -x_769 = lean_ctor_get(x_766, 1); -x_770 = l_Lean_Elab_Term_SavedState_restore(x_728, x_9, x_10, x_11, x_12, x_13, x_14, x_769); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_771 = !lean_is_exclusive(x_770); -if (x_771 == 0) -{ -lean_object* x_772; lean_object* x_773; lean_object* x_774; -x_772 = lean_ctor_get(x_770, 1); -x_773 = lean_ctor_get(x_770, 0); -lean_dec(x_773); -lean_ctor_set(x_770, 1, x_768); -lean_ctor_set(x_770, 0, x_764); -x_774 = lean_array_push(x_8, x_770); -lean_ctor_set(x_766, 1, x_772); -lean_ctor_set(x_766, 0, x_774); -return x_766; -} -else -{ -lean_object* x_775; lean_object* x_776; lean_object* x_777; -x_775 = lean_ctor_get(x_770, 1); -lean_inc(x_775); -lean_dec(x_770); -x_776 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_776, 0, x_764); -lean_ctor_set(x_776, 1, x_768); -x_777 = lean_array_push(x_8, x_776); -lean_ctor_set(x_766, 1, x_775); -lean_ctor_set(x_766, 0, x_777); -return x_766; -} -} -else -{ -lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; -x_778 = lean_ctor_get(x_766, 0); -x_779 = lean_ctor_get(x_766, 1); -lean_inc(x_779); -lean_inc(x_778); -lean_dec(x_766); -x_780 = l_Lean_Elab_Term_SavedState_restore(x_728, x_9, x_10, x_11, x_12, x_13, x_14, x_779); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_781 = lean_ctor_get(x_780, 1); -lean_inc(x_781); -if (lean_is_exclusive(x_780)) { - lean_ctor_release(x_780, 0); - lean_ctor_release(x_780, 1); - x_782 = x_780; -} else { - lean_dec_ref(x_780); - x_782 = lean_box(0); -} -if (lean_is_scalar(x_782)) { - x_783 = lean_alloc_ctor(0, 2, 0); -} else { - x_783 = x_782; -} -lean_ctor_set(x_783, 0, x_764); -lean_ctor_set(x_783, 1, x_778); -x_784 = lean_array_push(x_8, x_783); -x_785 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_785, 0, x_784); -lean_ctor_set(x_785, 1, x_781); -return x_785; -} -} -else -{ -lean_object* x_786; lean_object* x_787; -x_786 = lean_ctor_get(x_763, 0); -lean_inc(x_786); -x_787 = lean_ctor_get(x_763, 1); -lean_inc(x_787); -lean_dec(x_763); -x_731 = x_786; -x_732 = x_787; -goto block_762; -} -block_762: -{ if (lean_obj_tag(x_731) == 0) { -lean_object* x_733; uint8_t x_734; -lean_dec(x_730); -x_733 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_732); -x_734 = !lean_is_exclusive(x_733); -if (x_734 == 0) +lean_object* x_732; lean_object* x_733; lean_object* x_734; +x_732 = lean_ctor_get(x_731, 0); +lean_inc(x_732); +x_733 = lean_ctor_get(x_731, 1); +lean_inc(x_733); +lean_dec(x_731); +x_734 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_512, x_732, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_733); +return x_734; +} +else { -lean_object* x_735; lean_object* x_736; lean_object* x_737; uint8_t x_738; -x_735 = lean_ctor_get(x_733, 0); -x_736 = lean_ctor_get(x_733, 1); -x_737 = l_Lean_Elab_Term_SavedState_restore(x_728, x_9, x_10, x_11, x_12, x_13, x_14, x_736); +uint8_t x_735; +lean_dec(x_512); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_738 = !lean_is_exclusive(x_737); -if (x_738 == 0) -{ -lean_object* x_739; lean_object* x_740; lean_object* x_741; -x_739 = lean_ctor_get(x_737, 1); -x_740 = lean_ctor_get(x_737, 0); -lean_dec(x_740); -lean_ctor_set_tag(x_737, 1); -lean_ctor_set(x_737, 1, x_735); -lean_ctor_set(x_737, 0, x_731); -x_741 = lean_array_push(x_8, x_737); -lean_ctor_set(x_733, 1, x_739); -lean_ctor_set(x_733, 0, x_741); -return x_733; -} -else -{ -lean_object* x_742; lean_object* x_743; lean_object* x_744; -x_742 = lean_ctor_get(x_737, 1); -lean_inc(x_742); -lean_dec(x_737); -x_743 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_743, 0, x_731); -lean_ctor_set(x_743, 1, x_735); -x_744 = lean_array_push(x_8, x_743); -lean_ctor_set(x_733, 1, x_742); -lean_ctor_set(x_733, 0, x_744); -return x_733; -} -} -else -{ -lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; -x_745 = lean_ctor_get(x_733, 0); -x_746 = lean_ctor_get(x_733, 1); -lean_inc(x_746); -lean_inc(x_745); -lean_dec(x_733); -x_747 = l_Lean_Elab_Term_SavedState_restore(x_728, x_9, x_10, x_11, x_12, x_13, x_14, x_746); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_748 = lean_ctor_get(x_747, 1); -lean_inc(x_748); -if (lean_is_exclusive(x_747)) { - lean_ctor_release(x_747, 0); - lean_ctor_release(x_747, 1); - x_749 = x_747; -} else { - lean_dec_ref(x_747); - x_749 = lean_box(0); -} -if (lean_is_scalar(x_749)) { - x_750 = lean_alloc_ctor(1, 2, 0); -} else { - x_750 = x_749; - lean_ctor_set_tag(x_750, 1); -} -lean_ctor_set(x_750, 0, x_731); -lean_ctor_set(x_750, 1, x_745); -x_751 = lean_array_push(x_8, x_750); -x_752 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_752, 0, x_751); -lean_ctor_set(x_752, 1, x_748); -return x_752; -} -} -else -{ -lean_object* x_753; lean_object* x_754; uint8_t x_755; lean_dec(x_8); -x_753 = lean_ctor_get(x_731, 0); -lean_inc(x_753); -x_754 = l_Lean_Elab_postponeExceptionId; -x_755 = lean_nat_dec_eq(x_753, x_754); -lean_dec(x_753); -if (x_755 == 0) +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_735 = !lean_is_exclusive(x_731); +if (x_735 == 0) { -lean_object* x_756; -lean_dec(x_728); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_730)) { - x_756 = lean_alloc_ctor(1, 2, 0); -} else { - x_756 = x_730; - lean_ctor_set_tag(x_756, 1); -} -lean_ctor_set(x_756, 0, x_731); -lean_ctor_set(x_756, 1, x_732); -return x_756; +return x_731; } else { -lean_object* x_757; uint8_t x_758; -lean_dec(x_730); -x_757 = l_Lean_Elab_Term_SavedState_restore(x_728, x_9, x_10, x_11, x_12, x_13, x_14, x_732); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_758 = !lean_is_exclusive(x_757); -if (x_758 == 0) +lean_object* x_736; lean_object* x_737; lean_object* x_738; +x_736 = lean_ctor_get(x_731, 0); +x_737 = lean_ctor_get(x_731, 1); +lean_inc(x_737); +lean_inc(x_736); +lean_dec(x_731); +x_738 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_738, 0, x_736); +lean_ctor_set(x_738, 1, x_737); +return x_738; +} +} +} +} +} +block_488: { -lean_object* x_759; -x_759 = lean_ctor_get(x_757, 0); -lean_dec(x_759); -lean_ctor_set_tag(x_757, 1); -lean_ctor_set(x_757, 0, x_731); -return x_757; -} -else -{ -lean_object* x_760; lean_object* x_761; -x_760 = lean_ctor_get(x_757, 1); -lean_inc(x_760); -lean_dec(x_757); -x_761 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_761, 0, x_731); -lean_ctor_set(x_761, 1, x_760); -return x_761; -} -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; -x_791 = lean_unsigned_to_nat(2u); -x_792 = l_Lean_Syntax_getArg(x_1, x_791); +lean_object* x_469; lean_object* x_470; uint8_t x_471; +lean_dec(x_468); +x_469 = lean_unsigned_to_nat(1u); +x_470 = l_Lean_Syntax_getArg(x_1, x_469); lean_dec(x_1); -x_793 = l_Lean_Syntax_getArgs(x_792); -lean_dec(x_792); -x_794 = l_Array_empty___closed__1; -x_795 = l_Array_foldlStepMAux___main___at_Lean_Syntax_getSepArgs___spec__1(x_791, x_793, x_426, x_794); -lean_dec(x_793); -x_796 = l_Lean_Elab_Term_elabExplicitUnivs(x_795, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_795); -if (lean_obj_tag(x_796) == 0) +lean_inc(x_470); +x_471 = l_Lean_Syntax_isOfKind(x_470, x_466); +if (x_471 == 0) { -lean_object* x_797; lean_object* x_798; lean_object* x_799; -x_797 = lean_ctor_get(x_796, 0); -lean_inc(x_797); -x_798 = lean_ctor_get(x_796, 1); -lean_inc(x_798); -lean_dec(x_796); -x_799 = l___private_Lean_Elab_App_32__elabAppFnId(x_427, x_797, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_798); -return x_799; -} -else +lean_object* x_472; uint8_t x_473; +x_472 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; +lean_inc(x_470); +x_473 = l_Lean_Syntax_isOfKind(x_470, x_472); +if (x_473 == 0) { -uint8_t x_800; -lean_dec(x_427); +lean_object* x_474; +lean_dec(x_470); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -22129,3783 +25551,321 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_800 = !lean_is_exclusive(x_796); -if (x_800 == 0) -{ -return x_796; +x_474 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg(x_15); +return x_474; } else { -lean_object* x_801; lean_object* x_802; lean_object* x_803; -x_801 = lean_ctor_get(x_796, 0); -x_802 = lean_ctor_get(x_796, 1); -lean_inc(x_802); -lean_inc(x_801); -lean_dec(x_796); -x_803 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_803, 0, x_801); -lean_ctor_set(x_803, 1, x_802); -return x_803; -} -} -} -} -} -} -else +lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; +x_475 = l_Lean_Syntax_getArgs(x_470); +x_476 = lean_array_get_size(x_475); +lean_dec(x_475); +x_477 = lean_unsigned_to_nat(4u); +x_478 = lean_nat_dec_eq(x_476, x_477); +lean_dec(x_476); +if (x_478 == 0) { -lean_object* x_812; lean_object* x_813; -x_812 = lean_box(0); -x_813 = l___private_Lean_Elab_App_32__elabAppFnId(x_1, x_812, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_813; -} -} -else -{ -lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; -x_814 = lean_unsigned_to_nat(0u); -x_815 = l_Lean_Syntax_getArg(x_1, x_814); -x_816 = l_Lean_identKind___closed__2; -x_817 = l_Lean_Syntax_isOfKind(x_815, x_816); -if (x_817 == 0) -{ -uint8_t x_818; uint8_t x_819; -x_818 = l_List_isEmpty___rarg(x_2); -if (x_7 == 0) -{ -uint8_t x_1178; -x_1178 = 1; -x_819 = x_1178; -goto block_1177; -} -else -{ -uint8_t x_1179; -x_1179 = 0; -x_819 = x_1179; -goto block_1177; -} -block_1177: -{ -if (x_818 == 0) -{ -lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_857; lean_object* x_858; lean_object* x_880; -x_820 = lean_box(0); -x_821 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_822 = lean_ctor_get(x_821, 0); -lean_inc(x_822); -x_823 = lean_ctor_get(x_821, 1); -lean_inc(x_823); -if (lean_is_exclusive(x_821)) { - lean_ctor_release(x_821, 0); - lean_ctor_release(x_821, 1); - x_824 = x_821; -} else { - lean_dec_ref(x_821); - x_824 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_880 = l_Lean_Elab_Term_elabTerm(x_1, x_820, x_819, x_9, x_10, x_11, x_12, x_13, x_14, x_823); -if (lean_obj_tag(x_880) == 0) -{ -lean_object* x_881; lean_object* x_882; lean_object* x_883; -x_881 = lean_ctor_get(x_880, 0); -lean_inc(x_881); -x_882 = lean_ctor_get(x_880, 1); -lean_inc(x_882); -lean_dec(x_880); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_883 = l___private_Lean_Elab_App_31__elabAppLVals(x_881, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_882); -if (lean_obj_tag(x_883) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_884; lean_object* x_885; -lean_dec(x_824); -lean_dec(x_5); -x_884 = lean_ctor_get(x_883, 0); -lean_inc(x_884); -x_885 = lean_ctor_get(x_883, 1); -lean_inc(x_885); -lean_dec(x_883); -x_857 = x_884; -x_858 = x_885; -goto block_879; -} -else -{ -lean_object* x_886; lean_object* x_887; lean_object* x_888; -x_886 = lean_ctor_get(x_883, 0); -lean_inc(x_886); -x_887 = lean_ctor_get(x_883, 1); -lean_inc(x_887); -lean_dec(x_883); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_888 = l_Lean_Elab_Term_ensureHasType(x_5, x_886, x_820, x_9, x_10, x_11, x_12, x_13, x_14, x_887); -if (lean_obj_tag(x_888) == 0) -{ -lean_object* x_889; lean_object* x_890; -lean_dec(x_824); -x_889 = lean_ctor_get(x_888, 0); -lean_inc(x_889); -x_890 = lean_ctor_get(x_888, 1); -lean_inc(x_890); -lean_dec(x_888); -x_857 = x_889; -x_858 = x_890; -goto block_879; -} -else -{ -lean_object* x_891; lean_object* x_892; -x_891 = lean_ctor_get(x_888, 0); -lean_inc(x_891); -x_892 = lean_ctor_get(x_888, 1); -lean_inc(x_892); -lean_dec(x_888); -x_825 = x_891; -x_826 = x_892; -goto block_856; -} -} -} -else -{ -lean_object* x_893; lean_object* x_894; -lean_dec(x_5); -x_893 = lean_ctor_get(x_883, 0); -lean_inc(x_893); -x_894 = lean_ctor_get(x_883, 1); -lean_inc(x_894); -lean_dec(x_883); -x_825 = x_893; -x_826 = x_894; -goto block_856; -} -} -else -{ -lean_object* x_895; lean_object* x_896; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_895 = lean_ctor_get(x_880, 0); -lean_inc(x_895); -x_896 = lean_ctor_get(x_880, 1); -lean_inc(x_896); -lean_dec(x_880); -x_825 = x_895; -x_826 = x_896; -goto block_856; -} -block_856: -{ -if (lean_obj_tag(x_825) == 0) -{ -lean_object* x_827; uint8_t x_828; -lean_dec(x_824); -x_827 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_826); -x_828 = !lean_is_exclusive(x_827); -if (x_828 == 0) -{ -lean_object* x_829; lean_object* x_830; lean_object* x_831; uint8_t x_832; -x_829 = lean_ctor_get(x_827, 0); -x_830 = lean_ctor_get(x_827, 1); -x_831 = l_Lean_Elab_Term_SavedState_restore(x_822, x_9, x_10, x_11, x_12, x_13, x_14, x_830); +lean_object* x_479; +lean_dec(x_470); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_832 = !lean_is_exclusive(x_831); -if (x_832 == 0) -{ -lean_object* x_833; lean_object* x_834; lean_object* x_835; -x_833 = lean_ctor_get(x_831, 1); -x_834 = lean_ctor_get(x_831, 0); -lean_dec(x_834); -lean_ctor_set_tag(x_831, 1); -lean_ctor_set(x_831, 1, x_829); -lean_ctor_set(x_831, 0, x_825); -x_835 = lean_array_push(x_8, x_831); -lean_ctor_set(x_827, 1, x_833); -lean_ctor_set(x_827, 0, x_835); -return x_827; -} -else -{ -lean_object* x_836; lean_object* x_837; lean_object* x_838; -x_836 = lean_ctor_get(x_831, 1); -lean_inc(x_836); -lean_dec(x_831); -x_837 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_837, 0, x_825); -lean_ctor_set(x_837, 1, x_829); -x_838 = lean_array_push(x_8, x_837); -lean_ctor_set(x_827, 1, x_836); -lean_ctor_set(x_827, 0, x_838); -return x_827; -} -} -else -{ -lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; -x_839 = lean_ctor_get(x_827, 0); -x_840 = lean_ctor_get(x_827, 1); -lean_inc(x_840); -lean_inc(x_839); -lean_dec(x_827); -x_841 = l_Lean_Elab_Term_SavedState_restore(x_822, x_9, x_10, x_11, x_12, x_13, x_14, x_840); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_842 = lean_ctor_get(x_841, 1); -lean_inc(x_842); -if (lean_is_exclusive(x_841)) { - lean_ctor_release(x_841, 0); - lean_ctor_release(x_841, 1); - x_843 = x_841; -} else { - lean_dec_ref(x_841); - x_843 = lean_box(0); -} -if (lean_is_scalar(x_843)) { - x_844 = lean_alloc_ctor(1, 2, 0); -} else { - x_844 = x_843; - lean_ctor_set_tag(x_844, 1); -} -lean_ctor_set(x_844, 0, x_825); -lean_ctor_set(x_844, 1, x_839); -x_845 = lean_array_push(x_8, x_844); -x_846 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_846, 0, x_845); -lean_ctor_set(x_846, 1, x_842); -return x_846; -} -} -else -{ -lean_object* x_847; lean_object* x_848; uint8_t x_849; lean_dec(x_8); -x_847 = lean_ctor_get(x_825, 0); -lean_inc(x_847); -x_848 = l_Lean_Elab_postponeExceptionId; -x_849 = lean_nat_dec_eq(x_847, x_848); -lean_dec(x_847); -if (x_849 == 0) -{ -lean_object* x_850; -lean_dec(x_822); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_824)) { - x_850 = lean_alloc_ctor(1, 2, 0); -} else { - x_850 = x_824; - lean_ctor_set_tag(x_850, 1); -} -lean_ctor_set(x_850, 0, x_825); -lean_ctor_set(x_850, 1, x_826); -return x_850; -} -else -{ -lean_object* x_851; uint8_t x_852; -lean_dec(x_824); -x_851 = l_Lean_Elab_Term_SavedState_restore(x_822, x_9, x_10, x_11, x_12, x_13, x_14, x_826); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_852 = !lean_is_exclusive(x_851); -if (x_852 == 0) -{ -lean_object* x_853; -x_853 = lean_ctor_get(x_851, 0); -lean_dec(x_853); -lean_ctor_set_tag(x_851, 1); -lean_ctor_set(x_851, 0, x_825); -return x_851; -} -else -{ -lean_object* x_854; lean_object* x_855; -x_854 = lean_ctor_get(x_851, 1); -lean_inc(x_854); -lean_dec(x_851); -x_855 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_855, 0, x_825); -lean_ctor_set(x_855, 1, x_854); -return x_855; -} -} -} -} -block_879: -{ -lean_object* x_859; uint8_t x_860; -x_859 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_858); -x_860 = !lean_is_exclusive(x_859); -if (x_860 == 0) -{ -lean_object* x_861; lean_object* x_862; lean_object* x_863; uint8_t x_864; -x_861 = lean_ctor_get(x_859, 0); -x_862 = lean_ctor_get(x_859, 1); -x_863 = l_Lean_Elab_Term_SavedState_restore(x_822, x_9, x_10, x_11, x_12, x_13, x_14, x_862); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_864 = !lean_is_exclusive(x_863); -if (x_864 == 0) -{ -lean_object* x_865; lean_object* x_866; lean_object* x_867; -x_865 = lean_ctor_get(x_863, 1); -x_866 = lean_ctor_get(x_863, 0); -lean_dec(x_866); -lean_ctor_set(x_863, 1, x_861); -lean_ctor_set(x_863, 0, x_857); -x_867 = lean_array_push(x_8, x_863); -lean_ctor_set(x_859, 1, x_865); -lean_ctor_set(x_859, 0, x_867); -return x_859; -} -else -{ -lean_object* x_868; lean_object* x_869; lean_object* x_870; -x_868 = lean_ctor_get(x_863, 1); -lean_inc(x_868); -lean_dec(x_863); -x_869 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_869, 0, x_857); -lean_ctor_set(x_869, 1, x_861); -x_870 = lean_array_push(x_8, x_869); -lean_ctor_set(x_859, 1, x_868); -lean_ctor_set(x_859, 0, x_870); -return x_859; -} -} -else -{ -lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; -x_871 = lean_ctor_get(x_859, 0); -x_872 = lean_ctor_get(x_859, 1); -lean_inc(x_872); -lean_inc(x_871); -lean_dec(x_859); -x_873 = l_Lean_Elab_Term_SavedState_restore(x_822, x_9, x_10, x_11, x_12, x_13, x_14, x_872); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_874 = lean_ctor_get(x_873, 1); -lean_inc(x_874); -if (lean_is_exclusive(x_873)) { - lean_ctor_release(x_873, 0); - lean_ctor_release(x_873, 1); - x_875 = x_873; -} else { - lean_dec_ref(x_873); - x_875 = lean_box(0); -} -if (lean_is_scalar(x_875)) { - x_876 = lean_alloc_ctor(0, 2, 0); -} else { - x_876 = x_875; -} -lean_ctor_set(x_876, 0, x_857); -lean_ctor_set(x_876, 1, x_871); -x_877 = lean_array_push(x_8, x_876); -x_878 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_878, 0, x_877); -lean_ctor_set(x_878, 1, x_874); -return x_878; -} -} -} -else -{ -uint8_t x_897; -x_897 = l_Array_isEmpty___rarg(x_3); -if (x_897 == 0) -{ -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_935; lean_object* x_936; lean_object* x_958; -x_898 = lean_box(0); -x_899 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_900 = lean_ctor_get(x_899, 0); -lean_inc(x_900); -x_901 = lean_ctor_get(x_899, 1); -lean_inc(x_901); -if (lean_is_exclusive(x_899)) { - lean_ctor_release(x_899, 0); - lean_ctor_release(x_899, 1); - x_902 = x_899; -} else { - lean_dec_ref(x_899); - x_902 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_958 = l_Lean_Elab_Term_elabTerm(x_1, x_898, x_819, x_9, x_10, x_11, x_12, x_13, x_14, x_901); -if (lean_obj_tag(x_958) == 0) -{ -lean_object* x_959; lean_object* x_960; lean_object* x_961; -x_959 = lean_ctor_get(x_958, 0); -lean_inc(x_959); -x_960 = lean_ctor_get(x_958, 1); -lean_inc(x_960); -lean_dec(x_958); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_961 = l___private_Lean_Elab_App_31__elabAppLVals(x_959, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_960); -if (lean_obj_tag(x_961) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_962; lean_object* x_963; -lean_dec(x_902); -lean_dec(x_5); -x_962 = lean_ctor_get(x_961, 0); -lean_inc(x_962); -x_963 = lean_ctor_get(x_961, 1); -lean_inc(x_963); -lean_dec(x_961); -x_935 = x_962; -x_936 = x_963; -goto block_957; -} -else -{ -lean_object* x_964; lean_object* x_965; lean_object* x_966; -x_964 = lean_ctor_get(x_961, 0); -lean_inc(x_964); -x_965 = lean_ctor_get(x_961, 1); -lean_inc(x_965); -lean_dec(x_961); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_966 = l_Lean_Elab_Term_ensureHasType(x_5, x_964, x_898, x_9, x_10, x_11, x_12, x_13, x_14, x_965); -if (lean_obj_tag(x_966) == 0) -{ -lean_object* x_967; lean_object* x_968; -lean_dec(x_902); -x_967 = lean_ctor_get(x_966, 0); -lean_inc(x_967); -x_968 = lean_ctor_get(x_966, 1); -lean_inc(x_968); -lean_dec(x_966); -x_935 = x_967; -x_936 = x_968; -goto block_957; -} -else -{ -lean_object* x_969; lean_object* x_970; -x_969 = lean_ctor_get(x_966, 0); -lean_inc(x_969); -x_970 = lean_ctor_get(x_966, 1); -lean_inc(x_970); -lean_dec(x_966); -x_903 = x_969; -x_904 = x_970; -goto block_934; -} -} -} -else -{ -lean_object* x_971; lean_object* x_972; -lean_dec(x_5); -x_971 = lean_ctor_get(x_961, 0); -lean_inc(x_971); -x_972 = lean_ctor_get(x_961, 1); -lean_inc(x_972); -lean_dec(x_961); -x_903 = x_971; -x_904 = x_972; -goto block_934; -} -} -else -{ -lean_object* x_973; lean_object* x_974; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_973 = lean_ctor_get(x_958, 0); -lean_inc(x_973); -x_974 = lean_ctor_get(x_958, 1); -lean_inc(x_974); -lean_dec(x_958); -x_903 = x_973; -x_904 = x_974; -goto block_934; +x_479 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg(x_15); +return x_479; } -block_934: +else { -if (lean_obj_tag(x_903) == 0) +lean_object* x_480; lean_object* x_481; uint8_t x_482; +x_480 = lean_unsigned_to_nat(0u); +x_481 = l_Lean_Syntax_getArg(x_470, x_480); +x_482 = l_Lean_Syntax_isOfKind(x_481, x_466); +if (x_482 == 0) { -lean_object* x_905; uint8_t x_906; -lean_dec(x_902); -x_905 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_904); -x_906 = !lean_is_exclusive(x_905); -if (x_906 == 0) -{ -lean_object* x_907; lean_object* x_908; lean_object* x_909; uint8_t x_910; -x_907 = lean_ctor_get(x_905, 0); -x_908 = lean_ctor_get(x_905, 1); -x_909 = l_Lean_Elab_Term_SavedState_restore(x_900, x_9, x_10, x_11, x_12, x_13, x_14, x_908); +lean_object* x_483; +lean_dec(x_470); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_910 = !lean_is_exclusive(x_909); -if (x_910 == 0) -{ -lean_object* x_911; lean_object* x_912; lean_object* x_913; -x_911 = lean_ctor_get(x_909, 1); -x_912 = lean_ctor_get(x_909, 0); -lean_dec(x_912); -lean_ctor_set_tag(x_909, 1); -lean_ctor_set(x_909, 1, x_907); -lean_ctor_set(x_909, 0, x_903); -x_913 = lean_array_push(x_8, x_909); -lean_ctor_set(x_905, 1, x_911); -lean_ctor_set(x_905, 0, x_913); -return x_905; -} -else -{ -lean_object* x_914; lean_object* x_915; lean_object* x_916; -x_914 = lean_ctor_get(x_909, 1); -lean_inc(x_914); -lean_dec(x_909); -x_915 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_915, 0, x_903); -lean_ctor_set(x_915, 1, x_907); -x_916 = lean_array_push(x_8, x_915); -lean_ctor_set(x_905, 1, x_914); -lean_ctor_set(x_905, 0, x_916); -return x_905; -} -} -else -{ -lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; -x_917 = lean_ctor_get(x_905, 0); -x_918 = lean_ctor_get(x_905, 1); -lean_inc(x_918); -lean_inc(x_917); -lean_dec(x_905); -x_919 = l_Lean_Elab_Term_SavedState_restore(x_900, x_9, x_10, x_11, x_12, x_13, x_14, x_918); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_920 = lean_ctor_get(x_919, 1); -lean_inc(x_920); -if (lean_is_exclusive(x_919)) { - lean_ctor_release(x_919, 0); - lean_ctor_release(x_919, 1); - x_921 = x_919; -} else { - lean_dec_ref(x_919); - x_921 = lean_box(0); -} -if (lean_is_scalar(x_921)) { - x_922 = lean_alloc_ctor(1, 2, 0); -} else { - x_922 = x_921; - lean_ctor_set_tag(x_922, 1); -} -lean_ctor_set(x_922, 0, x_903); -lean_ctor_set(x_922, 1, x_917); -x_923 = lean_array_push(x_8, x_922); -x_924 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_924, 0, x_923); -lean_ctor_set(x_924, 1, x_920); -return x_924; -} -} -else -{ -lean_object* x_925; lean_object* x_926; uint8_t x_927; lean_dec(x_8); -x_925 = lean_ctor_get(x_903, 0); -lean_inc(x_925); -x_926 = l_Lean_Elab_postponeExceptionId; -x_927 = lean_nat_dec_eq(x_925, x_926); -lean_dec(x_925); -if (x_927 == 0) -{ -lean_object* x_928; -lean_dec(x_900); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_902)) { - x_928 = lean_alloc_ctor(1, 2, 0); -} else { - x_928 = x_902; - lean_ctor_set_tag(x_928, 1); -} -lean_ctor_set(x_928, 0, x_903); -lean_ctor_set(x_928, 1, x_904); -return x_928; -} -else -{ -lean_object* x_929; uint8_t x_930; -lean_dec(x_902); -x_929 = l_Lean_Elab_Term_SavedState_restore(x_900, x_9, x_10, x_11, x_12, x_13, x_14, x_904); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_930 = !lean_is_exclusive(x_929); -if (x_930 == 0) -{ -lean_object* x_931; -x_931 = lean_ctor_get(x_929, 0); -lean_dec(x_931); -lean_ctor_set_tag(x_929, 1); -lean_ctor_set(x_929, 0, x_903); -return x_929; -} -else -{ -lean_object* x_932; lean_object* x_933; -x_932 = lean_ctor_get(x_929, 1); -lean_inc(x_932); -lean_dec(x_929); -x_933 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_933, 0, x_903); -lean_ctor_set(x_933, 1, x_932); -return x_933; -} -} -} -} -block_957: -{ -lean_object* x_937; uint8_t x_938; -x_937 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_936); -x_938 = !lean_is_exclusive(x_937); -if (x_938 == 0) -{ -lean_object* x_939; lean_object* x_940; lean_object* x_941; uint8_t x_942; -x_939 = lean_ctor_get(x_937, 0); -x_940 = lean_ctor_get(x_937, 1); -x_941 = l_Lean_Elab_Term_SavedState_restore(x_900, x_9, x_10, x_11, x_12, x_13, x_14, x_940); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_942 = !lean_is_exclusive(x_941); -if (x_942 == 0) -{ -lean_object* x_943; lean_object* x_944; lean_object* x_945; -x_943 = lean_ctor_get(x_941, 1); -x_944 = lean_ctor_get(x_941, 0); -lean_dec(x_944); -lean_ctor_set(x_941, 1, x_939); -lean_ctor_set(x_941, 0, x_935); -x_945 = lean_array_push(x_8, x_941); -lean_ctor_set(x_937, 1, x_943); -lean_ctor_set(x_937, 0, x_945); -return x_937; -} -else -{ -lean_object* x_946; lean_object* x_947; lean_object* x_948; -x_946 = lean_ctor_get(x_941, 1); -lean_inc(x_946); -lean_dec(x_941); -x_947 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_947, 0, x_935); -lean_ctor_set(x_947, 1, x_939); -x_948 = lean_array_push(x_8, x_947); -lean_ctor_set(x_937, 1, x_946); -lean_ctor_set(x_937, 0, x_948); -return x_937; -} -} -else -{ -lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; -x_949 = lean_ctor_get(x_937, 0); -x_950 = lean_ctor_get(x_937, 1); -lean_inc(x_950); -lean_inc(x_949); -lean_dec(x_937); -x_951 = l_Lean_Elab_Term_SavedState_restore(x_900, x_9, x_10, x_11, x_12, x_13, x_14, x_950); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_952 = lean_ctor_get(x_951, 1); -lean_inc(x_952); -if (lean_is_exclusive(x_951)) { - lean_ctor_release(x_951, 0); - lean_ctor_release(x_951, 1); - x_953 = x_951; -} else { - lean_dec_ref(x_951); - x_953 = lean_box(0); -} -if (lean_is_scalar(x_953)) { - x_954 = lean_alloc_ctor(0, 2, 0); -} else { - x_954 = x_953; -} -lean_ctor_set(x_954, 0, x_935); -lean_ctor_set(x_954, 1, x_949); -x_955 = lean_array_push(x_8, x_954); -x_956 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_956, 0, x_955); -lean_ctor_set(x_956, 1, x_952); -return x_956; -} -} -} -else -{ -uint8_t x_975; -x_975 = l_Array_isEmpty___rarg(x_4); -if (x_975 == 0) -{ -lean_object* x_976; 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_1013; lean_object* x_1014; lean_object* x_1036; -x_976 = lean_box(0); -x_977 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_978 = lean_ctor_get(x_977, 0); -lean_inc(x_978); -x_979 = lean_ctor_get(x_977, 1); -lean_inc(x_979); -if (lean_is_exclusive(x_977)) { - lean_ctor_release(x_977, 0); - lean_ctor_release(x_977, 1); - x_980 = x_977; -} else { - lean_dec_ref(x_977); - x_980 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1036 = l_Lean_Elab_Term_elabTerm(x_1, x_976, x_819, x_9, x_10, x_11, x_12, x_13, x_14, x_979); -if (lean_obj_tag(x_1036) == 0) -{ -lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; -x_1037 = lean_ctor_get(x_1036, 0); -lean_inc(x_1037); -x_1038 = lean_ctor_get(x_1036, 1); -lean_inc(x_1038); -lean_dec(x_1036); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_1039 = l___private_Lean_Elab_App_31__elabAppLVals(x_1037, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1038); -if (lean_obj_tag(x_1039) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_1040; lean_object* x_1041; -lean_dec(x_980); -lean_dec(x_5); -x_1040 = lean_ctor_get(x_1039, 0); -lean_inc(x_1040); -x_1041 = lean_ctor_get(x_1039, 1); -lean_inc(x_1041); -lean_dec(x_1039); -x_1013 = x_1040; -x_1014 = x_1041; -goto block_1035; -} -else -{ -lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; -x_1042 = lean_ctor_get(x_1039, 0); -lean_inc(x_1042); -x_1043 = lean_ctor_get(x_1039, 1); -lean_inc(x_1043); -lean_dec(x_1039); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1044 = l_Lean_Elab_Term_ensureHasType(x_5, x_1042, x_976, x_9, x_10, x_11, x_12, x_13, x_14, x_1043); -if (lean_obj_tag(x_1044) == 0) -{ -lean_object* x_1045; lean_object* x_1046; -lean_dec(x_980); -x_1045 = lean_ctor_get(x_1044, 0); -lean_inc(x_1045); -x_1046 = lean_ctor_get(x_1044, 1); -lean_inc(x_1046); -lean_dec(x_1044); -x_1013 = x_1045; -x_1014 = x_1046; -goto block_1035; -} -else -{ -lean_object* x_1047; lean_object* x_1048; -x_1047 = lean_ctor_get(x_1044, 0); -lean_inc(x_1047); -x_1048 = lean_ctor_get(x_1044, 1); -lean_inc(x_1048); -lean_dec(x_1044); -x_981 = x_1047; -x_982 = x_1048; -goto block_1012; -} -} -} -else -{ -lean_object* x_1049; lean_object* x_1050; -lean_dec(x_5); -x_1049 = lean_ctor_get(x_1039, 0); -lean_inc(x_1049); -x_1050 = lean_ctor_get(x_1039, 1); -lean_inc(x_1050); -lean_dec(x_1039); -x_981 = x_1049; -x_982 = x_1050; -goto block_1012; -} -} -else -{ -lean_object* x_1051; lean_object* x_1052; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1051 = lean_ctor_get(x_1036, 0); -lean_inc(x_1051); -x_1052 = lean_ctor_get(x_1036, 1); +x_483 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___rarg(x_15); +return x_483; +} +else +{ +uint8_t x_484; +x_484 = 1; +x_1 = x_470; +x_6 = x_484; +goto _start; +} +} +} +} +else +{ +uint8_t x_486; +x_486 = 1; +x_1 = x_470; +x_6 = x_486; +goto _start; +} +} +} +else +{ +lean_object* x_739; lean_object* x_740; +x_739 = lean_box(0); +x_740 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_1, x_739, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_740; +} +} +block_772: +{ +lean_object* x_743; uint8_t x_744; +lean_dec(x_742); +x_743 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; +lean_inc(x_1); +x_744 = l_Lean_Syntax_isOfKind(x_1, x_743); +if (x_744 == 0) +{ +lean_object* x_745; uint8_t x_746; +x_745 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; +lean_inc(x_1); +x_746 = l_Lean_Syntax_isOfKind(x_1, x_745); +if (x_746 == 0) +{ +lean_object* x_747; +x_747 = lean_box(0); +x_465 = x_747; +goto block_741; +} +else +{ +lean_object* x_748; lean_object* x_749; lean_object* x_750; uint8_t x_751; +x_748 = l_Lean_Syntax_getArgs(x_1); +x_749 = lean_array_get_size(x_748); +lean_dec(x_748); +x_750 = lean_unsigned_to_nat(3u); +x_751 = lean_nat_dec_eq(x_749, x_750); +lean_dec(x_749); +if (x_751 == 0) +{ +lean_object* x_752; +x_752 = lean_box(0); +x_465 = x_752; +goto block_741; +} +else +{ +lean_object* x_753; +x_753 = lean_box(0); +x_230 = x_753; +goto block_449; +} +} +} +else +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; uint8_t x_757; +x_754 = l_Lean_Syntax_getArgs(x_1); +x_755 = lean_array_get_size(x_754); +lean_dec(x_754); +x_756 = lean_unsigned_to_nat(4u); +x_757 = lean_nat_dec_eq(x_755, x_756); +if (x_757 == 0) +{ +lean_object* x_758; uint8_t x_759; +x_758 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; +lean_inc(x_1); +x_759 = l_Lean_Syntax_isOfKind(x_1, x_758); +if (x_759 == 0) +{ +lean_object* x_760; +lean_dec(x_755); +x_760 = lean_box(0); +x_465 = x_760; +goto block_741; +} +else +{ +lean_object* x_761; uint8_t x_762; +x_761 = lean_unsigned_to_nat(3u); +x_762 = lean_nat_dec_eq(x_755, x_761); +lean_dec(x_755); +if (x_762 == 0) +{ +lean_object* x_763; +x_763 = lean_box(0); +x_465 = x_763; +goto block_741; +} +else +{ +lean_object* x_764; +x_764 = lean_box(0); +x_230 = x_764; +goto block_449; +} +} +} +else +{ +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_dec(x_755); +x_765 = lean_unsigned_to_nat(0u); +x_766 = l_Lean_Syntax_getArg(x_1, x_765); +x_767 = lean_unsigned_to_nat(2u); +x_768 = l_Lean_Syntax_getArg(x_1, x_767); +lean_dec(x_1); +x_769 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_769, 0, x_768); +x_770 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_770, 0, x_769); +lean_ctor_set(x_770, 1, x_2); +x_1 = x_766; +x_2 = x_770; +goto _start; +} +} +} +} +else +{ +lean_object* x_1041; uint8_t x_1042; +x_1041 = l_Lean_Syntax_getArgs(x_1); +x_1042 = !lean_is_exclusive(x_9); +if (x_1042 == 0) +{ +uint8_t x_1043; lean_object* x_1044; lean_object* x_1045; +x_1043 = 0; +lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 1, x_1043); +x_1044 = lean_unsigned_to_nat(0u); +x_1045 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_1041, x_1044, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1041); +lean_dec(x_1); +return x_1045; +} +else +{ +lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; uint8_t x_1054; uint8_t x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; +x_1046 = lean_ctor_get(x_9, 0); +x_1047 = lean_ctor_get(x_9, 1); +x_1048 = lean_ctor_get(x_9, 2); +x_1049 = lean_ctor_get(x_9, 3); +x_1050 = lean_ctor_get(x_9, 4); +x_1051 = lean_ctor_get(x_9, 5); +x_1052 = lean_ctor_get(x_9, 6); +x_1053 = lean_ctor_get(x_9, 7); +x_1054 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); +lean_inc(x_1053); lean_inc(x_1052); -lean_dec(x_1036); -x_981 = x_1051; -x_982 = x_1052; -goto block_1012; -} -block_1012: -{ -if (lean_obj_tag(x_981) == 0) -{ -lean_object* x_983; uint8_t x_984; -lean_dec(x_980); -x_983 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_982); -x_984 = !lean_is_exclusive(x_983); -if (x_984 == 0) -{ -lean_object* x_985; lean_object* x_986; lean_object* x_987; uint8_t x_988; -x_985 = lean_ctor_get(x_983, 0); -x_986 = lean_ctor_get(x_983, 1); -x_987 = l_Lean_Elab_Term_SavedState_restore(x_978, x_9, x_10, x_11, x_12, x_13, x_14, x_986); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); +lean_inc(x_1051); +lean_inc(x_1050); +lean_inc(x_1049); +lean_inc(x_1048); +lean_inc(x_1047); +lean_inc(x_1046); lean_dec(x_9); -x_988 = !lean_is_exclusive(x_987); -if (x_988 == 0) -{ -lean_object* x_989; lean_object* x_990; lean_object* x_991; -x_989 = lean_ctor_get(x_987, 1); -x_990 = lean_ctor_get(x_987, 0); -lean_dec(x_990); -lean_ctor_set_tag(x_987, 1); -lean_ctor_set(x_987, 1, x_985); -lean_ctor_set(x_987, 0, x_981); -x_991 = lean_array_push(x_8, x_987); -lean_ctor_set(x_983, 1, x_989); -lean_ctor_set(x_983, 0, x_991); -return x_983; -} -else -{ -lean_object* x_992; lean_object* x_993; lean_object* x_994; -x_992 = lean_ctor_get(x_987, 1); -lean_inc(x_992); -lean_dec(x_987); -x_993 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_993, 0, x_981); -lean_ctor_set(x_993, 1, x_985); -x_994 = lean_array_push(x_8, x_993); -lean_ctor_set(x_983, 1, x_992); -lean_ctor_set(x_983, 0, x_994); -return x_983; -} -} -else -{ -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_object* x_1001; lean_object* x_1002; -x_995 = lean_ctor_get(x_983, 0); -x_996 = lean_ctor_get(x_983, 1); -lean_inc(x_996); -lean_inc(x_995); -lean_dec(x_983); -x_997 = l_Lean_Elab_Term_SavedState_restore(x_978, x_9, x_10, x_11, x_12, x_13, x_14, x_996); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -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(1, 2, 0); -} else { - x_1000 = x_999; - lean_ctor_set_tag(x_1000, 1); -} -lean_ctor_set(x_1000, 0, x_981); -lean_ctor_set(x_1000, 1, x_995); -x_1001 = lean_array_push(x_8, x_1000); -x_1002 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1002, 0, x_1001); -lean_ctor_set(x_1002, 1, x_998); -return x_1002; -} -} -else -{ -lean_object* x_1003; lean_object* x_1004; uint8_t x_1005; -lean_dec(x_8); -x_1003 = lean_ctor_get(x_981, 0); -lean_inc(x_1003); -x_1004 = l_Lean_Elab_postponeExceptionId; -x_1005 = lean_nat_dec_eq(x_1003, x_1004); -lean_dec(x_1003); -if (x_1005 == 0) -{ -lean_object* x_1006; -lean_dec(x_978); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_980)) { - x_1006 = lean_alloc_ctor(1, 2, 0); -} else { - x_1006 = x_980; - lean_ctor_set_tag(x_1006, 1); -} -lean_ctor_set(x_1006, 0, x_981); -lean_ctor_set(x_1006, 1, x_982); -return x_1006; -} -else -{ -lean_object* x_1007; uint8_t x_1008; -lean_dec(x_980); -x_1007 = l_Lean_Elab_Term_SavedState_restore(x_978, x_9, x_10, x_11, x_12, x_13, x_14, x_982); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1008 = !lean_is_exclusive(x_1007); -if (x_1008 == 0) -{ -lean_object* x_1009; -x_1009 = lean_ctor_get(x_1007, 0); -lean_dec(x_1009); -lean_ctor_set_tag(x_1007, 1); -lean_ctor_set(x_1007, 0, x_981); -return x_1007; -} -else -{ -lean_object* x_1010; lean_object* x_1011; -x_1010 = lean_ctor_get(x_1007, 1); -lean_inc(x_1010); -lean_dec(x_1007); -x_1011 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1011, 0, x_981); -lean_ctor_set(x_1011, 1, x_1010); -return x_1011; -} -} -} -} -block_1035: -{ -lean_object* x_1015; uint8_t x_1016; -x_1015 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1014); -x_1016 = !lean_is_exclusive(x_1015); -if (x_1016 == 0) -{ -lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; uint8_t x_1020; -x_1017 = lean_ctor_get(x_1015, 0); -x_1018 = lean_ctor_get(x_1015, 1); -x_1019 = l_Lean_Elab_Term_SavedState_restore(x_978, x_9, x_10, x_11, x_12, x_13, x_14, x_1018); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1020 = !lean_is_exclusive(x_1019); -if (x_1020 == 0) -{ -lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; -x_1021 = lean_ctor_get(x_1019, 1); -x_1022 = lean_ctor_get(x_1019, 0); -lean_dec(x_1022); -lean_ctor_set(x_1019, 1, x_1017); -lean_ctor_set(x_1019, 0, x_1013); -x_1023 = lean_array_push(x_8, x_1019); -lean_ctor_set(x_1015, 1, x_1021); -lean_ctor_set(x_1015, 0, x_1023); -return x_1015; -} -else -{ -lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; -x_1024 = lean_ctor_get(x_1019, 1); -lean_inc(x_1024); -lean_dec(x_1019); -x_1025 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1025, 0, x_1013); -lean_ctor_set(x_1025, 1, x_1017); -x_1026 = lean_array_push(x_8, x_1025); -lean_ctor_set(x_1015, 1, x_1024); -lean_ctor_set(x_1015, 0, x_1026); -return x_1015; -} -} -else -{ -lean_object* x_1027; 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_object* x_1034; -x_1027 = lean_ctor_get(x_1015, 0); -x_1028 = lean_ctor_get(x_1015, 1); -lean_inc(x_1028); -lean_inc(x_1027); -lean_dec(x_1015); -x_1029 = l_Lean_Elab_Term_SavedState_restore(x_978, x_9, x_10, x_11, x_12, x_13, x_14, x_1028); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1030 = lean_ctor_get(x_1029, 1); -lean_inc(x_1030); -if (lean_is_exclusive(x_1029)) { - lean_ctor_release(x_1029, 0); - lean_ctor_release(x_1029, 1); - x_1031 = x_1029; -} else { - lean_dec_ref(x_1029); - x_1031 = lean_box(0); -} -if (lean_is_scalar(x_1031)) { - x_1032 = lean_alloc_ctor(0, 2, 0); -} else { - x_1032 = x_1031; -} -lean_ctor_set(x_1032, 0, x_1013); -lean_ctor_set(x_1032, 1, x_1027); -x_1033 = lean_array_push(x_8, x_1032); -x_1034 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1034, 0, x_1033); -lean_ctor_set(x_1034, 1, x_1030); -return x_1034; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_7 == 0) -{ -lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; uint8_t x_1089; lean_object* x_1090; -x_1053 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1054 = lean_ctor_get(x_1053, 0); -lean_inc(x_1054); -x_1055 = lean_ctor_get(x_1053, 1); -lean_inc(x_1055); -if (lean_is_exclusive(x_1053)) { - lean_ctor_release(x_1053, 0); - lean_ctor_release(x_1053, 1); - x_1056 = x_1053; -} else { - lean_dec_ref(x_1053); - x_1056 = lean_box(0); -} -x_1089 = 1; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1090 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_1089, x_9, x_10, x_11, x_12, x_13, x_14, x_1055); -if (lean_obj_tag(x_1090) == 0) -{ -lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; uint8_t x_1094; -lean_dec(x_1056); -x_1091 = lean_ctor_get(x_1090, 0); -lean_inc(x_1091); -x_1092 = lean_ctor_get(x_1090, 1); -lean_inc(x_1092); -lean_dec(x_1090); -x_1093 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1092); -x_1094 = !lean_is_exclusive(x_1093); -if (x_1094 == 0) -{ -lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; uint8_t x_1098; -x_1095 = lean_ctor_get(x_1093, 0); -x_1096 = lean_ctor_get(x_1093, 1); -x_1097 = l_Lean_Elab_Term_SavedState_restore(x_1054, x_9, x_10, x_11, x_12, x_13, x_14, x_1096); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1098 = !lean_is_exclusive(x_1097); -if (x_1098 == 0) -{ -lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; -x_1099 = lean_ctor_get(x_1097, 1); -x_1100 = lean_ctor_get(x_1097, 0); -lean_dec(x_1100); -lean_ctor_set(x_1097, 1, x_1095); -lean_ctor_set(x_1097, 0, x_1091); -x_1101 = lean_array_push(x_8, x_1097); -lean_ctor_set(x_1093, 1, x_1099); -lean_ctor_set(x_1093, 0, x_1101); -return x_1093; -} -else -{ -lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; -x_1102 = lean_ctor_get(x_1097, 1); -lean_inc(x_1102); -lean_dec(x_1097); -x_1103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1103, 0, x_1091); -lean_ctor_set(x_1103, 1, x_1095); -x_1104 = lean_array_push(x_8, x_1103); -lean_ctor_set(x_1093, 1, x_1102); -lean_ctor_set(x_1093, 0, x_1104); -return x_1093; -} -} -else -{ -lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; -x_1105 = lean_ctor_get(x_1093, 0); -x_1106 = lean_ctor_get(x_1093, 1); -lean_inc(x_1106); -lean_inc(x_1105); -lean_dec(x_1093); -x_1107 = l_Lean_Elab_Term_SavedState_restore(x_1054, x_9, x_10, x_11, x_12, x_13, x_14, x_1106); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1108 = lean_ctor_get(x_1107, 1); -lean_inc(x_1108); -if (lean_is_exclusive(x_1107)) { - lean_ctor_release(x_1107, 0); - lean_ctor_release(x_1107, 1); - x_1109 = x_1107; -} else { - lean_dec_ref(x_1107); - x_1109 = lean_box(0); -} -if (lean_is_scalar(x_1109)) { - x_1110 = lean_alloc_ctor(0, 2, 0); -} else { - x_1110 = x_1109; -} -lean_ctor_set(x_1110, 0, x_1091); -lean_ctor_set(x_1110, 1, x_1105); -x_1111 = lean_array_push(x_8, x_1110); -x_1112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1112, 0, x_1111); -lean_ctor_set(x_1112, 1, x_1108); -return x_1112; -} -} -else -{ -lean_object* x_1113; lean_object* x_1114; -x_1113 = lean_ctor_get(x_1090, 0); -lean_inc(x_1113); -x_1114 = lean_ctor_get(x_1090, 1); -lean_inc(x_1114); -lean_dec(x_1090); -x_1057 = x_1113; -x_1058 = x_1114; -goto block_1088; -} -block_1088: -{ -if (lean_obj_tag(x_1057) == 0) -{ -lean_object* x_1059; uint8_t x_1060; -lean_dec(x_1056); -x_1059 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1058); -x_1060 = !lean_is_exclusive(x_1059); -if (x_1060 == 0) -{ -lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; uint8_t x_1064; -x_1061 = lean_ctor_get(x_1059, 0); -x_1062 = lean_ctor_get(x_1059, 1); -x_1063 = l_Lean_Elab_Term_SavedState_restore(x_1054, x_9, x_10, x_11, x_12, x_13, x_14, x_1062); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1064 = !lean_is_exclusive(x_1063); -if (x_1064 == 0) -{ -lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; -x_1065 = lean_ctor_get(x_1063, 1); -x_1066 = lean_ctor_get(x_1063, 0); -lean_dec(x_1066); -lean_ctor_set_tag(x_1063, 1); -lean_ctor_set(x_1063, 1, x_1061); -lean_ctor_set(x_1063, 0, x_1057); -x_1067 = lean_array_push(x_8, x_1063); -lean_ctor_set(x_1059, 1, x_1065); -lean_ctor_set(x_1059, 0, x_1067); -return x_1059; -} -else -{ -lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; -x_1068 = lean_ctor_get(x_1063, 1); -lean_inc(x_1068); -lean_dec(x_1063); -x_1069 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1069, 0, x_1057); -lean_ctor_set(x_1069, 1, x_1061); -x_1070 = lean_array_push(x_8, x_1069); -lean_ctor_set(x_1059, 1, x_1068); -lean_ctor_set(x_1059, 0, x_1070); -return x_1059; -} -} -else -{ -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; -x_1071 = lean_ctor_get(x_1059, 0); -x_1072 = lean_ctor_get(x_1059, 1); -lean_inc(x_1072); -lean_inc(x_1071); -lean_dec(x_1059); -x_1073 = l_Lean_Elab_Term_SavedState_restore(x_1054, x_9, x_10, x_11, x_12, x_13, x_14, x_1072); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1074 = lean_ctor_get(x_1073, 1); -lean_inc(x_1074); -if (lean_is_exclusive(x_1073)) { - lean_ctor_release(x_1073, 0); - lean_ctor_release(x_1073, 1); - x_1075 = x_1073; -} else { - lean_dec_ref(x_1073); - x_1075 = lean_box(0); -} -if (lean_is_scalar(x_1075)) { - x_1076 = lean_alloc_ctor(1, 2, 0); -} else { - x_1076 = x_1075; - lean_ctor_set_tag(x_1076, 1); -} -lean_ctor_set(x_1076, 0, x_1057); -lean_ctor_set(x_1076, 1, x_1071); -x_1077 = lean_array_push(x_8, x_1076); -x_1078 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1078, 0, x_1077); -lean_ctor_set(x_1078, 1, x_1074); -return x_1078; -} -} -else -{ -lean_object* x_1079; lean_object* x_1080; uint8_t x_1081; -lean_dec(x_8); -x_1079 = lean_ctor_get(x_1057, 0); -lean_inc(x_1079); -x_1080 = l_Lean_Elab_postponeExceptionId; -x_1081 = lean_nat_dec_eq(x_1079, x_1080); -lean_dec(x_1079); -if (x_1081 == 0) -{ -lean_object* x_1082; -lean_dec(x_1054); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1056)) { - x_1082 = lean_alloc_ctor(1, 2, 0); -} else { - x_1082 = x_1056; - lean_ctor_set_tag(x_1082, 1); -} -lean_ctor_set(x_1082, 0, x_1057); -lean_ctor_set(x_1082, 1, x_1058); -return x_1082; -} -else -{ -lean_object* x_1083; uint8_t x_1084; -lean_dec(x_1056); -x_1083 = l_Lean_Elab_Term_SavedState_restore(x_1054, x_9, x_10, x_11, x_12, x_13, x_14, x_1058); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1084 = !lean_is_exclusive(x_1083); -if (x_1084 == 0) -{ -lean_object* x_1085; -x_1085 = lean_ctor_get(x_1083, 0); -lean_dec(x_1085); -lean_ctor_set_tag(x_1083, 1); -lean_ctor_set(x_1083, 0, x_1057); -return x_1083; -} -else -{ -lean_object* x_1086; lean_object* x_1087; -x_1086 = lean_ctor_get(x_1083, 1); -lean_inc(x_1086); -lean_dec(x_1083); -x_1087 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1087, 0, x_1057); -lean_ctor_set(x_1087, 1, x_1086); -return x_1087; -} -} -} -} -} -else -{ -lean_object* x_1115; 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_1152; -x_1115 = lean_box(0); -x_1116 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1117 = lean_ctor_get(x_1116, 0); -lean_inc(x_1117); -x_1118 = lean_ctor_get(x_1116, 1); -lean_inc(x_1118); -if (lean_is_exclusive(x_1116)) { - lean_ctor_release(x_1116, 0); - lean_ctor_release(x_1116, 1); - x_1119 = x_1116; -} else { - lean_dec_ref(x_1116); - x_1119 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1152 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_819, x_1115, x_9, x_10, x_11, x_12, x_13, x_14, x_1118); -if (lean_obj_tag(x_1152) == 0) -{ -lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; uint8_t x_1156; -lean_dec(x_1119); -x_1153 = lean_ctor_get(x_1152, 0); -lean_inc(x_1153); -x_1154 = lean_ctor_get(x_1152, 1); -lean_inc(x_1154); -lean_dec(x_1152); -x_1155 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1154); -x_1156 = !lean_is_exclusive(x_1155); -if (x_1156 == 0) -{ -lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; uint8_t x_1160; -x_1157 = lean_ctor_get(x_1155, 0); -x_1158 = lean_ctor_get(x_1155, 1); -x_1159 = l_Lean_Elab_Term_SavedState_restore(x_1117, x_9, x_10, x_11, x_12, x_13, x_14, x_1158); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1160 = !lean_is_exclusive(x_1159); -if (x_1160 == 0) -{ -lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; -x_1161 = lean_ctor_get(x_1159, 1); -x_1162 = lean_ctor_get(x_1159, 0); -lean_dec(x_1162); -lean_ctor_set(x_1159, 1, x_1157); -lean_ctor_set(x_1159, 0, x_1153); -x_1163 = lean_array_push(x_8, x_1159); -lean_ctor_set(x_1155, 1, x_1161); -lean_ctor_set(x_1155, 0, x_1163); -return x_1155; -} -else -{ -lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; -x_1164 = lean_ctor_get(x_1159, 1); -lean_inc(x_1164); -lean_dec(x_1159); -x_1165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1165, 0, x_1153); -lean_ctor_set(x_1165, 1, x_1157); -x_1166 = lean_array_push(x_8, x_1165); -lean_ctor_set(x_1155, 1, x_1164); -lean_ctor_set(x_1155, 0, x_1166); -return x_1155; -} -} -else -{ -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; -x_1167 = lean_ctor_get(x_1155, 0); -x_1168 = lean_ctor_get(x_1155, 1); -lean_inc(x_1168); -lean_inc(x_1167); -lean_dec(x_1155); -x_1169 = l_Lean_Elab_Term_SavedState_restore(x_1117, x_9, x_10, x_11, x_12, x_13, x_14, x_1168); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1170 = lean_ctor_get(x_1169, 1); -lean_inc(x_1170); -if (lean_is_exclusive(x_1169)) { - lean_ctor_release(x_1169, 0); - lean_ctor_release(x_1169, 1); - x_1171 = x_1169; -} else { - lean_dec_ref(x_1169); - x_1171 = lean_box(0); -} -if (lean_is_scalar(x_1171)) { - x_1172 = lean_alloc_ctor(0, 2, 0); -} else { - x_1172 = x_1171; -} -lean_ctor_set(x_1172, 0, x_1153); -lean_ctor_set(x_1172, 1, x_1167); -x_1173 = lean_array_push(x_8, x_1172); -x_1174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1174, 0, x_1173); -lean_ctor_set(x_1174, 1, x_1170); -return x_1174; -} -} -else -{ -lean_object* x_1175; lean_object* x_1176; -x_1175 = lean_ctor_get(x_1152, 0); -lean_inc(x_1175); -x_1176 = lean_ctor_get(x_1152, 1); -lean_inc(x_1176); -lean_dec(x_1152); -x_1120 = x_1175; -x_1121 = x_1176; -goto block_1151; -} -block_1151: -{ -if (lean_obj_tag(x_1120) == 0) -{ -lean_object* x_1122; uint8_t x_1123; -lean_dec(x_1119); -x_1122 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1121); -x_1123 = !lean_is_exclusive(x_1122); -if (x_1123 == 0) -{ -lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; uint8_t x_1127; -x_1124 = lean_ctor_get(x_1122, 0); -x_1125 = lean_ctor_get(x_1122, 1); -x_1126 = l_Lean_Elab_Term_SavedState_restore(x_1117, x_9, x_10, x_11, x_12, x_13, x_14, x_1125); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1127 = !lean_is_exclusive(x_1126); -if (x_1127 == 0) -{ -lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; -x_1128 = lean_ctor_get(x_1126, 1); -x_1129 = lean_ctor_get(x_1126, 0); -lean_dec(x_1129); -lean_ctor_set_tag(x_1126, 1); -lean_ctor_set(x_1126, 1, x_1124); -lean_ctor_set(x_1126, 0, x_1120); -x_1130 = lean_array_push(x_8, x_1126); -lean_ctor_set(x_1122, 1, x_1128); -lean_ctor_set(x_1122, 0, x_1130); -return x_1122; -} -else -{ -lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; -x_1131 = lean_ctor_get(x_1126, 1); -lean_inc(x_1131); -lean_dec(x_1126); -x_1132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1132, 0, x_1120); -lean_ctor_set(x_1132, 1, x_1124); -x_1133 = lean_array_push(x_8, x_1132); -lean_ctor_set(x_1122, 1, x_1131); -lean_ctor_set(x_1122, 0, x_1133); -return x_1122; -} -} -else -{ -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; -x_1134 = lean_ctor_get(x_1122, 0); -x_1135 = lean_ctor_get(x_1122, 1); -lean_inc(x_1135); -lean_inc(x_1134); -lean_dec(x_1122); -x_1136 = l_Lean_Elab_Term_SavedState_restore(x_1117, x_9, x_10, x_11, x_12, x_13, x_14, x_1135); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1137 = lean_ctor_get(x_1136, 1); -lean_inc(x_1137); -if (lean_is_exclusive(x_1136)) { - lean_ctor_release(x_1136, 0); - lean_ctor_release(x_1136, 1); - x_1138 = x_1136; -} else { - lean_dec_ref(x_1136); - x_1138 = lean_box(0); -} -if (lean_is_scalar(x_1138)) { - x_1139 = lean_alloc_ctor(1, 2, 0); -} else { - x_1139 = x_1138; - lean_ctor_set_tag(x_1139, 1); -} -lean_ctor_set(x_1139, 0, x_1120); -lean_ctor_set(x_1139, 1, x_1134); -x_1140 = lean_array_push(x_8, x_1139); -x_1141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1141, 0, x_1140); -lean_ctor_set(x_1141, 1, x_1137); -return x_1141; -} -} -else -{ -lean_object* x_1142; lean_object* x_1143; uint8_t x_1144; -lean_dec(x_8); -x_1142 = lean_ctor_get(x_1120, 0); -lean_inc(x_1142); -x_1143 = l_Lean_Elab_postponeExceptionId; -x_1144 = lean_nat_dec_eq(x_1142, x_1143); -lean_dec(x_1142); -if (x_1144 == 0) -{ -lean_object* x_1145; -lean_dec(x_1117); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1119)) { - x_1145 = lean_alloc_ctor(1, 2, 0); -} else { - x_1145 = x_1119; - lean_ctor_set_tag(x_1145, 1); -} -lean_ctor_set(x_1145, 0, x_1120); -lean_ctor_set(x_1145, 1, x_1121); -return x_1145; -} -else -{ -lean_object* x_1146; uint8_t x_1147; -lean_dec(x_1119); -x_1146 = l_Lean_Elab_Term_SavedState_restore(x_1117, x_9, x_10, x_11, x_12, x_13, x_14, x_1121); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1147 = !lean_is_exclusive(x_1146); -if (x_1147 == 0) -{ -lean_object* x_1148; -x_1148 = lean_ctor_get(x_1146, 0); -lean_dec(x_1148); -lean_ctor_set_tag(x_1146, 1); -lean_ctor_set(x_1146, 0, x_1120); -return x_1146; -} -else -{ -lean_object* x_1149; lean_object* x_1150; -x_1149 = lean_ctor_get(x_1146, 1); -lean_inc(x_1149); -lean_dec(x_1146); -x_1150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1150, 0, x_1120); -lean_ctor_set(x_1150, 1, x_1149); -return x_1150; -} -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_1180; lean_object* x_1181; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +x_1055 = 0; +x_1056 = lean_alloc_ctor(0, 8, 2); +lean_ctor_set(x_1056, 0, x_1046); +lean_ctor_set(x_1056, 1, x_1047); +lean_ctor_set(x_1056, 2, x_1048); +lean_ctor_set(x_1056, 3, x_1049); +lean_ctor_set(x_1056, 4, x_1050); +lean_ctor_set(x_1056, 5, x_1051); +lean_ctor_set(x_1056, 6, x_1052); +lean_ctor_set(x_1056, 7, x_1053); +lean_ctor_set_uint8(x_1056, sizeof(void*)*8, x_1054); +lean_ctor_set_uint8(x_1056, sizeof(void*)*8 + 1, x_1055); +x_1057 = lean_unsigned_to_nat(0u); +x_1058 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_1041, x_1057, x_8, x_1056, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_1041); lean_dec(x_1); -x_1180 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__8; -x_1181 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_1180, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1181; +return x_1058; } } -} -block_1225: -{ -if (x_1183 == 0) -{ -lean_object* x_1184; uint8_t x_1185; -x_1184 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__11; -lean_inc(x_1); -x_1185 = l_Lean_Syntax_isOfKind(x_1, x_1184); -if (x_1185 == 0) -{ -lean_object* x_1186; uint8_t x_1187; -x_1186 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; -lean_inc(x_1); -x_1187 = l_Lean_Syntax_isOfKind(x_1, x_1186); -if (x_1187 == 0) -{ -uint8_t x_1188; -x_1188 = 0; -x_385 = x_1188; -goto block_1182; -} -else -{ -lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; uint8_t x_1192; -x_1189 = l_Lean_Syntax_getArgs(x_1); -x_1190 = lean_array_get_size(x_1189); -lean_dec(x_1189); -x_1191 = lean_unsigned_to_nat(3u); -x_1192 = lean_nat_dec_eq(x_1190, x_1191); -lean_dec(x_1190); -x_385 = x_1192; -goto block_1182; -} -} -else -{ -lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; uint8_t x_1196; -x_1193 = l_Lean_Syntax_getArgs(x_1); -x_1194 = lean_array_get_size(x_1193); -lean_dec(x_1193); -x_1195 = lean_unsigned_to_nat(4u); -x_1196 = lean_nat_dec_eq(x_1194, x_1195); -if (x_1196 == 0) -{ -lean_object* x_1197; uint8_t x_1198; -x_1197 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; -lean_inc(x_1); -x_1198 = l_Lean_Syntax_isOfKind(x_1, x_1197); -if (x_1198 == 0) -{ -uint8_t x_1199; -lean_dec(x_1194); -x_1199 = 0; -x_385 = x_1199; -goto block_1182; -} -else -{ -lean_object* x_1200; uint8_t x_1201; -x_1200 = lean_unsigned_to_nat(3u); -x_1201 = lean_nat_dec_eq(x_1194, x_1200); -lean_dec(x_1194); -x_385 = x_1201; -goto block_1182; -} -} -else -{ -lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; -lean_dec(x_1194); -x_1202 = lean_unsigned_to_nat(0u); -x_1203 = l_Lean_Syntax_getArg(x_1, x_1202); -x_1204 = lean_unsigned_to_nat(2u); -x_1205 = l_Lean_Syntax_getArg(x_1, x_1204); -lean_dec(x_1); -x_1206 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1206, 0, x_1205); -x_1207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1207, 0, x_1206); -lean_ctor_set(x_1207, 1, x_2); -x_1 = x_1203; -x_2 = x_1207; -goto _start; -} -} -} -else -{ -lean_object* x_1209; lean_object* x_1210; 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_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_1209 = lean_unsigned_to_nat(0u); -x_1210 = l_Lean_Syntax_getArg(x_1, x_1209); -x_1211 = lean_unsigned_to_nat(2u); -x_1212 = l_Lean_Syntax_getArg(x_1, x_1211); -lean_dec(x_1); -x_1213 = l_Lean_Elab_Term_getCurrMacroScope(x_9, x_10, x_11, x_12, x_13, x_14, x_15); -x_1214 = lean_ctor_get(x_1213, 1); -lean_inc(x_1214); -lean_dec(x_1213); -x_1215 = l_Lean_Elab_Term_getMainModule___rarg(x_14, x_1214); -x_1216 = lean_ctor_get(x_1215, 1); -lean_inc(x_1216); -lean_dec(x_1215); -x_1217 = l_Array_empty___closed__1; -x_1218 = lean_array_push(x_1217, x_1210); -x_1219 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; -x_1220 = lean_array_push(x_1218, x_1219); -x_1221 = lean_array_push(x_1220, x_1212); -x_1222 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; -x_1223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1223, 0, x_1222); -lean_ctor_set(x_1223, 1, x_1221); -x_1 = x_1223; -x_15 = x_1216; -goto _start; -} -} -block_1622: -{ -if (x_1226 == 0) -{ -lean_object* x_1227; uint8_t x_1228; -x_1227 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__16; -lean_inc(x_1); -x_1228 = l_Lean_Syntax_isOfKind(x_1, x_1227); -if (x_1228 == 0) -{ -uint8_t x_1229; -x_1229 = 0; -x_1183 = x_1229; -goto block_1225; -} -else -{ -lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; uint8_t x_1233; -x_1230 = l_Lean_Syntax_getArgs(x_1); -x_1231 = lean_array_get_size(x_1230); -lean_dec(x_1230); -x_1232 = lean_unsigned_to_nat(3u); -x_1233 = lean_nat_dec_eq(x_1231, x_1232); -lean_dec(x_1231); -x_1183 = x_1233; -goto block_1225; -} -} -else -{ -lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; uint8_t x_1239; -x_1234 = lean_unsigned_to_nat(0u); -x_1235 = l_Lean_Syntax_getArg(x_1, x_1234); -x_1236 = lean_unsigned_to_nat(2u); -x_1237 = l_Lean_Syntax_getArg(x_1, x_1236); -x_1238 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_1237); -x_1239 = l_Lean_Syntax_isOfKind(x_1237, x_1238); -if (x_1239 == 0) -{ -lean_object* x_1240; uint8_t x_1241; -x_1240 = l_Lean_identKind___closed__2; -lean_inc(x_1237); -x_1241 = l_Lean_Syntax_isOfKind(x_1237, x_1240); -if (x_1241 == 0) -{ -uint8_t x_1242; uint8_t x_1243; -lean_dec(x_1237); -lean_dec(x_1235); -x_1242 = l_List_isEmpty___rarg(x_2); -if (x_7 == 0) -{ -uint8_t x_1602; -x_1602 = 1; -x_1243 = x_1602; -goto block_1601; -} -else -{ -uint8_t x_1603; -x_1603 = 0; -x_1243 = x_1603; -goto block_1601; -} -block_1601: -{ -if (x_1242 == 0) -{ -lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1281; lean_object* x_1282; lean_object* x_1304; -x_1244 = lean_box(0); -x_1245 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -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); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1304 = l_Lean_Elab_Term_elabTerm(x_1, x_1244, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1247); -if (lean_obj_tag(x_1304) == 0) -{ -lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; -x_1305 = lean_ctor_get(x_1304, 0); -lean_inc(x_1305); -x_1306 = lean_ctor_get(x_1304, 1); -lean_inc(x_1306); -lean_dec(x_1304); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_1307 = l___private_Lean_Elab_App_31__elabAppLVals(x_1305, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1306); -if (lean_obj_tag(x_1307) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_1308; lean_object* x_1309; -lean_dec(x_1248); -lean_dec(x_5); -x_1308 = lean_ctor_get(x_1307, 0); -lean_inc(x_1308); -x_1309 = lean_ctor_get(x_1307, 1); -lean_inc(x_1309); -lean_dec(x_1307); -x_1281 = x_1308; -x_1282 = x_1309; -goto block_1303; -} -else -{ -lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; -x_1310 = lean_ctor_get(x_1307, 0); -lean_inc(x_1310); -x_1311 = lean_ctor_get(x_1307, 1); -lean_inc(x_1311); -lean_dec(x_1307); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1312 = l_Lean_Elab_Term_ensureHasType(x_5, x_1310, x_1244, x_9, x_10, x_11, x_12, x_13, x_14, x_1311); -if (lean_obj_tag(x_1312) == 0) -{ -lean_object* x_1313; lean_object* x_1314; -lean_dec(x_1248); -x_1313 = lean_ctor_get(x_1312, 0); -lean_inc(x_1313); -x_1314 = lean_ctor_get(x_1312, 1); -lean_inc(x_1314); -lean_dec(x_1312); -x_1281 = x_1313; -x_1282 = x_1314; -goto block_1303; -} -else -{ -lean_object* x_1315; lean_object* x_1316; -x_1315 = lean_ctor_get(x_1312, 0); -lean_inc(x_1315); -x_1316 = lean_ctor_get(x_1312, 1); -lean_inc(x_1316); -lean_dec(x_1312); -x_1249 = x_1315; -x_1250 = x_1316; -goto block_1280; -} -} -} -else -{ -lean_object* x_1317; lean_object* x_1318; -lean_dec(x_5); -x_1317 = lean_ctor_get(x_1307, 0); -lean_inc(x_1317); -x_1318 = lean_ctor_get(x_1307, 1); -lean_inc(x_1318); -lean_dec(x_1307); -x_1249 = x_1317; -x_1250 = x_1318; -goto block_1280; -} -} -else -{ -lean_object* x_1319; lean_object* x_1320; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1319 = lean_ctor_get(x_1304, 0); -lean_inc(x_1319); -x_1320 = lean_ctor_get(x_1304, 1); -lean_inc(x_1320); -lean_dec(x_1304); -x_1249 = x_1319; -x_1250 = x_1320; -goto block_1280; -} -block_1280: -{ -if (lean_obj_tag(x_1249) == 0) -{ -lean_object* x_1251; uint8_t x_1252; -lean_dec(x_1248); -x_1251 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1250); -x_1252 = !lean_is_exclusive(x_1251); -if (x_1252 == 0) -{ -lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; uint8_t x_1256; -x_1253 = lean_ctor_get(x_1251, 0); -x_1254 = lean_ctor_get(x_1251, 1); -x_1255 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1254); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1256 = !lean_is_exclusive(x_1255); -if (x_1256 == 0) -{ -lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; -x_1257 = lean_ctor_get(x_1255, 1); -x_1258 = lean_ctor_get(x_1255, 0); -lean_dec(x_1258); -lean_ctor_set_tag(x_1255, 1); -lean_ctor_set(x_1255, 1, x_1253); -lean_ctor_set(x_1255, 0, x_1249); -x_1259 = lean_array_push(x_8, x_1255); -lean_ctor_set(x_1251, 1, x_1257); -lean_ctor_set(x_1251, 0, x_1259); -return x_1251; -} -else -{ -lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; -x_1260 = lean_ctor_get(x_1255, 1); -lean_inc(x_1260); -lean_dec(x_1255); -x_1261 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1261, 0, x_1249); -lean_ctor_set(x_1261, 1, x_1253); -x_1262 = lean_array_push(x_8, x_1261); -lean_ctor_set(x_1251, 1, x_1260); -lean_ctor_set(x_1251, 0, x_1262); -return x_1251; -} -} -else -{ -lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; -x_1263 = lean_ctor_get(x_1251, 0); -x_1264 = lean_ctor_get(x_1251, 1); -lean_inc(x_1264); -lean_inc(x_1263); -lean_dec(x_1251); -x_1265 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1264); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1266 = lean_ctor_get(x_1265, 1); -lean_inc(x_1266); -if (lean_is_exclusive(x_1265)) { - lean_ctor_release(x_1265, 0); - lean_ctor_release(x_1265, 1); - x_1267 = x_1265; -} else { - lean_dec_ref(x_1265); - x_1267 = lean_box(0); -} -if (lean_is_scalar(x_1267)) { - x_1268 = lean_alloc_ctor(1, 2, 0); -} else { - x_1268 = x_1267; - lean_ctor_set_tag(x_1268, 1); -} -lean_ctor_set(x_1268, 0, x_1249); -lean_ctor_set(x_1268, 1, x_1263); -x_1269 = lean_array_push(x_8, x_1268); -x_1270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1270, 0, x_1269); -lean_ctor_set(x_1270, 1, x_1266); -return x_1270; -} -} -else -{ -lean_object* x_1271; lean_object* x_1272; uint8_t x_1273; -lean_dec(x_8); -x_1271 = lean_ctor_get(x_1249, 0); -lean_inc(x_1271); -x_1272 = l_Lean_Elab_postponeExceptionId; -x_1273 = lean_nat_dec_eq(x_1271, x_1272); -lean_dec(x_1271); -if (x_1273 == 0) -{ -lean_object* x_1274; -lean_dec(x_1246); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1248)) { - x_1274 = lean_alloc_ctor(1, 2, 0); -} else { - x_1274 = x_1248; - lean_ctor_set_tag(x_1274, 1); -} -lean_ctor_set(x_1274, 0, x_1249); -lean_ctor_set(x_1274, 1, x_1250); -return x_1274; -} -else -{ -lean_object* x_1275; uint8_t x_1276; -lean_dec(x_1248); -x_1275 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1250); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1276 = !lean_is_exclusive(x_1275); -if (x_1276 == 0) -{ -lean_object* x_1277; -x_1277 = lean_ctor_get(x_1275, 0); -lean_dec(x_1277); -lean_ctor_set_tag(x_1275, 1); -lean_ctor_set(x_1275, 0, x_1249); -return x_1275; -} -else -{ -lean_object* x_1278; lean_object* x_1279; -x_1278 = lean_ctor_get(x_1275, 1); -lean_inc(x_1278); -lean_dec(x_1275); -x_1279 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1279, 0, x_1249); -lean_ctor_set(x_1279, 1, x_1278); -return x_1279; -} -} -} -} -block_1303: -{ -lean_object* x_1283; uint8_t x_1284; -x_1283 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1282); -x_1284 = !lean_is_exclusive(x_1283); -if (x_1284 == 0) -{ -lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; uint8_t x_1288; -x_1285 = lean_ctor_get(x_1283, 0); -x_1286 = lean_ctor_get(x_1283, 1); -x_1287 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1286); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1288 = !lean_is_exclusive(x_1287); -if (x_1288 == 0) -{ -lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; -x_1289 = lean_ctor_get(x_1287, 1); -x_1290 = lean_ctor_get(x_1287, 0); -lean_dec(x_1290); -lean_ctor_set(x_1287, 1, x_1285); -lean_ctor_set(x_1287, 0, x_1281); -x_1291 = lean_array_push(x_8, x_1287); -lean_ctor_set(x_1283, 1, x_1289); -lean_ctor_set(x_1283, 0, x_1291); -return x_1283; -} -else -{ -lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; -x_1292 = lean_ctor_get(x_1287, 1); -lean_inc(x_1292); -lean_dec(x_1287); -x_1293 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1293, 0, x_1281); -lean_ctor_set(x_1293, 1, x_1285); -x_1294 = lean_array_push(x_8, x_1293); -lean_ctor_set(x_1283, 1, x_1292); -lean_ctor_set(x_1283, 0, x_1294); -return x_1283; -} -} -else -{ -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; -x_1295 = lean_ctor_get(x_1283, 0); -x_1296 = lean_ctor_get(x_1283, 1); -lean_inc(x_1296); -lean_inc(x_1295); -lean_dec(x_1283); -x_1297 = l_Lean_Elab_Term_SavedState_restore(x_1246, x_9, x_10, x_11, x_12, x_13, x_14, x_1296); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1298 = lean_ctor_get(x_1297, 1); -lean_inc(x_1298); -if (lean_is_exclusive(x_1297)) { - lean_ctor_release(x_1297, 0); - lean_ctor_release(x_1297, 1); - x_1299 = x_1297; -} else { - lean_dec_ref(x_1297); - x_1299 = lean_box(0); -} -if (lean_is_scalar(x_1299)) { - x_1300 = lean_alloc_ctor(0, 2, 0); -} else { - x_1300 = x_1299; -} -lean_ctor_set(x_1300, 0, x_1281); -lean_ctor_set(x_1300, 1, x_1295); -x_1301 = lean_array_push(x_8, x_1300); -x_1302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1302, 0, x_1301); -lean_ctor_set(x_1302, 1, x_1298); -return x_1302; -} -} -} -else -{ -uint8_t x_1321; -x_1321 = l_Array_isEmpty___rarg(x_3); -if (x_1321 == 0) -{ -lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1359; lean_object* x_1360; lean_object* x_1382; -x_1322 = lean_box(0); -x_1323 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1324 = lean_ctor_get(x_1323, 0); -lean_inc(x_1324); -x_1325 = lean_ctor_get(x_1323, 1); -lean_inc(x_1325); -if (lean_is_exclusive(x_1323)) { - lean_ctor_release(x_1323, 0); - lean_ctor_release(x_1323, 1); - x_1326 = x_1323; -} else { - lean_dec_ref(x_1323); - x_1326 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1382 = l_Lean_Elab_Term_elabTerm(x_1, x_1322, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1325); -if (lean_obj_tag(x_1382) == 0) -{ -lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; -x_1383 = lean_ctor_get(x_1382, 0); -lean_inc(x_1383); -x_1384 = lean_ctor_get(x_1382, 1); -lean_inc(x_1384); -lean_dec(x_1382); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_1385 = l___private_Lean_Elab_App_31__elabAppLVals(x_1383, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1384); -if (lean_obj_tag(x_1385) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_1386; lean_object* x_1387; -lean_dec(x_1326); -lean_dec(x_5); -x_1386 = lean_ctor_get(x_1385, 0); -lean_inc(x_1386); -x_1387 = lean_ctor_get(x_1385, 1); -lean_inc(x_1387); -lean_dec(x_1385); -x_1359 = x_1386; -x_1360 = x_1387; -goto block_1381; -} -else -{ -lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; -x_1388 = lean_ctor_get(x_1385, 0); -lean_inc(x_1388); -x_1389 = lean_ctor_get(x_1385, 1); -lean_inc(x_1389); -lean_dec(x_1385); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1390 = l_Lean_Elab_Term_ensureHasType(x_5, x_1388, x_1322, x_9, x_10, x_11, x_12, x_13, x_14, x_1389); -if (lean_obj_tag(x_1390) == 0) -{ -lean_object* x_1391; lean_object* x_1392; -lean_dec(x_1326); -x_1391 = lean_ctor_get(x_1390, 0); -lean_inc(x_1391); -x_1392 = lean_ctor_get(x_1390, 1); -lean_inc(x_1392); -lean_dec(x_1390); -x_1359 = x_1391; -x_1360 = x_1392; -goto block_1381; -} -else -{ -lean_object* x_1393; lean_object* x_1394; -x_1393 = lean_ctor_get(x_1390, 0); -lean_inc(x_1393); -x_1394 = lean_ctor_get(x_1390, 1); -lean_inc(x_1394); -lean_dec(x_1390); -x_1327 = x_1393; -x_1328 = x_1394; -goto block_1358; -} -} -} -else -{ -lean_object* x_1395; lean_object* x_1396; -lean_dec(x_5); -x_1395 = lean_ctor_get(x_1385, 0); -lean_inc(x_1395); -x_1396 = lean_ctor_get(x_1385, 1); -lean_inc(x_1396); -lean_dec(x_1385); -x_1327 = x_1395; -x_1328 = x_1396; -goto block_1358; -} -} -else -{ -lean_object* x_1397; lean_object* x_1398; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1397 = lean_ctor_get(x_1382, 0); -lean_inc(x_1397); -x_1398 = lean_ctor_get(x_1382, 1); -lean_inc(x_1398); -lean_dec(x_1382); -x_1327 = x_1397; -x_1328 = x_1398; -goto block_1358; -} -block_1358: -{ -if (lean_obj_tag(x_1327) == 0) -{ -lean_object* x_1329; uint8_t x_1330; -lean_dec(x_1326); -x_1329 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1328); -x_1330 = !lean_is_exclusive(x_1329); -if (x_1330 == 0) -{ -lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; uint8_t x_1334; -x_1331 = lean_ctor_get(x_1329, 0); -x_1332 = lean_ctor_get(x_1329, 1); -x_1333 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1332); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1334 = !lean_is_exclusive(x_1333); -if (x_1334 == 0) -{ -lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; -x_1335 = lean_ctor_get(x_1333, 1); -x_1336 = lean_ctor_get(x_1333, 0); -lean_dec(x_1336); -lean_ctor_set_tag(x_1333, 1); -lean_ctor_set(x_1333, 1, x_1331); -lean_ctor_set(x_1333, 0, x_1327); -x_1337 = lean_array_push(x_8, x_1333); -lean_ctor_set(x_1329, 1, x_1335); -lean_ctor_set(x_1329, 0, x_1337); -return x_1329; -} -else -{ -lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; -x_1338 = lean_ctor_get(x_1333, 1); -lean_inc(x_1338); -lean_dec(x_1333); -x_1339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1339, 0, x_1327); -lean_ctor_set(x_1339, 1, x_1331); -x_1340 = lean_array_push(x_8, x_1339); -lean_ctor_set(x_1329, 1, x_1338); -lean_ctor_set(x_1329, 0, x_1340); -return x_1329; -} -} -else -{ -lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; -x_1341 = lean_ctor_get(x_1329, 0); -x_1342 = lean_ctor_get(x_1329, 1); -lean_inc(x_1342); -lean_inc(x_1341); -lean_dec(x_1329); -x_1343 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1342); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1344 = lean_ctor_get(x_1343, 1); -lean_inc(x_1344); -if (lean_is_exclusive(x_1343)) { - lean_ctor_release(x_1343, 0); - lean_ctor_release(x_1343, 1); - x_1345 = x_1343; -} else { - lean_dec_ref(x_1343); - x_1345 = lean_box(0); -} -if (lean_is_scalar(x_1345)) { - x_1346 = lean_alloc_ctor(1, 2, 0); -} else { - x_1346 = x_1345; - lean_ctor_set_tag(x_1346, 1); -} -lean_ctor_set(x_1346, 0, x_1327); -lean_ctor_set(x_1346, 1, x_1341); -x_1347 = lean_array_push(x_8, x_1346); -x_1348 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1348, 0, x_1347); -lean_ctor_set(x_1348, 1, x_1344); -return x_1348; -} -} -else -{ -lean_object* x_1349; lean_object* x_1350; uint8_t x_1351; -lean_dec(x_8); -x_1349 = lean_ctor_get(x_1327, 0); -lean_inc(x_1349); -x_1350 = l_Lean_Elab_postponeExceptionId; -x_1351 = lean_nat_dec_eq(x_1349, x_1350); -lean_dec(x_1349); -if (x_1351 == 0) -{ -lean_object* x_1352; -lean_dec(x_1324); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1326)) { - x_1352 = lean_alloc_ctor(1, 2, 0); -} else { - x_1352 = x_1326; - lean_ctor_set_tag(x_1352, 1); -} -lean_ctor_set(x_1352, 0, x_1327); -lean_ctor_set(x_1352, 1, x_1328); -return x_1352; -} -else -{ -lean_object* x_1353; uint8_t x_1354; -lean_dec(x_1326); -x_1353 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1328); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1354 = !lean_is_exclusive(x_1353); -if (x_1354 == 0) -{ -lean_object* x_1355; -x_1355 = lean_ctor_get(x_1353, 0); -lean_dec(x_1355); -lean_ctor_set_tag(x_1353, 1); -lean_ctor_set(x_1353, 0, x_1327); -return x_1353; -} -else -{ -lean_object* x_1356; lean_object* x_1357; -x_1356 = lean_ctor_get(x_1353, 1); -lean_inc(x_1356); -lean_dec(x_1353); -x_1357 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1357, 0, x_1327); -lean_ctor_set(x_1357, 1, x_1356); -return x_1357; -} -} -} -} -block_1381: -{ -lean_object* x_1361; uint8_t x_1362; -x_1361 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1360); -x_1362 = !lean_is_exclusive(x_1361); -if (x_1362 == 0) -{ -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; uint8_t x_1366; -x_1363 = lean_ctor_get(x_1361, 0); -x_1364 = lean_ctor_get(x_1361, 1); -x_1365 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1364); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1366 = !lean_is_exclusive(x_1365); -if (x_1366 == 0) -{ -lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; -x_1367 = lean_ctor_get(x_1365, 1); -x_1368 = lean_ctor_get(x_1365, 0); -lean_dec(x_1368); -lean_ctor_set(x_1365, 1, x_1363); -lean_ctor_set(x_1365, 0, x_1359); -x_1369 = lean_array_push(x_8, x_1365); -lean_ctor_set(x_1361, 1, x_1367); -lean_ctor_set(x_1361, 0, x_1369); -return x_1361; -} -else -{ -lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; -x_1370 = lean_ctor_get(x_1365, 1); -lean_inc(x_1370); -lean_dec(x_1365); -x_1371 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1371, 0, x_1359); -lean_ctor_set(x_1371, 1, x_1363); -x_1372 = lean_array_push(x_8, x_1371); -lean_ctor_set(x_1361, 1, x_1370); -lean_ctor_set(x_1361, 0, x_1372); -return x_1361; -} -} -else -{ -lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; -x_1373 = lean_ctor_get(x_1361, 0); -x_1374 = lean_ctor_get(x_1361, 1); -lean_inc(x_1374); -lean_inc(x_1373); -lean_dec(x_1361); -x_1375 = l_Lean_Elab_Term_SavedState_restore(x_1324, x_9, x_10, x_11, x_12, x_13, x_14, x_1374); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1376 = lean_ctor_get(x_1375, 1); -lean_inc(x_1376); -if (lean_is_exclusive(x_1375)) { - lean_ctor_release(x_1375, 0); - lean_ctor_release(x_1375, 1); - x_1377 = x_1375; -} else { - lean_dec_ref(x_1375); - x_1377 = lean_box(0); -} -if (lean_is_scalar(x_1377)) { - x_1378 = lean_alloc_ctor(0, 2, 0); -} else { - x_1378 = x_1377; -} -lean_ctor_set(x_1378, 0, x_1359); -lean_ctor_set(x_1378, 1, x_1373); -x_1379 = lean_array_push(x_8, x_1378); -x_1380 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1380, 0, x_1379); -lean_ctor_set(x_1380, 1, x_1376); -return x_1380; -} -} -} -else -{ -uint8_t x_1399; -x_1399 = l_Array_isEmpty___rarg(x_4); -if (x_1399 == 0) -{ -lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1437; lean_object* x_1438; lean_object* x_1460; -x_1400 = lean_box(0); -x_1401 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1402 = lean_ctor_get(x_1401, 0); -lean_inc(x_1402); -x_1403 = lean_ctor_get(x_1401, 1); -lean_inc(x_1403); -if (lean_is_exclusive(x_1401)) { - lean_ctor_release(x_1401, 0); - lean_ctor_release(x_1401, 1); - x_1404 = x_1401; -} else { - lean_dec_ref(x_1401); - x_1404 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1460 = l_Lean_Elab_Term_elabTerm(x_1, x_1400, x_1243, x_9, x_10, x_11, x_12, x_13, x_14, x_1403); -if (lean_obj_tag(x_1460) == 0) -{ -lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; -x_1461 = lean_ctor_get(x_1460, 0); -lean_inc(x_1461); -x_1462 = lean_ctor_get(x_1460, 1); -lean_inc(x_1462); -lean_dec(x_1460); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_1463 = l___private_Lean_Elab_App_31__elabAppLVals(x_1461, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_1462); -if (lean_obj_tag(x_1463) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_1464; lean_object* x_1465; -lean_dec(x_1404); -lean_dec(x_5); -x_1464 = lean_ctor_get(x_1463, 0); -lean_inc(x_1464); -x_1465 = lean_ctor_get(x_1463, 1); -lean_inc(x_1465); -lean_dec(x_1463); -x_1437 = x_1464; -x_1438 = x_1465; -goto block_1459; -} -else -{ -lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; -x_1466 = lean_ctor_get(x_1463, 0); -lean_inc(x_1466); -x_1467 = lean_ctor_get(x_1463, 1); -lean_inc(x_1467); -lean_dec(x_1463); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_1468 = l_Lean_Elab_Term_ensureHasType(x_5, x_1466, x_1400, x_9, x_10, x_11, x_12, x_13, x_14, x_1467); -if (lean_obj_tag(x_1468) == 0) -{ -lean_object* x_1469; lean_object* x_1470; -lean_dec(x_1404); -x_1469 = lean_ctor_get(x_1468, 0); -lean_inc(x_1469); -x_1470 = lean_ctor_get(x_1468, 1); -lean_inc(x_1470); -lean_dec(x_1468); -x_1437 = x_1469; -x_1438 = x_1470; -goto block_1459; -} -else -{ -lean_object* x_1471; lean_object* x_1472; -x_1471 = lean_ctor_get(x_1468, 0); -lean_inc(x_1471); -x_1472 = lean_ctor_get(x_1468, 1); -lean_inc(x_1472); -lean_dec(x_1468); -x_1405 = x_1471; -x_1406 = x_1472; -goto block_1436; -} -} -} -else -{ -lean_object* x_1473; lean_object* x_1474; -lean_dec(x_5); -x_1473 = lean_ctor_get(x_1463, 0); -lean_inc(x_1473); -x_1474 = lean_ctor_get(x_1463, 1); -lean_inc(x_1474); -lean_dec(x_1463); -x_1405 = x_1473; -x_1406 = x_1474; -goto block_1436; -} -} -else -{ -lean_object* x_1475; lean_object* x_1476; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1475 = lean_ctor_get(x_1460, 0); -lean_inc(x_1475); -x_1476 = lean_ctor_get(x_1460, 1); -lean_inc(x_1476); -lean_dec(x_1460); -x_1405 = x_1475; -x_1406 = x_1476; -goto block_1436; -} -block_1436: -{ -if (lean_obj_tag(x_1405) == 0) -{ -lean_object* x_1407; uint8_t x_1408; -lean_dec(x_1404); -x_1407 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1406); -x_1408 = !lean_is_exclusive(x_1407); -if (x_1408 == 0) -{ -lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; uint8_t x_1412; -x_1409 = lean_ctor_get(x_1407, 0); -x_1410 = lean_ctor_get(x_1407, 1); -x_1411 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1410); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1412 = !lean_is_exclusive(x_1411); -if (x_1412 == 0) -{ -lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; -x_1413 = lean_ctor_get(x_1411, 1); -x_1414 = lean_ctor_get(x_1411, 0); -lean_dec(x_1414); -lean_ctor_set_tag(x_1411, 1); -lean_ctor_set(x_1411, 1, x_1409); -lean_ctor_set(x_1411, 0, x_1405); -x_1415 = lean_array_push(x_8, x_1411); -lean_ctor_set(x_1407, 1, x_1413); -lean_ctor_set(x_1407, 0, x_1415); -return x_1407; -} -else -{ -lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; -x_1416 = lean_ctor_get(x_1411, 1); -lean_inc(x_1416); -lean_dec(x_1411); -x_1417 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1417, 0, x_1405); -lean_ctor_set(x_1417, 1, x_1409); -x_1418 = lean_array_push(x_8, x_1417); -lean_ctor_set(x_1407, 1, x_1416); -lean_ctor_set(x_1407, 0, x_1418); -return x_1407; -} -} -else -{ -lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; -x_1419 = lean_ctor_get(x_1407, 0); -x_1420 = lean_ctor_get(x_1407, 1); -lean_inc(x_1420); -lean_inc(x_1419); -lean_dec(x_1407); -x_1421 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1420); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1422 = lean_ctor_get(x_1421, 1); -lean_inc(x_1422); -if (lean_is_exclusive(x_1421)) { - lean_ctor_release(x_1421, 0); - lean_ctor_release(x_1421, 1); - x_1423 = x_1421; -} else { - lean_dec_ref(x_1421); - x_1423 = lean_box(0); -} -if (lean_is_scalar(x_1423)) { - x_1424 = lean_alloc_ctor(1, 2, 0); -} else { - x_1424 = x_1423; - lean_ctor_set_tag(x_1424, 1); -} -lean_ctor_set(x_1424, 0, x_1405); -lean_ctor_set(x_1424, 1, x_1419); -x_1425 = lean_array_push(x_8, x_1424); -x_1426 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1426, 0, x_1425); -lean_ctor_set(x_1426, 1, x_1422); -return x_1426; -} -} -else -{ -lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; -lean_dec(x_8); -x_1427 = lean_ctor_get(x_1405, 0); -lean_inc(x_1427); -x_1428 = l_Lean_Elab_postponeExceptionId; -x_1429 = lean_nat_dec_eq(x_1427, x_1428); -lean_dec(x_1427); -if (x_1429 == 0) -{ -lean_object* x_1430; -lean_dec(x_1402); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1404)) { - x_1430 = lean_alloc_ctor(1, 2, 0); -} else { - x_1430 = x_1404; - lean_ctor_set_tag(x_1430, 1); -} -lean_ctor_set(x_1430, 0, x_1405); -lean_ctor_set(x_1430, 1, x_1406); -return x_1430; -} -else -{ -lean_object* x_1431; uint8_t x_1432; -lean_dec(x_1404); -x_1431 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1406); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1432 = !lean_is_exclusive(x_1431); -if (x_1432 == 0) -{ -lean_object* x_1433; -x_1433 = lean_ctor_get(x_1431, 0); -lean_dec(x_1433); -lean_ctor_set_tag(x_1431, 1); -lean_ctor_set(x_1431, 0, x_1405); -return x_1431; -} -else -{ -lean_object* x_1434; lean_object* x_1435; -x_1434 = lean_ctor_get(x_1431, 1); -lean_inc(x_1434); -lean_dec(x_1431); -x_1435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1435, 0, x_1405); -lean_ctor_set(x_1435, 1, x_1434); -return x_1435; -} -} -} -} -block_1459: -{ -lean_object* x_1439; uint8_t x_1440; -x_1439 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1438); -x_1440 = !lean_is_exclusive(x_1439); -if (x_1440 == 0) -{ -lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; uint8_t x_1444; -x_1441 = lean_ctor_get(x_1439, 0); -x_1442 = lean_ctor_get(x_1439, 1); -x_1443 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1442); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1444 = !lean_is_exclusive(x_1443); -if (x_1444 == 0) -{ -lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; -x_1445 = lean_ctor_get(x_1443, 1); -x_1446 = lean_ctor_get(x_1443, 0); -lean_dec(x_1446); -lean_ctor_set(x_1443, 1, x_1441); -lean_ctor_set(x_1443, 0, x_1437); -x_1447 = lean_array_push(x_8, x_1443); -lean_ctor_set(x_1439, 1, x_1445); -lean_ctor_set(x_1439, 0, x_1447); -return x_1439; -} -else -{ -lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; -x_1448 = lean_ctor_get(x_1443, 1); -lean_inc(x_1448); -lean_dec(x_1443); -x_1449 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1449, 0, x_1437); -lean_ctor_set(x_1449, 1, x_1441); -x_1450 = lean_array_push(x_8, x_1449); -lean_ctor_set(x_1439, 1, x_1448); -lean_ctor_set(x_1439, 0, x_1450); -return x_1439; -} -} -else -{ -lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; -x_1451 = lean_ctor_get(x_1439, 0); -x_1452 = lean_ctor_get(x_1439, 1); -lean_inc(x_1452); -lean_inc(x_1451); -lean_dec(x_1439); -x_1453 = l_Lean_Elab_Term_SavedState_restore(x_1402, x_9, x_10, x_11, x_12, x_13, x_14, x_1452); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1454 = lean_ctor_get(x_1453, 1); -lean_inc(x_1454); -if (lean_is_exclusive(x_1453)) { - lean_ctor_release(x_1453, 0); - lean_ctor_release(x_1453, 1); - x_1455 = x_1453; -} else { - lean_dec_ref(x_1453); - x_1455 = lean_box(0); -} -if (lean_is_scalar(x_1455)) { - x_1456 = lean_alloc_ctor(0, 2, 0); -} else { - x_1456 = x_1455; -} -lean_ctor_set(x_1456, 0, x_1437); -lean_ctor_set(x_1456, 1, x_1451); -x_1457 = lean_array_push(x_8, x_1456); -x_1458 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1458, 0, x_1457); -lean_ctor_set(x_1458, 1, x_1454); -return x_1458; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_7 == 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; uint8_t x_1513; lean_object* x_1514; -x_1477 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1478 = lean_ctor_get(x_1477, 0); -lean_inc(x_1478); -x_1479 = lean_ctor_get(x_1477, 1); -lean_inc(x_1479); -if (lean_is_exclusive(x_1477)) { - lean_ctor_release(x_1477, 0); - lean_ctor_release(x_1477, 1); - x_1480 = x_1477; -} else { - lean_dec_ref(x_1477); - x_1480 = lean_box(0); -} -x_1513 = 1; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1514 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_1513, x_9, x_10, x_11, x_12, x_13, x_14, x_1479); -if (lean_obj_tag(x_1514) == 0) -{ -lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; uint8_t x_1518; -lean_dec(x_1480); -x_1515 = lean_ctor_get(x_1514, 0); -lean_inc(x_1515); -x_1516 = lean_ctor_get(x_1514, 1); -lean_inc(x_1516); -lean_dec(x_1514); -x_1517 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1516); -x_1518 = !lean_is_exclusive(x_1517); -if (x_1518 == 0) -{ -lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; uint8_t x_1522; -x_1519 = lean_ctor_get(x_1517, 0); -x_1520 = lean_ctor_get(x_1517, 1); -x_1521 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1520); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1522 = !lean_is_exclusive(x_1521); -if (x_1522 == 0) -{ -lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; -x_1523 = lean_ctor_get(x_1521, 1); -x_1524 = lean_ctor_get(x_1521, 0); -lean_dec(x_1524); -lean_ctor_set(x_1521, 1, x_1519); -lean_ctor_set(x_1521, 0, x_1515); -x_1525 = lean_array_push(x_8, x_1521); -lean_ctor_set(x_1517, 1, x_1523); -lean_ctor_set(x_1517, 0, x_1525); -return x_1517; -} -else -{ -lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; -x_1526 = lean_ctor_get(x_1521, 1); -lean_inc(x_1526); -lean_dec(x_1521); -x_1527 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1527, 0, x_1515); -lean_ctor_set(x_1527, 1, x_1519); -x_1528 = lean_array_push(x_8, x_1527); -lean_ctor_set(x_1517, 1, x_1526); -lean_ctor_set(x_1517, 0, x_1528); -return x_1517; -} -} -else -{ -lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; -x_1529 = lean_ctor_get(x_1517, 0); -x_1530 = lean_ctor_get(x_1517, 1); -lean_inc(x_1530); -lean_inc(x_1529); -lean_dec(x_1517); -x_1531 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1530); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1532 = lean_ctor_get(x_1531, 1); -lean_inc(x_1532); -if (lean_is_exclusive(x_1531)) { - lean_ctor_release(x_1531, 0); - lean_ctor_release(x_1531, 1); - x_1533 = x_1531; -} else { - lean_dec_ref(x_1531); - x_1533 = lean_box(0); -} -if (lean_is_scalar(x_1533)) { - x_1534 = lean_alloc_ctor(0, 2, 0); -} else { - x_1534 = x_1533; -} -lean_ctor_set(x_1534, 0, x_1515); -lean_ctor_set(x_1534, 1, x_1529); -x_1535 = lean_array_push(x_8, x_1534); -x_1536 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1536, 0, x_1535); -lean_ctor_set(x_1536, 1, x_1532); -return x_1536; -} -} -else -{ -lean_object* x_1537; lean_object* x_1538; -x_1537 = lean_ctor_get(x_1514, 0); -lean_inc(x_1537); -x_1538 = lean_ctor_get(x_1514, 1); -lean_inc(x_1538); -lean_dec(x_1514); -x_1481 = x_1537; -x_1482 = x_1538; -goto block_1512; -} -block_1512: -{ -if (lean_obj_tag(x_1481) == 0) -{ -lean_object* x_1483; uint8_t x_1484; -lean_dec(x_1480); -x_1483 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1482); -x_1484 = !lean_is_exclusive(x_1483); -if (x_1484 == 0) -{ -lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; uint8_t x_1488; -x_1485 = lean_ctor_get(x_1483, 0); -x_1486 = lean_ctor_get(x_1483, 1); -x_1487 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1486); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1488 = !lean_is_exclusive(x_1487); -if (x_1488 == 0) -{ -lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; -x_1489 = lean_ctor_get(x_1487, 1); -x_1490 = lean_ctor_get(x_1487, 0); -lean_dec(x_1490); -lean_ctor_set_tag(x_1487, 1); -lean_ctor_set(x_1487, 1, x_1485); -lean_ctor_set(x_1487, 0, x_1481); -x_1491 = lean_array_push(x_8, x_1487); -lean_ctor_set(x_1483, 1, x_1489); -lean_ctor_set(x_1483, 0, x_1491); -return x_1483; -} -else -{ -lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; -x_1492 = lean_ctor_get(x_1487, 1); -lean_inc(x_1492); -lean_dec(x_1487); -x_1493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1493, 0, x_1481); -lean_ctor_set(x_1493, 1, x_1485); -x_1494 = lean_array_push(x_8, x_1493); -lean_ctor_set(x_1483, 1, x_1492); -lean_ctor_set(x_1483, 0, x_1494); -return x_1483; -} -} -else -{ -lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; -x_1495 = lean_ctor_get(x_1483, 0); -x_1496 = lean_ctor_get(x_1483, 1); -lean_inc(x_1496); -lean_inc(x_1495); -lean_dec(x_1483); -x_1497 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1496); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1498 = lean_ctor_get(x_1497, 1); -lean_inc(x_1498); -if (lean_is_exclusive(x_1497)) { - lean_ctor_release(x_1497, 0); - lean_ctor_release(x_1497, 1); - x_1499 = x_1497; -} else { - lean_dec_ref(x_1497); - x_1499 = lean_box(0); -} -if (lean_is_scalar(x_1499)) { - x_1500 = lean_alloc_ctor(1, 2, 0); -} else { - x_1500 = x_1499; - lean_ctor_set_tag(x_1500, 1); -} -lean_ctor_set(x_1500, 0, x_1481); -lean_ctor_set(x_1500, 1, x_1495); -x_1501 = lean_array_push(x_8, x_1500); -x_1502 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1502, 0, x_1501); -lean_ctor_set(x_1502, 1, x_1498); -return x_1502; -} -} -else -{ -lean_object* x_1503; lean_object* x_1504; uint8_t x_1505; -lean_dec(x_8); -x_1503 = lean_ctor_get(x_1481, 0); -lean_inc(x_1503); -x_1504 = l_Lean_Elab_postponeExceptionId; -x_1505 = lean_nat_dec_eq(x_1503, x_1504); -lean_dec(x_1503); -if (x_1505 == 0) -{ -lean_object* x_1506; -lean_dec(x_1478); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1480)) { - x_1506 = lean_alloc_ctor(1, 2, 0); -} else { - x_1506 = x_1480; - lean_ctor_set_tag(x_1506, 1); -} -lean_ctor_set(x_1506, 0, x_1481); -lean_ctor_set(x_1506, 1, x_1482); -return x_1506; -} -else -{ -lean_object* x_1507; uint8_t x_1508; -lean_dec(x_1480); -x_1507 = l_Lean_Elab_Term_SavedState_restore(x_1478, x_9, x_10, x_11, x_12, x_13, x_14, x_1482); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1508 = !lean_is_exclusive(x_1507); -if (x_1508 == 0) -{ -lean_object* x_1509; -x_1509 = lean_ctor_get(x_1507, 0); -lean_dec(x_1509); -lean_ctor_set_tag(x_1507, 1); -lean_ctor_set(x_1507, 0, x_1481); -return x_1507; -} -else -{ -lean_object* x_1510; lean_object* x_1511; -x_1510 = lean_ctor_get(x_1507, 1); -lean_inc(x_1510); -lean_dec(x_1507); -x_1511 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1511, 0, x_1481); -lean_ctor_set(x_1511, 1, x_1510); -return x_1511; -} -} -} -} -} -else -{ -lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1576; -x_1539 = lean_box(0); -x_1540 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_1541 = lean_ctor_get(x_1540, 0); -lean_inc(x_1541); -x_1542 = lean_ctor_get(x_1540, 1); -lean_inc(x_1542); -if (lean_is_exclusive(x_1540)) { - lean_ctor_release(x_1540, 0); - lean_ctor_release(x_1540, 1); - x_1543 = x_1540; -} else { - lean_dec_ref(x_1540); - x_1543 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_1576 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_1243, x_1539, x_9, x_10, x_11, x_12, x_13, x_14, x_1542); -if (lean_obj_tag(x_1576) == 0) -{ -lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; uint8_t x_1580; -lean_dec(x_1543); -x_1577 = lean_ctor_get(x_1576, 0); -lean_inc(x_1577); -x_1578 = lean_ctor_get(x_1576, 1); -lean_inc(x_1578); -lean_dec(x_1576); -x_1579 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1578); -x_1580 = !lean_is_exclusive(x_1579); -if (x_1580 == 0) -{ -lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; uint8_t x_1584; -x_1581 = lean_ctor_get(x_1579, 0); -x_1582 = lean_ctor_get(x_1579, 1); -x_1583 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1582); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1584 = !lean_is_exclusive(x_1583); -if (x_1584 == 0) -{ -lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; -x_1585 = lean_ctor_get(x_1583, 1); -x_1586 = lean_ctor_get(x_1583, 0); -lean_dec(x_1586); -lean_ctor_set(x_1583, 1, x_1581); -lean_ctor_set(x_1583, 0, x_1577); -x_1587 = lean_array_push(x_8, x_1583); -lean_ctor_set(x_1579, 1, x_1585); -lean_ctor_set(x_1579, 0, x_1587); -return x_1579; -} -else -{ -lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; -x_1588 = lean_ctor_get(x_1583, 1); -lean_inc(x_1588); -lean_dec(x_1583); -x_1589 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1589, 0, x_1577); -lean_ctor_set(x_1589, 1, x_1581); -x_1590 = lean_array_push(x_8, x_1589); -lean_ctor_set(x_1579, 1, x_1588); -lean_ctor_set(x_1579, 0, x_1590); -return x_1579; -} -} -else -{ -lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; -x_1591 = lean_ctor_get(x_1579, 0); -x_1592 = lean_ctor_get(x_1579, 1); -lean_inc(x_1592); -lean_inc(x_1591); -lean_dec(x_1579); -x_1593 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1592); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1594 = lean_ctor_get(x_1593, 1); -lean_inc(x_1594); -if (lean_is_exclusive(x_1593)) { - lean_ctor_release(x_1593, 0); - lean_ctor_release(x_1593, 1); - x_1595 = x_1593; -} else { - lean_dec_ref(x_1593); - x_1595 = lean_box(0); -} -if (lean_is_scalar(x_1595)) { - x_1596 = lean_alloc_ctor(0, 2, 0); -} else { - x_1596 = x_1595; -} -lean_ctor_set(x_1596, 0, x_1577); -lean_ctor_set(x_1596, 1, x_1591); -x_1597 = lean_array_push(x_8, x_1596); -x_1598 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1598, 0, x_1597); -lean_ctor_set(x_1598, 1, x_1594); -return x_1598; -} -} -else -{ -lean_object* x_1599; lean_object* x_1600; -x_1599 = lean_ctor_get(x_1576, 0); -lean_inc(x_1599); -x_1600 = lean_ctor_get(x_1576, 1); -lean_inc(x_1600); -lean_dec(x_1576); -x_1544 = x_1599; -x_1545 = x_1600; -goto block_1575; -} -block_1575: -{ -if (lean_obj_tag(x_1544) == 0) -{ -lean_object* x_1546; uint8_t x_1547; -lean_dec(x_1543); -x_1546 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_1545); -x_1547 = !lean_is_exclusive(x_1546); -if (x_1547 == 0) -{ -lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; uint8_t x_1551; -x_1548 = lean_ctor_get(x_1546, 0); -x_1549 = lean_ctor_get(x_1546, 1); -x_1550 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1549); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1551 = !lean_is_exclusive(x_1550); -if (x_1551 == 0) -{ -lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; -x_1552 = lean_ctor_get(x_1550, 1); -x_1553 = lean_ctor_get(x_1550, 0); -lean_dec(x_1553); -lean_ctor_set_tag(x_1550, 1); -lean_ctor_set(x_1550, 1, x_1548); -lean_ctor_set(x_1550, 0, x_1544); -x_1554 = lean_array_push(x_8, x_1550); -lean_ctor_set(x_1546, 1, x_1552); -lean_ctor_set(x_1546, 0, x_1554); -return x_1546; -} -else -{ -lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; -x_1555 = lean_ctor_get(x_1550, 1); -lean_inc(x_1555); -lean_dec(x_1550); -x_1556 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1556, 0, x_1544); -lean_ctor_set(x_1556, 1, x_1548); -x_1557 = lean_array_push(x_8, x_1556); -lean_ctor_set(x_1546, 1, x_1555); -lean_ctor_set(x_1546, 0, x_1557); -return x_1546; -} -} -else -{ -lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; -x_1558 = lean_ctor_get(x_1546, 0); -x_1559 = lean_ctor_get(x_1546, 1); -lean_inc(x_1559); -lean_inc(x_1558); -lean_dec(x_1546); -x_1560 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1559); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1561 = lean_ctor_get(x_1560, 1); -lean_inc(x_1561); -if (lean_is_exclusive(x_1560)) { - lean_ctor_release(x_1560, 0); - lean_ctor_release(x_1560, 1); - x_1562 = x_1560; -} else { - lean_dec_ref(x_1560); - x_1562 = lean_box(0); -} -if (lean_is_scalar(x_1562)) { - x_1563 = lean_alloc_ctor(1, 2, 0); -} else { - x_1563 = x_1562; - lean_ctor_set_tag(x_1563, 1); -} -lean_ctor_set(x_1563, 0, x_1544); -lean_ctor_set(x_1563, 1, x_1558); -x_1564 = lean_array_push(x_8, x_1563); -x_1565 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1565, 0, x_1564); -lean_ctor_set(x_1565, 1, x_1561); -return x_1565; -} -} -else -{ -lean_object* x_1566; lean_object* x_1567; uint8_t x_1568; -lean_dec(x_8); -x_1566 = lean_ctor_get(x_1544, 0); -lean_inc(x_1566); -x_1567 = l_Lean_Elab_postponeExceptionId; -x_1568 = lean_nat_dec_eq(x_1566, x_1567); -lean_dec(x_1566); -if (x_1568 == 0) -{ -lean_object* x_1569; -lean_dec(x_1541); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_1543)) { - x_1569 = lean_alloc_ctor(1, 2, 0); -} else { - x_1569 = x_1543; - lean_ctor_set_tag(x_1569, 1); -} -lean_ctor_set(x_1569, 0, x_1544); -lean_ctor_set(x_1569, 1, x_1545); -return x_1569; -} -else -{ -lean_object* x_1570; uint8_t x_1571; -lean_dec(x_1543); -x_1570 = l_Lean_Elab_Term_SavedState_restore(x_1541, x_9, x_10, x_11, x_12, x_13, x_14, x_1545); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_1571 = !lean_is_exclusive(x_1570); -if (x_1571 == 0) -{ -lean_object* x_1572; -x_1572 = lean_ctor_get(x_1570, 0); -lean_dec(x_1572); -lean_ctor_set_tag(x_1570, 1); -lean_ctor_set(x_1570, 0, x_1544); -return x_1570; -} -else -{ -lean_object* x_1573; lean_object* x_1574; -x_1573 = lean_ctor_get(x_1570, 1); -lean_inc(x_1573); -lean_dec(x_1570); -x_1574 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1574, 0, x_1544); -lean_ctor_set(x_1574, 1, x_1573); -return x_1574; -} -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; -lean_dec(x_1); -x_1604 = l_Lean_Syntax_getId(x_1237); -lean_dec(x_1237); -x_1605 = l_Lean_Name_eraseMacroScopes(x_1604); -lean_dec(x_1604); -x_1606 = l_Lean_Name_components(x_1605); -x_1607 = l_List_map___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__1(x_1606); -x_1608 = l_List_append___rarg(x_1607, x_2); -x_1 = x_1235; -x_2 = x_1608; -goto _start; -} -} -else -{ -lean_object* x_1610; lean_object* x_1611; -lean_dec(x_1); -x_1610 = l_Lean_fieldIdxKind; -x_1611 = l_Lean_Syntax_isNatLitAux(x_1610, x_1237); -lean_dec(x_1237); -if (lean_obj_tag(x_1611) == 0) -{ -lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; -x_1612 = l_Nat_Inhabited; -x_1613 = l_Option_get_x21___rarg___closed__3; -x_1614 = lean_panic_fn(x_1612, x_1613); -x_1615 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1615, 0, x_1614); -x_1616 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1616, 0, x_1615); -lean_ctor_set(x_1616, 1, x_2); -x_1 = x_1235; -x_2 = x_1616; -goto _start; -} -else -{ -lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; -x_1618 = lean_ctor_get(x_1611, 0); -lean_inc(x_1618); -lean_dec(x_1611); -x_1619 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1619, 0, x_1618); -x_1620 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1620, 0, x_1619); -lean_ctor_set(x_1620, 1, x_2); -x_1 = x_1235; -x_2 = x_1620; -goto _start; -} -} -} -} -} -else -{ -lean_object* x_1630; uint8_t x_1631; -x_1630 = l_Lean_Syntax_getArgs(x_1); -x_1631 = !lean_is_exclusive(x_9); -if (x_1631 == 0) -{ -uint8_t x_1632; lean_object* x_1633; lean_object* x_1634; -x_1632 = 0; -lean_ctor_set_uint8(x_9, sizeof(void*)*8 + 1, x_1632); -x_1633 = lean_unsigned_to_nat(0u); -x_1634 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1630, x_1633, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_1630); -lean_dec(x_1); -return x_1634; -} -else -{ -lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; uint8_t x_1643; uint8_t x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; -x_1635 = lean_ctor_get(x_9, 0); -x_1636 = lean_ctor_get(x_9, 1); -x_1637 = lean_ctor_get(x_9, 2); -x_1638 = lean_ctor_get(x_9, 3); -x_1639 = lean_ctor_get(x_9, 4); -x_1640 = lean_ctor_get(x_9, 5); -x_1641 = lean_ctor_get(x_9, 6); -x_1642 = lean_ctor_get(x_9, 7); -x_1643 = lean_ctor_get_uint8(x_9, sizeof(void*)*8); -lean_inc(x_1642); -lean_inc(x_1641); -lean_inc(x_1640); -lean_inc(x_1639); -lean_inc(x_1638); -lean_inc(x_1637); -lean_inc(x_1636); -lean_inc(x_1635); -lean_dec(x_9); -x_1644 = 0; -x_1645 = lean_alloc_ctor(0, 8, 2); -lean_ctor_set(x_1645, 0, x_1635); -lean_ctor_set(x_1645, 1, x_1636); -lean_ctor_set(x_1645, 2, x_1637); -lean_ctor_set(x_1645, 3, x_1638); -lean_ctor_set(x_1645, 4, x_1639); -lean_ctor_set(x_1645, 5, x_1640); -lean_ctor_set(x_1645, 6, x_1641); -lean_ctor_set(x_1645, 7, x_1642); -lean_ctor_set_uint8(x_1645, sizeof(void*)*8, x_1643); -lean_ctor_set_uint8(x_1645, sizeof(void*)*8 + 1, x_1644); -x_1646 = lean_unsigned_to_nat(0u); -x_1647 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_1630, x_1646, x_8, x_1645, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_1630); -lean_dec(x_1); -return x_1647; -} -} -block_381: -{ -if (x_16 == 0) +block_229: { uint8_t x_17; uint8_t x_18; +lean_dec(x_16); x_17 = l_List_isEmpty___rarg(x_2); if (x_7 == 0) { -uint8_t x_377; -x_377 = 1; -x_18 = x_377; -goto block_376; +uint8_t x_227; +x_227 = 1; +x_18 = x_227; +goto block_226; } else { -uint8_t x_378; -x_378 = 0; -x_18 = x_378; -goto block_376; +uint8_t x_228; +x_228 = 0; +x_18 = x_228; +goto block_226; } -block_376: +block_226: { +uint8_t x_19; if (x_17 == 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_56; lean_object* x_57; lean_object* x_79; -x_19 = lean_box(0); -x_20 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +uint8_t x_222; +x_222 = 0; +x_19 = x_222; +goto block_221; +} +else +{ +uint8_t x_223; +x_223 = l_Array_isEmpty___rarg(x_3); +if (x_223 == 0) +{ +uint8_t x_224; +x_224 = 0; +x_19 = x_224; +goto block_221; +} +else +{ +uint8_t x_225; +x_225 = l_Array_isEmpty___rarg(x_4); +x_19 = x_225; +goto block_221; +} +} +block_221: +{ +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_57; lean_object* x_58; lean_object* x_80; +x_20 = lean_box(0); +x_21 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_23 = x_20; +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + x_24 = x_21; } else { - lean_dec_ref(x_20); - x_23 = lean_box(0); + lean_dec_ref(x_21); + x_24 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -25913,15 +25873,15 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_79 = l_Lean_Elab_Term_elabTerm(x_1, x_19, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_22); -if (lean_obj_tag(x_79) == 0) +x_80 = l_Lean_Elab_Term_elabTerm(x_1, x_20, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_23); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -lean_dec(x_79); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -25929,725 +25889,637 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_82 = l___private_Lean_Elab_App_31__elabAppLVals(x_80, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_81); -if (lean_obj_tag(x_82) == 0) +x_83 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_81, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_82); +if (lean_obj_tag(x_83) == 0) { if (x_7 == 0) { -lean_object* x_83; lean_object* x_84; -lean_dec(x_23); +lean_object* x_84; lean_object* x_85; +lean_dec(x_24); lean_dec(x_5); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); +x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); -lean_dec(x_82); -x_56 = x_83; +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); x_57 = x_84; -goto block_78; +x_58 = x_85; +goto block_79; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_82, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_82, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_83, 0); lean_inc(x_86); -lean_dec(x_82); +x_87 = lean_ctor_get(x_83, 1); +lean_inc(x_87); +lean_dec(x_83); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_9); -x_87 = l_Lean_Elab_Term_ensureHasType(x_5, x_85, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_87) == 0) +x_88 = l_Lean_Elab_Term_ensureHasType(x_5, x_86, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_87); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_88; lean_object* x_89; -lean_dec(x_23); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +lean_object* x_89; lean_object* x_90; +lean_dec(x_24); +x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); -lean_dec(x_87); -x_56 = x_88; -x_57 = x_89; -goto block_78; -} -else -{ -lean_object* x_90; lean_object* x_91; -x_90 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_88, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 1); +lean_dec(x_88); +x_57 = x_89; +x_58 = x_90; +goto block_79; +} +else +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_88, 0); lean_inc(x_91); -lean_dec(x_87); -x_24 = x_90; -x_25 = x_91; -goto block_55; -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; -lean_dec(x_5); -x_92 = lean_ctor_get(x_82, 0); +x_92 = lean_ctor_get(x_88, 1); lean_inc(x_92); -x_93 = lean_ctor_get(x_82, 1); -lean_inc(x_93); -lean_dec(x_82); -x_24 = x_92; -x_25 = x_93; -goto block_55; +lean_dec(x_88); +x_25 = x_91; +x_26 = x_92; +goto block_56; +} } } else { -lean_object* x_94; lean_object* x_95; +lean_object* x_93; lean_object* x_94; +lean_dec(x_5); +x_93 = lean_ctor_get(x_83, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_83, 1); +lean_inc(x_94); +lean_dec(x_83); +x_25 = x_93; +x_26 = x_94; +goto block_56; +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_94 = lean_ctor_get(x_79, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_79, 1); +x_95 = lean_ctor_get(x_80, 0); lean_inc(x_95); -lean_dec(x_79); -x_24 = x_94; +x_96 = lean_ctor_get(x_80, 1); +lean_inc(x_96); +lean_dec(x_80); x_25 = x_95; -goto block_55; +x_26 = x_96; +goto block_56; } -block_55: +block_56: { -if (lean_obj_tag(x_24) == 0) +if (lean_obj_tag(x_25) == 0) { -lean_object* x_26; uint8_t x_27; -lean_dec(x_23); -x_26 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_25); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +lean_object* x_27; uint8_t x_28; +lean_dec(x_24); +x_27 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_26); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -x_30 = l_Lean_Elab_Term_SavedState_restore(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_29); +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +x_31 = l_Lean_Elab_Term_SavedState_restore(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_30); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 1); -x_33 = lean_ctor_get(x_30, 0); -lean_dec(x_33); -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 1, x_28); -lean_ctor_set(x_30, 0, x_24); -x_34 = lean_array_push(x_8, x_30); -lean_ctor_set(x_26, 1, x_32); -lean_ctor_set(x_26, 0, x_34); -return x_26; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 1); +x_34 = lean_ctor_get(x_31, 0); +lean_dec(x_34); +lean_ctor_set_tag(x_31, 1); +lean_ctor_set(x_31, 1, x_29); +lean_ctor_set(x_31, 0, x_25); +x_35 = lean_array_push(x_8, x_31); +lean_ctor_set(x_27, 1, x_33); +lean_ctor_set(x_27, 0, x_35); +return x_27; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_dec(x_30); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_24); -lean_ctor_set(x_36, 1, x_28); -x_37 = lean_array_push(x_8, x_36); -lean_ctor_set(x_26, 1, x_35); -lean_ctor_set(x_26, 0, x_37); -return x_26; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +lean_dec(x_31); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_25); +lean_ctor_set(x_37, 1, x_29); +x_38 = lean_array_push(x_8, x_37); +lean_ctor_set(x_27, 1, x_36); +lean_ctor_set(x_27, 0, x_38); +return x_27; } } 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; -x_38 = lean_ctor_get(x_26, 0); -x_39 = lean_ctor_get(x_26, 1); +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_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_26); -x_40 = l_Lean_Elab_Term_SavedState_restore(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_39); +lean_dec(x_27); +x_41 = l_Lean_Elab_Term_SavedState_restore(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_40); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_42 = x_40; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_43 = x_41; } else { - lean_dec_ref(x_40); - x_42 = lean_box(0); + lean_dec_ref(x_41); + x_43 = lean_box(0); } -if (lean_is_scalar(x_42)) { - x_43 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(1, 2, 0); } else { - x_43 = x_42; - lean_ctor_set_tag(x_43, 1); + x_44 = x_43; + lean_ctor_set_tag(x_44, 1); } -lean_ctor_set(x_43, 0, x_24); -lean_ctor_set(x_43, 1, x_38); -x_44 = lean_array_push(x_8, x_43); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_41); -return x_45; +lean_ctor_set(x_44, 0, x_25); +lean_ctor_set(x_44, 1, x_39); +x_45 = lean_array_push(x_8, x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; } } else { -lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_dec(x_8); -x_46 = lean_ctor_get(x_24, 0); -lean_inc(x_46); -x_47 = l_Lean_Elab_postponeExceptionId; -x_48 = lean_nat_dec_eq(x_46, x_47); -lean_dec(x_46); -if (x_48 == 0) +x_47 = lean_ctor_get(x_25, 0); +lean_inc(x_47); +x_48 = l_Lean_Elab_postponeExceptionId; +x_49 = lean_nat_dec_eq(x_47, x_48); +lean_dec(x_47); +if (x_49 == 0) { -lean_object* x_49; -lean_dec(x_21); +lean_object* x_50; +lean_dec(x_22); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_23)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_24)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_23; - lean_ctor_set_tag(x_49, 1); + x_50 = x_24; + lean_ctor_set_tag(x_50, 1); } -lean_ctor_set(x_49, 0, x_24); -lean_ctor_set(x_49, 1, x_25); -return x_49; -} -else -{ -lean_object* x_50; uint8_t x_51; -lean_dec(x_23); -x_50 = l_Lean_Elab_Term_SavedState_restore(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_25); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) -{ -lean_object* x_52; -x_52 = lean_ctor_get(x_50, 0); -lean_dec(x_52); -lean_ctor_set_tag(x_50, 1); -lean_ctor_set(x_50, 0, x_24); +lean_ctor_set(x_50, 0, x_25); +lean_ctor_set(x_50, 1, x_26); return x_50; } else { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -lean_dec(x_50); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_24); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -block_78: -{ -lean_object* x_58; uint8_t x_59; -x_58 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_57); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_ctor_get(x_58, 1); -x_62 = l_Lean_Elab_Term_SavedState_restore(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_61); +lean_object* x_51; uint8_t x_52; +lean_dec(x_24); +x_51 = l_Lean_Elab_Term_SavedState_restore(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_26); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_62, 1); -x_65 = lean_ctor_get(x_62, 0); -lean_dec(x_65); -lean_ctor_set(x_62, 1, x_60); -lean_ctor_set(x_62, 0, x_56); -x_66 = lean_array_push(x_8, x_62); -lean_ctor_set(x_58, 1, x_64); -lean_ctor_set(x_58, 0, x_66); -return x_58; +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set_tag(x_51, 1); +lean_ctor_set(x_51, 0, x_25); +return x_51; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_62, 1); -lean_inc(x_67); -lean_dec(x_62); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_56); -lean_ctor_set(x_68, 1, x_60); -x_69 = lean_array_push(x_8, x_68); -lean_ctor_set(x_58, 1, x_67); -lean_ctor_set(x_58, 0, x_69); -return x_58; +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_25); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +} +block_79: +{ +lean_object* x_59; uint8_t x_60; +x_59 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_58); +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); +x_63 = l_Lean_Elab_Term_SavedState_restore(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_62); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 1); +x_66 = lean_ctor_get(x_63, 0); +lean_dec(x_66); +lean_ctor_set(x_63, 1, x_61); +lean_ctor_set(x_63, 0, x_57); +x_67 = lean_array_push(x_8, x_63); +lean_ctor_set(x_59, 1, x_65); +lean_ctor_set(x_59, 0, x_67); +return x_59; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +lean_dec(x_63); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_57); +lean_ctor_set(x_69, 1, x_61); +x_70 = lean_array_push(x_8, x_69); +lean_ctor_set(x_59, 1, x_68); +lean_ctor_set(x_59, 0, x_70); +return x_59; } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_70 = lean_ctor_get(x_58, 0); -x_71 = lean_ctor_get(x_58, 1); +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; +x_71 = lean_ctor_get(x_59, 0); +x_72 = lean_ctor_get(x_59, 1); +lean_inc(x_72); lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_58); -x_72 = l_Lean_Elab_Term_SavedState_restore(x_21, x_9, x_10, x_11, x_12, x_13, x_14, x_71); +lean_dec(x_59); +x_73 = l_Lean_Elab_Term_SavedState_restore(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_72); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_75 = x_73; } else { - lean_dec_ref(x_72); - x_74 = lean_box(0); + lean_dec_ref(x_73); + x_75 = lean_box(0); } -if (lean_is_scalar(x_74)) { - x_75 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(0, 2, 0); } else { - x_75 = x_74; + x_76 = x_75; } -lean_ctor_set(x_75, 0, x_56); -lean_ctor_set(x_75, 1, x_70); -x_76 = lean_array_push(x_8, x_75); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_73); -return x_77; +lean_ctor_set(x_76, 0, x_57); +lean_ctor_set(x_76, 1, x_71); +x_77 = lean_array_push(x_8, x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_74); +return x_78; } } } else { -uint8_t x_96; -x_96 = l_Array_isEmpty___rarg(x_3); -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_134; lean_object* x_135; lean_object* x_157; -x_97 = lean_box(0); -x_98 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_101 = x_98; -} else { - lean_dec_ref(x_98); - x_101 = lean_box(0); -} -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_157 = l_Lean_Elab_Term_elabTerm(x_1, x_97, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_100); -if (lean_obj_tag(x_157) == 0) -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -x_160 = l___private_Lean_Elab_App_31__elabAppLVals(x_158, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_159); -if (lean_obj_tag(x_160) == 0) -{ -if (x_7 == 0) -{ -lean_object* x_161; lean_object* x_162; -lean_dec(x_101); -lean_dec(x_5); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); -x_134 = x_161; -x_135 = x_162; -goto block_156; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_160, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_160, 1); -lean_inc(x_164); -lean_dec(x_160); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -x_165 = l_Lean_Elab_Term_ensureHasType(x_5, x_163, x_97, x_9, x_10, x_11, x_12, x_13, x_14, x_164); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; lean_object* x_167; -lean_dec(x_101); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_134 = x_166; -x_135 = x_167; -goto block_156; -} -else -{ -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_165, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_165, 1); -lean_inc(x_169); -lean_dec(x_165); -x_102 = x_168; -x_103 = x_169; -goto block_133; -} -} -} -else -{ -lean_object* x_170; lean_object* x_171; -lean_dec(x_5); -x_170 = lean_ctor_get(x_160, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_160, 1); -lean_inc(x_171); -lean_dec(x_160); -x_102 = x_170; -x_103 = x_171; -goto block_133; -} -} -else -{ -lean_object* x_172; lean_object* x_173; -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_172 = lean_ctor_get(x_157, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_157, 1); -lean_inc(x_173); -lean_dec(x_157); -x_102 = x_172; -x_103 = x_173; -goto block_133; +if (x_7 == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_133; lean_object* x_134; +x_97 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; +} else { + lean_dec_ref(x_97); + x_100 = lean_box(0); } -block_133: +x_133 = 1; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_134 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_133, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +if (lean_obj_tag(x_134) == 0) { -if (lean_obj_tag(x_102) == 0) +lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +lean_dec(x_100); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_137 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_136); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) { -lean_object* x_104; uint8_t x_105; -lean_dec(x_101); -x_104 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_103); -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_106 = lean_ctor_get(x_104, 0); -x_107 = lean_ctor_get(x_104, 1); -x_108 = l_Lean_Elab_Term_SavedState_restore(x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_107); +lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +x_141 = l_Lean_Elab_Term_SavedState_restore(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_140); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_109 = !lean_is_exclusive(x_108); -if (x_109 == 0) +x_142 = !lean_is_exclusive(x_141); +if (x_142 == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_108, 1); -x_111 = lean_ctor_get(x_108, 0); -lean_dec(x_111); -lean_ctor_set_tag(x_108, 1); -lean_ctor_set(x_108, 1, x_106); -lean_ctor_set(x_108, 0, x_102); -x_112 = lean_array_push(x_8, x_108); -lean_ctor_set(x_104, 1, x_110); -lean_ctor_set(x_104, 0, x_112); -return x_104; +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_141, 1); +x_144 = lean_ctor_get(x_141, 0); +lean_dec(x_144); +lean_ctor_set(x_141, 1, x_139); +lean_ctor_set(x_141, 0, x_135); +x_145 = lean_array_push(x_8, x_141); +lean_ctor_set(x_137, 1, x_143); +lean_ctor_set(x_137, 0, x_145); +return x_137; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_dec(x_108); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_102); -lean_ctor_set(x_114, 1, x_106); -x_115 = lean_array_push(x_8, x_114); -lean_ctor_set(x_104, 1, x_113); -lean_ctor_set(x_104, 0, x_115); -return x_104; +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_141, 1); +lean_inc(x_146); +lean_dec(x_141); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_135); +lean_ctor_set(x_147, 1, x_139); +x_148 = lean_array_push(x_8, x_147); +lean_ctor_set(x_137, 1, x_146); +lean_ctor_set(x_137, 0, x_148); +return x_137; } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_116 = lean_ctor_get(x_104, 0); -x_117 = lean_ctor_get(x_104, 1); -lean_inc(x_117); +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; +x_149 = lean_ctor_get(x_137, 0); +x_150 = lean_ctor_get(x_137, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_137); +x_151 = l_Lean_Elab_Term_SavedState_restore(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_150); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_153 = x_151; +} else { + lean_dec_ref(x_151); + x_153 = lean_box(0); +} +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_153; +} +lean_ctor_set(x_154, 0, x_135); +lean_ctor_set(x_154, 1, x_149); +x_155 = lean_array_push(x_8, x_154); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_152); +return x_156; +} +} +else +{ +lean_object* x_157; lean_object* x_158; +x_157 = lean_ctor_get(x_134, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_134, 1); +lean_inc(x_158); +lean_dec(x_134); +x_101 = x_157; +x_102 = x_158; +goto block_132; +} +block_132: +{ +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_103; uint8_t x_104; +lean_dec(x_100); +x_103 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_102); +x_104 = !lean_is_exclusive(x_103); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_105 = lean_ctor_get(x_103, 0); +x_106 = lean_ctor_get(x_103, 1); +x_107 = l_Lean_Elab_Term_SavedState_restore(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_106); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_108 = !lean_is_exclusive(x_107); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_107, 1); +x_110 = lean_ctor_get(x_107, 0); +lean_dec(x_110); +lean_ctor_set_tag(x_107, 1); +lean_ctor_set(x_107, 1, x_105); +lean_ctor_set(x_107, 0, x_101); +x_111 = lean_array_push(x_8, x_107); +lean_ctor_set(x_103, 1, x_109); +lean_ctor_set(x_103, 0, x_111); +return x_103; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_107, 1); +lean_inc(x_112); +lean_dec(x_107); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_101); +lean_ctor_set(x_113, 1, x_105); +x_114 = lean_array_push(x_8, x_113); +lean_ctor_set(x_103, 1, x_112); +lean_ctor_set(x_103, 0, x_114); +return x_103; +} +} +else +{ +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; +x_115 = lean_ctor_get(x_103, 0); +x_116 = lean_ctor_get(x_103, 1); lean_inc(x_116); -lean_dec(x_104); -x_118 = l_Lean_Elab_Term_SavedState_restore(x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_117); +lean_inc(x_115); +lean_dec(x_103); +x_117 = l_Lean_Elab_Term_SavedState_restore(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_116); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_120 = x_118; +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; } else { - lean_dec_ref(x_118); - x_120 = lean_box(0); + lean_dec_ref(x_117); + x_119 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; - lean_ctor_set_tag(x_121, 1); + x_120 = x_119; + lean_ctor_set_tag(x_120, 1); } -lean_ctor_set(x_121, 0, x_102); -lean_ctor_set(x_121, 1, x_116); -x_122 = lean_array_push(x_8, x_121); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_119); -return x_123; +lean_ctor_set(x_120, 0, x_101); +lean_ctor_set(x_120, 1, x_115); +x_121 = lean_array_push(x_8, x_120); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_118); +return x_122; } } else { -lean_object* x_124; lean_object* x_125; uint8_t x_126; +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_dec(x_8); -x_124 = lean_ctor_get(x_102, 0); -lean_inc(x_124); -x_125 = l_Lean_Elab_postponeExceptionId; -x_126 = lean_nat_dec_eq(x_124, x_125); -lean_dec(x_124); -if (x_126 == 0) +x_123 = lean_ctor_get(x_101, 0); +lean_inc(x_123); +x_124 = l_Lean_Elab_postponeExceptionId; +x_125 = lean_nat_dec_eq(x_123, x_124); +lean_dec(x_123); +if (x_125 == 0) { -lean_object* x_127; -lean_dec(x_99); +lean_object* x_126; +lean_dec(x_98); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_101)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_100)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_101; - lean_ctor_set_tag(x_127, 1); + x_126 = x_100; + lean_ctor_set_tag(x_126, 1); } -lean_ctor_set(x_127, 0, x_102); -lean_ctor_set(x_127, 1, x_103); +lean_ctor_set(x_126, 0, x_101); +lean_ctor_set(x_126, 1, x_102); +return x_126; +} +else +{ +lean_object* x_127; uint8_t x_128; +lean_dec(x_100); +x_127 = l_Lean_Elab_Term_SavedState_restore(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_102); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +lean_object* x_129; +x_129 = lean_ctor_get(x_127, 0); +lean_dec(x_129); +lean_ctor_set_tag(x_127, 1); +lean_ctor_set(x_127, 0, x_101); return x_127; } else { -lean_object* x_128; uint8_t x_129; -lean_dec(x_101); -x_128 = l_Lean_Elab_Term_SavedState_restore(x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_103); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_129 = !lean_is_exclusive(x_128); -if (x_129 == 0) -{ -lean_object* x_130; -x_130 = lean_ctor_get(x_128, 0); -lean_dec(x_130); -lean_ctor_set_tag(x_128, 1); -lean_ctor_set(x_128, 0, x_102); -return x_128; -} -else -{ -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_128, 1); -lean_inc(x_131); -lean_dec(x_128); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_102); -lean_ctor_set(x_132, 1, x_131); -return x_132; +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_127, 1); +lean_inc(x_130); +lean_dec(x_127); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_101); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } } -block_156: -{ -lean_object* x_136; uint8_t x_137; -x_136 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_135); -x_137 = !lean_is_exclusive(x_136); -if (x_137 == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -x_138 = lean_ctor_get(x_136, 0); -x_139 = lean_ctor_get(x_136, 1); -x_140 = l_Lean_Elab_Term_SavedState_restore(x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_139); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_141 = !lean_is_exclusive(x_140); -if (x_141 == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_140, 1); -x_143 = lean_ctor_get(x_140, 0); -lean_dec(x_143); -lean_ctor_set(x_140, 1, x_138); -lean_ctor_set(x_140, 0, x_134); -x_144 = lean_array_push(x_8, x_140); -lean_ctor_set(x_136, 1, x_142); -lean_ctor_set(x_136, 0, x_144); -return x_136; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_140, 1); -lean_inc(x_145); -lean_dec(x_140); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_134); -lean_ctor_set(x_146, 1, x_138); -x_147 = lean_array_push(x_8, x_146); -lean_ctor_set(x_136, 1, x_145); -lean_ctor_set(x_136, 0, x_147); -return x_136; -} } else { -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_148 = lean_ctor_get(x_136, 0); -x_149 = lean_ctor_get(x_136, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_136); -x_150 = l_Lean_Elab_Term_SavedState_restore(x_99, x_9, x_10, x_11, x_12, x_13, x_14, x_149); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_152 = x_150; +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_196; +x_159 = lean_box(0); +x_160 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_163 = x_160; } else { - lean_dec_ref(x_150); - x_152 = lean_box(0); -} -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_152; -} -lean_ctor_set(x_153, 0, x_134); -lean_ctor_set(x_153, 1, x_148); -x_154 = lean_array_push(x_8, x_153); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_151); -return x_155; -} -} -} -else -{ -uint8_t x_174; -x_174 = l_Array_isEmpty___rarg(x_4); -if (x_174 == 0) -{ -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_212; lean_object* x_213; lean_object* x_235; -x_175 = lean_box(0); -x_176 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_179 = x_176; -} else { - lean_dec_ref(x_176); - x_179 = lean_box(0); + lean_dec_ref(x_160); + x_163 = lean_box(0); } lean_inc(x_14); lean_inc(x_13); @@ -26655,15 +26527,358 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_235 = l_Lean_Elab_Term_elabTerm(x_1, x_175, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_178); -if (lean_obj_tag(x_235) == 0) +x_196 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_18, x_159, x_9, x_10, x_11, x_12, x_13, x_14, x_162); +if (lean_obj_tag(x_196) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); +lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +lean_dec(x_163); +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +x_199 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_198); +x_200 = !lean_is_exclusive(x_199); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_201 = lean_ctor_get(x_199, 0); +x_202 = lean_ctor_get(x_199, 1); +x_203 = l_Lean_Elab_Term_SavedState_restore(x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_202); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_204 = !lean_is_exclusive(x_203); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_203, 1); +x_206 = lean_ctor_get(x_203, 0); +lean_dec(x_206); +lean_ctor_set(x_203, 1, x_201); +lean_ctor_set(x_203, 0, x_197); +x_207 = lean_array_push(x_8, x_203); +lean_ctor_set(x_199, 1, x_205); +lean_ctor_set(x_199, 0, x_207); +return x_199; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_203, 1); +lean_inc(x_208); +lean_dec(x_203); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_197); +lean_ctor_set(x_209, 1, x_201); +x_210 = lean_array_push(x_8, x_209); +lean_ctor_set(x_199, 1, x_208); +lean_ctor_set(x_199, 0, x_210); +return x_199; +} +} +else +{ +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; +x_211 = lean_ctor_get(x_199, 0); +x_212 = lean_ctor_get(x_199, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_199); +x_213 = l_Lean_Elab_Term_SavedState_restore(x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_212); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_214 = lean_ctor_get(x_213, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_215 = x_213; +} else { + lean_dec_ref(x_213); + x_215 = lean_box(0); +} +if (lean_is_scalar(x_215)) { + x_216 = lean_alloc_ctor(0, 2, 0); +} else { + x_216 = x_215; +} +lean_ctor_set(x_216, 0, x_197); +lean_ctor_set(x_216, 1, x_211); +x_217 = lean_array_push(x_8, x_216); +x_218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_214); +return x_218; +} +} +else +{ +lean_object* x_219; lean_object* x_220; +x_219 = lean_ctor_get(x_196, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_196, 1); +lean_inc(x_220); +lean_dec(x_196); +x_164 = x_219; +x_165 = x_220; +goto block_195; +} +block_195: +{ +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_166; uint8_t x_167; +lean_dec(x_163); +x_166 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_165); +x_167 = !lean_is_exclusive(x_166); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_168 = lean_ctor_get(x_166, 0); +x_169 = lean_ctor_get(x_166, 1); +x_170 = l_Lean_Elab_Term_SavedState_restore(x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_169); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_171 = !lean_is_exclusive(x_170); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_170, 1); +x_173 = lean_ctor_get(x_170, 0); +lean_dec(x_173); +lean_ctor_set_tag(x_170, 1); +lean_ctor_set(x_170, 1, x_168); +lean_ctor_set(x_170, 0, x_164); +x_174 = lean_array_push(x_8, x_170); +lean_ctor_set(x_166, 1, x_172); +lean_ctor_set(x_166, 0, x_174); +return x_166; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_170, 1); +lean_inc(x_175); +lean_dec(x_170); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_164); +lean_ctor_set(x_176, 1, x_168); +x_177 = lean_array_push(x_8, x_176); +lean_ctor_set(x_166, 1, x_175); +lean_ctor_set(x_166, 0, x_177); +return x_166; +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_178 = lean_ctor_get(x_166, 0); +x_179 = lean_ctor_get(x_166, 1); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_166); +x_180 = l_Lean_Elab_Term_SavedState_restore(x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_179); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_182 = x_180; +} else { + lean_dec_ref(x_180); + x_182 = lean_box(0); +} +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_182; + lean_ctor_set_tag(x_183, 1); +} +lean_ctor_set(x_183, 0, x_164); +lean_ctor_set(x_183, 1, x_178); +x_184 = lean_array_push(x_8, x_183); +x_185 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_181); +return x_185; +} +} +else +{ +lean_object* x_186; lean_object* x_187; uint8_t x_188; +lean_dec(x_8); +x_186 = lean_ctor_get(x_164, 0); +lean_inc(x_186); +x_187 = l_Lean_Elab_postponeExceptionId; +x_188 = lean_nat_dec_eq(x_186, x_187); +lean_dec(x_186); +if (x_188 == 0) +{ +lean_object* x_189; +lean_dec(x_161); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_163)) { + x_189 = lean_alloc_ctor(1, 2, 0); +} else { + x_189 = x_163; + lean_ctor_set_tag(x_189, 1); +} +lean_ctor_set(x_189, 0, x_164); +lean_ctor_set(x_189, 1, x_165); +return x_189; +} +else +{ +lean_object* x_190; uint8_t x_191; +lean_dec(x_163); +x_190 = l_Lean_Elab_Term_SavedState_restore(x_161, x_9, x_10, x_11, x_12, x_13, x_14, x_165); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_191 = !lean_is_exclusive(x_190); +if (x_191 == 0) +{ +lean_object* x_192; +x_192 = lean_ctor_get(x_190, 0); +lean_dec(x_192); +lean_ctor_set_tag(x_190, 1); +lean_ctor_set(x_190, 0, x_164); +return x_190; +} +else +{ +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_190, 1); +lean_inc(x_193); +lean_dec(x_190); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_164); +lean_ctor_set(x_194, 1, x_193); +return x_194; +} +} +} +} +} +} +} +} +} +block_449: +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; +lean_dec(x_230); +x_231 = lean_unsigned_to_nat(0u); +x_232 = l_Lean_Syntax_getArg(x_1, x_231); +x_233 = l_Lean_identKind___closed__2; +x_234 = l_Lean_Syntax_isOfKind(x_232, x_233); +if (x_234 == 0) +{ +uint8_t x_235; uint8_t x_236; +x_235 = l_List_isEmpty___rarg(x_2); +if (x_7 == 0) +{ +uint8_t x_445; +x_445 = 1; +x_236 = x_445; +goto block_444; +} +else +{ +uint8_t x_446; +x_446 = 0; +x_236 = x_446; +goto block_444; +} +block_444: +{ +uint8_t x_237; +if (x_235 == 0) +{ +uint8_t x_440; +x_440 = 0; +x_237 = x_440; +goto block_439; +} +else +{ +uint8_t x_441; +x_441 = l_Array_isEmpty___rarg(x_3); +if (x_441 == 0) +{ +uint8_t x_442; +x_442 = 0; +x_237 = x_442; +goto block_439; +} +else +{ +uint8_t x_443; +x_443 = l_Array_isEmpty___rarg(x_4); +x_237 = x_443; +goto block_439; +} +} +block_439: +{ +if (x_237 == 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; lean_object* x_275; lean_object* x_276; lean_object* x_298; +x_238 = lean_box(0); +x_239 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_239, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + x_242 = x_239; +} else { + lean_dec_ref(x_239); + x_242 = lean_box(0); +} +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_298 = l_Lean_Elab_Term_elabTerm(x_1, x_238, x_236, x_9, x_10, x_11, x_12, x_13, x_14, x_241); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec(x_298); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -26671,625 +26886,342 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_5); -x_238 = l___private_Lean_Elab_App_31__elabAppLVals(x_236, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_237); -if (lean_obj_tag(x_238) == 0) +x_301 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_299, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_300); +if (lean_obj_tag(x_301) == 0) { if (x_7 == 0) { -lean_object* x_239; lean_object* x_240; -lean_dec(x_179); +lean_object* x_302; lean_object* x_303; +lean_dec(x_242); lean_dec(x_5); -x_239 = lean_ctor_get(x_238, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_238, 1); -lean_inc(x_240); -lean_dec(x_238); -x_212 = x_239; -x_213 = x_240; -goto block_234; +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +x_275 = x_302; +x_276 = x_303; +goto block_297; } else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_238, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_238, 1); -lean_inc(x_242); -lean_dec(x_238); +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_301, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_301, 1); +lean_inc(x_305); +lean_dec(x_301); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_9); -x_243 = l_Lean_Elab_Term_ensureHasType(x_5, x_241, x_175, x_9, x_10, x_11, x_12, x_13, x_14, x_242); +x_306 = l_Lean_Elab_Term_ensureHasType(x_5, x_304, x_238, x_9, x_10, x_11, x_12, x_13, x_14, x_305); +if (lean_obj_tag(x_306) == 0) +{ +lean_object* x_307; lean_object* x_308; +lean_dec(x_242); +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +lean_dec(x_306); +x_275 = x_307; +x_276 = x_308; +goto block_297; +} +else +{ +lean_object* x_309; lean_object* x_310; +x_309 = lean_ctor_get(x_306, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_306, 1); +lean_inc(x_310); +lean_dec(x_306); +x_243 = x_309; +x_244 = x_310; +goto block_274; +} +} +} +else +{ +lean_object* x_311; lean_object* x_312; +lean_dec(x_5); +x_311 = lean_ctor_get(x_301, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_301, 1); +lean_inc(x_312); +lean_dec(x_301); +x_243 = x_311; +x_244 = x_312; +goto block_274; +} +} +else +{ +lean_object* x_313; lean_object* x_314; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_313 = lean_ctor_get(x_298, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_298, 1); +lean_inc(x_314); +lean_dec(x_298); +x_243 = x_313; +x_244 = x_314; +goto block_274; +} +block_274: +{ if (lean_obj_tag(x_243) == 0) { -lean_object* x_244; lean_object* x_245; -lean_dec(x_179); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); -lean_inc(x_245); -lean_dec(x_243); -x_212 = x_244; -x_213 = x_245; -goto block_234; -} -else +lean_object* x_245; uint8_t x_246; +lean_dec(x_242); +x_245 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_244); +x_246 = !lean_is_exclusive(x_245); +if (x_246 == 0) { -lean_object* x_246; lean_object* x_247; -x_246 = lean_ctor_get(x_243, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_243, 1); -lean_inc(x_247); -lean_dec(x_243); -x_180 = x_246; -x_181 = x_247; -goto block_211; -} -} -} -else -{ -lean_object* x_248; lean_object* x_249; -lean_dec(x_5); -x_248 = lean_ctor_get(x_238, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_238, 1); -lean_inc(x_249); -lean_dec(x_238); -x_180 = x_248; -x_181 = x_249; -goto block_211; -} -} -else -{ -lean_object* x_250; lean_object* x_251; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_250 = lean_ctor_get(x_235, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_235, 1); -lean_inc(x_251); -lean_dec(x_235); -x_180 = x_250; -x_181 = x_251; -goto block_211; -} -block_211: -{ -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_182; uint8_t x_183; -lean_dec(x_179); -x_182 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_181); -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; -x_184 = lean_ctor_get(x_182, 0); -x_185 = lean_ctor_get(x_182, 1); -x_186 = l_Lean_Elab_Term_SavedState_restore(x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_185); +lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; +x_247 = lean_ctor_get(x_245, 0); +x_248 = lean_ctor_get(x_245, 1); +x_249 = l_Lean_Elab_Term_SavedState_restore(x_240, x_9, x_10, x_11, x_12, x_13, x_14, x_248); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_187 = !lean_is_exclusive(x_186); -if (x_187 == 0) +x_250 = !lean_is_exclusive(x_249); +if (x_250 == 0) { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_186, 1); -x_189 = lean_ctor_get(x_186, 0); -lean_dec(x_189); -lean_ctor_set_tag(x_186, 1); -lean_ctor_set(x_186, 1, x_184); -lean_ctor_set(x_186, 0, x_180); -x_190 = lean_array_push(x_8, x_186); -lean_ctor_set(x_182, 1, x_188); -lean_ctor_set(x_182, 0, x_190); -return x_182; +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_249, 1); +x_252 = lean_ctor_get(x_249, 0); +lean_dec(x_252); +lean_ctor_set_tag(x_249, 1); +lean_ctor_set(x_249, 1, x_247); +lean_ctor_set(x_249, 0, x_243); +x_253 = lean_array_push(x_8, x_249); +lean_ctor_set(x_245, 1, x_251); +lean_ctor_set(x_245, 0, x_253); +return x_245; } else { -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_186, 1); -lean_inc(x_191); -lean_dec(x_186); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_180); -lean_ctor_set(x_192, 1, x_184); -x_193 = lean_array_push(x_8, x_192); -lean_ctor_set(x_182, 1, x_191); -lean_ctor_set(x_182, 0, x_193); -return x_182; -} -} -else -{ -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; -x_194 = lean_ctor_get(x_182, 0); -x_195 = lean_ctor_get(x_182, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_182); -x_196 = l_Lean_Elab_Term_SavedState_restore(x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_195); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_198 = x_196; -} else { - lean_dec_ref(x_196); - x_198 = lean_box(0); -} -if (lean_is_scalar(x_198)) { - x_199 = lean_alloc_ctor(1, 2, 0); -} else { - x_199 = x_198; - lean_ctor_set_tag(x_199, 1); -} -lean_ctor_set(x_199, 0, x_180); -lean_ctor_set(x_199, 1, x_194); -x_200 = lean_array_push(x_8, x_199); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_197); -return x_201; -} -} -else -{ -lean_object* x_202; lean_object* x_203; uint8_t x_204; -lean_dec(x_8); -x_202 = lean_ctor_get(x_180, 0); -lean_inc(x_202); -x_203 = l_Lean_Elab_postponeExceptionId; -x_204 = lean_nat_dec_eq(x_202, x_203); -lean_dec(x_202); -if (x_204 == 0) -{ -lean_object* x_205; -lean_dec(x_177); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -if (lean_is_scalar(x_179)) { - x_205 = lean_alloc_ctor(1, 2, 0); -} else { - x_205 = x_179; - lean_ctor_set_tag(x_205, 1); -} -lean_ctor_set(x_205, 0, x_180); -lean_ctor_set(x_205, 1, x_181); -return x_205; -} -else -{ -lean_object* x_206; uint8_t x_207; -lean_dec(x_179); -x_206 = l_Lean_Elab_Term_SavedState_restore(x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_181); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_207 = !lean_is_exclusive(x_206); -if (x_207 == 0) -{ -lean_object* x_208; -x_208 = lean_ctor_get(x_206, 0); -lean_dec(x_208); -lean_ctor_set_tag(x_206, 1); -lean_ctor_set(x_206, 0, x_180); -return x_206; -} -else -{ -lean_object* x_209; lean_object* x_210; -x_209 = lean_ctor_get(x_206, 1); -lean_inc(x_209); -lean_dec(x_206); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_180); -lean_ctor_set(x_210, 1, x_209); -return x_210; -} -} -} -} -block_234: -{ -lean_object* x_214; uint8_t x_215; -x_214 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_213); -x_215 = !lean_is_exclusive(x_214); -if (x_215 == 0) -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; -x_216 = lean_ctor_get(x_214, 0); -x_217 = lean_ctor_get(x_214, 1); -x_218 = l_Lean_Elab_Term_SavedState_restore(x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_217); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_219 = !lean_is_exclusive(x_218); -if (x_219 == 0) -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_218, 1); -x_221 = lean_ctor_get(x_218, 0); -lean_dec(x_221); -lean_ctor_set(x_218, 1, x_216); -lean_ctor_set(x_218, 0, x_212); -x_222 = lean_array_push(x_8, x_218); -lean_ctor_set(x_214, 1, x_220); -lean_ctor_set(x_214, 0, x_222); -return x_214; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_218, 1); -lean_inc(x_223); -lean_dec(x_218); -x_224 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_224, 0, x_212); -lean_ctor_set(x_224, 1, x_216); -x_225 = lean_array_push(x_8, x_224); -lean_ctor_set(x_214, 1, x_223); -lean_ctor_set(x_214, 0, x_225); -return x_214; -} -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_226 = lean_ctor_get(x_214, 0); -x_227 = lean_ctor_get(x_214, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_214); -x_228 = l_Lean_Elab_Term_SavedState_restore(x_177, x_9, x_10, x_11, x_12, x_13, x_14, x_227); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_230 = x_228; -} else { - lean_dec_ref(x_228); - x_230 = lean_box(0); -} -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(0, 2, 0); -} else { - x_231 = x_230; -} -lean_ctor_set(x_231, 0, x_212); -lean_ctor_set(x_231, 1, x_226); -x_232 = lean_array_push(x_8, x_231); -x_233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_229); -return x_233; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_7 == 0) -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_288; lean_object* x_289; -x_252 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); +lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_254 = lean_ctor_get(x_249, 1); lean_inc(x_254); -if (lean_is_exclusive(x_252)) { - lean_ctor_release(x_252, 0); - lean_ctor_release(x_252, 1); - x_255 = x_252; -} else { - lean_dec_ref(x_252); - x_255 = lean_box(0); +lean_dec(x_249); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_243); +lean_ctor_set(x_255, 1, x_247); +x_256 = lean_array_push(x_8, x_255); +lean_ctor_set(x_245, 1, x_254); +lean_ctor_set(x_245, 0, x_256); +return x_245; } -x_288 = 1; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_289 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_288, x_9, x_10, x_11, x_12, x_13, x_14, x_254); -if (lean_obj_tag(x_289) == 0) +} +else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; -lean_dec(x_255); -x_290 = lean_ctor_get(x_289, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_289, 1); -lean_inc(x_291); -lean_dec(x_289); -x_292 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_291); -x_293 = !lean_is_exclusive(x_292); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -x_294 = lean_ctor_get(x_292, 0); -x_295 = lean_ctor_get(x_292, 1); -x_296 = l_Lean_Elab_Term_SavedState_restore(x_253, x_9, x_10, x_11, x_12, x_13, x_14, x_295); +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; +x_257 = lean_ctor_get(x_245, 0); +x_258 = lean_ctor_get(x_245, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_245); +x_259 = l_Lean_Elab_Term_SavedState_restore(x_240, x_9, x_10, x_11, x_12, x_13, x_14, x_258); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_297 = !lean_is_exclusive(x_296); -if (x_297 == 0) -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_ctor_get(x_296, 1); -x_299 = lean_ctor_get(x_296, 0); -lean_dec(x_299); -lean_ctor_set(x_296, 1, x_294); -lean_ctor_set(x_296, 0, x_290); -x_300 = lean_array_push(x_8, x_296); -lean_ctor_set(x_292, 1, x_298); -lean_ctor_set(x_292, 0, x_300); -return x_292; -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; -x_301 = lean_ctor_get(x_296, 1); -lean_inc(x_301); -lean_dec(x_296); -x_302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_302, 0, x_290); -lean_ctor_set(x_302, 1, x_294); -x_303 = lean_array_push(x_8, x_302); -lean_ctor_set(x_292, 1, x_301); -lean_ctor_set(x_292, 0, x_303); -return x_292; -} -} -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; -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_Lean_Elab_Term_SavedState_restore(x_253, x_9, x_10, x_11, x_12, x_13, x_14, x_305); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; +x_260 = lean_ctor_get(x_259, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + x_261 = x_259; } else { - lean_dec_ref(x_306); - x_308 = lean_box(0); + lean_dec_ref(x_259); + x_261 = lean_box(0); } -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_261)) { + x_262 = lean_alloc_ctor(1, 2, 0); } else { - x_309 = x_308; + x_262 = x_261; + lean_ctor_set_tag(x_262, 1); } -lean_ctor_set(x_309, 0, x_290); -lean_ctor_set(x_309, 1, x_304); -x_310 = lean_array_push(x_8, x_309); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_310); -lean_ctor_set(x_311, 1, x_307); -return x_311; +lean_ctor_set(x_262, 0, x_243); +lean_ctor_set(x_262, 1, x_257); +x_263 = lean_array_push(x_8, x_262); +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_260); +return x_264; } } else { -lean_object* x_312; lean_object* x_313; -x_312 = lean_ctor_get(x_289, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_289, 1); -lean_inc(x_313); -lean_dec(x_289); -x_256 = x_312; -x_257 = x_313; -goto block_287; -} -block_287: -{ -if (lean_obj_tag(x_256) == 0) -{ -lean_object* x_258; uint8_t x_259; -lean_dec(x_255); -x_258 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_257); -x_259 = !lean_is_exclusive(x_258); -if (x_259 == 0) -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; -x_260 = lean_ctor_get(x_258, 0); -x_261 = lean_ctor_get(x_258, 1); -x_262 = l_Lean_Elab_Term_SavedState_restore(x_253, x_9, x_10, x_11, x_12, x_13, x_14, x_261); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_263 = !lean_is_exclusive(x_262); -if (x_263 == 0) -{ -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_262, 1); -x_265 = lean_ctor_get(x_262, 0); +lean_object* x_265; lean_object* x_266; uint8_t x_267; +lean_dec(x_8); +x_265 = lean_ctor_get(x_243, 0); +lean_inc(x_265); +x_266 = l_Lean_Elab_postponeExceptionId; +x_267 = lean_nat_dec_eq(x_265, x_266); lean_dec(x_265); -lean_ctor_set_tag(x_262, 1); -lean_ctor_set(x_262, 1, x_260); -lean_ctor_set(x_262, 0, x_256); -x_266 = lean_array_push(x_8, x_262); -lean_ctor_set(x_258, 1, x_264); -lean_ctor_set(x_258, 0, x_266); -return x_258; -} -else +if (x_267 == 0) { -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_262, 1); -lean_inc(x_267); -lean_dec(x_262); -x_268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_268, 0, x_256); -lean_ctor_set(x_268, 1, x_260); -x_269 = lean_array_push(x_8, x_268); -lean_ctor_set(x_258, 1, x_267); -lean_ctor_set(x_258, 0, x_269); -return x_258; -} -} -else -{ -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; -x_270 = lean_ctor_get(x_258, 0); -x_271 = lean_ctor_get(x_258, 1); -lean_inc(x_271); -lean_inc(x_270); -lean_dec(x_258); -x_272 = l_Lean_Elab_Term_SavedState_restore(x_253, x_9, x_10, x_11, x_12, x_13, x_14, x_271); +lean_object* x_268; +lean_dec(x_240); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_273 = lean_ctor_get(x_272, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_274 = x_272; +if (lean_is_scalar(x_242)) { + x_268 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_272); - x_274 = lean_box(0); + x_268 = x_242; + lean_ctor_set_tag(x_268, 1); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(1, 2, 0); -} else { - x_275 = x_274; - lean_ctor_set_tag(x_275, 1); +lean_ctor_set(x_268, 0, x_243); +lean_ctor_set(x_268, 1, x_244); +return x_268; } -lean_ctor_set(x_275, 0, x_256); -lean_ctor_set(x_275, 1, x_270); -x_276 = lean_array_push(x_8, x_275); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_273); +else +{ +lean_object* x_269; uint8_t x_270; +lean_dec(x_242); +x_269 = l_Lean_Elab_Term_SavedState_restore(x_240, x_9, x_10, x_11, x_12, x_13, x_14, x_244); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_270 = !lean_is_exclusive(x_269); +if (x_270 == 0) +{ +lean_object* x_271; +x_271 = lean_ctor_get(x_269, 0); +lean_dec(x_271); +lean_ctor_set_tag(x_269, 1); +lean_ctor_set(x_269, 0, x_243); +return x_269; +} +else +{ +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_269, 1); +lean_inc(x_272); +lean_dec(x_269); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_243); +lean_ctor_set(x_273, 1, x_272); +return x_273; +} +} +} +} +block_297: +{ +lean_object* x_277; uint8_t x_278; +x_277 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_276); +x_278 = !lean_is_exclusive(x_277); +if (x_278 == 0) +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; +x_279 = lean_ctor_get(x_277, 0); +x_280 = lean_ctor_get(x_277, 1); +x_281 = l_Lean_Elab_Term_SavedState_restore(x_240, x_9, x_10, x_11, x_12, x_13, x_14, x_280); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_282 = !lean_is_exclusive(x_281); +if (x_282 == 0) +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_283 = lean_ctor_get(x_281, 1); +x_284 = lean_ctor_get(x_281, 0); +lean_dec(x_284); +lean_ctor_set(x_281, 1, x_279); +lean_ctor_set(x_281, 0, x_275); +x_285 = lean_array_push(x_8, x_281); +lean_ctor_set(x_277, 1, x_283); +lean_ctor_set(x_277, 0, x_285); +return x_277; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_281, 1); +lean_inc(x_286); +lean_dec(x_281); +x_287 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_287, 0, x_275); +lean_ctor_set(x_287, 1, x_279); +x_288 = lean_array_push(x_8, x_287); +lean_ctor_set(x_277, 1, x_286); +lean_ctor_set(x_277, 0, x_288); return x_277; } } else { -lean_object* x_278; lean_object* x_279; uint8_t x_280; -lean_dec(x_8); -x_278 = lean_ctor_get(x_256, 0); -lean_inc(x_278); -x_279 = l_Lean_Elab_postponeExceptionId; -x_280 = lean_nat_dec_eq(x_278, x_279); -lean_dec(x_278); -if (x_280 == 0) -{ -lean_object* x_281; -lean_dec(x_253); +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; +x_289 = lean_ctor_get(x_277, 0); +x_290 = lean_ctor_get(x_277, 1); +lean_inc(x_290); +lean_inc(x_289); +lean_dec(x_277); +x_291 = l_Lean_Elab_Term_SavedState_restore(x_240, x_9, x_10, x_11, x_12, x_13, x_14, x_290); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -if (lean_is_scalar(x_255)) { - x_281 = lean_alloc_ctor(1, 2, 0); +x_292 = lean_ctor_get(x_291, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_293 = x_291; } else { - x_281 = x_255; - lean_ctor_set_tag(x_281, 1); -} -lean_ctor_set(x_281, 0, x_256); -lean_ctor_set(x_281, 1, x_257); -return x_281; -} -else -{ -lean_object* x_282; uint8_t x_283; -lean_dec(x_255); -x_282 = l_Lean_Elab_Term_SavedState_restore(x_253, x_9, x_10, x_11, x_12, x_13, x_14, x_257); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) -{ -lean_object* x_284; -x_284 = lean_ctor_get(x_282, 0); -lean_dec(x_284); -lean_ctor_set_tag(x_282, 1); -lean_ctor_set(x_282, 0, x_256); -return x_282; -} -else -{ -lean_object* x_285; lean_object* x_286; -x_285 = lean_ctor_get(x_282, 1); -lean_inc(x_285); -lean_dec(x_282); -x_286 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_286, 0, x_256); -lean_ctor_set(x_286, 1, x_285); -return x_286; + lean_dec_ref(x_291); + x_293 = lean_box(0); } +if (lean_is_scalar(x_293)) { + x_294 = lean_alloc_ctor(0, 2, 0); +} else { + x_294 = x_293; } +lean_ctor_set(x_294, 0, x_275); +lean_ctor_set(x_294, 1, x_289); +x_295 = lean_array_push(x_8, x_294); +x_296 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_292); +return x_296; } } } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_351; -x_314 = lean_box(0); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (x_7 == 0) +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_351; lean_object* x_352; x_315 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); x_316 = lean_ctor_get(x_315, 0); lean_inc(x_316); @@ -27303,114 +27235,115 @@ if (lean_is_exclusive(x_315)) { lean_dec_ref(x_315); x_318 = lean_box(0); } +x_351 = 1; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_351 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_18, x_314, x_9, x_10, x_11, x_12, x_13, x_14, x_317); -if (lean_obj_tag(x_351) == 0) +x_352 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_351, x_9, x_10, x_11, x_12, x_13, x_14, x_317); +if (lean_obj_tag(x_352) == 0) { -lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t x_355; +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_dec(x_318); -x_352 = lean_ctor_get(x_351, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_351, 1); +x_353 = lean_ctor_get(x_352, 0); lean_inc(x_353); -lean_dec(x_351); -x_354 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_353); -x_355 = !lean_is_exclusive(x_354); -if (x_355 == 0) +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +x_355 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_354); +x_356 = !lean_is_exclusive(x_355); +if (x_356 == 0) { -lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; -x_356 = lean_ctor_get(x_354, 0); -x_357 = lean_ctor_get(x_354, 1); -x_358 = l_Lean_Elab_Term_SavedState_restore(x_316, x_9, x_10, x_11, x_12, x_13, x_14, x_357); +lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; +x_357 = lean_ctor_get(x_355, 0); +x_358 = lean_ctor_get(x_355, 1); +x_359 = l_Lean_Elab_Term_SavedState_restore(x_316, x_9, x_10, x_11, x_12, x_13, x_14, x_358); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_359 = !lean_is_exclusive(x_358); -if (x_359 == 0) +x_360 = !lean_is_exclusive(x_359); +if (x_360 == 0) { -lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_360 = lean_ctor_get(x_358, 1); -x_361 = lean_ctor_get(x_358, 0); -lean_dec(x_361); -lean_ctor_set(x_358, 1, x_356); -lean_ctor_set(x_358, 0, x_352); -x_362 = lean_array_push(x_8, x_358); -lean_ctor_set(x_354, 1, x_360); -lean_ctor_set(x_354, 0, x_362); -return x_354; +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = lean_ctor_get(x_359, 1); +x_362 = lean_ctor_get(x_359, 0); +lean_dec(x_362); +lean_ctor_set(x_359, 1, x_357); +lean_ctor_set(x_359, 0, x_353); +x_363 = lean_array_push(x_8, x_359); +lean_ctor_set(x_355, 1, x_361); +lean_ctor_set(x_355, 0, x_363); +return x_355; } else { -lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_363 = lean_ctor_get(x_358, 1); -lean_inc(x_363); -lean_dec(x_358); -x_364 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_364, 0, x_352); -lean_ctor_set(x_364, 1, x_356); -x_365 = lean_array_push(x_8, x_364); -lean_ctor_set(x_354, 1, x_363); -lean_ctor_set(x_354, 0, x_365); -return x_354; +lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_364 = lean_ctor_get(x_359, 1); +lean_inc(x_364); +lean_dec(x_359); +x_365 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_365, 0, x_353); +lean_ctor_set(x_365, 1, x_357); +x_366 = lean_array_push(x_8, x_365); +lean_ctor_set(x_355, 1, x_364); +lean_ctor_set(x_355, 0, x_366); +return x_355; } } else { -lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; -x_366 = lean_ctor_get(x_354, 0); -x_367 = lean_ctor_get(x_354, 1); +lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_367 = lean_ctor_get(x_355, 0); +x_368 = lean_ctor_get(x_355, 1); +lean_inc(x_368); lean_inc(x_367); -lean_inc(x_366); -lean_dec(x_354); -x_368 = l_Lean_Elab_Term_SavedState_restore(x_316, x_9, x_10, x_11, x_12, x_13, x_14, x_367); +lean_dec(x_355); +x_369 = l_Lean_Elab_Term_SavedState_restore(x_316, x_9, x_10, x_11, x_12, x_13, x_14, x_368); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_369 = lean_ctor_get(x_368, 1); -lean_inc(x_369); -if (lean_is_exclusive(x_368)) { - lean_ctor_release(x_368, 0); - lean_ctor_release(x_368, 1); - x_370 = x_368; +x_370 = lean_ctor_get(x_369, 1); +lean_inc(x_370); +if (lean_is_exclusive(x_369)) { + lean_ctor_release(x_369, 0); + lean_ctor_release(x_369, 1); + x_371 = x_369; } else { - lean_dec_ref(x_368); - x_370 = lean_box(0); + lean_dec_ref(x_369); + x_371 = lean_box(0); } -if (lean_is_scalar(x_370)) { - x_371 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_371)) { + x_372 = lean_alloc_ctor(0, 2, 0); } else { - x_371 = x_370; + x_372 = x_371; } -lean_ctor_set(x_371, 0, x_352); -lean_ctor_set(x_371, 1, x_366); -x_372 = lean_array_push(x_8, x_371); -x_373 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_373, 0, x_372); -lean_ctor_set(x_373, 1, x_369); -return x_373; +lean_ctor_set(x_372, 0, x_353); +lean_ctor_set(x_372, 1, x_367); +x_373 = lean_array_push(x_8, x_372); +x_374 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_370); +return x_374; } } else { -lean_object* x_374; lean_object* x_375; -x_374 = lean_ctor_get(x_351, 0); -lean_inc(x_374); -x_375 = lean_ctor_get(x_351, 1); +lean_object* x_375; lean_object* x_376; +x_375 = lean_ctor_get(x_352, 0); lean_inc(x_375); -lean_dec(x_351); -x_319 = x_374; -x_320 = x_375; +x_376 = lean_ctor_get(x_352, 1); +lean_inc(x_376); +lean_dec(x_352); +x_319 = x_375; +x_320 = x_376; goto block_350; } block_350: @@ -27568,6 +27501,287 @@ return x_349; } } } +else +{ +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_414; +x_377 = lean_box(0); +x_378 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_15); +x_379 = lean_ctor_get(x_378, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_381 = x_378; +} else { + lean_dec_ref(x_378); + x_381 = lean_box(0); +} +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_414 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_236, x_377, x_9, x_10, x_11, x_12, x_13, x_14, x_380); +if (lean_obj_tag(x_414) == 0) +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; +lean_dec(x_381); +x_415 = lean_ctor_get(x_414, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_414, 1); +lean_inc(x_416); +lean_dec(x_414); +x_417 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_416); +x_418 = !lean_is_exclusive(x_417); +if (x_418 == 0) +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; +x_419 = lean_ctor_get(x_417, 0); +x_420 = lean_ctor_get(x_417, 1); +x_421 = l_Lean_Elab_Term_SavedState_restore(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_420); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_422 = !lean_is_exclusive(x_421); +if (x_422 == 0) +{ +lean_object* x_423; lean_object* x_424; lean_object* x_425; +x_423 = lean_ctor_get(x_421, 1); +x_424 = lean_ctor_get(x_421, 0); +lean_dec(x_424); +lean_ctor_set(x_421, 1, x_419); +lean_ctor_set(x_421, 0, x_415); +x_425 = lean_array_push(x_8, x_421); +lean_ctor_set(x_417, 1, x_423); +lean_ctor_set(x_417, 0, x_425); +return x_417; +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_426 = lean_ctor_get(x_421, 1); +lean_inc(x_426); +lean_dec(x_421); +x_427 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_427, 0, x_415); +lean_ctor_set(x_427, 1, x_419); +x_428 = lean_array_push(x_8, x_427); +lean_ctor_set(x_417, 1, x_426); +lean_ctor_set(x_417, 0, x_428); +return x_417; +} +} +else +{ +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; +x_429 = lean_ctor_get(x_417, 0); +x_430 = lean_ctor_get(x_417, 1); +lean_inc(x_430); +lean_inc(x_429); +lean_dec(x_417); +x_431 = l_Lean_Elab_Term_SavedState_restore(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_430); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_432 = lean_ctor_get(x_431, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_431)) { + lean_ctor_release(x_431, 0); + lean_ctor_release(x_431, 1); + x_433 = x_431; +} else { + lean_dec_ref(x_431); + x_433 = lean_box(0); +} +if (lean_is_scalar(x_433)) { + x_434 = lean_alloc_ctor(0, 2, 0); +} else { + x_434 = x_433; +} +lean_ctor_set(x_434, 0, x_415); +lean_ctor_set(x_434, 1, x_429); +x_435 = lean_array_push(x_8, x_434); +x_436 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_436, 0, x_435); +lean_ctor_set(x_436, 1, x_432); +return x_436; +} +} +else +{ +lean_object* x_437; lean_object* x_438; +x_437 = lean_ctor_get(x_414, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_414, 1); +lean_inc(x_438); +lean_dec(x_414); +x_382 = x_437; +x_383 = x_438; +goto block_413; +} +block_413: +{ +if (lean_obj_tag(x_382) == 0) +{ +lean_object* x_384; uint8_t x_385; +lean_dec(x_381); +x_384 = l_Lean_Elab_Term_saveAllState___rarg(x_10, x_11, x_12, x_13, x_14, x_383); +x_385 = !lean_is_exclusive(x_384); +if (x_385 == 0) +{ +lean_object* x_386; lean_object* x_387; lean_object* x_388; uint8_t x_389; +x_386 = lean_ctor_get(x_384, 0); +x_387 = lean_ctor_get(x_384, 1); +x_388 = l_Lean_Elab_Term_SavedState_restore(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_387); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_389 = !lean_is_exclusive(x_388); +if (x_389 == 0) +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_390 = lean_ctor_get(x_388, 1); +x_391 = lean_ctor_get(x_388, 0); +lean_dec(x_391); +lean_ctor_set_tag(x_388, 1); +lean_ctor_set(x_388, 1, x_386); +lean_ctor_set(x_388, 0, x_382); +x_392 = lean_array_push(x_8, x_388); +lean_ctor_set(x_384, 1, x_390); +lean_ctor_set(x_384, 0, x_392); +return x_384; +} +else +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_388, 1); +lean_inc(x_393); +lean_dec(x_388); +x_394 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_394, 0, x_382); +lean_ctor_set(x_394, 1, x_386); +x_395 = lean_array_push(x_8, x_394); +lean_ctor_set(x_384, 1, x_393); +lean_ctor_set(x_384, 0, x_395); +return x_384; +} +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_396 = lean_ctor_get(x_384, 0); +x_397 = lean_ctor_get(x_384, 1); +lean_inc(x_397); +lean_inc(x_396); +lean_dec(x_384); +x_398 = l_Lean_Elab_Term_SavedState_restore(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_397); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_399 = lean_ctor_get(x_398, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_398)) { + lean_ctor_release(x_398, 0); + lean_ctor_release(x_398, 1); + x_400 = x_398; +} else { + lean_dec_ref(x_398); + x_400 = lean_box(0); +} +if (lean_is_scalar(x_400)) { + x_401 = lean_alloc_ctor(1, 2, 0); +} else { + x_401 = x_400; + lean_ctor_set_tag(x_401, 1); +} +lean_ctor_set(x_401, 0, x_382); +lean_ctor_set(x_401, 1, x_396); +x_402 = lean_array_push(x_8, x_401); +x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_403, 0, x_402); +lean_ctor_set(x_403, 1, x_399); +return x_403; +} +} +else +{ +lean_object* x_404; lean_object* x_405; uint8_t x_406; +lean_dec(x_8); +x_404 = lean_ctor_get(x_382, 0); +lean_inc(x_404); +x_405 = l_Lean_Elab_postponeExceptionId; +x_406 = lean_nat_dec_eq(x_404, x_405); +lean_dec(x_404); +if (x_406 == 0) +{ +lean_object* x_407; +lean_dec(x_379); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +if (lean_is_scalar(x_381)) { + x_407 = lean_alloc_ctor(1, 2, 0); +} else { + x_407 = x_381; + lean_ctor_set_tag(x_407, 1); +} +lean_ctor_set(x_407, 0, x_382); +lean_ctor_set(x_407, 1, x_383); +return x_407; +} +else +{ +lean_object* x_408; uint8_t x_409; +lean_dec(x_381); +x_408 = l_Lean_Elab_Term_SavedState_restore(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_383); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +x_409 = !lean_is_exclusive(x_408); +if (x_409 == 0) +{ +lean_object* x_410; +x_410 = lean_ctor_get(x_408, 0); +lean_dec(x_410); +lean_ctor_set_tag(x_408, 1); +lean_ctor_set(x_408, 0, x_382); +return x_408; +} +else +{ +lean_object* x_411; lean_object* x_412; +x_411 = lean_ctor_get(x_408, 1); +lean_inc(x_411); +lean_dec(x_408); +x_412 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_412, 0, x_382); +lean_ctor_set(x_412, 1, x_411); +return x_412; +} +} +} +} } } } @@ -27575,38 +27789,52 @@ return x_349; } else { -lean_object* x_379; lean_object* x_380; +lean_object* x_447; lean_object* x_448; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_379 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__3; -x_380 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_379, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_447 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3; +x_448 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_447, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -return x_380; +return x_448; } } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___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* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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_App_0__Lean_Elab_Term_elabAppFn___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); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { uint8_t x_17; lean_object* x_18; x_17 = lean_unbox(x_6); lean_dec(x_6); -x_18 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_33__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_18 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_7); lean_dec(x_1); return x_18; } } -lean_object* l___private_Lean_Elab_App_33__elabAppFn___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* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; uint8_t x_17; lean_object* x_18; @@ -27614,31 +27842,43 @@ x_16 = lean_unbox(x_6); lean_dec(x_6); x_17 = lean_unbox(x_7); lean_dec(x_7); -x_18 = l___private_Lean_Elab_App_33__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); return x_18; } } -lean_object* l___private_Lean_Elab_App_33__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_16; -x_16 = l___private_Lean_Elab_App_33__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_16; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; } } -lean_object* l___private_Lean_Elab_App_33__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess_match__1(lean_object* x_1) { _start: { -uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_16 = lean_unbox(x_6); -lean_dec(x_6); -x_17 = lean_unbox(x_7); -lean_dec(x_7); -x_18 = l___private_Lean_Elab_App_33__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_18; +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess_match__1___rarg), 3, 0); +return x_2; } } -uint8_t l___private_Lean_Elab_App_34__isSuccess(lean_object* x_1) { +uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -27655,17 +27895,17 @@ return x_3; } } } -lean_object* l___private_Lean_Elab_App_34__isSuccess___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_App_34__isSuccess(x_1); +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_35__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -27684,7 +27924,7 @@ else { lean_object* x_7; uint8_t x_8; x_7 = lean_array_fget(x_1, x_2); -x_8 = l___private_Lean_Elab_App_34__isSuccess(x_7); +x_8 = l___private_Lean_Elab_App_0__Lean_Elab_Term_isSuccess(x_7); lean_dec(x_7); if (x_8 == 0) { @@ -27729,16 +27969,47 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_App_35__getSuccess(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_filterAux___main___at___private_Lean_Elab_App_35__getSuccess___spec__1(x_1, x_2, x_2); +x_3 = l_Array_filterAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess___spec__1(x_1, x_2, x_2); return x_3; } } -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -27766,29 +28037,37 @@ return x_9; } } } -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg___boxed), 3, 0); +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg___boxed), 3, 0); return x_5; } } -static lean_object* _init_l___private_Lean_Elab_App_36__toMessageData___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Syntax_6__formatInfo___closed__1; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Init_Util_1__mkPanicMessage___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_36__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_String_Iterator_HasRepr___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData(lean_object* x_1, lean_object* x_2, 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 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg(x_6, x_7, x_8); +x_9 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg(x_6, x_7, x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { @@ -27815,32 +28094,32 @@ x_16 = lean_nat_dec_eq(x_11, x_15); lean_dec(x_11); 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; 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_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; x_17 = lean_ctor_get(x_2, 1); x_18 = l_Lean_FileMap_toPosition(x_17, x_15); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -x_20 = l_Nat_repr(x_19); -x_21 = lean_alloc_ctor(2, 1, 0); +x_20 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_19); +x_21 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l___private_Lean_Elab_App_36__toMessageData___closed__1; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_ctor_get(x_18, 1); -lean_inc(x_25); +x_22 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); lean_dec(x_18); -x_26 = l_Nat_repr(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); +x_27 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_26); x_28 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_28, 0, x_27); x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 0, x_25); lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -27848,117 +28127,123 @@ x_32 = l_Lean_Exception_toMessageData(x_1); x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_9, 0, x_33); -return x_9; -} -else -{ -lean_object* x_34; -lean_dec(x_15); -x_34 = l_Lean_Exception_toMessageData(x_1); +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_22); lean_ctor_set(x_9, 0, x_34); return x_9; } +else +{ +lean_object* x_35; +lean_dec(x_15); +x_35 = l_Lean_Exception_toMessageData(x_1); +lean_ctor_set(x_9, 0, x_35); +return x_9; +} } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_9, 0); -x_36 = lean_ctor_get(x_9, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_9, 0); +x_37 = lean_ctor_get(x_9, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); lean_dec(x_9); -x_37 = l_Lean_Exception_getRef(x_1); -x_38 = l_Lean_Syntax_getPos(x_37); -lean_dec(x_37); -if (lean_obj_tag(x_38) == 0) +x_38 = l_Lean_Exception_getRef(x_1); +x_39 = l_Lean_Syntax_getPos(x_38); +lean_dec(x_38); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_39; lean_object* x_40; -lean_dec(x_35); -x_39 = l_Lean_Exception_toMessageData(x_1); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_36); -return x_40; +lean_object* x_40; lean_object* x_41; +lean_dec(x_36); +x_40 = l_Lean_Exception_toMessageData(x_1); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_37); +return x_41; } else { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_38, 0); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_nat_dec_eq(x_35, x_41); -lean_dec(x_35); -if (x_42 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_39, 0); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_nat_dec_eq(x_36, x_42); +lean_dec(x_36); +if (x_43 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_43 = lean_ctor_get(x_2, 1); -x_44 = l_Lean_FileMap_toPosition(x_43, x_41); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = l_Nat_repr(x_45); -x_47 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_47, 0, x_46); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_44 = lean_ctor_get(x_2, 1); +x_45 = l_Lean_FileMap_toPosition(x_44, x_42); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_46); x_48 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_48, 0, x_47); -x_49 = l___private_Lean_Elab_App_36__toMessageData___closed__1; +x_49 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -x_51 = lean_ctor_get(x_44, 1); -lean_inc(x_51); -lean_dec(x_44); -x_52 = l_Nat_repr(x_51); -x_53 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_53, 0, x_52); -x_54 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_54); -x_56 = l_Lean_Meta_SynthInstance_getInstances___lambda__1___closed__1; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_Exception_toMessageData(x_1); -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_36); -return x_60; +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_ctor_get(x_45, 1); +lean_inc(x_53); +lean_dec(x_45); +x_54 = l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(x_53); +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_52); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2; +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Exception_toMessageData(x_1); +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_49); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_37); +return x_62; } else { -lean_object* x_61; lean_object* x_62; -lean_dec(x_41); -x_61 = l_Lean_Exception_toMessageData(x_1); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_36); -return x_62; +lean_object* x_63; lean_object* x_64; +lean_dec(x_42); +x_63 = l_Lean_Exception_toMessageData(x_1); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_37); +return x_64; } } } } } -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___rarg(x_1, x_2, x_3); +x_4 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___rarg(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_36__toMessageData___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -27966,11 +28251,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_App_36__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* 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_App_0__Lean_Elab_Term_toMessageData___boxed(lean_object* x_1, lean_object* x_2, 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_36__toMessageData(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData(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); @@ -27980,7 +28265,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_App_37__toMessageList(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -27992,16 +28277,82 @@ x_5 = l_Lean_indentD(x_4); return x_5; } } -lean_object* l___private_Lean_Elab_App_37__toMessageList___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_App_37__toMessageList(x_1); +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_38__mergeFailures___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_App_0__Lean_Elab_Term_mergeFailures_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_2(x_3, x_7, x_8); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.App"); +return x_1; +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.App.0.Lean.Elab.Term.mergeFailures"); +return x_1; +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; +x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2; +x_3 = lean_unsigned_to_nat(752u); +x_4 = lean_unsigned_to_nat(33u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___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; @@ -28033,38 +28384,39 @@ x_16 = lean_array_fset(x_2, x_1, x_15); x_17 = x_14; if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_dec(x_17); x_18 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_19 = l_unreachable_x21___rarg(x_18); +x_19 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3; +x_20 = lean_panic_fn(x_18, x_19); 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_20 = lean_apply_7(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_20) == 0) +x_21 = lean_apply_7(x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +lean_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); -lean_dec(x_20); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_1, x_23); -x_25 = x_21; -x_26 = lean_array_fset(x_16, x_1, 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_1, x_24); +x_26 = x_22; +x_27 = lean_array_fset(x_16, x_1, x_26); lean_dec(x_1); -x_1 = x_24; -x_2 = x_26; -x_9 = x_22; +x_1 = x_25; +x_2 = x_27; +x_9 = x_23; goto _start; } else { -uint8_t x_28; +uint8_t x_29; lean_dec(x_16); lean_dec(x_8); lean_dec(x_7); @@ -28073,52 +28425,52 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) +x_29 = !lean_is_exclusive(x_21); +if (x_29 == 0) { -return x_20; +return x_21; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); +lean_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_inc(x_29); -lean_dec(x_20); -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_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_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; -x_32 = lean_ctor_get(x_17, 0); -lean_inc(x_32); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_33 = lean_ctor_get(x_17, 0); +lean_inc(x_33); lean_dec(x_17); -x_33 = l___private_Lean_Elab_App_36__toMessageData(x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +x_34 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData(x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_1, x_36); -x_38 = x_34; -x_39 = lean_array_fset(x_16, x_1, x_38); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_1, x_37); +x_39 = x_35; +x_40 = lean_array_fset(x_16, x_1, x_39); lean_dec(x_1); -x_1 = x_37; -x_2 = x_39; -x_9 = x_35; +x_1 = x_38; +x_2 = x_40; +x_9 = x_36; goto _start; } } } } -static lean_object* _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1() { _start: { lean_object* x_1; @@ -28126,33 +28478,22 @@ x_1 = lean_mk_string("overloaded, errors "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_38__mergeFailures___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_App_38__mergeFailures___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_App_0__Lean_Elab_Term_mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = x_1; x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_App_38__mergeFailures___spec__1), 9, 2); +x_11 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1), 9, 2); lean_closure_set(x_11, 0, x_10); lean_closure_set(x_11, 1, x_9); x_12 = x_11; @@ -28165,65 +28506,122 @@ lean_inc(x_2); x_13 = lean_apply_7(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l___private_Lean_Elab_App_37__toMessageList(x_14); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(x_14); lean_dec(x_14); -x_17 = l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3; +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +x_19 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_15); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_19; +return x_21; } else { -uint8_t x_20; +uint8_t x_22; 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_20 = !lean_is_exclusive(x_13); -if (x_20 == 0) +x_22 = !lean_is_exclusive(x_13); +if (x_22 == 0) { return x_13; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_13, 0); -x_22 = lean_ctor_get(x_13, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +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_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; +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___private_Lean_Elab_App_38__mergeFailures(lean_object* x_1) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_38__mergeFailures___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg), 8, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_39__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.App.0.Lean.Elab.Term.elabAppAux"); +return x_1; +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___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; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; +x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1; +x_3 = lean_unsigned_to_nat(772u); +x_4 = lean_unsigned_to_nat(33u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1(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; @@ -28288,21 +28686,79 @@ goto _start; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_11); x_26 = l_Lean_MessageData_Inhabited; -x_27 = l_unreachable_x21___rarg(x_26); -x_28 = x_27; -x_29 = lean_array_fset(x_10, x_3, x_28); +x_27 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2; +x_28 = lean_panic_fn(x_26, x_27); +x_29 = x_28; +x_30 = lean_array_fset(x_10, x_3, x_29); lean_dec(x_3); x_3 = x_13; -x_4 = x_29; +x_4 = x_30; goto _start; } } } } -static lean_object* _init_l___private_Lean_Elab_App_39__elabAppAux___closed__1() { +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___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) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_7, 3); +x_12 = l_Lean_replaceRef(x_1, x_11); +x_13 = l_Lean_replaceRef(x_12, x_11); +lean_dec(x_12); +x_14 = l_Lean_replaceRef(x_13, x_11); +lean_dec(x_11); +lean_dec(x_13); +lean_ctor_set(x_7, 3, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +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; lean_object* x_24; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +x_18 = lean_ctor_get(x_7, 2); +x_19 = lean_ctor_get(x_7, 3); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_20 = l_Lean_replaceRef(x_1, x_19); +x_21 = l_Lean_replaceRef(x_20, x_19); +lean_dec(x_20); +x_22 = l_Lean_replaceRef(x_21, x_19); +lean_dec(x_19); +lean_dec(x_21); +x_23 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +lean_dec(x_23); +return x_24; +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg___boxed), 9, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1() { _start: { lean_object* x_1; @@ -28310,27 +28766,27 @@ x_1 = lean_mk_string("ambiguous, possible interpretations "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_39__elabAppAux___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_39__elabAppAux___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_39__elabAppAux___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_39__elabAppAux___closed__2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___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_App_39__elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_App_0__Lean_Elab_Term_elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; @@ -28344,7 +28800,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_15 = l___private_Lean_Elab_App_33__elabAppFn___main(x_1, x_12, x_2, x_3, x_4, x_13, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(x_1, x_12, x_2, x_3, x_4, x_13, x_13, 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; lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -28362,7 +28818,7 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_21 = lean_unsigned_to_nat(0u); lean_inc(x_16); -x_22 = l_Array_filterAux___main___at___private_Lean_Elab_App_35__getSuccess___spec__1(x_16, x_21, x_21); +x_22 = l_Array_filterAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccess___spec__1(x_16, x_21, x_21); x_23 = lean_array_get_size(x_22); x_24 = lean_nat_dec_eq(x_23, x_19); if (x_24 == 0) @@ -28387,7 +28843,7 @@ x_30 = l_Lean_replaceRef(x_29, x_27); lean_dec(x_27); lean_dec(x_29); lean_ctor_set(x_9, 3, x_30); -x_31 = l___private_Lean_Elab_App_38__mergeFailures___rarg(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_17); return x_31; } else @@ -28414,7 +28870,7 @@ lean_ctor_set(x_39, 0, x_32); lean_ctor_set(x_39, 1, x_33); lean_ctor_set(x_39, 2, x_34); lean_ctor_set(x_39, 3, x_38); -x_40 = l___private_Lean_Elab_App_38__mergeFailures___rarg(x_16, x_5, x_6, x_7, x_8, x_39, x_10, x_17); +x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(x_16, x_5, x_6, x_7, x_8, x_39, x_10, x_17); return x_40; } } @@ -28427,15 +28883,15 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_9, 0); lean_inc(x_42); x_43 = x_22; -x_44 = l_Array_umapMAux___main___at___private_Lean_Elab_App_39__elabAppAux___spec__1(x_41, x_42, x_21, x_43); +x_44 = l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1(x_41, x_42, x_21, x_43); x_45 = x_44; -x_46 = l___private_Lean_Elab_App_37__toMessageList(x_45); +x_46 = l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(x_45); lean_dec(x_45); -x_47 = l___private_Lean_Elab_App_39__elabAppAux___closed__3; +x_47 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3; x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_1, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_49 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_1, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -28555,6 +29011,82 @@ return x_68; } } } +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandApp_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandApp_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_expandApp_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandApp_match__3___rarg), 2, 0); +return x_2; +} +} static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1() { _start: { @@ -28566,869 +29098,587 @@ return x_1; static 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_Lean_Elab_Term_expandApp___spec__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ellipsis"); -return x_1; -} -} -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___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_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("unexpected '..'"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6() { +static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5; +x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7() { +static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6; +x_1 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__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_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) { +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, lean_object* x_12, lean_object* x_13) { _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; uint8_t x_15; +x_14 = lean_array_get_size(x_4); +x_15 = lean_nat_dec_lt(x_5, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_14; -lean_dec(x_9); +lean_object* x_16; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_5); -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; +lean_dec(x_1); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_13); +return x_16; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_4); -if (x_18 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_4, x_5); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 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_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_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_23 = lean_name_eq(x_21, x_22); -if (x_23 == 0) +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +x_23 = l_Lean_Syntax_getKind(x_17); +x_24 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; +lean_inc(x_1); +x_25 = lean_name_mk_string(x_1, x_24); +x_26 = lean_name_eq(x_23, x_25); +lean_dec(x_25); +if (x_26 == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_25 = lean_name_eq(x_21, x_24); -lean_dec(x_21); -if (x_25 == 0) +uint8_t x_27; +x_27 = lean_name_eq(x_23, x_2); +lean_dec(x_23); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_15); -x_27 = lean_array_push(x_20, x_26); -lean_ctor_set(x_4, 1, x_27); -x_3 = x_17; +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_17); +x_29 = lean_array_push(x_22, x_28); +lean_ctor_set(x_6, 1, x_29); +x_5 = x_19; goto _start; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_free_object(x_4); -lean_dec(x_20); +lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_free_object(x_6); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); +lean_dec(x_1); +x_31 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; +x_32 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_17, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_17); -x_29 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_30 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -return x_30; +return x_32; } 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; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_21); -x_35 = l_Lean_Syntax_getArg(x_15, x_16); -x_36 = l_Lean_Syntax_getId(x_35); -lean_dec(x_35); -x_37 = l_Lean_Name_eraseMacroScopes(x_36); -lean_dec(x_36); -x_38 = lean_unsigned_to_nat(3u); -x_39 = l_Lean_Syntax_getArg(x_15, x_38); -lean_dec(x_15); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_37); -lean_ctor_set(x_41, 1, x_40); -lean_inc(x_5); -x_42 = l_Lean_Elab_Term_addNamedArg(x_19, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_42) == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_23); +x_37 = l_Lean_Syntax_getArg(x_17, x_18); +x_38 = l_Lean_Syntax_getId(x_37); +lean_dec(x_37); +x_39 = l_Lean_Name_eraseMacroScopes(x_38); +lean_dec(x_38); +x_40 = lean_unsigned_to_nat(3u); +x_41 = l_Lean_Syntax_getArg(x_17, x_40); +lean_dec(x_17); +x_42 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +lean_inc(x_7); +x_44 = l_Lean_Elab_Term_addNamedArg(x_21, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_44) == 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_inc(x_44); -lean_dec(x_42); -lean_ctor_set(x_4, 0, x_43); -x_3 = x_17; -x_11 = x_44; +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); +lean_ctor_set(x_6, 0, x_45); +x_5 = x_19; +x_13 = x_46; goto _start; } else { -uint8_t x_46; -lean_free_object(x_4); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +uint8_t x_48; +lean_free_object(x_6); +lean_dec(x_22); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) { -return x_42; +return x_44; } 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_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; -} -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_50 = lean_ctor_get(x_4, 0); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); +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_dec(x_4); -lean_inc(x_15); -x_52 = l_Lean_Syntax_getKind(x_15); -x_53 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_54 = lean_name_eq(x_52, x_53); -if (x_54 == 0) +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 { -lean_object* x_55; uint8_t x_56; -x_55 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_56 = lean_name_eq(x_52, x_55); -lean_dec(x_52); -if (x_56 == 0) +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_52 = lean_ctor_get(x_6, 0); +x_53 = lean_ctor_get(x_6, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_6); +lean_inc(x_17); +x_54 = l_Lean_Syntax_getKind(x_17); +x_55 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; +lean_inc(x_1); +x_56 = lean_name_mk_string(x_1, x_55); +x_57 = lean_name_eq(x_54, x_56); +lean_dec(x_56); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_15); -x_58 = lean_array_push(x_51, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_50); -lean_ctor_set(x_59, 1, x_58); -x_3 = x_17; -x_4 = x_59; +uint8_t x_58; +x_58 = lean_name_eq(x_54, x_2); +lean_dec(x_54); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_59, 0, x_17); +x_60 = lean_array_push(x_53, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_52); +lean_ctor_set(x_61, 1, x_60); +x_5 = x_19; +x_6 = x_61; goto _start; } else { -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_dec(x_51); -lean_dec(x_50); +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_dec(x_53); +lean_dec(x_52); +lean_dec(x_19); +lean_dec(x_1); +x_63 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; +x_64 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_17, x_63, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_17); -x_61 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_62 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; } else { - lean_dec_ref(x_62); - x_65 = lean_box(0); + lean_dec_ref(x_64); + x_67 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_68 = x_67; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; } } 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; lean_object* x_74; -lean_dec(x_52); -x_67 = l_Lean_Syntax_getArg(x_15, x_16); -x_68 = l_Lean_Syntax_getId(x_67); -lean_dec(x_67); -x_69 = l_Lean_Name_eraseMacroScopes(x_68); -lean_dec(x_68); -x_70 = lean_unsigned_to_nat(3u); -x_71 = l_Lean_Syntax_getArg(x_15, x_70); -lean_dec(x_15); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_69); -lean_ctor_set(x_73, 1, x_72); -lean_inc(x_5); -x_74 = l_Lean_Elab_Term_addNamedArg(x_50, x_73, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_74) == 0) +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_dec(x_54); +x_69 = l_Lean_Syntax_getArg(x_17, x_18); +x_70 = l_Lean_Syntax_getId(x_69); +lean_dec(x_69); +x_71 = l_Lean_Name_eraseMacroScopes(x_70); +lean_dec(x_70); +x_72 = lean_unsigned_to_nat(3u); +x_73 = l_Lean_Syntax_getArg(x_17, x_72); +lean_dec(x_17); +x_74 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 1, x_74); +lean_inc(x_7); +x_76 = l_Lean_Elab_Term_addNamedArg(x_52, x_75, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_51); -x_3 = x_17; -x_4 = x_77; -x_11 = x_76; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_53); +x_5 = x_19; +x_6 = x_79; +x_13 = x_78; goto _start; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_51); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_79 = lean_ctor_get(x_74, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_81 = x_74; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_53); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_1); +x_81 = lean_ctor_get(x_76, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_83 = x_76; } else { - lean_dec_ref(x_74); - x_81 = lean_box(0); + lean_dec_ref(x_76); + x_83 = lean_box(0); } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_82 = x_81; + x_84 = x_83; } -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } } } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -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; uint8_t x_15; +x_14 = lean_array_get_size(x_4); +x_15 = lean_nat_dec_lt(x_5, x_14); +lean_dec(x_14); +if (x_15 == 0) { -lean_object* x_14; -lean_dec(x_9); +lean_object* x_16; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_5); -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; +lean_dec(x_1); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_13); +return x_16; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_4); -if (x_18 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_array_fget(x_4, x_5); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 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_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_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_23 = lean_name_eq(x_21, x_22); -if (x_23 == 0) +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); +lean_inc(x_17); +x_23 = l_Lean_Syntax_getKind(x_17); +x_24 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; +lean_inc(x_1); +x_25 = lean_name_mk_string(x_1, x_24); +x_26 = lean_name_eq(x_23, x_25); +lean_dec(x_25); +if (x_26 == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_25 = lean_name_eq(x_21, x_24); -lean_dec(x_21); -if (x_25 == 0) +uint8_t x_27; +x_27 = lean_name_eq(x_23, x_2); +lean_dec(x_23); +if (x_27 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_15); -x_27 = lean_array_push(x_20, x_26); -lean_ctor_set(x_4, 1, x_27); -x_3 = x_17; +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_17); +x_29 = lean_array_push(x_22, x_28); +lean_ctor_set(x_6, 1, x_29); +x_5 = x_19; goto _start; } else { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_free_object(x_4); -lean_dec(x_20); +lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_free_object(x_6); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); +lean_dec(x_1); +x_31 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; +x_32 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_17, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_17); -x_29 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_30 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -return x_30; +return x_32; } 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; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_21); -x_35 = l_Lean_Syntax_getArg(x_15, x_16); -x_36 = l_Lean_Syntax_getId(x_35); -lean_dec(x_35); -x_37 = l_Lean_Name_eraseMacroScopes(x_36); -lean_dec(x_36); -x_38 = lean_unsigned_to_nat(3u); -x_39 = l_Lean_Syntax_getArg(x_15, x_38); -lean_dec(x_15); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_37); -lean_ctor_set(x_41, 1, x_40); -lean_inc(x_5); -x_42 = l_Lean_Elab_Term_addNamedArg(x_19, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_42) == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_23); +x_37 = l_Lean_Syntax_getArg(x_17, x_18); +x_38 = l_Lean_Syntax_getId(x_37); +lean_dec(x_37); +x_39 = l_Lean_Name_eraseMacroScopes(x_38); +lean_dec(x_38); +x_40 = lean_unsigned_to_nat(3u); +x_41 = l_Lean_Syntax_getArg(x_17, x_40); +lean_dec(x_17); +x_42 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +lean_inc(x_7); +x_44 = l_Lean_Elab_Term_addNamedArg(x_21, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_44) == 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_inc(x_44); -lean_dec(x_42); -lean_ctor_set(x_4, 0, x_43); -x_3 = x_17; -x_11 = x_44; +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); +lean_ctor_set(x_6, 0, x_45); +x_5 = x_19; +x_13 = x_46; goto _start; } else { -uint8_t x_46; -lean_free_object(x_4); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) -{ -return x_42; -} -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_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; -} -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_50 = lean_ctor_get(x_4, 0); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_4); -lean_inc(x_15); -x_52 = l_Lean_Syntax_getKind(x_15); -x_53 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_54 = lean_name_eq(x_52, x_53); -if (x_54 == 0) -{ -lean_object* x_55; uint8_t x_56; -x_55 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_56 = lean_name_eq(x_52, x_55); -lean_dec(x_52); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_15); -x_58 = lean_array_push(x_51, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_50); -lean_ctor_set(x_59, 1, x_58); -x_3 = x_17; -x_4 = x_59; -goto _start; -} -else -{ -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_dec(x_51); -lean_dec(x_50); -lean_dec(x_17); -x_61 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_62 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; -} else { - lean_dec_ref(x_62); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; -} -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -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; lean_object* x_74; -lean_dec(x_52); -x_67 = l_Lean_Syntax_getArg(x_15, x_16); -x_68 = l_Lean_Syntax_getId(x_67); -lean_dec(x_67); -x_69 = l_Lean_Name_eraseMacroScopes(x_68); -lean_dec(x_68); -x_70 = lean_unsigned_to_nat(3u); -x_71 = l_Lean_Syntax_getArg(x_15, x_70); -lean_dec(x_15); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_69); -lean_ctor_set(x_73, 1, x_72); -lean_inc(x_5); -x_74 = l_Lean_Elab_Term_addNamedArg(x_50, x_73, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_51); -x_3 = x_17; -x_4 = x_77; -x_11 = x_76; -goto _start; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_51); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_79 = lean_ctor_get(x_74, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_81 = x_74; -} else { - lean_dec_ref(x_74); - x_81 = lean_box(0); -} -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; -} -} -} -} -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_2); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_4); -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_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_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_23 = lean_name_eq(x_21, x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_25 = lean_name_eq(x_21, x_24); -lean_dec(x_21); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_15); -x_27 = lean_array_push(x_20, x_26); -lean_ctor_set(x_4, 1, x_27); -x_3 = x_17; -goto _start; -} -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_free_object(x_4); -lean_dec(x_20); +uint8_t x_48; +lean_free_object(x_6); +lean_dec(x_22); lean_dec(x_19); -lean_dec(x_17); -x_29 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_30 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) { -return x_30; +return x_44; } 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_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_21); -x_35 = l_Lean_Syntax_getArg(x_15, x_16); -x_36 = l_Lean_Syntax_getId(x_35); -lean_dec(x_35); -x_37 = l_Lean_Name_eraseMacroScopes(x_36); -lean_dec(x_36); -x_38 = lean_unsigned_to_nat(3u); -x_39 = l_Lean_Syntax_getArg(x_15, x_38); -lean_dec(x_15); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_37); -lean_ctor_set(x_41, 1, x_40); -lean_inc(x_5); -x_42 = l_Lean_Elab_Term_addNamedArg(x_19, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_42) == 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_inc(x_44); -lean_dec(x_42); -lean_ctor_set(x_4, 0, x_43); -x_3 = x_17; -x_11 = x_44; -goto _start; -} -else -{ -uint8_t x_46; -lean_free_object(x_4); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) -{ -return x_42; -} -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_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; -} -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_50 = lean_ctor_get(x_4, 0); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); +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_dec(x_4); -lean_inc(x_15); -x_52 = l_Lean_Syntax_getKind(x_15); -x_53 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; -x_54 = lean_name_eq(x_52, x_53); -if (x_54 == 0) +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 { -lean_object* x_55; uint8_t x_56; -x_55 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_56 = lean_name_eq(x_52, x_55); -lean_dec(x_52); -if (x_56 == 0) +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_52 = lean_ctor_get(x_6, 0); +x_53 = lean_ctor_get(x_6, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_6); +lean_inc(x_17); +x_54 = l_Lean_Syntax_getKind(x_17); +x_55 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; +lean_inc(x_1); +x_56 = lean_name_mk_string(x_1, x_55); +x_57 = lean_name_eq(x_54, x_56); +lean_dec(x_56); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_15); -x_58 = lean_array_push(x_51, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_50); -lean_ctor_set(x_59, 1, x_58); -x_3 = x_17; -x_4 = x_59; +uint8_t x_58; +x_58 = lean_name_eq(x_54, x_2); +lean_dec(x_54); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_59, 0, x_17); +x_60 = lean_array_push(x_53, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_52); +lean_ctor_set(x_61, 1, x_60); +x_5 = x_19; +x_6 = x_61; goto _start; } else { -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_dec(x_51); -lean_dec(x_50); +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_dec(x_53); +lean_dec(x_52); +lean_dec(x_19); +lean_dec(x_1); +x_63 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; +x_64 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_17, x_63, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_17); -x_61 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7; -x_62 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_15, x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; } else { - lean_dec_ref(x_62); - x_65 = lean_box(0); + lean_dec_ref(x_64); + x_67 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_68 = x_67; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; } } 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; lean_object* x_74; -lean_dec(x_52); -x_67 = l_Lean_Syntax_getArg(x_15, x_16); -x_68 = l_Lean_Syntax_getId(x_67); -lean_dec(x_67); -x_69 = l_Lean_Name_eraseMacroScopes(x_68); -lean_dec(x_68); -x_70 = lean_unsigned_to_nat(3u); -x_71 = l_Lean_Syntax_getArg(x_15, x_70); -lean_dec(x_15); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_69); -lean_ctor_set(x_73, 1, x_72); -lean_inc(x_5); -x_74 = l_Lean_Elab_Term_addNamedArg(x_50, x_73, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_74) == 0) +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_dec(x_54); +x_69 = l_Lean_Syntax_getArg(x_17, x_18); +x_70 = l_Lean_Syntax_getId(x_69); +lean_dec(x_69); +x_71 = l_Lean_Name_eraseMacroScopes(x_70); +lean_dec(x_70); +x_72 = lean_unsigned_to_nat(3u); +x_73 = l_Lean_Syntax_getArg(x_17, x_72); +lean_dec(x_17); +x_74 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 1, x_74); +lean_inc(x_7); +x_76 = l_Lean_Elab_Term_addNamedArg(x_52, x_75, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_51); -x_3 = x_17; -x_4 = x_77; -x_11 = x_76; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_53); +x_5 = x_19; +x_6 = x_79; +x_13 = x_78; goto _start; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_51); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_5); -x_79 = lean_ctor_get(x_74, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_74, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_81 = x_74; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_53); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_1); +x_81 = lean_ctor_get(x_76, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_83 = x_76; } else { - lean_dec_ref(x_74); - x_81 = lean_box(0); + lean_dec_ref(x_76); + x_83 = lean_box(0); } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); } else { - x_82 = x_81; + x_84 = x_83; } -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; } } } @@ -29439,25 +29689,43 @@ static lean_object* _init_l_Lean_Elab_Term_expandApp___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("'..' is only allowed in patterns"); +x_1 = lean_mk_string("ellipsis"); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_expandApp___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_expandApp___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Elab_Term_expandApp___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_expandApp___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("'..' is only allowed in patterns"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_expandApp___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_expandApp___closed__2; +x_1 = l_Lean_Elab_Term_expandApp___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_expandApp___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_expandApp___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -29466,345 +29734,240 @@ return x_2; lean_object* l_Lean_Elab_Term_expandApp(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; uint8_t x_13; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +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; lean_object* x_62; uint8_t x_63; x_10 = lean_unsigned_to_nat(0u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_82 = lean_unsigned_to_nat(1u); -x_83 = l_Lean_Syntax_getArg(x_1, x_82); -x_84 = l_Lean_Syntax_getArgs(x_83); -lean_dec(x_83); -x_85 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_84); -x_86 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4; -x_87 = l_Lean_Syntax_isOfKind(x_85, x_86); -if (x_87 == 0) +x_12 = lean_unsigned_to_nat(1u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); +x_14 = l_Lean_Syntax_getArgs(x_13); +lean_dec(x_13); +x_15 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_14); +x_62 = l_Lean_Elab_Term_expandApp___closed__2; +x_63 = l_Lean_Syntax_isOfKind(x_15, x_62); +if (x_63 == 0) { -uint8_t x_88; -x_88 = 0; -x_12 = x_84; -x_13 = x_88; -goto block_81; +uint8_t x_64; +x_64 = 0; +x_16 = x_14; +x_17 = x_64; +goto block_61; } else { -lean_object* x_89; uint8_t x_90; -x_89 = lean_array_pop(x_84); -x_90 = 1; -x_12 = x_89; -x_13 = x_90; -goto block_81; +lean_object* x_65; uint8_t x_66; +x_65 = lean_array_pop(x_14); +x_66 = 1; +x_16 = x_65; +x_17 = x_66; +goto block_61; } -block_81: +block_61: { +uint8_t x_18; if (x_2 == 0) { -if (x_13 == 0) +if (x_17 == 0) { -lean_object* x_14; lean_object* x_15; -x_14 = l_Lean_importModules___closed__1; -x_15 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1(x_12, x_12, x_10, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_12); -if (lean_obj_tag(x_15) == 0) +uint8_t x_59; +x_59 = 1; +x_18 = x_59; +goto block_58; +} +else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +x_18 = x_2; +goto block_58; +} +} +else +{ +uint8_t x_60; +x_60 = 1; +x_18 = x_60; +goto block_58; +} +block_58: { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_15, 0); -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; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -x_21 = lean_box(x_13); -lean_ctor_set(x_17, 1, x_21); -lean_ctor_set(x_17, 0, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_22, 1, x_17); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_11); -lean_ctor_set(x_23, 1, x_22); -lean_ctor_set(x_15, 0, x_23); -return x_15; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_11); +x_19 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_16); +lean_dec(x_16); +x_20 = l_Lean_Elab_Term_expandApp___closed__5; +x_21 = l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; } 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; -x_24 = lean_ctor_get(x_17, 0); -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); -lean_dec(x_17); -x_26 = lean_box(x_13); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_15, 0, x_29); -return x_15; +lean_inc(x_23); +lean_dec(x_21); +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; } } 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; lean_object* x_39; -x_30 = lean_ctor_get(x_15, 0); -x_31 = lean_ctor_get(x_15, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_15); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_34 = x_30; -} else { - lean_dec_ref(x_30); - x_34 = lean_box(0); -} -x_35 = lean_box(x_13); -if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_34; -} +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = l_Lean_mkAppStx___closed__6; +x_27 = l_Lean_Elab_Term_expandApp___closed__2; +x_28 = l_Lean_importModules___closed__1; +x_29 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__2(x_26, x_27, x_16, x_16, x_10, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_16); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_29, 0); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +x_35 = lean_box(x_17); +lean_ctor_set(x_31, 1, x_35); +lean_ctor_set(x_31, 0, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_33); -lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 1, x_31); x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_32); +lean_ctor_set(x_37, 0, x_11); lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_11); -lean_ctor_set(x_38, 1, x_37); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_31); -return x_39; -} +lean_ctor_set(x_29, 0, x_37); +return x_29; } else { -uint8_t x_40; -lean_dec(x_11); -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) -{ -return x_15; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_ctor_get(x_15, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_15); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); +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_38 = lean_ctor_get(x_31, 0); +x_39 = lean_ctor_get(x_31, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_31); +x_40 = lean_box(x_17); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_11); lean_ctor_set(x_43, 1, x_42); -return x_43; -} +lean_ctor_set(x_29, 0, x_43); +return x_29; } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -lean_dec(x_11); -x_44 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_12); -lean_dec(x_12); -x_45 = l_Lean_Elab_Term_expandApp___closed__3; -x_46 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_44, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_44); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -return x_46; +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; +x_44 = lean_ctor_get(x_29, 0); +x_45 = lean_ctor_get(x_29, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_29); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_48 = x_44; +} else { + lean_dec_ref(x_44); + x_48 = lean_box(0); } -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_46); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); +x_49 = lean_box(x_17); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_47); lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = l_Lean_importModules___closed__1; -x_52 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__3(x_12, x_12, x_10, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_12); -if (lean_obj_tag(x_52) == 0) -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_52, 0); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -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_54, 0); -x_57 = lean_ctor_get(x_54, 1); -x_58 = lean_box(x_13); -lean_ctor_set(x_54, 1, x_58); -lean_ctor_set(x_54, 0, x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_54); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_11); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_52, 0, x_60); -return x_52; -} -else -{ -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_61 = lean_ctor_get(x_54, 0); -x_62 = lean_ctor_get(x_54, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_54); -x_63 = lean_box(x_13); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_61); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_11); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_52, 0, x_66); -return x_52; +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_46); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_11); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_45); +return x_53; } } 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; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_67 = lean_ctor_get(x_52, 0); -x_68 = lean_ctor_get(x_52, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_52); -x_69 = lean_ctor_get(x_67, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_71 = x_67; -} else { - lean_dec_ref(x_67); - x_71 = lean_box(0); -} -x_72 = lean_box(x_13); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_71; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_72); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_69); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_11); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_68); -return x_76; -} -} -else -{ -uint8_t x_77; +uint8_t x_54; lean_dec(x_11); -x_77 = !lean_is_exclusive(x_52); -if (x_77 == 0) +x_54 = !lean_is_exclusive(x_29); +if (x_54 == 0) { -return x_52; +return x_29; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_52, 0); -x_79 = lean_ctor_get(x_52, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_52); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_29, 0); +x_56 = lean_ctor_get(x_29, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_29); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } } } } -lean_object* 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) { +} +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, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_12; -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_object* x_14; +x_14 = 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, x_12, x_13); +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_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_12; +return x_14; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_14; +x_14 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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); +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_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_iterateMAux___main___at_Lean_Elab_Term_expandApp___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_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_12; +return x_14; } } 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, lean_object* x_9) { @@ -29822,6 +29985,37 @@ lean_dec(x_1); return x_11; } } +lean_object* l_Lean_Elab_Term_elabApp_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_apply_4(x_2, x_5, x_6, x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_Elab_Term_elabApp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabApp_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Term_elabApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -29851,7 +30045,7 @@ lean_dec(x_13); x_18 = lean_ctor_get(x_14, 0); lean_inc(x_18); lean_dec(x_14); -x_19 = l___private_Lean_Elab_App_39__elabAppAux(x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); return x_19; } else @@ -29913,12 +30107,12 @@ 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_40__elabAtom(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_App_0__Lean_Elab_Term_elabAtom(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; x_10 = l_Array_empty___closed__1; -x_11 = l___private_Lean_Elab_App_39__elabAppAux(x_1, x_10, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(x_1, x_10, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_11; } } @@ -29926,7 +30120,7 @@ lean_object* l_Lean_Elab_Term_elabIdent(lean_object* x_1, lean_object* x_2, lean _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -29953,7 +30147,7 @@ lean_object* l_Lean_Elab_Term_elabNamedPattern(lean_object* x_1, lean_object* x_ _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -29970,7 +30164,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_4 = l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -29980,7 +30174,7 @@ lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object* x_1, lean_object* x_ _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -29997,7 +30191,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; x_4 = l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -30007,7 +30201,7 @@ lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object* x_1, lean_object* x_ _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -30024,7 +30218,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__16; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15; x_4 = l___regBuiltin_Lean_Elab_Term_expandDollarProj___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -30033,34 +30227,13 @@ return x_5; lean_object* l_Lean_Elab_Term_elabExplicit(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_77; uint8_t x_78; -x_77 = l___private_Lean_Elab_Term_14__isExplicit___closed__2; +lean_object* x_10; uint8_t x_11; +x_10 = l___private_Lean_Elab_Term_14__isExplicit___closed__2; lean_inc(x_1); -x_78 = l_Lean_Syntax_isOfKind(x_1, x_77); -if (x_78 == 0) +x_11 = l_Lean_Syntax_isOfKind(x_1, x_10); +if (x_11 == 0) { -uint8_t x_79; -x_79 = 0; -x_10 = x_79; -goto block_76; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = l_Lean_Syntax_getArgs(x_1); -x_81 = lean_array_get_size(x_80); -lean_dec(x_80); -x_82 = lean_unsigned_to_nat(2u); -x_83 = lean_nat_dec_eq(x_81, x_82); -lean_dec(x_81); -x_10 = x_83; -goto block_76; -} -block_76: -{ -if (x_10 == 0) -{ -lean_object* x_11; +lean_object* x_12; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -30069,206 +30242,246 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_11 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9); -return x_11; +x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9); +return x_12; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_48; uint8_t x_49; -x_12 = lean_unsigned_to_nat(1u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_48 = l_Lean_identKind___closed__2; -lean_inc(x_13); -x_49 = l_Lean_Syntax_isOfKind(x_13, x_48); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; -lean_inc(x_13); -x_51 = l_Lean_Syntax_isOfKind(x_13, x_50); -if (x_51 == 0) -{ -lean_object* x_52; uint8_t x_53; -lean_dec(x_1); -x_52 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -lean_inc(x_13); -x_53 = l_Lean_Syntax_isOfKind(x_13, x_52); -if (x_53 == 0) -{ -uint8_t x_54; -x_54 = 0; -x_14 = x_54; -goto block_47; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_55 = l_Lean_Syntax_getArgs(x_13); -x_56 = lean_array_get_size(x_55); -lean_dec(x_55); -x_57 = lean_unsigned_to_nat(3u); -x_58 = lean_nat_dec_eq(x_56, x_57); -lean_dec(x_56); -x_14 = x_58; -goto block_47; -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = l_Lean_Syntax_getArgs(x_13); -x_60 = lean_array_get_size(x_59); -lean_dec(x_59); -x_61 = lean_unsigned_to_nat(4u); -x_62 = lean_nat_dec_eq(x_60, x_61); -if (x_62 == 0) -{ -lean_object* x_63; uint8_t x_64; -lean_dec(x_1); -x_63 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -lean_inc(x_13); -x_64 = l_Lean_Syntax_isOfKind(x_13, x_63); -if (x_64 == 0) -{ -uint8_t x_65; -lean_dec(x_60); -x_65 = 0; -x_14 = x_65; -goto block_47; -} -else -{ -lean_object* x_66; uint8_t x_67; -x_66 = lean_unsigned_to_nat(3u); -x_67 = lean_nat_dec_eq(x_60, x_66); -lean_dec(x_60); -x_14 = x_67; -goto block_47; -} -} -else -{ -lean_object* x_68; lean_object* x_69; uint8_t x_70; -lean_dec(x_60); -x_68 = lean_unsigned_to_nat(0u); -x_69 = l_Lean_Syntax_getArg(x_13, x_68); -x_70 = l_Lean_Syntax_isOfKind(x_69, x_48); -if (x_70 == 0) -{ -uint8_t x_71; uint8_t x_72; lean_object* x_73; -lean_dec(x_1); -x_71 = 1; -x_72 = 0; -x_73 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_71, x_72, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_73; -} -else -{ -lean_object* x_74; +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = l_Lean_Syntax_getArgs(x_1); +x_14 = lean_array_get_size(x_13); lean_dec(x_13); -x_74 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_74; -} -} -} -} -else +x_15 = lean_unsigned_to_nat(2u); +x_16 = lean_nat_dec_eq(x_14, x_15); +lean_dec(x_14); +if (x_16 == 0) { -lean_object* x_75; -lean_dec(x_13); -x_75 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_75; -} -block_47: -{ -if (x_14 == 0) -{ -uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_15 = 1; -x_16 = 0; -x_17 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_15, x_16, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_17; +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_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9); return x_17; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l_Lean_Syntax_getArg(x_13, x_12); -x_19 = l_Lean_nullKind___closed__2; -lean_inc(x_18); -x_20 = l_Lean_Syntax_isOfKind(x_18, x_19); -if (x_20 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_50; uint8_t x_51; +x_18 = lean_unsigned_to_nat(1u); +x_19 = l_Lean_Syntax_getArg(x_1, x_18); +x_50 = l_Lean_identKind___closed__2; +lean_inc(x_19); +x_51 = l_Lean_Syntax_isOfKind(x_19, x_50); +if (x_51 == 0) { -uint8_t x_21; uint8_t x_22; lean_object* x_23; -lean_dec(x_18); -x_21 = 1; -x_22 = 0; -x_23 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_21, x_22, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_23; +lean_object* x_52; uint8_t x_53; +x_52 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; +lean_inc(x_19); +x_53 = l_Lean_Syntax_isOfKind(x_19, x_52); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; +lean_dec(x_1); +x_54 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +lean_inc(x_19); +x_55 = l_Lean_Syntax_isOfKind(x_19, x_54); +if (x_55 == 0) +{ +uint8_t x_56; uint8_t x_57; lean_object* x_58; +x_56 = 1; +x_57 = 0; +x_58 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_56, x_57, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_58; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_24 = l_Lean_Syntax_getArgs(x_18); -x_25 = lean_array_get_size(x_24); -lean_dec(x_24); -x_26 = lean_unsigned_to_nat(2u); -x_27 = lean_nat_dec_eq(x_25, x_26); -lean_dec(x_25); -if (x_27 == 0) +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = l_Lean_Syntax_getArgs(x_19); +x_60 = lean_array_get_size(x_59); +lean_dec(x_59); +x_61 = lean_unsigned_to_nat(3u); +x_62 = lean_nat_dec_eq(x_60, x_61); +lean_dec(x_60); +if (x_62 == 0) { -uint8_t x_28; uint8_t x_29; lean_object* x_30; -lean_dec(x_18); -x_28 = 1; -x_29 = 0; -x_30 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_28, x_29, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_30; +uint8_t x_63; uint8_t x_64; lean_object* x_65; +x_63 = 1; +x_64 = 0; +x_65 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_63, x_64, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_65; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_unsigned_to_nat(0u); -x_32 = l_Lean_Syntax_getArg(x_18, x_31); -x_33 = l_Lean_Syntax_getArg(x_18, x_12); -lean_dec(x_18); -lean_inc(x_33); -x_34 = l_Lean_Syntax_isOfKind(x_33, x_19); -if (x_34 == 0) -{ -uint8_t x_35; uint8_t x_36; lean_object* x_37; -lean_dec(x_33); -lean_dec(x_32); -x_35 = 1; -x_36 = 0; -x_37 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_35, x_36, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_37; +lean_object* x_66; +x_66 = lean_box(0); +x_20 = x_66; +goto block_49; +} +} } else { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = l_Lean_Syntax_getArgs(x_33); -lean_dec(x_33); -x_39 = lean_array_get_size(x_38); -lean_dec(x_38); -x_40 = lean_nat_dec_eq(x_39, x_31); -lean_dec(x_39); -if (x_40 == 0) +lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_67 = l_Lean_Syntax_getArgs(x_19); +x_68 = lean_array_get_size(x_67); +lean_dec(x_67); +x_69 = lean_unsigned_to_nat(4u); +x_70 = lean_nat_dec_eq(x_68, x_69); +if (x_70 == 0) { -uint8_t x_41; uint8_t x_42; lean_object* x_43; -lean_dec(x_32); -x_41 = 1; -x_42 = 0; -x_43 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_41, x_42, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_43; +lean_object* x_71; uint8_t x_72; +lean_dec(x_1); +x_71 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; +lean_inc(x_19); +x_72 = l_Lean_Syntax_isOfKind(x_19, x_71); +if (x_72 == 0) +{ +uint8_t x_73; uint8_t x_74; lean_object* x_75; +lean_dec(x_68); +x_73 = 1; +x_74 = 0; +x_75 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_73, x_74, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_75; } else { -uint8_t x_44; uint8_t x_45; lean_object* x_46; -lean_dec(x_13); -x_44 = 1; -x_45 = 0; -x_46 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_44, x_45, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_46; +lean_object* x_76; uint8_t x_77; +x_76 = lean_unsigned_to_nat(3u); +x_77 = lean_nat_dec_eq(x_68, x_76); +lean_dec(x_68); +if (x_77 == 0) +{ +uint8_t x_78; uint8_t x_79; lean_object* x_80; +x_78 = 1; +x_79 = 0; +x_80 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_78, x_79, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_80; } +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_20 = x_81; +goto block_49; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_dec(x_68); +x_82 = lean_unsigned_to_nat(0u); +x_83 = l_Lean_Syntax_getArg(x_19, x_82); +x_84 = l_Lean_Syntax_isOfKind(x_83, x_50); +if (x_84 == 0) +{ +uint8_t x_85; uint8_t x_86; lean_object* x_87; +lean_dec(x_1); +x_85 = 1; +x_86 = 0; +x_87 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_85, x_86, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_87; +} +else +{ +lean_object* x_88; +lean_dec(x_19); +x_88 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_88; +} +} +} +} +else +{ +lean_object* x_89; +lean_dec(x_19); +x_89 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_89; +} +block_49: +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_20); +x_21 = l_Lean_Syntax_getArg(x_19, x_18); +x_22 = l_Lean_nullKind___closed__2; +lean_inc(x_21); +x_23 = l_Lean_Syntax_isOfKind(x_21, x_22); +if (x_23 == 0) +{ +uint8_t x_24; uint8_t x_25; lean_object* x_26; +lean_dec(x_21); +x_24 = 1; +x_25 = 0; +x_26 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_24, x_25, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = l_Lean_Syntax_getArgs(x_21); +x_28 = lean_array_get_size(x_27); +lean_dec(x_27); +x_29 = lean_nat_dec_eq(x_28, x_15); +lean_dec(x_28); +if (x_29 == 0) +{ +uint8_t x_30; uint8_t x_31; lean_object* x_32; +lean_dec(x_21); +x_30 = 1; +x_31 = 0; +x_32 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_30, x_31, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_32; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_Syntax_getArg(x_21, x_33); +x_35 = l_Lean_Syntax_getArg(x_21, x_18); +lean_dec(x_21); +lean_inc(x_35); +x_36 = l_Lean_Syntax_isOfKind(x_35, x_22); +if (x_36 == 0) +{ +uint8_t x_37; uint8_t x_38; lean_object* x_39; +lean_dec(x_35); +lean_dec(x_34); +x_37 = 1; +x_38 = 0; +x_39 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_37, x_38, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = l_Lean_Syntax_getArgs(x_35); +lean_dec(x_35); +x_41 = lean_array_get_size(x_40); +lean_dec(x_40); +x_42 = lean_nat_dec_eq(x_41, x_33); +lean_dec(x_41); +if (x_42 == 0) +{ +uint8_t x_43; uint8_t x_44; lean_object* x_45; +lean_dec(x_34); +x_43 = 1; +x_44 = 0; +x_45 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_43, x_44, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_45; +} +else +{ +uint8_t x_46; uint8_t x_47; lean_object* x_48; +lean_dec(x_19); +x_46 = 1; +x_47 = 0; +x_48 = l___private_Lean_Elab_Term_21__elabTermAux___main(x_2, x_46, x_47, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_48; } } } @@ -30301,7 +30514,7 @@ lean_object* l_Lean_Elab_Term_elabChoice(lean_object* x_1, lean_object* x_2, lea _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -30328,7 +30541,7 @@ lean_object* l_Lean_Elab_Term_elabProj(lean_object* x_1, lean_object* x_2, lean_ _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -30345,7 +30558,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_4 = l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -30355,7 +30568,7 @@ lean_object* l_Lean_Elab_Term_elabArrayRef(lean_object* x_1, lean_object* x_2, l _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_App_40__elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_10; } } @@ -30372,67 +30585,20 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__11; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; x_4 = l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1; 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_41__regTraceClasses(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7223_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_App_14__propagateExpectedType___closed__1; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; 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_FindMVar(lean_object*); @@ -30475,246 +30641,235 @@ l_Lean_Elab_Term_addNamedArg___closed__3 = _init_l_Lean_Elab_Term_addNamedArg___ lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__3); l_Lean_Elab_Term_addNamedArg___closed__4 = _init_l_Lean_Elab_Term_addNamedArg___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__4); -l_Lean_Elab_Term_addNamedArg___closed__5 = _init_l_Lean_Elab_Term_addNamedArg___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__5); -l_Lean_Elab_Term_addNamedArg___closed__6 = _init_l_Lean_Elab_Term_addNamedArg___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_addNamedArg___closed__6); -l___private_Lean_Elab_App_2__tryCoeFun___closed__1 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__1); -l___private_Lean_Elab_App_2__tryCoeFun___closed__2 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__2); -l___private_Lean_Elab_App_2__tryCoeFun___closed__3 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__3); -l___private_Lean_Elab_App_2__tryCoeFun___closed__4 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__4); -l___private_Lean_Elab_App_2__tryCoeFun___closed__5 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__5); -l___private_Lean_Elab_App_2__tryCoeFun___closed__6 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__6); -l___private_Lean_Elab_App_2__tryCoeFun___closed__7 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__7); -l___private_Lean_Elab_App_2__tryCoeFun___closed__8 = _init_l___private_Lean_Elab_App_2__tryCoeFun___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_2__tryCoeFun___closed__8); -l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1 = _init_l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_11__hasOptAutoParams___closed__1); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__1 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__1); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__2 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__2); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__3 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__3); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__4 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__4); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__5 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__5); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__6 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__6); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__7 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__7); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__8 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__8); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__9 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__9); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__10 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__10); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__11 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__11); -l___private_Lean_Elab_App_14__propagateExpectedType___closed__12 = _init_l___private_Lean_Elab_App_14__propagateExpectedType___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_App_14__propagateExpectedType___closed__12); -l___private_Lean_Elab_App_16__finalize___closed__1 = _init_l___private_Lean_Elab_App_16__finalize___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__1); -l___private_Lean_Elab_App_16__finalize___closed__2 = _init_l___private_Lean_Elab_App_16__finalize___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__2); -l___private_Lean_Elab_App_16__finalize___closed__3 = _init_l___private_Lean_Elab_App_16__finalize___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__3); -l___private_Lean_Elab_App_16__finalize___closed__4 = _init_l___private_Lean_Elab_App_16__finalize___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__4); -l___private_Lean_Elab_App_16__finalize___closed__5 = _init_l___private_Lean_Elab_App_16__finalize___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__5); -l___private_Lean_Elab_App_16__finalize___closed__6 = _init_l___private_Lean_Elab_App_16__finalize___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__6); -l___private_Lean_Elab_App_16__finalize___closed__7 = _init_l___private_Lean_Elab_App_16__finalize___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__7); -l___private_Lean_Elab_App_16__finalize___closed__8 = _init_l___private_Lean_Elab_App_16__finalize___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_16__finalize___closed__8); -l___private_Lean_Elab_App_17__processExplictArg___closed__1 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__1); -l___private_Lean_Elab_App_17__processExplictArg___closed__2 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__2); -l___private_Lean_Elab_App_17__processExplictArg___closed__3 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__3); -l___private_Lean_Elab_App_17__processExplictArg___closed__4 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__4); -l___private_Lean_Elab_App_17__processExplictArg___closed__5 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__5); -l___private_Lean_Elab_App_17__processExplictArg___closed__6 = _init_l___private_Lean_Elab_App_17__processExplictArg___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_17__processExplictArg___closed__6); -l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1 = _init_l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_main___main___rarg___closed__1); -l___private_Lean_Elab_App_21__elabAppArgs___closed__1 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__1); -l___private_Lean_Elab_App_21__elabAppArgs___closed__2 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__2); -l___private_Lean_Elab_App_21__elabAppArgs___closed__3 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__3); -l___private_Lean_Elab_App_21__elabAppArgs___closed__4 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__4); -l___private_Lean_Elab_App_21__elabAppArgs___closed__5 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__5); -l___private_Lean_Elab_App_21__elabAppArgs___closed__6 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__6); -l___private_Lean_Elab_App_21__elabAppArgs___closed__7 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__7); -l___private_Lean_Elab_App_21__elabAppArgs___closed__8 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__8); -l___private_Lean_Elab_App_21__elabAppArgs___closed__9 = _init_l___private_Lean_Elab_App_21__elabAppArgs___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_App_21__elabAppArgs___closed__9); -l___private_Lean_Elab_App_24__resolveLValAux___closed__1 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__1); -l___private_Lean_Elab_App_24__resolveLValAux___closed__2 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__2); -l___private_Lean_Elab_App_24__resolveLValAux___closed__3 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__3); -l___private_Lean_Elab_App_24__resolveLValAux___closed__4 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__4); -l___private_Lean_Elab_App_24__resolveLValAux___closed__5 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__5); -l___private_Lean_Elab_App_24__resolveLValAux___closed__6 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__6); -l___private_Lean_Elab_App_24__resolveLValAux___closed__7 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__7); -l___private_Lean_Elab_App_24__resolveLValAux___closed__8 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__8); -l___private_Lean_Elab_App_24__resolveLValAux___closed__9 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__9); -l___private_Lean_Elab_App_24__resolveLValAux___closed__10 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__10); -l___private_Lean_Elab_App_24__resolveLValAux___closed__11 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__11); -l___private_Lean_Elab_App_24__resolveLValAux___closed__12 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__12); -l___private_Lean_Elab_App_24__resolveLValAux___closed__13 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__13); -l___private_Lean_Elab_App_24__resolveLValAux___closed__14 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__14); -l___private_Lean_Elab_App_24__resolveLValAux___closed__15 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__15); -l___private_Lean_Elab_App_24__resolveLValAux___closed__16 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__16); -l___private_Lean_Elab_App_24__resolveLValAux___closed__17 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__17); -l___private_Lean_Elab_App_24__resolveLValAux___closed__18 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__18); -l___private_Lean_Elab_App_24__resolveLValAux___closed__19 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__19(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__19); -l___private_Lean_Elab_App_24__resolveLValAux___closed__20 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__20(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__20); -l___private_Lean_Elab_App_24__resolveLValAux___closed__21 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__21(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__21); -l___private_Lean_Elab_App_24__resolveLValAux___closed__22 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__22(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__22); -l___private_Lean_Elab_App_24__resolveLValAux___closed__23 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__23(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__23); -l___private_Lean_Elab_App_24__resolveLValAux___closed__24 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__24(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__24); -l___private_Lean_Elab_App_24__resolveLValAux___closed__25 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__25(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__25); -l___private_Lean_Elab_App_24__resolveLValAux___closed__26 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__26(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__26); -l___private_Lean_Elab_App_24__resolveLValAux___closed__27 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__27(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__27); -l___private_Lean_Elab_App_24__resolveLValAux___closed__28 = _init_l___private_Lean_Elab_App_24__resolveLValAux___closed__28(); -lean_mark_persistent(l___private_Lean_Elab_App_24__resolveLValAux___closed__28); -l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1 = _init_l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__1); -l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2 = _init_l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2(); -lean_mark_persistent(l_List_foldlM___main___at___private_Lean_Elab_App_28__mkBaseProjections___spec__1___closed__2); -l___private_Lean_Elab_App_28__mkBaseProjections___closed__1 = _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_28__mkBaseProjections___closed__1); -l___private_Lean_Elab_App_28__mkBaseProjections___closed__2 = _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_28__mkBaseProjections___closed__2); -l___private_Lean_Elab_App_28__mkBaseProjections___closed__3 = _init_l___private_Lean_Elab_App_28__mkBaseProjections___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_28__mkBaseProjections___closed__3); -l___private_Lean_Elab_App_29__addLValArg___main___closed__1 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__1); -l___private_Lean_Elab_App_29__addLValArg___main___closed__2 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__2); -l___private_Lean_Elab_App_29__addLValArg___main___closed__3 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__3); -l___private_Lean_Elab_App_29__addLValArg___main___closed__4 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__4); -l___private_Lean_Elab_App_29__addLValArg___main___closed__5 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__5); -l___private_Lean_Elab_App_29__addLValArg___main___closed__6 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__6); -l___private_Lean_Elab_App_29__addLValArg___main___closed__7 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__7); -l___private_Lean_Elab_App_29__addLValArg___main___closed__8 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__8); -l___private_Lean_Elab_App_29__addLValArg___main___closed__9 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__9); -l___private_Lean_Elab_App_29__addLValArg___main___closed__10 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__10); -l___private_Lean_Elab_App_29__addLValArg___main___closed__11 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__11); -l___private_Lean_Elab_App_29__addLValArg___main___closed__12 = _init_l___private_Lean_Elab_App_29__addLValArg___main___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_App_29__addLValArg___main___closed__12); -l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1 = _init_l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1); -l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2 = _init_l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2); -l___private_Lean_Elab_App_31__elabAppLVals___closed__1 = _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_31__elabAppLVals___closed__1); -l___private_Lean_Elab_App_31__elabAppLVals___closed__2 = _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_31__elabAppLVals___closed__2); -l___private_Lean_Elab_App_31__elabAppLVals___closed__3 = _init_l___private_Lean_Elab_App_31__elabAppLVals___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_31__elabAppLVals___closed__3); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__1 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__1); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__2 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__2); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__3 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__3); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__4 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__4); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__5 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__5); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__6 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__6); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__7 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__7); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__8 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__8); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__9 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__9); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__10 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__10); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__11 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__11); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__12 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__12); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__13 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__13); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__14 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__14); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__15 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__15); -l___private_Lean_Elab_App_33__elabAppFn___main___closed__16 = _init_l___private_Lean_Elab_App_33__elabAppFn___main___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_App_33__elabAppFn___main___closed__16); -l___private_Lean_Elab_App_36__toMessageData___closed__1 = _init_l___private_Lean_Elab_App_36__toMessageData___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_36__toMessageData___closed__1); -l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1 = _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__1); -l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__2 = _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__2); -l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3 = _init_l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_38__mergeFailures___rarg___closed__3); -l___private_Lean_Elab_App_39__elabAppAux___closed__1 = _init_l___private_Lean_Elab_App_39__elabAppAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_App_39__elabAppAux___closed__1); -l___private_Lean_Elab_App_39__elabAppAux___closed__2 = _init_l___private_Lean_Elab_App_39__elabAppAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_39__elabAppAux___closed__2); -l___private_Lean_Elab_App_39__elabAppAux___closed__3 = _init_l___private_Lean_Elab_App_39__elabAppAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_39__elabAppAux___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__8); +l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun___closed__9); +l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default); +l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default); +l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default); +l_Lean_Elab_Term_ElabAppArgs_State_typeMVars___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_typeMVars___default(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_typeMVars___default); +l_Lean_Elab_Term_ElabAppArgs_State_alreadyPropagated___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_alreadyPropagated___default(); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6); +l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1 = _init_l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_main___rarg___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppArgs___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__10 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__10); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__11); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__12); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__13); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__14); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__16); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__17); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__18); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__19); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__20); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__21); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__22); +l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__23); +l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1 = _init_l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1(); +lean_mark_persistent(l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1); +l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2 = _init_l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2(); +lean_mark_persistent(l_List_forInAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__8); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__7 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__7); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16); +l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3); 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(); @@ -30723,18 +30878,16 @@ l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3 = lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__3); l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4(); lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__4); -l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__5); -l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__6); -l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__7); l_Lean_Elab_Term_expandApp___closed__1 = _init_l_Lean_Elab_Term_expandApp___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_expandApp___closed__1); l_Lean_Elab_Term_expandApp___closed__2 = _init_l_Lean_Elab_Term_expandApp___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_expandApp___closed__2); l_Lean_Elab_Term_expandApp___closed__3 = _init_l_Lean_Elab_Term_expandApp___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_expandApp___closed__3); +l_Lean_Elab_Term_expandApp___closed__4 = _init_l_Lean_Elab_Term_expandApp___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_expandApp___closed__4); +l_Lean_Elab_Term_expandApp___closed__5 = _init_l_Lean_Elab_Term_expandApp___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_expandApp___closed__5); 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()); @@ -30780,7 +30933,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_App_41__regTraceClasses(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7223_(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/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 3f7de8a541..598356a3df 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -234,7 +234,6 @@ lean_object* l___private_Lean_Elab_Do_9__mkUnit___closed__3; extern lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__25; lean_object* l_Lean_Elab_Term_Do_eraseVars(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabParen___closed__5; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___at_Lean_Elab_Term_Do_convertTerminalActionIntoJmpAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkFreshJP___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_Do_ToCodeBlock_expandLiftMethod(lean_object*, lean_object*, lean_object*); @@ -486,6 +485,7 @@ extern lean_object* l___private_Lean_Meta_Closure_1__mkAuxDefinitionImp___lambda lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__1___closed__6; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__46; lean_object* l_Lean_Elab_Term_Do_toMessageDataAux___main___closed__14; +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; lean_object* l_Lean_Elab_Term_Do_extendUpdatedVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTermCore___closed__5; lean_object* l___private_Lean_Elab_Do_15__mkMonadAlias___closed__1; @@ -526,6 +526,7 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_Do_elabDo(lean_object*); lean_object* l_Std_RBNode_appendTrees___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_withNewVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; lean_object* l_Lean_Elab_Term_Do_toMessageDataAux___main___closed__28; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTermCore___closed__3; lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__6; @@ -839,7 +840,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_concat___ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___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_MonadTracer_trace___at_Lean_Elab_Term_Do_elabDo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_toMessageDataAux___main___closed__1; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; lean_object* l_Lean_indentD(lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__9; @@ -26221,12 +26221,12 @@ x_317 = lean_array_push(x_316, x_296); x_318 = lean_array_push(x_317, x_296); x_319 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; x_320 = lean_array_push(x_318, x_319); -x_321 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_321 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_322 = lean_array_push(x_295, x_321); x_323 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_322); x_324 = lean_array_push(x_322, x_323); -x_325 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_325 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_326 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_326, 0, x_325); lean_ctor_set(x_326, 1, x_324); @@ -26439,12 +26439,12 @@ x_445 = lean_array_push(x_444, x_424); x_446 = lean_array_push(x_445, x_424); x_447 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; x_448 = lean_array_push(x_446, x_447); -x_449 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_449 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_450 = lean_array_push(x_423, x_449); x_451 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_450); x_452 = lean_array_push(x_450, x_451); -x_453 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_453 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_454 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_454, 0, x_453); lean_ctor_set(x_454, 1, x_452); @@ -27260,12 +27260,12 @@ x_910 = lean_array_push(x_909, x_889); x_911 = lean_array_push(x_910, x_889); x_912 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; x_913 = lean_array_push(x_911, x_912); -x_914 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_914 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_915 = lean_array_push(x_888, x_914); x_916 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_915); x_917 = lean_array_push(x_915, x_916); -x_918 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_918 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_919 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_919, 0, x_918); lean_ctor_set(x_919, 1, x_917); @@ -27447,12 +27447,12 @@ x_1016 = lean_array_push(x_1015, x_995); x_1017 = lean_array_push(x_1016, x_995); x_1018 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; x_1019 = lean_array_push(x_1017, x_1018); -x_1020 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_1020 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_1021 = lean_array_push(x_994, x_1020); x_1022 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__37; lean_inc(x_1021); x_1023 = lean_array_push(x_1021, x_1022); -x_1024 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_1024 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_1025 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1025, 0, x_1024); lean_ctor_set(x_1025, 1, x_1023); @@ -34170,7 +34170,7 @@ lean_inc(x_45); lean_dec(x_43); x_46 = l_Array_empty___closed__1; x_47 = lean_array_push(x_46, x_15); -x_48 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_49 = lean_array_push(x_47, x_48); x_50 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__4; x_51 = l_Lean_addMacroScope(x_44, x_50, x_41); @@ -34184,7 +34184,7 @@ lean_ctor_set(x_56, 1, x_54); lean_ctor_set(x_56, 2, x_51); lean_ctor_set(x_56, 3, x_55); x_57 = lean_array_push(x_49, x_56); -x_58 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_58 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); @@ -34481,7 +34481,7 @@ lean_inc(x_229); lean_dec(x_227); x_230 = l_Array_empty___closed__1; x_231 = lean_array_push(x_230, x_15); -x_232 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_232 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_233 = lean_array_push(x_231, x_232); x_234 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__4; lean_inc(x_225); @@ -34497,7 +34497,7 @@ lean_ctor_set(x_240, 1, x_238); lean_ctor_set(x_240, 2, x_235); lean_ctor_set(x_240, 3, x_239); x_241 = lean_array_push(x_233, x_240); -x_242 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_242 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_243 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_243, 0, x_242); lean_ctor_set(x_243, 1, x_241); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index eba4000aff..db21a82418 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -65,6 +65,7 @@ lean_object* l___private_Lean_Elab_Match_5__mkUserNameFor(lean_object*, lean_obj lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg(lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Term_CollectPatternVars_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_Array_mapSepElemsM___at_Lean_Elab_Term_CollectPatternVars_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_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_13__mkMVarSyntax___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Match_6__isAuxDiscrName(lean_object*); @@ -75,6 +76,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_HeadIndex_1__headNumArgsAux___main(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__2; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); @@ -106,6 +108,7 @@ lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_27__processVar___closed__1; lean_object* l___private_Lean_Elab_Match_23__pushNewArg___closed__1; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_46__tryPostponeIfDiscrTypeIsMVar___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_App_0__Lean_Elab_Term_elabAppFn___closed__12; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__4; @@ -247,7 +250,6 @@ lean_object* l___private_Lean_Elab_Match_37__throwInvalidPattern___rarg___closed 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_37__throwInvalidPattern(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; @@ -424,7 +426,6 @@ lean_object* l_Lean_Elab_Term_PatternVar_hasToString___closed__1; lean_object* l___private_Lean_Elab_Match_40__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_mkFreshId___at___private_Lean_Elab_Match_38__mkLocalDeclFor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___lambda__1___closed__1; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; 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*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); @@ -458,6 +459,7 @@ extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____clos lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___spec__2___boxed(lean_object*, lean_object*); 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_Lean_Elab_Term_getPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_32__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*); @@ -631,7 +633,6 @@ 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_17__throwAmbiguous___rarg___closed__3; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; lean_object* lean_nat_mod(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___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__9; @@ -712,7 +713,6 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__3(lean lean_object* l___private_Lean_Elab_Match_3__elabDiscrsWitMatchTypeAux___main___closed__6; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__24(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_elabMatch___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__12; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___closed__1; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; @@ -5958,7 +5958,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatt _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_11__hasOptAutoParams___spec__2___rarg___lambda__1), 11, 4); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___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); @@ -7988,7 +7988,7 @@ static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___c _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__12; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -7997,7 +7997,7 @@ static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect___main___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__12; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Elab_Term_CollectPatternVars_collect___main___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); @@ -8012,7 +8012,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__12; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -8189,12 +8189,12 @@ if (x_40 == 0) { lean_object* x_41; uint8_t x_42; lean_dec(x_11); -x_41 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; 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_App_33__elabAppFn___main___closed__13; +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_44 = lean_name_eq(x_10, x_43); if (x_44 == 0) { @@ -9773,12 +9773,12 @@ if (x_424 == 0) { lean_object* x_425; uint8_t x_426; lean_dec(x_11); -x_425 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_425 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; x_426 = lean_name_eq(x_10, x_425); if (x_426 == 0) { lean_object* x_427; uint8_t x_428; -x_427 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +x_427 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_428 = lean_name_eq(x_10, x_427); if (x_428 == 0) { @@ -10781,12 +10781,12 @@ if (x_634 == 0) { lean_object* x_635; uint8_t x_636; lean_dec(x_11); -x_635 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_635 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; x_636 = lean_name_eq(x_10, x_635); if (x_636 == 0) { lean_object* x_637; uint8_t x_638; -x_637 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +x_637 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_638 = lean_name_eq(x_10, x_637); if (x_638 == 0) { @@ -11820,12 +11820,12 @@ if (x_858 == 0) { lean_object* x_859; uint8_t x_860; lean_dec(x_11); -x_859 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_859 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; x_860 = lean_name_eq(x_10, x_859); if (x_860 == 0) { lean_object* x_861; uint8_t x_862; -x_861 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +x_861 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_862 = lean_name_eq(x_10, x_861); if (x_862 == 0) { @@ -12953,12 +12953,12 @@ if (x_1102 == 0) { lean_object* x_1103; uint8_t x_1104; lean_dec(x_11); -x_1103 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__5; +x_1103 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__8; x_1104 = lean_name_eq(x_10, x_1103); if (x_1104 == 0) { lean_object* x_1105; uint8_t x_1106; -x_1105 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__13; +x_1105 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__12; x_1106 = lean_name_eq(x_10, x_1105); if (x_1106 == 0) { diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 7e2886830e..28e574b126 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -75,7 +75,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___closed__1 lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; -extern lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(lean_object*, lean_object*); @@ -135,6 +134,7 @@ lean_object* l_Lean_Elab_Term_StructInst_formatField(lean_object*, lean_object*) lean_object* l___private_Lean_Elab_StructInst_8__expandCompositeFields___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat___closed__1; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; +lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1; @@ -156,7 +156,6 @@ lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__ lean_object* l___private_Lean_Elab_StructInst_26__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; @@ -183,6 +182,7 @@ lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat(lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Source_isNone___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited; +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_structName(lean_object*); @@ -194,6 +194,7 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___m lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; lean_object* l_Lean_Meta_assignExprMVar___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -234,7 +235,6 @@ lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType___boxed( lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object*); -extern lean_object* l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -309,6 +309,7 @@ lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___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_App_0__Lean_Elab_Term_elabAppFn___closed__13; size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -322,6 +323,7 @@ lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; lean_object* l___private_Lean_Elab_StructInst_8__expandCompositeFields(lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l___private_Lean_Elab_StructInst_10__expandParentFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; uint8_t l_Lean_Elab_Term_StructInst_Field_isSimple___rarg(lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields(lean_object*); @@ -355,6 +357,7 @@ lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___mai lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; +lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); @@ -407,7 +410,6 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step___main(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___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4; -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1; lean_object* l___private_Lean_Elab_StructInst_19__expandStruct(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -450,6 +452,7 @@ lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(lean_ob lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__1; extern lean_object* l_PUnit_Inhabited; extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; @@ -483,7 +486,6 @@ lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(lean_object*, lean lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_1__mkIdImp___closed__2; -extern lean_object* l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___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_StructInst_25__elabStructInstAux___closed__6; @@ -526,7 +528,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object* l_Lean_throwError___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___spec__2___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_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*); @@ -2270,19 +2271,29 @@ return x_3; static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +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_Lean_Elab_Term_expandApp___spec__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; +x_3 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2290,7 +2301,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { _start: { lean_object* x_1; @@ -2298,22 +2309,12 @@ x_1 = lean_mk_string("\n===>\n"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__18; -x_2 = lean_alloc_ctor(0, 1, 0); +x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -2321,19 +2322,19 @@ return x_2; static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("\nval: "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("\nval: "); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22() { @@ -2341,7 +2342,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21; -x_2 = lean_alloc_ctor(0, 1, 0); +x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -2349,6 +2350,16 @@ return x_2; static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; @@ -2358,19 +2369,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24() { +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; +x_2 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; 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; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25() { +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26() { _start: { lean_object* x_1; @@ -2378,21 +2389,21 @@ x_1 = lean_mk_string("\nSource: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27() { _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -2418,7 +2429,7 @@ lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_inc(x_2); x_306 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_306, 0, x_2); -x_307 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27; +x_307 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; x_308 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_308, 0, x_306); lean_ctor_set(x_308, 1, x_307); @@ -2568,7 +2579,7 @@ lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_inc(x_1); x_163 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_163, 0, x_1); -x_164 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__22; +x_164 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; x_165 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_165, 0, x_163); lean_ctor_set(x_165, 1, x_164); @@ -2608,7 +2619,7 @@ lean_inc(x_60); lean_dec(x_58); x_61 = l_Array_empty___closed__1; x_62 = lean_array_push(x_61, x_54); -x_63 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_63 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_64 = lean_array_push(x_62, x_63); x_65 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_inc(x_56); @@ -2622,16 +2633,16 @@ lean_ctor_set(x_69, 1, x_67); lean_ctor_set(x_69, 2, x_66); lean_ctor_set(x_69, 3, x_68); x_70 = lean_array_push(x_64, x_69); -x_71 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_71 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); x_73 = lean_array_push(x_61, x_72); -x_74 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; +x_74 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; lean_inc(x_56); lean_inc(x_59); x_75 = l_Lean_addMacroScope(x_59, x_74, x_56); -x_76 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; +x_76 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; x_77 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_77, 0, x_25); lean_ctor_set(x_77, 1, x_76); @@ -2644,7 +2655,7 @@ x_81 = lean_array_push(x_79, x_80); x_82 = lean_array_push(x_81, x_53); x_83 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_84 = lean_array_push(x_82, x_83); -x_85 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; +x_85 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; x_86 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); @@ -2761,7 +2772,7 @@ lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_inc(x_1); x_134 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_134, 0, x_1); -x_135 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; +x_135 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; x_136 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_136, 0, x_134); lean_ctor_set(x_136, 1, x_135); @@ -2868,7 +2879,7 @@ lean_inc(x_193); lean_dec(x_191); x_194 = l_Array_empty___closed__1; x_195 = lean_array_push(x_194, x_187); -x_196 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__14; +x_196 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; x_197 = lean_array_push(x_195, x_196); x_198 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_inc(x_189); @@ -2877,23 +2888,23 @@ x_199 = l_Lean_addMacroScope(x_192, x_198, x_189); x_200 = lean_box(0); x_201 = l_Lean_SourceInfo_inhabited___closed__1; x_202 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -x_203 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; +x_203 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; x_204 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_204, 0, x_201); lean_ctor_set(x_204, 1, x_202); lean_ctor_set(x_204, 2, x_199); lean_ctor_set(x_204, 3, x_203); x_205 = lean_array_push(x_197, x_204); -x_206 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_206 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_207 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_207, 0, x_206); lean_ctor_set(x_207, 1, x_205); x_208 = lean_array_push(x_194, x_207); -x_209 = l___private_Lean_Elab_App_30__elabAppLValsAux___main___closed__2; +x_209 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___closed__2; lean_inc(x_189); lean_inc(x_192); x_210 = l_Lean_addMacroScope(x_192, x_209, x_189); -x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; +x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; x_212 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_212, 0, x_201); lean_ctor_set(x_212, 1, x_211); @@ -2906,7 +2917,7 @@ x_216 = lean_array_push(x_214, x_215); x_217 = lean_array_push(x_216, x_186); x_218 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_219 = lean_array_push(x_217, x_218); -x_220 = l_Array_iterateMAux___main___at_Lean_Elab_Term_expandApp___spec__1___closed__2; +x_220 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; x_221 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_221, 0, x_220); lean_ctor_set(x_221, 1, x_219); @@ -3030,7 +3041,7 @@ lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_inc(x_1); x_274 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_274, 0, x_1); -x_275 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__19; +x_275 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; x_276 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_276, 0, x_274); lean_ctor_set(x_276, 1, x_275); @@ -13828,7 +13839,7 @@ x_6 = l___private_Lean_Elab_Term_5__tryCoe___closed__3; x_7 = lean_array_push(x_6, x_1); x_8 = lean_array_push(x_7, x_4); x_9 = lean_array_push(x_8, x_5); -x_10 = l___private_Lean_Elab_App_33__elabAppFn___main___closed__9; +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -18090,95 +18101,94 @@ lean_inc(x_5); x_26 = l___private_Lean_Elab_StructInst_22__propagateExpectedType(x_24, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); 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_27; lean_object* x_28; lean_object* x_29; x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); x_28 = lean_ctor_get(x_22, 2); lean_inc(x_28); -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_28, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +x_29 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_27); lean_dec(x_28); -if (lean_obj_tag(x_30) == 0) +if (lean_obj_tag(x_29) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_22); -return x_30; +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_22); +return x_29; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_22); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_22); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -uint8_t x_35; +uint8_t x_34; lean_dec(x_22); -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) { -return x_30; +return x_29; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); -lean_inc(x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); lean_inc(x_36); -lean_dec(x_30); -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_inc(x_35); +lean_dec(x_29); +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_39; +uint8_t x_38; lean_dec(x_22); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_39 = !lean_is_exclusive(x_26); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_26); +if (x_38 == 0) { return x_26; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_26, 0); -x_41 = lean_ctor_get(x_26, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_26, 0); +x_40 = lean_ctor_get(x_26, 1); lean_inc(x_40); +lean_inc(x_39); lean_dec(x_26); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_43; +uint8_t x_42; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -18186,23 +18196,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_21); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_21); +if (x_42 == 0) { return x_21; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_21, 0); -x_45 = lean_ctor_get(x_21, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_21, 0); +x_44 = lean_ctor_get(x_21, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_21); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -27999,6 +28009,8 @@ l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26 = _init_l___privat lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26); l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27(); lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27); +l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28); l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1); l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2();